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
|
||||
const TanstackDevtoolsImpl: React.FC = React.memo(() => {
|
||||
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;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ export const TanstackDevtools: React.FC = React.memo(() => {
|
|||
useHotkeys(
|
||||
'shift+d+t', //shaft (T)anstack+(D)evtools
|
||||
() => {
|
||||
console.log('🐓 Setting useDevTools to true');
|
||||
console.info('🐓 Setting useDevTools to true');
|
||||
setUseDevTools(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 =>
|
||||
window.location.origin + typeof location === 'string'
|
||||
? (location as string)
|
||||
: (location as ParsedLocation).href;
|
||||
window.location.origin +
|
||||
(typeof location === 'string' ? (location as string) : (location as ParsedLocation).href);
|
||||
|
|
|
@ -51,13 +51,13 @@ export const ServerRoute = createServerFileRoute('/auth/callback').methods({
|
|||
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 {
|
||||
const supabase = getSupabaseServerClient();
|
||||
|
||||
// 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
|
||||
.exchangeCodeForSession(authCode)
|
||||
.catch((authError) => {
|
||||
|
@ -77,9 +77,9 @@ export const ServerRoute = createServerFileRoute('/auth/callback').methods({
|
|||
}
|
||||
|
||||
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 {
|
||||
console.warn('Code exchange succeeded but no session data received');
|
||||
console.info('Code exchange succeeded but no session data received');
|
||||
}
|
||||
|
||||
// Construct the redirect URL
|
||||
|
@ -100,7 +100,7 @@ export const ServerRoute = createServerFileRoute('/auth/callback').methods({
|
|||
redirectUrl = `${origin}${safePath}`;
|
||||
}
|
||||
|
||||
console.log('Redirecting to:', redirectUrl);
|
||||
console.info('Redirecting to:', redirectUrl);
|
||||
|
||||
return new Response(null, {
|
||||
status: 302,
|
||||
|
|
Loading…
Reference in New Issue