From d513f93c84ae985738e0f696fcb72fa1153046ef Mon Sep 17 00:00:00 2001 From: soryu Date: Tue, 28 Apr 2026 17:35:08 +0100 Subject: 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 --- frontend/src/main.tsx | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'frontend/src/main.tsx') 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,30 +9,23 @@ 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([ { path: '/', element: , }, - { - path: '/contracts', - element: , - }, - { - path: '/contracts/:id', - element: , - }, - { - path: '/contracts/:contractId/files/:fileId', - element: , - }, { path: '/daemons', element: , -- cgit v1.2.3