diff options
| author | soryu <soryu@soryu.co> | 2026-01-25 01:34:03 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-25 01:34:03 +0000 |
| commit | 1f223e55be79805bb1061213db4351925bc0b368 (patch) | |
| tree | 7dc6cedd3cef513f5944d82f0cc7b23cdbb27d85 /makima/frontend/src/main.tsx | |
| parent | 757a0f0238ac99fc08e5ee3fbed7829502402ac9 (diff) | |
| parent | 5b9bb41fed02f7702c90ed8ae01589e67e3c490a (diff) | |
| download | soryu-1f223e55be79805bb1061213db4351925bc0b368.tar.gz soryu-1f223e55be79805bb1061213db4351925bc0b368.zip | |
Merge: Fix makima frontend file routes
- Add contract-scoped file route /contracts/:id/files/:fileId
- Create ContractFilePage component for viewing files within contract context
- Keep navigation to contract-scoped URLs only (no fallback to standalone /files)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makima/frontend/src/main.tsx')
| -rw-r--r-- | makima/frontend/src/main.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/makima/frontend/src/main.tsx b/makima/frontend/src/main.tsx index 19f02d1..9a6e65e 100644 --- a/makima/frontend/src/main.tsx +++ b/makima/frontend/src/main.tsx @@ -17,6 +17,7 @@ import MeshPage from "./routes/mesh"; import HistoryPage from "./routes/history"; import LoginPage from "./routes/login"; import SettingsPage from "./routes/settings"; +import ContractFilePage from "./routes/contract-file"; createRoot(document.getElementById("root")!).render( <StrictMode> @@ -70,6 +71,14 @@ createRoot(document.getElementById("root")!).render( } /> <Route + path="/contracts/:id/files/:fileId" + element={ + <ProtectedRoute> + <ContractFilePage /> + </ProtectedRoute> + } + /> + <Route path="/workflow" element={ <ProtectedRoute> |
