Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/missionmatch / frontend/src/App.tsx |
| Date | Not specified in source |
| Repository | Janady13/missionmatch |
| Revision | 1e9249840a4302ec82e123b9c9cb6f75badea3e4 |
| Branch | master |
| Path or archive member | frontend/src/App.tsx |
| Original SHA-256 | 347656938251139e0fe75f56bd4d71b064a244c897d7a85fbc8f9db278d47e64 |
| Git blob SHA | d32f134d15f88c76fa1a0113273ee138512028e7 |
| Reading-copy SHA-256 | 347656938251139e0fe75f56bd4d71b064a244c897d7a85fbc8f9db278d47e64 |
Every recorded occurrence
These 3 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/missionmatch / frontend/src/App.tsx | master | 1e9249840a4302ec82e123b9c9cb6f75badea3e4 | Open original |
| Janady13/missionmatch / frontend/src/App.tsx | presentation-readiness | eb574acaa29d71ce4d0f852572e87c275c79fdb7 | Open original |
| Janady13/missionmatch / frontend/src/App.tsx | master | 1e9249840a4302ec82e123b9c9cb6f75badea3e4 | Open original |
Recovered source transcript
Download complete source text ↓86 lines · 3.2 KB
import { Loader2 } from 'lucide-react'
import { Navigate, Route, Routes } from 'react-router-dom'
import { AppShell } from './components/AppShell'
import { Dashboard } from './screens/Dashboard'
import { ScreeningQueue } from './tools/screenmatch/ScreeningQueue'
import { CandidateEvaluation } from './tools/screenmatch/CandidateEvaluation'
import { Requirements } from './screens/Requirements'
import { Candidates } from './tools/missionmatch/Candidates'
import { Slate } from './tools/slatematch/Slate'
import { CommandCenter } from './tools/missionmatch/CommandCenter'
import { Ask } from './tools/missionmatch/Ask'
import { Compliance } from './screens/Compliance'
import { Settings } from './screens/Settings'
import { Placeholder } from './screens/Placeholder'
import { Login } from './screens/Login'
import { AcceptInvite } from './screens/AcceptInvite'
import { AuthProvider } from './lib/AuthContext'
import { useAuth } from './lib/useAuth'
export default function App() {
return (
<AuthProvider>
<Routes>
<Route path="/accept" element={<AcceptInvite />} />
<Route path="/*" element={<Gate />} />
</Routes>
</AuthProvider>
)
}
// Gate renders the app only for a validated session; otherwise the login. The session check runs once on
// load, so a reload never flashes the app before auth resolves.
function Gate() {
const { principal, loading } = useAuth()
if (loading) {
return (
<div className="grid min-h-screen place-items-center bg-navy-950 text-muted">
<Loader2 className="animate-spin" size={22} />
</div>
)
}
if (!principal) {
return <Login />
}
return (
<Routes>
<Route element={<AppShell />}>
{/* missionMATCH Command Center is the default surface after login. */}
<Route index element={<Navigate to="/command" replace />} />
{/* missionMATCH */}
<Route path="command" element={<CommandCenter />} />
<Route path="command/candidates" element={<Candidates />} />
<Route path="command/ask" element={<Ask />} />
<Route path="compliance" element={<Compliance />} />
{/* screenMATCH */}
<Route path="screen" element={<ScreeningQueue />} />
<Route path="screen/evaluate/:candidateId/:requirementId" element={<CandidateEvaluation />} />
<Route path="requirements" element={<Requirements />} />
{/* slateMATCH */}
<Route path="slate" element={<Slate />} />
{/* shared */}
<Route path="settings" element={<Settings />} />
<Route
path="pipeline"
element={
<Placeholder
title="Talent Pipeline"
blurb="Drag and drop candidate stages from Identified through Hired. Wired to the same candidate intelligence."
/>
}
/>
{/* Legacy paths kept so existing links and deep links keep resolving after the tool split. */}
<Route path="dashboard" element={<Dashboard />} />
<Route path="command-center" element={<Navigate to="/command" replace />} />
<Route path="candidates" element={<Navigate to="/command/candidates" replace />} />
<Route path="evaluate/:candidateId/:requirementId" element={<CandidateEvaluation />} />
</Route>
</Routes>
)
}