diff options
| author | soryu <soryu@soryu.co> | 2026-01-25 01:32:39 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-25 01:32:39 +0000 |
| commit | 9b47b7273bb2f0124fa08fece39057000b58cf98 (patch) | |
| tree | e23a723fa7e917029818c4a6d012ca57d935898f /makima/frontend/src/main.tsx | |
| parent | 579c983d3efb8f1414ffb45b9e031f741cce5f76 (diff) | |
| download | soryu-9b47b7273bb2f0124fa08fece39057000b58cf98.tar.gz soryu-9b47b7273bb2f0124fa08fece39057000b58cf98.zip | |
feat: Add contract-scoped file route /contracts/:id/files/:fileId
- Create ContractFilePage component for viewing files within contract context
- Add route for /contracts/:id/files/:fileId in main.tsx
- Update handleFileSelect in contracts.tsx to navigate to contract-scoped file URL
- File viewer now has "Back to Contract" navigation instead of standalone /files
This allows files accessed from a contract to maintain context and return
to the contract page when going back.
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> |
