~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

A tile's menu arranges it on the web, as on iOS

Open
Open chadtmiller.com wants to merge into main from chadtmiller.com/hud:web/arrange-menu

On the web, a tile's header now has an Arrange menu. It moves the tile's column left or right, sets its width, and stacks it or takes it out of its stack, as the iOS app's tile menu does. Before this, the web moved columns only with Shift and an arrow key, and a phone couldn't move them at all.

Claude Opus 5.5 · medium

What changes

The menu. The width button in a tile's header ("1/3") now opens an Arrange menu: Move left, Move right, Stack under the column on its left, Take out of stack, and Width (a third, half, two thirds, full, the column's own checked). Each item shows only where it applies, and Move left and right show their keys (⇧← and ⇧→). The button still says the column's width on desktop, and R still cycles it. A stack's lower tile shows the menu's icon instead of a width.

On a phone the button is an icon and the menu a sheet, with no widths, since a column fills the screen (iOS hides them there too). A tile with nowhere to go has no button. A viewer gets no menu, as before.

Code. Workspace.move takes the tile to move rather than reading the focus, so the menu and the keys share it. WIDTHS gains each width's name. Four Lucide icons: arrange, moveLeft, moveRight, unstack. docs/workspace.md says what a tile's menu does on the web and iOS.

Why

iOS could arrange tiles from a tile's menu, and its code said "as the web's tile menu moves it", but the web had no such menu. Folding the width button into the menu keeps the header to one control for placement, and keeps the width readable at a glance.

How it was checked

  • npm run check (svelte-check, 0 errors, 0 warnings), harness/docs.mjs and harness/layers.mjs, after merging main.
  • just look with the menu open (desktop light and dark, phone light and dark) and closed on a phone. An agent that didn't draw them critiqued them. Its points were the app's existing conventions (the sheet's margin, the check mark, the key chips, controls shown on hover), so nothing changed.
  • In just look's stand-in: Move right took Thread past the Profile column (with its stacked tile), and Half set the first column's width to 1/2.
  • No Rust changed. just check's cargo steps, just lex and the e2e runs are left to CI.

Shortcomings

  • Stack and Take out of stack from the menu weren't clicked in just look. They call the same Workspace.stack and unstack as ⌘↓ and ⌘↑.
  • The width now takes two clicks with a pointer (open the menu, choose), where the button cycled it in one. R still cycles it.

Review

A quick look: Tile.svelte's menu and styles, and the moves Strip passes it.

arrange-desktop-light.png

arrange-phone-dark.png

Approved

This adds an Arrange menu to a tile's header on the web. It moves the column left or right, sets its width, and stacks or unstacks the tile. Workspace.move now takes the tile to move instead of reading the focus, so the menu and the Shift-arrow keys share it.

I read the whole diff and found nothing that needs to change.

  • The ws.move(canvas, key, by) signature change reaches both of its callers. The only other callers were the two key handlers in Workspace.svelte, which now guard on focus.
  • setWidth, stack and unstack already exist with the (canvas, id, …) signatures the menu uses. The stack icon was already in icons.ts.
  • stack already refuses past the stack limit and says so, so the menu's Stack item is safe even when the stack is full.
  • The menu follows the repo's <details class="popover"> convention, a sheet on a phone. The phone CSS hides the widths and the key chips, and it hides the whole button when the tile has nowhere to go.

The stack and unstack items weren't clicked in just look, as the body says. They call the same code as ⌘↓ and ⌘↑.

Approved

This adds an Arrange menu to a tile's header on the web. It holds Move left and right, Stack, Take out of stack, and Width. Workspace.move now takes the tile's key, so the menu and the Shift-arrow keys share it.

I read the whole diff and checked what it calls. setWidth, stack and unstack already exist with (canvas, key) signatures. The stack icon was already in icons.ts. where in Strip.svelte supplies at.c and at.r.

The keyboard path still works: Shift with an arrow calls move(current, focus, ±1) and does nothing when nothing is focused. The old width prop was null for a lower tile in a stack. The new head flag replaces that, and readonly still hides the menu.

I found nothing to change. Stack and Take out of stack weren't clicked in just look, as the body says. Both call the same code as ⌘↓ and ⌘↑, so I don't count that as a risk.

Approved

1 approval

Some checks were not successful

2 failed, 4 passed, 1 skipped