Skip to content

B5: the phone keyboard, measured pinned edges, AppShell foot, Tray, 44px targets under 720, toasts under the bar on a phone (DECISIONS 265, 274) - #121

Merged
bmjcoding merged 3 commits into
mainfrom
claude/gaps-b5-phone
Nov 23, 2026
Merged

bmjcoding merged 3 commits into
mainfrom
claude/gaps-b5-phone

Conversation

@bmjcoding

Copy link
Copy Markdown
Owner

What

Batch B5 of the CIMIP gaps stream (cimip-gaps-2, DECISIONS 265).

  • The on-screen keyboard: useScreenKeyboard and useScreenKeyboardLayout.
    • While a keyboard is up, the root and each scroll owner get data-screen-keyboard plus the keyboard inset, the viewport top and the viewport height.
    • The tab bar and the status bar give way.
    • The foot, sheets, dialogs, the command menu and the header lay out against what can be seen.
  • Measured pinned edges: usePinnedEdges, data-pinned-edge, data-pinned-extent.
    • Opt-in. It sets the pinned top and bottom on the root or on the element a part sticks in, which feeds scroll padding and the toast stack.
    • .basalt-sticky-bar counts as a top part.
  • AppShell foot: a sticky foot band that holds its place.
  • Tray and TrayRow: a docked attention region.
    • From 720 it is a panel of rows. Under 720 it is one 44px band that opens a sheet.
    • Focus moves on as rows leave, without relying on focusout.
  • 44px targets by width: every 44px target rule applies under 720 whatever the pointer. 16px text entry stays touch-only.
    • Link wraps its words in .basalt-link-label, so stacked links don't take each other's taps.
    • The HTML skill trims a .stack link's box where it meets a neighbour.
  • Toasts on a phone (the owner's pick, DECISIONS 274, option B):
    • Under 720 the stack hangs space-2 below the app bar, or below a measured band. It stays there with the keyboard up, and enters from the top.
    • From 720 nothing changes.
    • A toast whose only home is the page closes when the page changes (useToast().pageChanged(), useRouteFocus).
  • Scroll owners: ListBand and BackToTop mark the pane they scroll as a scroll owner, and so does a scrolling PaneLayout. The keyboard's share and the measured top are written on the pane.

Review

  • Astra (code): 6/10, with seven blocking findings, all fixed in 7eaf1ac9.
    • tray focus on iOS;
    • the sheet's focus ring was cut off;
    • the measured bottom missed the status message;
    • a foot removed a custom header's clearance;
    • nested panes kept stale keyboard geometry;
    • stacked links overlapped in the skill;
    • pinned parts that changed position without changing size were missed.
  • Polish: Astra's four polish findings are fixed too.
  • Pixels: the lead checked them, including the toast under the bar and the whole focus ring with the keyboard up. The owner picked the toast placement from pictures of options A, B and C.
  • Review round: 63.

Checks

  • Before the owner paused tests (DECISIONS 271): phone-pinned passed 25 of 25, and seven related files passed 507 of 507.
  • Merged with origin/main 5ad5345a: lint passes (including the vocabulary lint), both typechecks pass, the build passes, and export-sizes.json is re-recorded.
  • Not run: the fix pass's tests, and the merged tree's tests. This is the last batch. The full suite runs on main next.
  • Conflicts resolved:
    • app-shell.tsx: B4's capped beside the foot.
    • components.css: B6's new touch-only 44px rules are extended to under 720.
    • still-table.css: B0's th rule kept.
    • Foundations, the size limits and the rounds.

Size

React limits:

Export Limit Measured
ToastProvider 93,500 92,989
SearchDialog 88,700 88,683

About 490 of SearchDialog's bytes came from main itself.

HTML skill:

  • Core cap: 35,350 (measured 35,331). Main alone already measured 34,930 against its 34,550 cap.
  • nav cap: 5,400.
  • toast cap: 16,050.

These limits are raised under DECISIONS 246.

🤖 Generated with Claude Code

bmjcoding and others added 3 commits November 22, 2026 18:00
…IONS 226 and 265)

An on-screen keyboard: useScreenKeyboard and useScreenKeyboardLayout write data-screen-keyboard,
--basalt-keyboard-inset, --basalt-viewport-top and --basalt-viewport-height while a keyboard is up
(the visual viewport 120px or more shorter than the window, at a scale of 1). The tab bar and the
phone's status bar are covered; the foot, sheets, dialogs, the command menu and the toasts are laid
out on what is seen. Installed by Basalt's modals, AppShell, TabBar and ToastProvider.

Measured pinned sizes: usePinnedEdges and data-pinned-edge write data-pinned-measured,
--basalt-pinned-top and --basalt-pinned-bottom on the scroller each pinned part covers (the root,
or an element scroller: audit F1), feeding the scroll padding and the toast stack. A scroll owner
(data-scroll-owner) also carries its own share of the keyboard.

AppShell foot: a band that holds still at the column's bottom, on the tab bar under 720 and on
the keyboard while one is up. Tray and TrayRow: the rows that wait on the reader, a level-1 panel
from 720 and a band that opens a bottom sheet under 720, with focus kept when a row leaves.

44px targets under 720 whatever the pointer (React and the HTML skill; 16px text entry stays
touch-only); a link's words are a label raised over a stacked neighbour's box. A toast whose only
home is the page closes on a page change (useRouteFocus, useToast().pageChanged()).

Open for the owner: where the toast stack sits under 720 over a form's last action (round 56).
Not reviewed: Astra's code review and the lead's pixel check have not happened. Tests written; the
owner paused test runs (DECISIONS 271) before the last changes were run (see the report).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d fix pass 1 (Astra's review)

The owner's pick (option B): under 720 the stack hangs from the bar, full width, space-2 below its line
(space-4 from the top edge with no bar), moved down by a measured band under the bar and kept under the
bar while a keyboard is up; the front toast at the top, the ones behind peeking below; it enters from
the top edge and swipes away upward (opacity only under reduced motion). From 720 nothing changes. React
and the HTML skill's toast module (one sign variable for the stack's direction); round 56 shows it.

Fix pass 1:
1. Tray: the focus handoff remembers the focused row by key (focusin, and activeElement read in render)
   and needs no focusout; several rows leaving at once is the same case.
2. Sheets: held actions keep space-1-5 of clipped clearance above their divider, and SheetBody keeps
   space-1-5 at each end, so a focused control's ring is whole.
3. Measured bottom counts the status bar's message band (data-pinned-extent, a union).
4. A page's own .basalt-sticky-bar counts as a measured top part.
5. A scroll owner's keyboard share is written again on any scroll (capture) and when an owner mounts or
   resizes while a keyboard is up.
6. The HTML skill: links stacked in a .stack give up the side of their box that meets a neighbour.
7. Pinned parts are measured again on class, style and hidden changes to them or what holds them.
8. Tray sheet: an ordinary close returns focus to the band; returnFocus only after the last row leaves.
9. useScreenKeyboard's closed height is documented as 0.
10. README: Link wraps its words in .basalt-link-label.
11. The open sheet's axe check runs in both themes.

Sizes: ToastProvider limit 93,000 to 93,500 (93,451), SearchDialog 88,000 to 88,200 (88,162); skill
core 34,550 to 34,950 (34,911), toast 15,700 to 16,050 (16,035). Tests written and not run (DECISIONS
271); lint and both typechecks pass. Not reviewed again since Astra's pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e/gaps-b5-phone

Conflicts resolved, keeping both sides:
- app-shell.tsx: B4's `capped` (and its facts, skip link and PaneLayout) beside B5's `foot`, data-foot and the
  pinned markers; the root carries data-capped and data-foot.
- components.css: B0's `:is(td, th) > a` ellipsis beside B5's touch sizes under 720 for the still table's head;
  main's new touch targets (PanelList rows, SelectableList choices, DisclosureRow, the activity list's rows) also
  apply under 720, as every target rule does since B5.
- tools/html-skill/src/modules/still-table.css: the same, in the skill.
- foundations: B4's primary, facts, capped shell and pane beside B5's foot; the derived properties keep both
  (B4's --basalt-shell-width, B5's measured and keyboard ones); the bottom offset places the toasts from 720.
- bundle.test.mjs: the higher of each limit (NotificationCentre 152,550 from B7, ToastProvider 93,500 from B5);
  SearchDialog 88,200 to 88,700 (measured 88,683; main's own changes added about 490 bytes).
- export-sizes.json: main's table, re-recorded (npm run sizes).
- rounds.tsx and round56.tsx: main's round 56 (B0) kept; B5's round is now round63.tsx (ROUND_63, id "63"),
  registered after 62.
- the skill's built parts: main's taken and rebuilt (npm run build).

Agreement with AF's scroller: ListBand and BackToTop mark the pane they scroll `data-scroll-owner` while they use
it (useMarkScrollOwner, a mark the app set itself is left), and a PaneLayout pane that scrolls counts as a scroll
owner, so an on-screen keyboard's share and the measured pinned top are written on the pane and pad it. The band's
own resting offset inside a pane stays AF's `--basalt-sticky-offset` on the wrap (0 by default, the app's for its
own header), so the band, its return to rest and Back to top agree.

Skill caps: core 34,950 to 35,350 (main's own core already measured 34,930 against its 34,550; with B5 35,331);
nav 5,350 to 5,400 (5,364). The menu module's usage text is 2,033 of its 2,000 on main already; left as main has
it. SKILL.md is 12,398 of 12,400. Lint (with AF's vocabulary step) and both typechecks pass; tests not run
(DECISIONS 271).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bmjcoding
bmjcoding merged commit 2cd8484 into main Nov 23, 2026
1 of 2 checks passed
@bmjcoding
bmjcoding deleted the claude/gaps-b5-phone branch November 23, 2026 00:27
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.

1 participant