Skip to content

Scope preview UI state by project#264

Merged
BunsDev merged 1 commit into
mainfrom
okcode/project-thread-preview
Apr 5, 2026
Merged

Scope preview UI state by project#264
BunsDev merged 1 commit into
mainfrom
okcode/project-thread-preview

Conversation

@BunsDev

@BunsDev BunsDev commented Apr 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Moved preview UI persistence from thread-scoped keys to project-scoped keys so preview open state, dock position, size, and preset follow the project across threads.
  • Updated ChatView, PreviewPanel, and the chat route to read and write preview state using projectId instead of threadId.
  • Bumped the persisted preview storage version to v4 and added tests covering project-scoped open state behavior.

Testing

  • Not run (not requested).
  • Existing preview state tests updated to verify project-scoped persistence and toggling.
  • Manual validation recommended: open the same project from multiple threads and confirm preview state stays in sync per project.

- Persist preview open, layout, size, and preset per project
- Update chat and preview panel wiring to use project IDs
- Bump preview state storage version and cover the new behavior in tests
@vercel

vercel Bot commented Apr 5, 2026

Copy link
Copy Markdown

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

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

@github-actions github-actions Bot added the size:L label Apr 5, 2026
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Apr 5, 2026
@BunsDev BunsDev merged commit 5be6565 into main Apr 5, 2026
10 of 11 checks passed
@BunsDev BunsDev deleted the okcode/project-thread-preview branch April 6, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 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