Repository navigation
docs(specs): a draft TabBar record for More, disabled tabs and a label - #10929
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
aa8b790 to
7b5b048
Compare
There was a problem hiding this comment.
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'schildrenare 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]
7b5b048 to
868452e
Compare
|
/approve-spec 868452e |
There was a problem hiding this comment.
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-catalogonly 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.moreoverride, 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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
868452e to
ac88104
Compare
|
/approve-spec ac88104 |
There was a problem hiding this comment.
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]
|
/approve-spec ac88104 |
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-specat 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
pnpm specs:for packages/lab/src/TabBar/TabBar.tsxlists only global claims.spec:AST-085FR1, 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.TabList.test.tsx, "skips disabled tabs during arrow navigation"); its record contracts only the tab stop.@astryx.tabBar.more(chore(core): re-export the scroll test and add the More tab's string #10791).Decision
valueismoreValueor any tab past the fourth. Choosing More callsonChangewithmoreValue; choosing it again callsonReselect.TabBarMoreListtakes 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 callsonChange. A disabled tab's row is disabled.@astryx.tabBar.more.Rejected alternatives
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
spec:AST-085rule, Core's TabList or Core's message catalog.Scope
Components: TabBar, TabBarMoreList
Validation
pnpm check:knowledge: the record is aligned.git diff --check: clean.pnpm review:pre: no findings.