Repository navigation
Phase 33 slice C: the detail page's shell, rebuilt to the design - #265
Merged
Merged
Conversation
Phase 33 slice C. The toolbar is a back link to the project, the name and size, the states as a nav of links, breakpoint tabs by canvas type, Comment, a More menu and a Live status. View JSON, Copy canvas ID, Archive or Restore and Delete live in the menu, and Delete confirms in a dialog. The preview opens fitted to the pane with zoom steps, and the preview theme and safe area are tools beside the zoom.
Keep the canvas name and states visible in narrow windows, let the narrow page scroll to the inspector, show the whole artboard at 100%, test the preview theme on a canvas that has a dark layer, keep a comment draft when Escape closes a menu or dialog, and correct the README's detail-page claims.
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.
Third slice of Phase 33. It rebuilds the canvas detail page's toolbar and preview to design screens 2, 3 and 5. The inspector beside it is slice D's.
What changed
The toolbar. It now holds, in order:
The breakpoint tabs depend on the type: Mobile, Tablet, Desktop and Compare on web; the window widths, the artboard and Compare on desktop-app; none on a phone, which keeps its device frame. The tabs work by click and arrow keys.
The More menu holds View JSON, Copy canvas ID, Archive or Restore, and Delete canvas. These used to be a row of same-weight toolbar buttons, and Delete was the loudest thing on the page.
Delete confirms in a dialog instead of the browser's
confirm()box. The dialog says the delete cannot be undone and points to archive as the safer option.The preview opens fitted to the pane. It used to open at 1:1, so a 1440 canvas needed scrolling. Zoom in and out step through 50, 75, 100, 150 and 200%, and Fit returns to fitted. Choosing a breakpoint resets to fit, and Compare turns the zoom buttons off. The preview's dark theme and the phone's safe area are buttons beside the zoom. A caption under the preview names the type, the size and the designed states.
Narrow windows work.
Tests
test/browser/test-viewer-detail.ts, 51 checks on the fixture store. It covers:test-archive-view.ts,test-variants.ts,test-desktop-app.ts,test-viewer-surface.ts,test-viewer-compare.ts,test-viewer-surface-browser.tsand the dialog checks intest-viewer-components.ts. Each still covers the same behaviour:Verification
An independent verifier checked every FR-C requirement and compared the pages with the design images in both themes. It found three major problems, all fixed in the second commit:
It also found several minor ones, fixed in the same commit:
The dialog now matches the design: 480px wide with a Close button.
The docs audit found five places in the README and GUIDELINES that described the old toolbar. They are corrected in the same commit. The README screenshots are refreshed in slice E.