Conversation
Implements the full management dashboard UI for the OpenThreads server. ## Dashboard pages (/dashboard/*) - Overview: live stats (channel/route/thread counts) - Channels: list + add wizard (platform → credentials → test → save), edit/delete, masked API key with eye/copy toggle - Routes: ReactFlow visual flow (channel → route → recipient nodes), drag-to-create edges, criteria drawer, priority list, test route matching - Threads: searchable + filterable table, click-to-detail - Thread Detail: chronological turn timeline, A2H intent rendering, raw envelope collapsible - Settings: global TTL/trust-layer config + per-channel overrides ## New API endpoints - POST /api/routes/test — simulate inbound criteria → matching route IDs - GET /api/settings — read global settings from MongoDB - PUT /api/settings — update global settings ## Updated - GET /api/threads — channelId now optional; added search query param - lib/db.ts — listThreads(), AppSettings/ChannelOverride types, getSettings(), updateSettings() - Root page redirects to /dashboard - Root layout wraps with AntdRegistry for Next.js SSR CSS handling - lib/api-client.ts — new typed API client for dashboard pages fixes #13 Co-authored-by: Gustavo Gondim <ggondim@users.noreply.github.com>
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.
fixes #13