style(13-03): apply Prettier formatting across repo
Mechanical reformat — no logic changes. 398 files changed, 19125 insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc (singleQuote:true, semi:true, tabWidth:2, trailingComma:all, printWidth:100). Isolated per D-13-08 for reviewability.
This commit is contained in:
@@ -21,30 +21,30 @@
|
||||
* Layout analog: SkeletonCalendar.tsx — full-screen centered column, inline styles only.
|
||||
*/
|
||||
|
||||
import { Loader2 } from 'lucide-react'
|
||||
import { clearLoginRedirect, maybeRedirectToLogin } from '../lib/loginRedirect.js'
|
||||
import { Loader2 } from 'lucide-react';
|
||||
import { clearLoginRedirect, maybeRedirectToLogin } from '../lib/loginRedirect.js';
|
||||
|
||||
export type AuthSplashState = 'loading' | 'redirecting' | 'dead-end'
|
||||
export type AuthSplashState = 'loading' | 'redirecting' | 'dead-end';
|
||||
|
||||
export interface AuthSplashProps {
|
||||
state: AuthSplashState
|
||||
state: AuthSplashState;
|
||||
/**
|
||||
* Override the heading for the loading/redirecting states.
|
||||
* Defaults to "Signing you in" (cold-load copy per UI-SPEC §Surface 1).
|
||||
*/
|
||||
heading?: string
|
||||
heading?: string;
|
||||
/**
|
||||
* Override the body text for the loading/redirecting states.
|
||||
* Defaults to "Taking you to the sign-in page…" (cold-load copy per UI-SPEC §Surface 1).
|
||||
*/
|
||||
body?: string
|
||||
body?: string;
|
||||
/**
|
||||
* When true, renders with position:fixed inset:0 z-index:999 so the splash
|
||||
* covers the entire viewport including the persistent AppNav (FIX 3).
|
||||
* Use this when CalendarShell (a child of the app shell) needs to show an
|
||||
* auth interstitial that hides the nav chrome.
|
||||
*/
|
||||
overlay?: boolean
|
||||
overlay?: boolean;
|
||||
}
|
||||
|
||||
export function AuthSplash({
|
||||
@@ -53,17 +53,15 @@ export function AuthSplash({
|
||||
body = 'Taking you to the sign-in page…',
|
||||
overlay = false,
|
||||
}: AuthSplashProps) {
|
||||
const isDeadEnd = state === 'dead-end'
|
||||
const showSpinner = !isDeadEnd
|
||||
const isDeadEnd = state === 'dead-end';
|
||||
const showSpinner = !isDeadEnd;
|
||||
|
||||
return (
|
||||
<div
|
||||
role="status"
|
||||
aria-label="Signing you in"
|
||||
style={{
|
||||
...(overlay
|
||||
? { position: 'fixed', inset: 0, zIndex: 999 }
|
||||
: { height: '100dvh' }),
|
||||
...(overlay ? { position: 'fixed', inset: 0, zIndex: 999 } : { height: '100dvh' }),
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
alignItems: 'center',
|
||||
@@ -90,8 +88,8 @@ export function AuthSplash({
|
||||
// Dead-end: one-shot guard has already fired — show tap-to-retry
|
||||
<button
|
||||
onClick={() => {
|
||||
clearLoginRedirect()
|
||||
maybeRedirectToLogin()
|
||||
clearLoginRedirect();
|
||||
maybeRedirectToLogin();
|
||||
}}
|
||||
style={{
|
||||
background: 'none',
|
||||
@@ -135,5 +133,5 @@ export function AuthSplash({
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user