Skip to content

Name Leaf's UI terms as the web does: full-height, drawer, focus ring, bottom bar, sticky header, picker - #1399

Merged
max-sixty merged 2 commits into
mainfrom
standard-terms
Sep 28, 2026
Merged

max-sixty merged 2 commits into
mainfrom
standard-terms

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Leaf's vocabulary had coined words for things the web and UI design already name, and agents repeated them to users ("a held workspace"). This renames each to the standard term across the glossary, identifiers, CSS custom properties, references, shipped guidance, visible and announced copy, and tests:

Before After
held workspace, "holds the window" full-height workspace, "fills the window" (--lf-held → --lf-full-height)
tray drawer (drawers.js, asks/drawer-list.js, lf-drawer-*, navigation.drawer.*, ask.drawer, the lf-drawer-slot-width key, "Go to the Asks drawer")
here ring focus ring (--here-ring*, --here-shadow, --here-surface, --lf-here-ring → --focus-* / --lf-focus-ring)
bottom band, shortcut band bottom bar (--lf-band-h → --lf-bottom-bar-h, declareBottomBand → declareBottomBar)
sticky cover sticky header (declareCoverRoom → declareStickyHeaders)
shortcut shelf expanded shortcut bar ("Shortcut bar expanded/collapsed", shortcut.bar.collapse, data-lf-expanded)
banner shelf banner toolbar (banner-toolbar.js)
target chooser, version chooser target picker, version picker (target-picker.js, version-picker.js, target.picker.*)

The glossary's "How to use the vocabulary" now asks for the web's name first. A new "Coined terms" section records why the remaining coinages stay: standing, trip and journey, landing and floor, unwind, walk, frame, reading posture, margin resident, rail, details shelf, layer stack, and key badge. It also gains a Bottom bar entry.

No behavior moved; tests were renamed with the terms. The webawesome bundle, the corpus, and the registry key index are regenerated. Locally, uv run pytest tests passes (1425) and so does npm run test:runtime.

A branch that adds code on the old names can move it over after merging main with git ls-files -z | xargs -0 perl rename-terms.pl; the script is idempotent and sits outside the repo at ~/.tmp/leaf.standard-terms/rename-terms.pl.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

max-sixty and others added 2 commits September 28, 2026 09:01
…the web does

Leaf's vocabulary had coined words for things web and UI design already name, and
agents repeated them to users ("a held workspace"). The glossary now names the
standard term wherever one exists, and says why for each coinage it keeps:

- held workspace -> full-height workspace (`--lf-held` -> `--lf-full-height`);
  "holds the window" -> "fills the window"
- tray -> drawer (Asks drawer, Leaves drawer; trays.js -> drawers.js,
  asks/tray-list.js -> asks/drawer-list.js, `lf-tray-*` classes, the
  `navigation.drawer.*` and `ask.drawer` command ids, the persisted
  `lf-drawer-slot-width` key, and the visible copy "Go to the Asks drawer")
- here ring -> focus ring (`--here-ring*` -> `--focus-ring*`, `--here-shadow`,
  `--here-surface`, `--lf-here-ring` -> `--lf-focus-*`)
- bottom band / shortcut band -> bottom bar (`--lf-band-h` -> `--lf-bottom-bar-h`,
  `declareBottomBand` -> `declareBottomBar`)
- sticky cover -> sticky header (`declareCoverRoom` -> `declareStickyHeaders`)

The glossary's "How to use the vocabulary" now asks for the web's name first, and
a new "Coined terms" section records why standing, trip, journey, landing, floor,
unwind, walk, frame, reading posture, and margin resident stay.

No behavior moved; tests were renamed with the terms. The webawesome bundle, the
corpus, and the registry key index are regenerated.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…the web does

Follows the first rename with the review's findings and the terms it left:

- shortcut shelf -> expanded shortcut bar: the announcements now say "Shortcut
  bar expanded/collapsed", the scope is "expanded shortcut bar", the command id
  is `shortcut.bar.collapse`, and the bar's `data-lf-shelf-open` is
  `data-lf-expanded`
- banner shelf -> banner toolbar (banner-shelf.js -> banner-toolbar.js)
- chooser -> picker: the target picker (`target.picker.*` ids, "Close the target
  picker"), the version picker (version-chooser.js -> version-picker.js)
- the full-height, bottom-bar, and fills-the-window wording the regex missed
  across line breaks and in test names
- the arrangement eval's patch of the visual-review guidance matches the new
  sentence again

The glossary gains a Bottom bar entry, says the focus ring has an outline and
a shadow carrier, and replaces the claim that shelf and chooser are standard
terms with the reasons rail, details shelf, layer stack, and key badge stay.
No behavior moved.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 48360bc into main Sep 28, 2026
5 checks passed
@max-sixty
max-sixty deleted the standard-terms branch September 28, 2026 16:44
max-sixty added a commit that referenced this pull request Sep 28, 2026
A comment merged after the tray-to-drawer rename (#1399) still said "Leaves tray".

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.

2 participants