Skip to content

docs(specs): a draft TabBar record for More, disabled tabs and a label - #10929

Merged
cixzhang merged 1 commit into
meta:mainfrom
vjeux:specs/tabbar-record
Nov 10, 2026
Merged

cixzhang merged 1 commit into
meta:mainfrom
vjeux:specs/tabbar-record

Conversation

@vjeux

@vjeux vjeux commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

A draft record for the lab TabBar, split from #10619 so that pull request changes Lab files only. #10619 implements it. This record takes the spec owners' /approve-spec at its own head.

Exact decision needed

How the lab TabBar holds more sections than fit, for every pointer. Also how its disabled tabs meet the keyboard and the More list, and where the More label comes from.

Existing authority searched

  • No current record covers TabBar; pnpm specs:for packages/lab/src/TabBar/TabBar.tsx lists only global claims.
  • spec:AST-085 FR1, FR2 and FR5 own the disabled-control rules; this record applies them to tabs and More rows. Its Non-goals leave arrow-key visits inside a composite to the composite's own record.
  • Core's TabList skips a disabled tab under the arrow keys (TabList.test.tsx, "skips disabled tabs during arrow navigation"); its record contracts only the tab stop.
  • Core's catalog holds @astryx.tabBar.more (chore(core): re-export the scroll test and add the More tab's string #10791).

Decision

  • FR1: past five tabs the bar shows four tabs and More, which lists the rest, for every pointer, as UITabBarController does. FR1 records the spec owners' Nov 8, 2026 ruling on mouse and trackpad.
  • FR2–FR3: More reads as selected while value is moreValue or any tab past the fourth. Choosing More calls onChange with moreValue; choosing it again calls onReselect.
  • FR4–FR5: TabBarMoreList takes the bar's children and lists every tab past the fourth, in order. The selected tab's row reads as selected, and an enabled row calls onChange. A disabled tab's row is disabled.
  • FR6–FR7: the arrow keys skip a disabled tab, as Core's TabList does, and it stays announced as disabled. The label comes from @astryx.tabBar.more.

Rejected alternatives

  • More for touch input only: the fifth slot would change with the pointer. The record's review checks reject that.
  • TabBar drawing the list: it would own a screen, which the app owns.
  • Arrow keys reaching a disabled tab, as Core's menus do: Core's TabList skips it, and TabBar follows TabList.

Claim scope and non-goals

The record owns which tabs the bar shows, when More reads as selected, and More's list. More's navigation stack belongs to the app. Rearranging tabs (iOS's Edit) is not provided.

Evidence and implementation relationship

#10619 implements it. Its unit and interaction cases are the verification map's, and each fails on main's TabBar there.

Writing rubric results

  • R1 narration: none; the record states the More tab, the arrow keys and the label in the present tense.
  • R2 research in the record: none; the UIKit comparison stays in this description.
  • R3 evidence naming a change: none; each basis names UIKit's behavior, a spec:AST-085 rule, Core's TabList or Core's message catalog.
  • R4 rejected alternatives over one line or outside a decision: none in the record.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none; FR1 states the pointer ruling.

Scope

Components: TabBar, TabBarMoreList

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: the record is aligned.
  • Prettier: clean.
  • git diff --check: clean.
  • pnpm review:pre: no findings.

@vercel

vercel Bot commented Nov 10, 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 Nov 10, 2026 2:11am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 10, 2026
@astracat-bot

astracat-bot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 10, 2026, 2:18 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval of this record waits on an engineering owner's decision: FR1-FR7, AR1-AR2, ORD1, PR1 and the moreValue and TabBarMoreList concepts are new requirements that no current record states yet. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author, as an engineering owner, may do so too.

Also needed before approval:

  • The record tests or names four behaviors that no requirement states (choosing More while it is not selected at line 135, choosing an enabled More row at line 140, the More list's selected row at line 101, which cites FR4 though FR4 does not mention it, and what TabBarMoreList's children are at line 32), so please state them in FR3 and FR4.

Non-blocking: the Compatibility section could say that a bar of six or more tabs changes under FR1, the record could say how it relates to family:action-groups, whose membership rule names a tab bar, and AR1 could name @astryx.tabBar.badgedItem.

[Automated review]

@vjeux
vjeux force-pushed the specs/tabbar-record branch from 7b5b048 to 868452e Compare November 10, 2026 01:40
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 868452e

@cixzhang cixzhang added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 10, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: one fix to the record's verification map. An engineering owner has approved this record's requirements at this head, so no spec decision is pending, and the earlier finding about behaviors that were tested but not stated is fixed.

  • Miss: FR7's verification row says "A hard-coded label fails the catalog check", but pnpm check:i18n-catalog only checks that referenced keys exist, the hard-coded-string lint does not run on Lab, and the two named tests find the tab by the English name "More", so please name a test that renders TabBar with an @astryx.tabBar.more override, as the badged-tab test does, and make the failure expectation "A hard-coded label ignores the override and fails it".

Non-blocking: the record could list family:action-groups and say whether a lift on More acts as a lift on a tab does, since TabBar.doc.mjs already says TabBar follows the action-group rule.

[Automated review]


## Family and system relationships

- `spec:AST-085` owns the disabled-control rules; TabBar applies FR1, FR2 and FR5 to its tabs and their More rows.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking: family:action-groups (current) says a later component joins "including … a tab bar", and TabBar.doc.mjs already says TabBar follows the action-group rule. Consider listing it in families and saying whether a lift on More acts as a lift on a tab does.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Left to the spec owners: listing a family, and whether a lift on More acts as a lift on a tab, are new claims beyond this record.

The draft component:TabBar record states how the lab TabBar holds more
sections than fit: past five tabs the bar shows four tabs and More,
which lists the rest, for every pointer, as UITabBarController does.
It also states that the arrow keys skip a disabled tab, that a disabled
tab's More row is disabled, and that the More label is Core's catalog
message. It is draft authority, for the spec owners' stamp.
@vjeux
vjeux force-pushed the specs/tabbar-record branch from 868452e to ac88104 Compare November 10, 2026 02:01
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec ac88104

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet. It runs once the pull request is marked ready for review.

An engineering owner approved the draft component:TabBar record at this head, so its requirements are decided. The earlier finding is fixed: FR7's verification row now names a test that renders under an @astryx.tabBar.more override, so a hard-coded label fails it.

Non-blocking: the record could list family:action-groups and say whether a lift on More acts as a lift on a tab. That family's membership rule names a tab bar, and TabBar.doc.mjs already follows it.

[Automated review]

@vjeux
vjeux marked this pull request as ready for review November 10, 2026 05:28
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec ac88104

@cixzhang
cixzhang merged commit 3582c71 into meta:main Nov 10, 2026
120 checks passed
@vjeux
vjeux deleted the specs/tabbar-record branch November 10, 2026 05:43

This branch was successfully deployed

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

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants