diff options
| author | soryu <soryu@soryu.co> | 2026-04-28 17:35:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-28 17:35:08 +0100 |
| commit | d513f93c84ae985738e0f696fcb72fa1153046ef (patch) | |
| tree | d169fa48ce93f1e204a80b60ca9295772bc2fa63 /frontend/src/main.tsx | |
| parent | 5aa3fafb4acfa89c7d04e84abf7861607733e8ce (diff) | |
| download | soryu-d513f93c84ae985738e0f696fcb72fa1153046ef.tar.gz soryu-d513f93c84ae985738e0f696fcb72fa1153046ef.zip | |
feat: document UI with contract blocks, expandable logs, and interaction controls (#97)
* feat: soryu-co/soryu - makima: Rename tasks to contracts in directive API and types
* feat: soryu-co/soryu - makima: Add contract interaction panel with comment and interrupt
* feat: soryu-co/soryu - makima: Build expandable contract log feed in StepsDiagram
* feat: soryu-co/soryu - makima: Rename tasks to contracts throughout document UI and add contract block support
* feat: soryu-co/soryu - makima: Add comment and interrupt controls to expanded step log feed
* feat: soryu-co/soryu - makima: Audit and fix Document UI feature flag visibility and missing implementations
* feat: soryu-co/soryu - makima: Add expandable step rows with live log feed in StepsDiagram
* WIP: heartbeat checkpoint
* feat: soryu-co/soryu - makima: Integrate all document UI components and final polish
Diffstat (limited to 'frontend/src/main.tsx')
| -rw-r--r-- | frontend/src/main.tsx | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index 3987f30..9527d8f 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -2,9 +2,6 @@ import React from 'react' import ReactDOM from 'react-dom/client' import { createBrowserRouter, RouterProvider } from 'react-router-dom' import App from './App' -import { ContractList } from './components/ContractList' -import { ContractDetail } from './components/ContractDetail' -import { FileDetail } from './components/FileDetail' import { DaemonList } from './components/DaemonList' import { DaemonDetail } from './components/DaemonDetail' import { DocumentLayout } from './components/document' @@ -12,12 +9,17 @@ import './styles/pc98.css' import './styles/mobile.css' // Route configuration: +// Primary (Document UI - when feature flag enabled): +// - /directives - Document layout with file tree sidebar and Lexical editor +// - /directives/:id - Open a specific directive in the document editor +// +// Legacy (Contract UI - kept for backward compatibility): // - /contracts - List all contracts // - /contracts/:id - View contract details with tabs (including Files tab) // - /contracts/:contractId/files/:fileId - View a specific file within contract context // -// Note: Standalone file routes (/files, /files/:id) have been removed. -// Files are now only accessible through their parent contract. +// Note: When Document UI is enabled via Settings, /directives is the primary interface. +// The /contracts routes remain available as a legacy fallback. const router = createBrowserRouter([ { @@ -25,18 +27,6 @@ const router = createBrowserRouter([ element: <App />, }, { - path: '/contracts', - element: <ContractList />, - }, - { - path: '/contracts/:id', - element: <ContractDetail />, - }, - { - path: '/contracts/:contractId/files/:fileId', - element: <FileDetail />, - }, - { path: '/daemons', element: <DaemonList />, }, |
