Skip to content

feat(lab): TabBar — a More tab for more than five tabs - #8222

Draft
vjeux wants to merge 1939 commits into
meta:mainfrom
vjeux:uikit/c15-tabbar-more
Draft

vjeux wants to merge 1939 commits into
meta:mainfrom
vjeux:uikit/c15-tabbar-more

Conversation

@vjeux

@vjeux vjeux commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #8210.

Review only this PR's change: vjeux/astryx@9efd4fd...6793453

User need

Part of matching Astryx's touch components to iOS 26, so apps built with it feel native on phones. Apps with six or more sections need each one reachable from the bar. iOS keeps the bar to five: the first four tabs and More, whose screen lists the rest. #8210's bar has no overflow. This adds More, measured with six tabs.

Problem and solution fit

  • The bar: with more than five tabs it shows the first four and More, at the five-tab layout.
  • Selection: More reads as selected while value is moreValue or any tab past the fourth, so the lens stays on More; More again returns to its list (onReselect), as iOS pops More's stack.
  • TabBarMoreList: More's screen, one row per tab past the fourth, given the same children as TabBar; badges show in the rows.
  • Deferred: Edit (rearranging the tabs), which needs drag and drop.

Current specification

spec:AST-094 FR13, FR8. An engineering owner decides (no record governs it): this API.

Public delta and caller burden

New moreValue prop and TabBarMoreList (children, value, onChoose); core's catalog gains @astryx.tabBar.more ("More"). The app renders TabBarMoreList while value is moreValue.

Size, gzip against #8210's head: TabBar's import 63.7 → 66.7 KB JavaScript, 1,968 → 1,968 B CSS.

Design and alternatives

  • Chosen: the bar owns the overflow, as UITabBarController does, so every app gets the five-slot layout and the lens-on-More rule.
  • Rejected: leaving More to apps (each would rebuild the list and the rule).

Evidence

iOS 26.2 simulator: More opens its list, a section chosen there keeps the lens on More, More again returns to the list; then Android 15 Chrome.

iOS: More
Android

Scope

  • One capability is added.
  • Unrelated fixes, cleanup, and policy changes were removed or split.
  • Consumer docs, focused tests, and evidence ship with the feature.
  • Public text and artifacts contain no internal Meta context.

Stack: #8076 → … → #8320 → #8129 → … → #8210 → this PR.

Testing

Try it: pnpm storybook, Lab › TabBar › More Tab (six sections).

  • Tap More: its list shows Settings and Help, Help with its badge. Choose Settings: its page shows and the lens stays on More.
  • Tap More again: back to the list.
  • With Reduce Motion, the lens cross-fades onto More.

Browser tests: More holds the lens while a section inside it is selected; More again returns to the list; a badged row is read with its badge.

Passing: pnpm test:interaction TabBar, pnpm vitest run packages/lab/src/TabBar, pnpm typecheck, lint.

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 30, 2026 2:12am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Oct 30, 2026, 2:25 AM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 24, 2026
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Preview availability: Storybook and Sandbox are not both ready on the exact-head Vercel preview. CI concluded failure.

Component Size

Component Import before Import after Delta CSS before CSS after Delta
core/AlertDialog 56.9KB 57.2KB +315B 12.4KB 12.4KB 0B
core/AppShell 57.9KB 58.1KB +261B 11.6KB 11.6KB 0B
core/AvatarGroupOverflow 39.9KB 40.2KB +324B 6.4KB 6.4KB 0B
core/Banner 47.8KB 48.1KB +310B 9.9KB 9.9KB 0B
core/BaseTypeahead 54.3KB 54.6KB +262B 9.9KB 9.9KB 0B
core/BreadcrumbItem 66.4KB 66.7KB +320B 11.0KB 11.0KB 0B
core/Button 43.3KB 43.6KB +293B 9.2KB 9.2KB 0B
core/Calendar 54.9KB 55.2KB +311B 10.0KB 10.0KB 0B
core/Carousel 50.2KB 50.5KB +337B 10.2KB 10.2KB 0B
core/ChatComposer 60.6KB 60.9KB +291B 10.8KB 10.8KB 0B
core/ChatComposerInput 55.7KB 56.0KB +285B 10.1KB 10.1KB 0B
core/ChatComposerTokenElement 55.7KB 56.0KB +285B 10.1KB 10.1KB 0B
core/ChatDictationButton 46.5KB 46.8KB +285B 9.5KB 9.5KB 0B
core/ChatLayout 48.8KB 49.1KB +294B 9.9KB 9.9KB 0B
core/ChatLayoutScrollButton 46.4KB 46.7KB +275B 9.6KB 9.6KB 0B
core/ChatSendButton 45.8KB 46.1KB +286B 9.2KB 9.2KB 0B
core/CheckboxInput 49.9KB 50.2KB +293B 9.3KB 9.3KB 0B
core/CheckboxListItem 54.0KB 54.3KB +264B 10.5KB 10.5KB 0B
core/ClickableCard 12.8KB 13.1KB +289B 6.9KB 6.9KB 0B
core/CodeBlock 60.5KB 60.8KB +299B 10.7KB 10.7KB 0B
core/Collapsible 11.7KB 12.0KB +291B 4.2KB 4.2KB 0B
core/CommandPalette 50.9KB 51.2KB +302B 11.8KB 11.8KB 0B
core/CommandPaletteItem 8.4KB 8.7KB +280B 3.5KB 3.5KB 0B
core/ComplexSelector 55.8KB 56.1KB +339B 10.6KB 10.6KB 0B
core/ContextMenu 77.7KB 78.0KB +299B 14.6KB 14.6KB 0B
core/ContextMenuItem 16.6KB 16.8KB +280B 5.2KB 5.2KB 0B
core/DateInput 99.9KB 100.1KB +262B 14.8KB 14.8KB 0B
core/DateRangeInput 69.4KB 69.6KB +286B 11.2KB 11.2KB 0B
core/DateTimeInput 110.1KB 110.3KB +269B 15.2KB 15.2KB 0B
core/DialogHeader 48.8KB 49.1KB +299B 9.8KB 9.8KB 0B
core/DrawerHeader 48.9KB 49.2KB +270B 11.2KB 11.2KB 0B
core/DropdownMenu 72.7KB 73.0KB +300B 14.7KB 14.7KB 0B
core/DropdownMenuCheckboxItem 16.1KB 16.4KB +284B 5.6KB 5.6KB 0B
core/DropdownMenuItem 15.4KB 15.7KB +287B 5.2KB 5.2KB 0B
core/DropdownMenuRadioItem 16.2KB 16.5KB +275B 5.6KB 5.6KB 0B
core/DropdownMenuSubMenu 58.1KB 58.4KB +289B 9.5KB 9.5KB 0B
core/FileInput 54.1KB 54.4KB +282B 10.3KB 10.3KB 0B
core/IconButton 43.3KB 43.6KB +293B 9.2KB 9.2KB 0B
core/Item 11.4KB 11.6KB +273B 4.7KB 4.7KB 0B
core/LayerProvider 63.3KB 63.6KB +307B 10.1KB 10.1KB 0B
core/Lightbox 51.2KB 51.5KB +269B 9.8KB 9.8KB 0B
core/Link 43.5KB 43.8KB +311B 7.6KB 7.6KB 0B
core/ListItem 53.5KB 53.8KB +287B 10.5KB 10.5KB 0B
core/Markdown 144.5KB 144.7KB +265B 17.4KB 17.4KB 0B
core/MobileNav 51.0KB 51.3KB +284B 10.1KB 10.1KB 0B
core/MobileNavToggle 46.2KB 46.5KB +280B 9.4KB 9.4KB 0B
core/MoreMenu 72.9KB 73.2KB +298B 14.7KB 14.7KB 0B
core/MultiSelector 76.2KB 76.5KB +291B 14.6KB 14.6KB 0B
core/NumberInput 55.7KB 56.0KB +298B 10.7KB 10.7KB 0B
core/Outline 28.6KB 28.9KB +309B 4.0KB 4.0KB 0B
core/Pagination 87.7KB 88.0KB +282B 15.3KB 15.3KB 0B
core/Popover 49.8KB 50.1KB +258B 12.1KB 12.1KB 0B
core/PowerSearch 155.1KB 155.3KB +287B 18.6KB 18.6KB 0B
core/RadioListItem 52.1KB 52.4KB +306B 9.7KB 9.7KB 0B
core/SegmentedControlItem 8.6KB 8.9KB +285B 3.9KB 3.9KB 0B
core/SelectableCard 12.8KB 13.1KB +294B 7.1KB 7.1KB 0B
core/Selector 79.1KB 79.4KB +289B 15.0KB 15.0KB 0B
core/SelectorOption 14.5KB 14.8KB +251B 5.1KB 5.1KB 0B
core/SideNav 58.0KB 58.3KB +291B 10.6KB 10.6KB 0B
core/SideNavCollapseButton 46.6KB 46.9KB +263B 9.5KB 9.5KB 0B
core/SideNavHeading 54.7KB 55.0KB +268B 10.1KB 10.1KB 0B
core/SideNavItem 54.5KB 54.8KB +288B 10.1KB 10.1KB 0B
core/Step 32.4KB 32.7KB +300B 5.3KB 5.3KB 0B
core/Stepper 47.4KB 47.7KB +286B 9.6KB 9.6KB 0B
core/Switch 48.4KB 48.7KB +304B 9.3KB 9.3KB 0B
core/Tab 9.7KB 10.0KB +294B 4.1KB 4.1KB 0B
core/TabMenu 51.6KB 51.9KB +289B 10.0KB 10.0KB 0B
core/Table 84.0KB 84.2KB +274B 15.1KB 15.1KB 0B
core/TableCell 78.8KB 79.1KB +289B 14.8KB 14.8KB 0B
core/TableHeaderCell 78.6KB 78.9KB +296B 14.8KB 14.8KB 0B
core/TableSelectionToolbar 52.4KB 52.6KB +296B 11.2KB 11.2KB 0B
core/TextInput 53.5KB 53.8KB +301B 10.5KB 10.5KB 0B
core/Thumbnail 50.7KB 51.0KB +295B 11.0KB 11.0KB 0B
core/TimeInput 86.8KB 87.1KB +291B 13.8KB 13.8KB 0B
core/Timestamp 27.5KB 27.5KB +21B 9.5KB 9.5KB 0B
core/Toast 59.8KB 60.1KB +278B 9.7KB 9.7KB 0B
core/ToggleButton 44.1KB 44.4KB +263B 9.3KB 9.3KB 0B
core/Token 29.6KB 29.9KB +310B 4.5KB 4.5KB 0B
core/Tokenizer 64.8KB 65.1KB +328B 11.7KB 11.7KB 0B
core/TopNav 51.9KB 52.1KB +296B 10.4KB 10.4KB 0B
core/TopNavHeading 54.2KB 54.4KB +251B 9.9KB 9.9KB 0B
core/TopNavItem 9.0KB 9.3KB +283B 3.8KB 3.8KB 0B
core/TopNavMegaMenu 54.2KB 54.5KB +288B 10.8KB 10.8KB 0B
core/TopNavMegaMenuItem 9.1KB 9.4KB +281B 4.1KB 4.1KB 0B
core/TopNavMenu 53.6KB 53.9KB +278B 10.1KB 10.1KB 0B
core/TreeList 32.5KB 32.8KB +297B 4.7KB 4.7KB 0B
core/Typeahead 61.5KB 61.7KB +288B 11.3KB 11.3KB 0B
lab/TabBar N/A 66.7KB N/A N/A 1.9KB N/A
lab/TabBarItem N/A 5.3KB N/A N/A 1.9KB N/A
lab/TabBarMoreList N/A 55.5KB N/A N/A 2.0KB N/A
lab/TabBarSearchTab N/A 5.3KB N/A N/A 1.9KB N/A

Sizes are gzip. Import counts the JavaScript the import loads eagerly; CSS counts the package stylesheet rules referenced by the modules it can load from its own package, lazily loaded ones included.

Bundle Size Summary

Gzip figures measure each package's entry file, not the code an import pulls in.

Package Entry (ESM) Entry gzip before Entry gzip after Delta
@astryxdesign/core 4.9KB 1.2KB 1.2KB 0B
@astryxdesign/lab 4.9KB 1.9KB 2.1KB +120B
Package stylesheet Gzip before Gzip after Delta
@astryxdesign/core 34.6KB 34.6KB 0B
@astryxdesign/lab 11.1KB 12.0KB +871B

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

55 of 502 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Selector Indicator Space Bottom Sheet Narrow End RTL neutral light 753,933
Selector Indicator Space Bottom Sheet Wide Start neutral light 740,072
RichTextEditor Markdown parity: side by side probe dark 558,840
RichTextEditor Markdown parity: side by side probe light 540,756
Chat Full AI Chat probe light 230,823
Chat Full AI Chat probe dark 229,805
AppShell With Mobile Nav probe light 217,010
AppShell With Mobile Nav probe dark 216,960
Collapsible Dividers probe dark 66,445
Collapsible Dividers probe light 66,445
AppShell Playground neutral dark 65,198
AppShell Playground neutral light 63,788
Chat Default neutral dark 36,304
Chat Default neutral light 35,767
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,406
Chat With Attachments probe dark 11,232

and 35 more.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request needs an owner decision before it can be approved. No current spec governs the lab TabBar, and the PR marks the More tab API (moreValue, TabBarMoreList) as proposed and pending owner review; the same is true of the draft AST-094 that the stack adds. An engineering owner can record the decision by commenting /approve-spec <full head SHA> on this pull request (the author can do this as an engineering owner), or by naming the spec that governs the More tab. Whatever that decision is, these changes are still needed:

  • Rebase onto main once #8210 and its predecessors land, so this PR carries only the More commit instead of about 32,000 authored lines.
  • Keep presentation="adaptive" on its (max-width: 768px) and (pointer: coarse) query until the Selector spec's DEC-1 is amended, because the new query changes stable Selector, MultiSelector and menu behavior on landscape phones in a patch release.
  • With a search tab, a section opened inside More leaves Home in the search circle and tapping it returns to Home, so map the remembered overflow value to More (TabBar.tsx, around line 915).
  • Badges on tabs past the fourth are not shown anywhere, so render them in the TabBarMoreList rows or document the limit.

[Automated review]

Comment thread packages/lab/src/TabBar/TabBar.tsx Outdated
Comment on lines +915 to +917
const previousIndex = items.findIndex(
item => item.value === previousValueRef.current,
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With more than five tabs, previousValueRef can hold an overflow value ('settings'), which items.findIndex cannot find among the five shown items. shownIndex then falls back to index 0, so while searching the circle shows and returns to the first tab instead of More. Mapping an overflow value onto MAX_TABS - 1, as selectedIndex already does, would keep More.

Comment on lines +69 to +79
{overflowItems(children).map(item => (
<ListItem
key={item.value}
label={item.label}
startContent={item.icon}
endContent={<Icon icon="chevronRight" />}
isSelected={item.value === value}
isDisabled={item.isDisabled}
onClick={() => onChoose(item.value)}
/>
))}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A badge (and badgeLabel) on a tab past the fourth is rendered neither here nor in the bar, so the count disappears for everyone. Consider showing it in the row's end content beside the chevron, or documenting that tabs in More show no badge.

// and large touch displays stay anchored, phones in either orientation get
// the sheet. The query is the shared touch presentation's
// (utils/touchPresentation.ts).
export const COMPACT_TOUCH_PRESENTATION_QUERY = COMPACT_TOUCH_QUERY;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes presentation="adaptive" for stable Selector (its default), MultiSelector, DropdownMenu, ContextMenu and MoreMenu: a landscape phone over 768 px wide now gets the sheet, and a 744–768 px touch screen gets the popover. The Selector spec's DEC-1 says adaptive "keeps its width-and-pointer query", so this needs that record amended (or the old query kept here) before it ships in a patch.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request needs an engineering owner's decision before it can be approved: no current spec governs the lab TabBar's More tab (moreValue, TabBarMoreList), which the PR marks as proposed and pending owner review, and the draft AST-094 that the stack adds is unapproved. An engineering owner can record that decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or by naming the spec that governs the More tab. Whatever that decision is, these changes are still needed:

  • Rebase onto main once #8210 and its predecessors land, so this pull request carries only the More commit instead of about 32,600 authored lines.
  • Keep presentation="adaptive" on its (max-width: 768px) and (pointer: coarse) query until the Selector spec's DEC-1 is amended, because the new query turns the popover into a modal sheet on phones in landscape wider than 768 px and changes sub-menus in a patch release.
  • With a search tab, a section opened inside More leaves Home in the search circle and tapping it opens Home, so map the remembered overflow value to More (TabBar.tsx, around line 915).
  • Badges on tabs past the fourth are not shown anywhere, so render them in the TabBarMoreList rows or document the limit.

[Automated review]

vjeux added a commit to vjeux/astryx that referenced this pull request Oct 25, 2026
vjeux added a commit to vjeux/astryx that referenced this pull request Oct 25, 2026
@vjeux
vjeux force-pushed the uikit/c15-tabbar-more branch from 5a1660e to c36f020 Compare October 25, 2026 03:45
@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Oct 25, 2026
vjeux added a commit to vjeux/astryx that referenced this pull request Oct 25, 2026
@vjeux
vjeux force-pushed the uikit/c15-tabbar-more branch from c36f020 to d2b777b Compare October 25, 2026 06:02

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request needs an engineering owner's decision before it can be approved: no current spec governs the lab TabBar's More tab (moreValue, TabBarMoreList), which the PR marks as proposed and pending owner review, the stacked isRtlElement, reducedMotion.stylex and useFingerScroll additions carry the same marker, and the draft AST-094 the stack adds is unapproved. An engineering owner can record that decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so if they are an engineering owner), or by naming the specs that govern these surfaces. Whatever that decision is, these changes are still needed:

  • Rebase onto main once #8210 and its predecessors land, so this pull request carries only the More commit instead of about 42,600 authored lines.
  • Keep the new selection and callout lock off stable usePressFeedback surfaces (pressFeedback.ts), since it changes stable touch behavior, including the iOS long-press callout on links, under an [experimental] patch changeset.
  • When the bar mounts on its search tab, the leading circle named "Home" does nothing; fall back to the shown tab when no tab has been chosen (TabBar.tsx, around line 1034).
  • Under Reduce Motion the selection lens shows the first tab's icon and label in the chosen slot, More included; land the lens copy at rest (useTabBarLens.ts, around line 686).
  • presentation="adaptive" keeps 768 px when a theme overrides md; read the theme's breakpoints or say so in the changeset.

[Automated review]

Comment thread packages/lab/src/TabBar/TabBar.tsx Outdated
const chooseCircle = () => {
if (isSearchSelected) {
// Back to the tab search was chosen from (a section inside More, too).
if (lastTabValue != null) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the bar mounts on its search tab, lastTabValue is still null, so the circle (named "Home", showing Home's icon) does nothing when tapped; before this change it chose the shown tab. Falling back to the shown item when no tab has been chosen keeps it working, for example choose(lastTabValue != null ? (allItems.find(item => item.value === lastTabValue) ?? {value: lastTabValue}) : selectedItem), which also keeps the remembered tab's isDisabled.

@@ -283,6 +301,9 @@ function onPointerDown(event: PointerEvent): void {
gesture: idlePressGesture(),
pointerId: event.pointerId,
timer: null,
// A held finger never starts text selection on the surface (UIKit's
// controls and cells never do), on any coarse pointer.
unlock: lockSelection([element], event.target),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This takes the selection and callout lock on every stable usePressFeedback surface under a finger or pen (Button, Link, Item and the rest): text selection is off while the finger is held, and on iOS a long press on a stable Link no longer gets the system link callout (-webkit-touch-callout: none). That changes stable behavior in a patch under an [experimental] changeset; keeping the lock to the experimental recognizers and press trackers avoids it.

},
{at: now, touchRelease: fromLift},
);
playCopy(now);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Under Reduce Motion with a finger, the body's touchRelease call lands with a plain write, but the copy's curve derived here keeps its starting offset (translate: 274.169px after a tap on More, in Chromium), so the lens shows the first tab's face in the chosen slot. Setting the copy to its rest transform when body.animator.reducedMotion({touchRelease}) is not 'off' fixes it; the Reduce Motion interaction test could also assert which copy item sits in the lens.

export const COMPACT_QUERY = DEFAULT_COMPACT_DEFINITION.query;

/** Both: presentations such as a sheet in place of a popover. */
export const COMPACT_TOUCH_QUERY =

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COMPACT_TOUCH_QUERY is built from the default compact definition, so presentation="adaptive" keeps 768 px when a theme overrides md, while AST-012 FR9 defines compact by the effective md and the changeset says the rule follows "the theme's md point". Reading the nearest theme's breakpoints with compactDefinition(points), or saying in the changeset that the default applies for now, would close the gap.

vjeux added 8 commits October 29, 2026 15:16
… spring from rest

The turn used to come after the page settled, when the accessory had almost
stopped, so a carried and a dropped velocity looked alike. The drag now ends
at rest and the circle is tapped at once, and the first frame back is
compared with the expand spring from rest.
Holding every animation made the earliest one the sampling origin; when the
bar's other layers started a frame before the field, the samples ran ahead
of the spring by about half a pixel in WebKit.
The chevron sits beside the row's label button, not inside it.
@vjeux
vjeux marked this pull request as draft October 29, 2026 22:34
vjeux added 4 commits October 29, 2026 15:35
…rt times

The expand's first frame is checked against the expand spring started from
the offset the accessory turns from, with the speed the collapse had at the
turn. The turn's moment is the two animations' start times apart, so a late
tap (a loaded box) moves the prediction with it instead of failing the case.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval of this pull request waits on an engineering owner's decision: no current spec governs the lab TabBar's More tab (moreValue, the first-four-plus-More layout, the reselect rule and TabBarMoreList), which the pull request itself says needs an owner's decision. An engineering owner can record that decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or by naming the record that governs the More tab. Whatever that decision is, these changes are still needed:

  • Land #8210 and its predecessors and rebase, so this pull request carries only the More layer instead of about 37,300 authored lines.
  • Make the gesture host attach for every pointer, as AST-094 FR19 and FR43 and the runtime architecture's INV13 now require, instead of only where the primary pointer is coarse.
  • Bring the tab bar in line with the action-groups family it joins by membership: a lift outside the bar acts on nothing (FR3) and a mouse or pen slide across the tabs is tracked (FR5), or have an engineering owner amend the family for the tab bar.

[Automated review]

Comment on lines +12 to +22
* ONLY WHERE THE PRIMARY POINTER IS COARSE
*
* - Recognizers attach, and the host registers listeners, only while the
* primary pointer is coarse (`spec:AST-094` FR19, FR24; coarsePointer.ts).
* Where it is fine, an attach is recorded but nothing is installed: no
* document, window or element listener, no `touch-action` or other style,
* nothing delivered, so a finger on a touchscreen laptop gets the
* browser's defaults. The host follows the query: turning coarse installs
* it and styles every registration; turning fine cancels every touch in
* flight and removes it all. A development warning names the first attach
* under a fine pointer.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current spec:AST-094 FR19 now reads "Recognizers attach for every pointer, with FR43's exceptions", FR43 "Gestures attach for every pointer, a mouse, a pen, and a finger, not only a coarse primary pointer" (DEC-21 rejects keeping gestures touch-only), and architecture:react-component-runtime INV13 "The gesture host attaches for every pointer, with no touch-only query". This header cites FR19 for the opposite. Attach for every pointer with FR43's listed exceptions, keeping FR24's fine-pointer budget.

Comment on lines +27 to +28
* - The lift commits the item whose centre is nearest the finger (ties go to
* the leading item, no projection, and leaving the bar does not cancel);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A tab bar joins family:action-groups by its membership rule, whose FR3 says "A press that lifts outside the group acts on nothing"; here a lift outside the bar still commits (the browser test "a drag that leaves the bar upward still commits where it lifts"). FR5 also asks a mouse or pen slide to be tracked, while the bar treats a mouse as a plain click. Follow the family, or have an engineering owner amend it for the tab bar.

vjeux added 3 commits October 29, 2026 16:36
…arch field covers it

Under a finger the active field spans the bar's row over the leading circle,
which kept its tab stop and its name. It is inert while the field is active
there, with a browser test (red first: the covered circle took focus).
vjeux added 8 commits October 29, 2026 18:01
The Effect that ends a press when the recognizer turns off, and the one
that ends it when the tab list changes under a finger, now say what they
synchronize, as the selection Effect does.
While the bar is collapsed its tabs are inert, so focus never lands on a
tab: keyboard focus reaches the circle, whose activation expands the bar.
The prop doc, the component doc and the hook said focus on a tab expands it.
…tree (AST-085 FR5)

Reads Chromium's accessibility tree: the disabled tab keeps its name and is
announced disabled on the tab itself; no other tab is.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval of this pull request waits on an engineering owner's decision: no current spec governs the lab TabBar's More tab (moreValue, the first-four-plus-More layout, the reselect rule and TabBarMoreList), which the pull request itself says needs an owner's decision. An engineering owner can record that decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or by naming the record that governs the More tab. The newest change, which takes the covered leading circle out of the tab order, needs nothing further, but these changes are still needed whatever that decision is:

  • Land #8210 and its predecessors and rebase, so this pull request carries only the More layer instead of about 37,400 authored lines.
  • Make the gesture host attach for every pointer, as AST-094 FR19 and FR43 and the runtime architecture's INV13 require, instead of only where the primary pointer is coarse.
  • Bring the tab bar in line with the action-groups family it joins by membership: a lift outside the bar acts on nothing (FR3) and a mouse or pen slide across the tabs is tracked (FR5), or have an engineering owner amend the family for the tab bar.

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval of this pull request waits on an engineering owner's decision: no current spec governs the lab TabBar's More tab (moreValue, the first-four-plus-More layout, the reselect rule and TabBarMoreList), which the pull request itself says needs an owner's decision. An engineering owner can record that decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or by naming the record that governs the More tab. The newest change, which makes two Effect comments name what they synchronize and adds a disabled-tab accessibility-tree test, needs nothing further, but these changes are still needed whatever that decision is:

  • Land #8210 and its predecessors and rebase, so this pull request carries only the More layer instead of about 37,400 authored lines.
  • Make the gesture host attach for every pointer, as AST-094 FR19 and FR43 and the runtime architecture's INV13 require, instead of only where the primary pointer is coarse.
  • Bring the tab bar in line with the action-groups family it joins by membership: a lift outside the bar acts on nothing (FR3) and a mouse or pen slide across the tabs is tracked (FR5), or have an engineering owner amend the family for the tab bar.

[Automated review]

This branch was successfully deployed

1 active deployment
Preview — 2f0300b4 Deployed Oct 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants