Repository navigation
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
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Batch B5 of the CIMIP gaps stream (
cimip-gaps-2, DECISIONS 265).useScreenKeyboardanduseScreenKeyboardLayout.data-screen-keyboardplus the keyboard inset, the viewport top and the viewport height.usePinnedEdges,data-pinned-edge,data-pinned-extent..basalt-sticky-barcounts as a top part.AppShellfoot: a sticky foot band that holds its place.TrayandTrayRow: a docked attention region.focusout.Linkwraps its words in.basalt-link-label, so stacked links don't take each other's taps..stacklink's box where it meets a neighbour.space-2below the app bar, or below a measured band. It stays there with the keyboard up, and enters from the top.useToast().pageChanged(),useRouteFocus).ListBandandBackToTopmark the pane they scroll as a scroll owner, and so does a scrollingPaneLayout. The keyboard's share and the measured top are written on the pane.Review
7eaf1ac9.Checks
phone-pinnedpassed 25 of 25, and seven related files passed 507 of 507.origin/main5ad5345a: lint passes (including the vocabulary lint), both typechecks pass, the build passes, andexport-sizes.jsonis re-recorded.app-shell.tsx: B4'scappedbeside thefoot.components.css: B6's new touch-only 44px rules are extended to under 720.still-table.css: B0'sthrule kept.Size
React limits:
ToastProviderSearchDialogAbout 490 of
SearchDialog's bytes came from main itself.HTML skill:
navcap: 5,400.toastcap: 16,050.These limits are raised under DECISIONS 246.
🤖 Generated with Claude Code