Repository navigation
Spec Phase 33: port the viewer to the redesigned screens - #262
Merged
Merged
Conversation
Phase 31 left the viewer's code port out of scope. The 2026-11-24 design pass produced seven screens, each clean in both themes; this commits them as the port's design source and specs the port in five slices.
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.
Planning artifact for Phase 33, which ports the web viewer to the redesigned screens. No code: docs/specs/PHASE-33-SPEC.md, the VISION entry, and the design itself.
The thesis: Phase 31 rebuilt the viewer as canvases to prove the desktop-app rules and left the code alone. A design pass redrew those seven screens (the gallery, the detail page with its More menu, comment and delete states, the archive and its empty state). Each scores 100 in fast and detailed
canvas_evaluateand passes a fullcanvas_stressrun, in both themes. This PR commits them as the design source, and the spec ports them. The port also fixes what the current viewer gets wrong: edited designs keep stale thumbnails, comments the agent resolved stay open until a manual reload, inspector tabs and archive actions cannot be reached by keyboard or touch, and scores are coloured on an 80/60 scale the evaluator never uses.What this PR adds
docs/specs/PHASE-33-SPEC.mdand a Phase 33 section inVISION.md..framesmith/viewer-redesign/, with their seven thumbnail assets in.framesmith/assets/(112K) and the project's design system in.framesmith/workspace.json. The repo already tracks its other dogfood projects there.docs/viewer-redesign/(14 PNGs, 1.6M).Slices
A. Foundation.
src/viewer.tsbecomessrc/viewer/, one module per page, still template strings with no new dependency. The viewer's tokens are copied from the design system, and a test fails if they drift from it. Fonts are served from the font cache. One sidebar, tab list, menu and dialog are built once and used everywhere, all working by keyboard.B. Gallery. Real thumbnails with the score on the corner, neutral at the bar and amber below it. Search and a type filter are kept in the URL. A Live status shows whether the page is still connected, and any edit, rename, genre change or new state variant refreshes the card.
C. Detail shell. The toolbar gets a state switcher, a More menu (View JSON, Copy canvas ID, Archive, Delete) and a delete dialog in place of the browser's confirm box. Preview tools cover zoom, fit, the preview's theme and the safe area.
D. Inspector and comments. The Quality tab leads with the score, a reason line and the categories lowest first, then the issues grouped as
canvas_evaluategroups them for agents. Design system and Feedback are restyled, and the disabled Import placeholder is removed. The comment popover opens under the Comment button, and every inspector panel refreshes while you watch.E. Archive, docs, acceptance. The archive becomes a tree by project with a preview panel and a one-click restore. The README and its three viewer screenshots are updated. Each screen goes beside its design render.
Decisions
Every fork in the spec's Clarify section is settled.
canvas_evaluate.The main risks, plainly
Access-Control-Allow-Origin: *, mutating routes included. It binds 127.0.0.1, but a page the user visits can still send a simple cross-origin POST to it. That needs its own change and test.Verification
Before writing, an inventory pass read the whole viewer, its routes, and every test and doc that touches it. Two verifier rounds then checked the spec against the code. Round 1 found seven major problems: a wrong description of today's Fit button, a live-refresh key that missed renames and genre changes, a feedback key that went stale on delete, a Quality tab that could not work without
foldIssues, a colour-literal grep that passed vacuously on macOS, a slice A acceptance that needed slice C's menu, and two tests that would break unlisted. Round 2 confirmed the fixes and found three more: folded issues losing their "auto-fixable" label, slice C breaking a test that slice D's change fixes, and one more unlisted test. All of them are resolved in the text.