feat: add Next.js dashboard with tRPC + CORS support#3
Merged
github-actions[bot] merged 1 commit intomasterfrom Mar 18, 2026
Merged
feat: add Next.js dashboard with tRPC + CORS support#3github-actions[bot] merged 1 commit intomasterfrom
github-actions[bot] merged 1 commit intomasterfrom
Conversation
Add a React dashboard (Next.js 16, tRPC, shadcn/ui) forked from chat-js, stripped of all chat domain logic and rebuilt for Symphony orchestration monitoring. Adds CORS layer to the Rust HTTP server for cross-origin dashboard access. Dashboard features: - Overview page with live stat cards and token usage chart - Issues table with running/retrying sessions and drill-down - Workspaces grid with status badges - Metrics page with token breakdown and config display - Controls page with trigger-poll and graceful shutdown - Auto-polling via React Query (5s refetchInterval) - TypeScript client package mirroring Rust API types Infrastructure: - symphony-client package with typed HTTP client - tRPC routers (symphony + settings) calling Rust API server-side - Better Auth with Drizzle ORM (minimal schema) - Dockerfile + railway.toml for deployment - Configurable CORS via SYMPHONY_CORS_ORIGINS env var Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
🚅 Deployed to the symphony-pr-3 environment in symphony
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
symphony-observability) for cross-origin dashboard access@symphony/clientTypeScript package mirroring Rust API typesDashboard pages
/overview/issues/issues/[identifier]/workspaces/metrics/controlsArchitecture
SYMPHONY_API_TOKENstays server-side (never sent to browser)SYMPHONY_CORS_ORIGINSenv varRust changes
crates/symphony-observability/src/server.rs: AddedCorsLayerwith configurable originscors_preflight_returns_headersTest plan
make smoke— all Rust tests pass (including new CORS test)tsc --noEmit— zero TypeScript errorsbun run buildcompiles (needs.env.localwithDATABASE_URL+AUTH_SECRET)bun run dev→ verify live data on localhost:3000🤖 Generated with Claude Code