Skip to content

Fix SDK bridge response and enhance edit page UX with versioning#317

Merged
asim merged 2 commits intomainfrom
claude/track-api-usage-L6x8s
Mar 21, 2026
Merged

Fix SDK bridge response and enhance edit page UX with versioning#317
asim merged 2 commits intomainfrom
claude/track-api-usage-L6x8s

Conversation

@asim
Copy link
Member

@asim asim commented Mar 21, 2026

No description provided.

claude added 2 commits March 21, 2026 10:51
Two fixes:

1. SDK bridge bug: mu.store.get() was resolving with the full response
   object {"result": value} instead of unwrapping to just the value.
   This caused apps (like Notes) to display [object Object] instead of
   the stored text.

2. Edit page now shows code editor and preview side-by-side instead of
   hiding code behind a toggle. Clearer status message after AI
   modifications ("Code updated — review changes and click Save").

https://claude.ai/code/session_016UhaM3HefwZjArvB7hHbpE
Versions:
- Each save snapshots the current HTML/name as a numbered version
- Up to 50 versions kept per app
- /apps/{slug}/versions shows full history with timestamps
- Authors can restore any previous version (creates a new snapshot)
- Version count shown on app detail page and edit page

Saved-at:
- App detail page shows "saved <date>" when updated after creation
- Edit page shows "Last saved <timestamp>" that updates live on save
- Edit page stays on page after save instead of redirecting away

Fork:
- Fork button on every app detail page (for logged-in users)
- Creates a copy under the current user's account with unique slug
- Tracks forked_from relationship, shown on detail page
- Redirects to edit page so you can immediately customize

https://claude.ai/code/session_016UhaM3HefwZjArvB7hHbpE
@asim asim merged commit a9a03bb into main Mar 21, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants