feat(dashboard): make TUI editor tabs switch between projects - #432
Conversation
Replace the static file tabs (conversations.ts, leases.ts, …) with clickable project tabs. Each project has its own explorer, snippet, and status bar. Co-Authored-By: Duyet Le <me@duyet.net> Co-Authored-By: duyetbot <bot@duyet.net>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reviewer's GuideRefactors the landing TUI editor so its tabs represent switchable AgentState projects rather than static files, using radio inputs and CSS-only tab panels, and adds tests to assert the new project-based behavior and markup. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Keep project tabs and the matching snippet. Remove the fake file tree, git badges, Keys/Logs, and editor command status. Co-Authored-By: Duyet Le <me@duyet.net> Co-Authored-By: duyetbot <bot@duyet.net>
| code: `curl "${API_BASE_URL}/v1/analytics/summary?range=7d" \\ | ||
| -H "Authorization: Bearer as_live_..." |
There was a problem hiding this comment.
security (curl-auth-header): Discovered a potential authorization token provided in a curl command header, which could compromise the curl accessed resource.
Source: betterleaks
| curl "${API_BASE_URL}/v1/analytics/timeseries?range=7d" \\ | ||
| -H "Authorization: Bearer as_live_..."`, |
There was a problem hiding this comment.
security (curl-auth-header): Discovered a potential authorization token provided in a curl command header, which could compromise the curl accessed resource.
Source: betterleaks
Bring back the ▲ warning chip under each project pane, including the original "'autosave' is deprecated · F8" on conversations. Co-Authored-By: Duyet Le <me@duyet.net> Co-Authored-By: duyetbot <bot@duyet.net>
Avoid a placeholder as_live_... Bearer string that secret scanners flag as a real token. Matches the TypeScript process.env.AS_KEY examples. Co-Authored-By: Duyet Le <me@duyet.net> Co-Authored-By: duyetbot <bot@duyet.net>
The landing terminal editor tabs are projects (
conversations,leases,mcp,analytics). Clicking a tab swaps that project’s snippet, status, and inline diagnostic.Each pane keeps the editor warning chip (e.g.
▲ 'autosave' is deprecated · F8on conversations). Leftover IDE chrome stays gone: no fake file tree, git badges, Keys/Logs, or F1/Ctrl+K command bar.Test
cd packages/dashboard && bun test src/lib/preset-stack.test.tsSummary by Sourcery
Enable project-based switching in the landing-page TUI editor while simplifying its presentation to focus on project snippets and diagnostics.
New Features:
Enhancements:
Tests: