mirror of https://github.com/buster-so/buster.git
Merge pull request #1152 from buster-so/big-nate-bus-1901-report-is-scrolled-down-when-it-finishes-streaming-in
update share link
This commit is contained in:
commit
5636438aa1
|
@ -72,7 +72,7 @@ const LazyMetricStoreDevtools = !import.meta.env.SSR
|
||||||
// The actual devtools component implementation
|
// The actual devtools component implementation
|
||||||
const TanstackDevtoolsImpl: React.FC = React.memo(() => {
|
const TanstackDevtoolsImpl: React.FC = React.memo(() => {
|
||||||
useMount(() => {
|
useMount(() => {
|
||||||
if (import.meta.env.PROD) console.log('🐓 Rendering TanstackDevtoolsImpl');
|
if (import.meta.env.PROD) console.info('🐓 Rendering TanstackDevtoolsImpl');
|
||||||
});
|
});
|
||||||
const isServerOrSSR = isServer && import.meta.env.SSR;
|
const isServerOrSSR = isServer && import.meta.env.SSR;
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ export const TanstackDevtools: React.FC = React.memo(() => {
|
||||||
useHotkeys(
|
useHotkeys(
|
||||||
'shift+d+t', //shaft (T)anstack+(D)evtools
|
'shift+d+t', //shaft (T)anstack+(D)evtools
|
||||||
() => {
|
() => {
|
||||||
console.log('🐓 Setting useDevTools to true');
|
console.info('🐓 Setting useDevTools to true');
|
||||||
setUseDevTools(true);
|
setUseDevTools(true);
|
||||||
},
|
},
|
||||||
{ enabled: ENABLE_TANSTACK_PANEL, preventDefault: true }
|
{ enabled: ENABLE_TANSTACK_PANEL, preventDefault: true }
|
||||||
|
|
|
@ -20,6 +20,5 @@ export function defineLinkFromFactory<TFrom extends string>(fromOptions: { from:
|
||||||
}
|
}
|
||||||
|
|
||||||
export const createFullURL = (location: ParsedLocation | string): string =>
|
export const createFullURL = (location: ParsedLocation | string): string =>
|
||||||
window.location.origin + typeof location === 'string'
|
window.location.origin +
|
||||||
? (location as string)
|
(typeof location === 'string' ? (location as string) : (location as ParsedLocation).href);
|
||||||
: (location as ParsedLocation).href;
|
|
||||||
|
|
|
@ -51,13 +51,13 @@ export const ServerRoute = createServerFileRoute('/auth/callback').methods({
|
||||||
return new Response('Missing authorization code', { status: 400 });
|
return new Response('Missing authorization code', { status: 400 });
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Using auth code:', code ? 'code' : 'code_challenge');
|
console.info('Using auth code:', code ? 'code' : 'code_challenge');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const supabase = getSupabaseServerClient();
|
const supabase = getSupabaseServerClient();
|
||||||
|
|
||||||
// Exchange the authorization code for a session
|
// Exchange the authorization code for a session
|
||||||
console.log('Attempting to exchange authorization code for session');
|
console.info('Attempting to exchange authorization code for session');
|
||||||
const { data: sessionData, error: exchangeError } = await supabase.auth
|
const { data: sessionData, error: exchangeError } = await supabase.auth
|
||||||
.exchangeCodeForSession(authCode)
|
.exchangeCodeForSession(authCode)
|
||||||
.catch((authError) => {
|
.catch((authError) => {
|
||||||
|
@ -77,9 +77,9 @@ export const ServerRoute = createServerFileRoute('/auth/callback').methods({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sessionData?.session) {
|
if (sessionData?.session) {
|
||||||
console.log('Successfully exchanged code for session, user:', sessionData.user?.email);
|
console.info('Successfully exchanged code for session, user:', sessionData.user?.email);
|
||||||
} else {
|
} else {
|
||||||
console.warn('Code exchange succeeded but no session data received');
|
console.info('Code exchange succeeded but no session data received');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Construct the redirect URL
|
// Construct the redirect URL
|
||||||
|
@ -100,7 +100,7 @@ export const ServerRoute = createServerFileRoute('/auth/callback').methods({
|
||||||
redirectUrl = `${origin}${safePath}`;
|
redirectUrl = `${origin}${safePath}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Redirecting to:', redirectUrl);
|
console.info('Redirecting to:', redirectUrl);
|
||||||
|
|
||||||
return new Response(null, {
|
return new Response(null, {
|
||||||
status: 302,
|
status: 302,
|
||||||
|
|
Loading…
Reference in New Issue