Skip to content

chore(core): re-export the scroll test and add the More tab's string - #10791

Merged
cixzhang merged 3 commits into
meta:mainfrom
vjeux:core/tabbar-internal-support
Nov 9, 2026
Merged

cixzhang merged 3 commits into
meta:mainfrom
vjeux:core/tabbar-internal-support

Conversation

@vjeux

@vjeux vjeux commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Two small Core additions that Lab's TabBar needs, split out of #9966 and #10619 so each of those changes only Lab files. They are independent and tiny, so one pull request holds both.

Maintainer impact

#9966 (reselect scrolls to the top) and #10619 (the More tab) each carried a Core addition, so reviewing either Lab pull request meant reviewing Core too. With both additions here, each Lab pull request changes Lab files only.

Intended invariant

No Core component changes behavior, and Core's public entry exports nothing new.

Change

  • Core's internal touch entry (internal/touch.ts) re-exports measureLogicalScrollAxis by name. ScrollableArea already uses this scroll test; Lab's TabBar reads it to find a panel's scroll area.
  • Core's message catalog (locales/en.json) gains @astryx.tabBar.more, the label of Lab TabBar's More tab. No Core component reads it.
  • Each addition has a [chore] Internal changeset.

Evidence

  • Failure before the change: on main, touch.test.ts's new case fails without the re-export (1666c8c): "expected 'undefined' to be 'function'". With the name listed but not re-exported (8d7b7b3), the bundle test fails "give Lab names that the public entry does not export".
  • Success after the change: both files pass, 21 tests.
  • Product/runtime behavior verified unchanged: the re-export adds a name to an internal entry only. The bundle test keeps it out of the public entry. No Core source reads the new key. Core's typecheck passes.
  • CI impact: none; no workflow or CI script changes.

Scope

  • No intended public API, product behavior, visual direction, or policy change.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm vitest run packages/core/src/internal/touch.test.ts scripts/touch-support-bundle.test.mjs: 21 passed. On main, touch.test.ts alone: 9 passed.
  • pnpm -F @astryxdesign/core run typecheck: 0 errors, docs included.
  • pnpm check:i18n-catalog, pnpm check:i18n-runtime and pnpm check:changesets: pass.
  • pnpm check:repo, ESLint and Prettier: clean.
  • pnpm review:pre: 0 findings.

Two internal additions for Lab's TabBar, split from its pull requests
so those stay Lab-only. Neither changes a Core component.

- Core's internal touch entry re-exports measureLogicalScrollAxis by
  name, the scroll test ScrollableArea already uses. Lab's TabBar reads
  it to find a panel's scroll area. The public entry still does not
  export it.
- Core's message catalog gains @astryx.tabBar.more, the label of the
  TabBar's More tab. No Core component reads it.
@vercel

vercel Bot commented Nov 9, 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 9, 2026 8:44pm UTC

Request Review

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

astracat-bot Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 9, 2026, 8:50 PM UTC

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 98bd2c9

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC
lab/NavigationScreen 82.7 kB (+70 B) · 1.5 kB CSS (0) —
lab/NavigationStack 82.7 kB (+70 B) · 1.5 kB CSS (0) —
lab/PageControl 75.3 kB (+11 B) · 709 B CSS (0) —
3 more components
Component Size LoC
lab/ChatVirtualizer 55.4 kB (+9 B) · 144 B CSS (0) —
lab/TabBar 77.0 kB (+9 B) · 1.8 kB CSS (0) —
lab/TabBarItem 3.8 kB (0) · 1.8 kB CSS (0) —

Package size: @astryxdesign/core 7.22 MB packed (+313 B); no new dependencies.

API changes: none in this pull request

Committed API report behind this build: cli 29 rows, core 36 rows, theme-butter 1 row, theme-y2k 1 row; run pnpm api:report.

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.

Current run: CI concluded failure; parts of this report may be missing.


Generated by PR Enrichment workflow | View full report

@cixzhang

cixzhang commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

/approve-spec 17b0a5a

@cixzhang cixzhang added the ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) label Nov 9, 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.

Approved pending CI: CI has not run on this head yet.

Both additions stay inside existing contracts: measureLogicalScrollAxis is re-exported only from the internal touch entry, which is reserved for Core and Lab and outside the public API, and @astryx.tabBar.more is a described catalog message that no Core component reads. The new touch.test.ts case and the bundle-test entry fail without the re-export and pass with it, and the catalog and changeset checks pass.

Next: mark the pull request ready for review, then a maintainer adds the ci:run label so CI runs on this fork branch.

[Automated review]

@vjeux
vjeux marked this pull request as ready for review November 9, 2026 14:35
@vjeux
vjeux marked this pull request as draft November 9, 2026 20:18
@cixzhang

cixzhang commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

/approve-spec b4f4e71

@cixzhang

cixzhang commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

/approve-spec 98bd2c9

@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 because the pull request is still a draft; marking it ready for review starts CI (the ci:run label is already applied).

Both additions stay inside existing contracts: measureLogicalScrollAxis is re-exported only from the internal touch entry, which is reserved for Core and Lab and outside the public API, and @astryx.tabBar.more is a described catalog message that no Core component reads. The new tests fail without the re-export and pass with it, and the catalog and changeset checks pass. No blocking findings.

[Automated review]

@vjeux
vjeux marked this pull request as ready for review November 9, 2026 21:13
@cixzhang
cixzhang merged commit d5b0bda into meta:main Nov 9, 2026
166 of 172 checks passed
@vjeux
vjeux deleted the core/tabbar-internal-support branch November 9, 2026 22:40

This branch was successfully deployed

1 active deployment
Preview — 98bd2c9e Deployed Nov 9, 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