diff options
| author | Clawd <ai@clawd.bot> | 2026-02-28 07:30:40 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-28 07:30:40 -0800 |
| commit | 6d70c5f8a3ed90564b08616a3fb041409916059c (patch) | |
| tree | 4c6480c5a606ab0a178dca72efa93c60ebe70c34 /renderer/src/main.tsx | |
| parent | 66f66d1c17213f55aa56d69c0cccc309b16f3362 (diff) | |
Phase 4: React UI
- Add renderer/src/types.ts with Project, Session, Message, Phase types
- Add renderer/src/styles/globals.css with full styling
- Dark theme with accent colors
- Header, document pane, chat pane, action bar layouts
- Phase indicator, token usage bar, buttons
- Add renderer/src/components/Header.tsx
- Project/session dropdowns with create buttons
- Phase indicator showing current workflow state
- Add renderer/src/components/DocumentPane.tsx
- Markdown viewer/editor with toggle
- Syntax highlighting for review comments
- Task checkbox rendering
- Add renderer/src/components/ChatPane.tsx
- Message list with auto-scroll
- Input field with Enter to send
- Loading state indicator
- Add renderer/src/components/ActionBar.tsx
- Token usage bar with color coding
- Review/Submit buttons for workflow
- Permission mode toggle for implement phase
- Add renderer/src/App.tsx
- Full state management for projects, sessions, messages
- Claude message subscription
- Workflow handlers (review, submit, phase advance)
- Update renderer/src/main.tsx to render App
Diffstat (limited to 'renderer/src/main.tsx')
| -rw-r--r-- | renderer/src/main.tsx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/renderer/src/main.tsx b/renderer/src/main.tsx index 9a6b03b..a2f33db 100644 --- a/renderer/src/main.tsx +++ b/renderer/src/main.tsx | |||
| @@ -1,4 +1,9 @@ | |||
| 1 | import React from 'react' | 1 | import React from "react"; |
| 2 | import { createRoot } from 'react-dom/client' | 2 | import { createRoot } from "react-dom/client"; |
| 3 | import { App } from "./App"; | ||
| 3 | 4 | ||
| 4 | createRoot(document.getElementById('root')!).render(<main>hi</main>) | 5 | createRoot(document.getElementById("root")!).render( |
| 6 | <React.StrictMode> | ||
| 7 | <App /> | ||
| 8 | </React.StrictMode> | ||
| 9 | ); | ||
