Skip to content

feat: add Document, Preview, and Code content views#8

Merged
davidnuescheler merged 3 commits into
mainfrom
feat/content-view-modes
Jul 5, 2026
Merged

feat: add Document, Preview, and Code content views#8
davidnuescheler merged 3 commits into
mainfrom
feat/content-view-modes

Conversation

@davidnuescheler

Copy link
Copy Markdown
Contributor

Summary

  • Add a centered segmented control (Document | Preview | Code) to both the browse and review content panes
  • Document renders HTML source in a da-live-style structured view, with track-changes diff when a sync folder is configured
  • Preview shows the existing proxied preview webview; Code shows the line-based diff view (requires sync folder in browse)
  • Persist the selected view mode in localStorage (contentViewMode) so it survives reloads and is shared across browse and review

Test plan

  • Open a site, select an HTML file — verify Document, Preview, and Code tabs switch correctly
  • Reload the app — confirm the last selected tab is restored
  • Without a sync folder, confirm Code is disabled in browse and falls back gracefully
  • With a sync folder and local edits, confirm Document shows track-changes and Code shows line diff
  • Open Push review — verify all three tabs work for changed files
  • npm run lint && npm test pass locally (185 tests)

Made with Cursor

davidnuescheler and others added 3 commits July 4, 2026 08:30
Introduce a segmented view switcher on browse and review panes with
da-live-style document rendering, line diff code view, and preview
webview. Persist the selected mode in localStorage.

Co-authored-by: Cursor <cursoragent@cursor.com>
@davidnuescheler davidnuescheler merged commit 84b410a into main Jul 5, 2026
4 checks passed
@trieloff

trieloff commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants