Skip to content

Persist saved layout presets#326

Merged
BunsDev merged 1 commit into
mainfrom
okcode/persist-layout-preferences
Apr 7, 2026
Merged

Persist saved layout presets#326
BunsDev merged 1 commit into
mainfrom
okcode/persist-layout-preferences

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Apr 7, 2026

Summary

  • Add a persisted layoutStore for saving, updating, deleting, renaming, and reordering layout presets.
  • Introduce useLayoutActions to capture the current panel state and apply saved layouts across viewer, preview, terminal, and sidebar-width state.
  • Persist sidebar widths through the same localStorage keys used by the sidebar rails so restored layouts keep user sizing preferences.
  • Validate and normalize saved layout data on load to keep corrupted or partial storage entries from breaking the UI.

Testing

  • Not run (not requested).
  • Recommended: run bun fmt.
  • Recommended: run bun lint.
  • Recommended: run bun typecheck.

- Add a persisted layout store for saving, updating, deleting, and reordering presets
- Capture and restore panel, terminal, sidebar, and preview layout state
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 7, 2026 3:24am
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 7, 2026 3:24am

@github-actions github-actions Bot added size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 7, 2026
@BunsDev BunsDev merged commit 505236e into main Apr 7, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant