feat(packages): "Discard changes" + "Delete app" buttons (AI-build review loop)#1472
Merged
Merged
Conversation
…etail Mirrors the existing "Publish app" with the two new backend endpoints: - Discard changes (N): POST /packages/:id/discard-drafts — drop all pending drafts, revert to published baseline (non-destructive), refresh list. - Delete app: DELETE /packages/:id — remove whole package + drop object tables; confirms first, closes sheet on success, shows error on failure. Gives the AI-build review loop a UI: publish to preview -> keep / discard all / delete app. 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
|
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.
Adds the two package-lifecycle buttons to the package detail sheet, mirroring the existing Publish app, so the AI-build review loop has a UI.
Pairs with framework PR objectstack-ai/framework#1569 (the
discard-drafts/delete-packagebackend).Buttons
POST /packages/:id/discard-drafts: drops every pending draft, reverting the app to its last published baseline. Non-destructive (published metadata + data untouched); refreshes the pending list after.DELETE /packages/:id: removes the whole package (active + draft metadata) and drops each object's table. Confirms first; closes the sheet on success, keeps it open + shows the error on failure.The loop this completes
Notes
run()helper / busy-state / message pattern;Delete appuses awindow.confirmguard.@object-ui/app-shelltypechecks clean (0 errors after building workspace deps).🤖 Generated with Claude Code