feat(home): close the AI magic-moment loop — surface drafts + one-click publish + Studio reachable#1563
Merged
Merged
Conversation
… env (P0 part 1) Closes the visibility half of the AI magic-moment loop and fixes a chicken-and-egg that stranded new users: - HomePage: a 'You have N unpublished changes → Review & publish' banner (driven by MetadataClient.listDrafts()), shown wherever the user lands. After AI drafts a whole system, they're no longer stranded on an empty-looking home with no trace of it. - AppContent: exempt /metadata routes from the 'no apps configured' guard. A brand-new env (AI just drafted everything → ZERO published apps) could not reach the Studio/metadata designer AT ALL to review+publish those first drafts — the guard blocked every /apps/* route. Now the designer renders shell-less (like /create-app and /system already do). Known remaining layer (P0 part 2, needs a product call): Studio is project-package-scoped and the AI binds drafts to a default package it doesn't list, so one-click 'publish my AI drafts' isn't wired yet. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
…oop) P0 part 2 (per product call: pre-PMF activation > the draft-review gate). The pending-drafts banner's button now publishes the draft package(s) directly via POST /api/v1/packages/:id/publish-drafts (same-origin, credentials:'include', mirroring PackagesPage), then reloads so the home surfaces the now-live app. Verified end-to-end: 'describe a CRM' → AI drafts 12 items → banner '12 unpublished changes → Publish' → one click → publish-drafts 200 → home shows the live CRM app → opens to its dashboard with 客户/联系人/商机. No stranding, no hunting for a designer. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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 the visibility half of the broken AI magic-moment loop + a chicken-and-egg that strands new users.
listDrafts()): 'You have N unpublished changes → Review & publish'. After AI drafts a whole system, the user is no longer stranded on an empty-looking home./metadatafrom the 'no apps configured' guard. A fresh env (AI drafted → 0 published apps) could not reach the Studio designer AT ALL to publish its first drafts — the guard blocked every/apps/*route. Now it renders shell-less like/create-appand/system.🤖 Generated with Claude Code