14 Commits

Author SHA1 Message Date
Leo Agent
35530d5d29 fix: address round 4 review — readBody 413 without double-response, restrict query-param auth to SSE, error handling, cache headers, auth detection
Entire-Checkpoint: 88ff4abcc502
2026-03-23 22:21:52 +07:00
Leo Agent
7da4b721ea fix(ui): show error feedback on DashboardPage restart failure
Entire-Checkpoint: fa2a40cfc38c
2026-03-23 21:50:02 +07:00
Leo Agent
ce145a6267 fix: readBody returns 413 on oversized payload, remove redundant regex in StaticServer, fix ConfigPage deps and restart error handling
Entire-Checkpoint: b86e99ee3c42
2026-03-23 21:33:02 +07:00
Leo Agent
f743ee0523 fix: SSEManager uses off() instead of removeAllListeners, broadcast checks writable, TopicsPage cleanup error handling
Entire-Checkpoint: e93cd6d45bd8
2026-03-23 18:43:12 +07:00
Leo Agent
de39fca1eb feat(ui): add auth login flow with file-based token support
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 17:52:11 +07:00
Leo Agent
027354d42a fix: address PR #40 review — security, performance, and UX issues
Critical:
- Fix path traversal in StaticServer by appending path.sep to guard
- Add 1MB body size limit to readBody() in ApiServer
- Refactor useEventStream into EventStreamProvider context (singleton SSE)
- Add MAX_EVENTS (500) cap in SessionDetailPage
- Fix ConfigPage infinite loop by wrapping groups in useMemo

Important:
- Clean up SSE EventBus listeners on stop() using removeAllListeners
- Fix stop() Map iteration by spreading to array before iterating
- Add non-localhost without token security warning
- Add error handling to destructive actions in SessionDetailPage/TopicsPage
- Add error state and catch blocks in SessionsPage
- Replace module-level eventCounter with useRef
- Add role="dialog", aria-modal, and body scroll lock to Modal

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: f6c308eb2ec6
2026-03-23 14:49:53 +07:00
Leo Agent
3f050d797e style(ui): polish UI with glassmorphism, gradient accents, and improved Config layout
Entire-Checkpoint: 1a94c35d4d67
2026-03-23 12:11:05 +07:00
Leo Agent
d819414145 feat(ui): implement Topics management page
Add TopicsPage with list, delete (with force option for active sessions), and bulk cleanup for finished/error topics.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 11:40:13 +07:00
Leo Agent
1596ed86f0 feat(ui): implement Config editor page with grouped fields
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 11:39:59 +07:00
Leo Agent
0dd18aef7f feat(ui): implement Session Detail page with live events and prompt input
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 6833363db6fe
2026-03-23 11:39:42 +07:00
Leo Agent
3a99f4be39 feat(ui): implement Sessions list page with filtering and create modal
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 11:37:41 +07:00
Leo Agent
38a111e711 feat(ui): implement Agents overview page with card grid
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 11:37:00 +07:00
Leo Agent
cbf299bdfe feat(ui): implement Dashboard overview page
Adds DashboardPage with 4 stat cards (System, Sessions, Adapters, Tunnel),
live SSE health updates, and quick action buttons (View Sessions, Restart Server).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Entire-Checkpoint: 7cb710c4745f
2026-03-23 11:36:40 +07:00
Leo Agent
4f4c159347 feat(ui): scaffold React + Vite dashboard with layout, theme, API client, SSE hook, and shared components
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 770afb5e0f45
2026-03-23 11:13:36 +07:00