Repository navigation
chore(core): re-export the scroll test and add the More tab's string - #10791
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| 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
|
/approve-spec 17b0a5a |
There was a problem hiding this comment.
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]
|
/approve-spec b4f4e71 |
|
/approve-spec 98bd2c9 |
There was a problem hiding this comment.
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]
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
internal/touch.ts) re-exportsmeasureLogicalScrollAxisby name. ScrollableArea already uses this scroll test; Lab's TabBar reads it to find a panel's scroll area.locales/en.json) gains@astryx.tabBar.more, the label of Lab TabBar's More tab. No Core component reads it.[chore] Internalchangeset.Evidence
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".Scope
Testing
pnpm vitest run packages/core/src/internal/touch.test.ts scripts/touch-support-bundle.test.mjs: 21 passed. On main,touch.test.tsalone: 9 passed.pnpm -F @astryxdesign/core run typecheck: 0 errors, docs included.pnpm check:i18n-catalog,pnpm check:i18n-runtimeandpnpm check:changesets: pass.pnpm check:repo, ESLint and Prettier: clean.pnpm review:pre: 0 findings.