Skip to content

Move code, download and GitHub into a menu next to Publish - #181

Merged
reynaldichernando merged 3 commits into
mainfrom
toolbar-more-menu
Nov 17, 2026
Merged

reynaldichernando merged 3 commits into
mainfrom
toolbar-more-menu

Conversation

@jelveh

@jelveh jelveh commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The preview toolbar's View code, Download project and Source control buttons move into a vertical-dots (⋮) menu right next to Publish, with a separator on each side.
  • Source control is renamed GitHub (menu label, button name and status title).
  • The ⋮ button carries what the old buttons showed: the unsaved-code dot, the GitHub attention dot (the menu item also reads "GitHub (needs attention)"), and the download spinner while the zip is prepared.
  • On phones the same menu still also holds Issues / Version history / Share draft, as before. Closing the GitHub panel returns focus to ⋮.
  • The old buttons stay in the DOM, hidden, so the menu drives their existing handlers unchanged.

Test plan

  • npm test passes
  • Desktop: ⋮ sits between separators before Publish; each menu item works
  • Phone width: ⋮ shows history tools plus the developer tools; separator before Publish

jelveh and others added 2 commits November 13, 2026 14:58
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>
@reynaldichernando

Copy link
Copy Markdown
Member

update the UI to match that from mobile

image

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread src/css/styles.css
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; }
Comment thread src/js/ui.js
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>
@reynaldichernando
reynaldichernando merged commit c9a07d1 into main Nov 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants