Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions __mocks__/@clerk/clerk-react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,29 @@ export function Protect({ children }: React.PropsWithChildren<unknown>) {
return children;
}

/**
* Render a placeholder UI indicating a redirect to the sign-in page.
*
* @returns A JSX element that displays "Redirecting...".
*/
export function RedirectToSignIn(): JSX.Element {
return <div>Redirecting...</div>;
}

/**
* Displays a simple redirecting indicator for the sign-up flow.
*
* @returns A JSX element that renders the text "Redirecting...".
*/
export function RedirectToSignUp(): JSX.Element {
return <div>Redirecting...</div>;
}

/**
* Displays content intended for authenticated users.
*
* @returns A JSX element that renders the text "Signed In".
*/
export function SignedIn(): JSX.Element {
return <div>Signed In</div>;
}
Expand Down
9 changes: 9 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ if (!PUBLISHABLE_KEY) {
throw new Error('Missing Publishable Key');
}

/**
* Root application component that configures providers, global layout, and routes.
*
* Renders authentication and data providers, the theme wrapper, navigation bar, and the app's route tree
* (including payment result pages, settings, auth redirects, and the main tasks view). Tracks the last
* "today" selection and scrolls the main content to top when the route changes.
*
* @returns The root JSX element containing auth and query providers, theme wrapper, navigation, and routes.
*/
export function App(): JSX.Element {
const [lastToday, setLastToday] = useState<Date>();
const ref = useRef<HTMLElement>();
Expand Down
Loading