Skip to content

docs: let visitors edit the website's demo bar in place - #328

Merged
M4n0x merged 1 commit into
mainfrom
docs/website-edit-in-place
Oct 26, 2026
Merged

M4n0x merged 1 commit into
mainfrom
docs/website-edit-in-place

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Edit Bar in Place is how people who never open config.json change their bar. The website gave it half a sentence and showed nothing.

Changes

  • Edit Bar in Place turns the demo bar into its own editor. It starts from a button under the bar or from the bar's right-click menu, and it's drawn and behaves as BarEditView does:
    • a tray for each position, including an empty Center, tinted from the theme, with a backing on themes that leave the strip see-through
    • a − badge on each widget's top-left corner, and a dashed + at the end where widgets are added
    • dragging lifts the widget off the bar, the others slide aside, position names appear, the target tray turns blue, and the widget settles into the gap
  • + opens Add here, with the app's choices in the app's order. Store packages carry ↓ and open a review first, listing the commands they run, their permissions, hosts and required tools. That data comes from stablebar-packages as of today.
  • Undo and Done sit in a panel below the bar, with ⌘Z, ⇧⌘Z and Esc. The right-click menu has Move Left, Move Right, Remove Widget and Finish Editing Bar.
  • Keyboard and screen readers: widgets are focusable, ← and → move them, Delete removes them, and changes are announced.
  • Crowded trays scroll sideways with faded edges.
  • Configure all of it now leads with editing in place. A Try it on the bar above button scrolls back to the bar and starts editing, and the Configuration list gains an On the bar itself row.
  • Editing is off below 720 px. Between 720 and 1079 px, the terminal window moves down so the panel doesn't cover it.

Differences from the app:

  • The website has no Settings, so clicking a widget doesn't open its settings. The panel's hint therefore says "+ adds" instead of "click a widget to change it".
  • The idle panel with its button exists only on the site.

Testing

A scripted flow in headless Chrome at 1440 × 900, in dark and light mode:

  1. Enter edit mode.
  2. Drag Battery into Left.
  3. Remove Clock with its badge.
  4. Add Weather to Center through its review.
  5. Undo.
  6. Move Apple menu right with →.
  7. Click Done.

After each step I checked the order of the widgets. After Done, the widgets are back on the normal bar, with no trays left and no page errors. I also checked 900 px, where the trays scroll, and 390 px, where editing is off. Not checked: Safari, Firefox, touch devices and VoiceOver.

Before After
Before: the demo bar After: Edit Bar in Place under the bar
Editing: trays, badges and +
Dragging Battery into Left
Add here, light mode
A Store package's review before it's added
The right-click menu while editing
Before: Configure all of it After: it leads with editing in place

Merging

One commit, stacked on #327, so merge #327 first and this PR's base becomes main. #329 (the Store) is stacked on this one.

Claude Opus 5.5 via Claude Code

Edit Bar in Place was half a sentence on the site, though it's how people who never open the
configuration change their bar. The demo bar now has it, drawn and behaving as the app does:
a tray per position, a − badge on each widget, + with the Add here picker and a Store
package's review, sliding widgets while dragging, position names, Undo and Done below the bar,
the right-click menu, and arrow keys and Delete. Configure all of it now leads with editing in
place, with a button that scrolls back to the bar and starts editing. Editing stays off on
phones.
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 26, 2026 12:30
Base automatically changed from docs/website-accuracy to main October 26, 2026 12:37
@M4n0x
M4n0x merged commit 84c0128 into main Oct 26, 2026
7 checks passed
@M4n0x
M4n0x deleted the docs/website-edit-in-place branch October 26, 2026 12:37
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.9.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.

1 participant