feat(web): dashboard UI that runs the SDK live#16
Draft
MohtashamMurshid wants to merge 1 commit into
Draft
Conversation
- Add /dashboard page with URL + BYOK credential form - Add /api/design route that streams design events as ndjson via the @getdesign/sdk streamDesign generator - Show per-phase progress (crawl -> capture -> visual -> describe -> extract -> synthesize -> render), error state, elapsed time, then the generated design.md with copy + download actions - Add Dashboard link to marketing nav and wire @getdesign/sdk as a workspace dependency of apps/web Co-authored-by: Mohtasham Murshid <MohtashamMurshid@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
6 tasks
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
Adds a real
/dashboardtoapps/webthat drives the public@getdesign/sdkend-to-end:/api/designroute, which callsstreamDesignfrom the SDK and pipes events back as newline-delimited JSON.crawl → capture → visual → describe → extract → synthesize → render), elapsed time, and surfaces errors inline.design.mdrenders in a code surface with Copy and Download actions (download produces<host>.design.md).Walkthrough
dashboard_run_demo.mp4
Form fill → submit → live per-phase progress → SDK-sourced error surfaced inline (
Response from https://linear.app exceeded 1000000 bytesis the agent crawler's own size guard, confirming the SDK is actually invoked).Dashboard idle state
Idle state with empty form, pending progress, and empty result placeholder.
Dashboard success state with design.md viewer
Success state showing all phases OK and the generated
design.mdwith copy + download. (Captured with a temporary localDASHBOARD_DEMO=1env flag that was reverted before commit; not present in the merged code.)Dashboard error state
Error state when the SDK fails mid-run.
Files
apps/web/app/api/design/route.ts— Node runtime POST handler; validates input, drivesstreamDesign, streamsapplication/x-ndjson.apps/web/app/dashboard/page.tsx— Marketing-shell page,robots: noindex.apps/web/app/dashboard/_components/dashboard-header.tsxapps/web/app/dashboard/_components/dashboard-runner.tsx— client form + stream consumer.apps/web/app/dashboard/_components/phase-list.tsx— phase indicators.apps/web/app/dashboard/_components/result-viewer.tsx—design.mdviewer + copy/download.apps/web/app/dashboard/_components/types.tsapps/web/app/_components/nav.tsx— addsDASHBOARDlink.apps/web/package.json,bun.lock— adds@getdesign/sdkasworkspace:*.Design notes
/and/design.localStoragefor the current browser only. The server never persists them.application/x-ndjson, oneDesignStreamEventJSON per line; the client parses on newlines and updates phase state, the final result, or surfaces an error.maxDuration = 300andruntime = "nodejs"on the route so the agent has room to capture + synthesize.Verification
bun run typecheck(inapps/web)bun run build(inapps/web) — new/dashboardstatic route and dynamic/api/designfunction show up in route tabledesign.mdviewer with copy + download (see success screenshot)To show artifacts inline, enable in settings.