Repository navigation
Move code, download and GitHub into a menu next to Publish - #181
Merged
Merged
Conversation
The preview toolbar's View code, Download project and Source control buttons now open from a vertical-dots menu beside Publish, with a separator on each side. Source control is renamed GitHub. The menu carries the unsaved-code and GitHub attention dots and the download spinner; on phones it also holds the history tools, as before.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Member
There was a problem hiding this comment.
🟡 Changes recommended
Active moderate and nit findings remain: a more-specific CSS selector hides the mobile overflow menu, making Version history and related actions inaccessible, and the new desktop menu lacks the requested divider separators.
2 open issues
What changed in this PR
Moves preview developer actions into an overflow menu beside Publish while preserving existing handlers, mobile history tools, GitHub terminology, and status indicators.
Changes:
- Relocates View code, Download project, and GitHub actions into the overflow menu.
- Keeps Issues, Version history, and Share draft available on phones.
- Renames Source control to GitHub and mirrors unsaved, attention, and download-progress states on the menu trigger.
- Restores focus to the overflow trigger when the GitHub panel closes.
| File | Description |
|---|---|
| src/js/ui.js | Updates preview toolbar markup, overflow-menu contents, developer action placement, and download spinner handling. |
| src/js/github-ui.js | Renames GitHub UI labels, propagates attention state, and restores focus to the overflow trigger. |
| src/css/styles.css | Hides the original developer buttons, styles overflow-menu indicators, and updates responsive toolbar behavior. |
Review effort: Lite
| button would leak onto desktop. */ | ||
| .view-seg { display: none; } | ||
| .preview-toolbar .preview-overflow { display: none; } | ||
| .preview-toolbar .preview-overflow:not(.has-dev-tools) { display: none; } |
| have room for the history buttons next to the centered switcher | ||
| + Publish, so on mobile they join the menu too (the group above | ||
| is hidden via CSS and the menu drives its buttons). --> | ||
| <button class="preview-overflow${window.FEATURE_FLAGS.codeEditor || window.FEATURE_FLAGS.downloadProject || window.GitHubSync ? ' has-dev-tools' : ''}" title="More" aria-haspopup="true" aria-expanded="false">${window.more_svg}<span class="pane-mode-dot" aria-hidden="true" hidden></span><span class="preview-github-dot" aria-hidden="true" hidden></span></button> |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.



Summary
Test plan
npm testpasses