Repository navigation
feat(Table): the sort indicator resolves its glyph through the table-sort-indicator icon slot - #9831
Conversation
…g with CodeBlock's copy button
defineTheme({componentIcons}) maps a component icon slot to a shared icon
name, null, a partial {icon, variant, size} request, or a pure function of
the slot's state. One shared resolution applies caller content, then the
theme's slot, then the component's fallback, field by field, and ignores a
malformed field with one development warning. CodeBlock's copy button is the
first slot, code-block-copy, with state {copied}. The static view reads back
through theme.componentIcons; theme build carries static slot values and
fails on a slot function. Component docs, the CLI, and the docsite registry
list a component's slots.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
… values DefinedTheme['componentIcons'] keeps the same shape as a Partial<Record>, so documentation that names DefinedTheme does not have to enumerate every icon name a slot may hold.
7f9c491 to
8be4d13
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the rewritten component:Table FR5, and one fix is needed.
Spec decision. FR5 now adds the table-sort-indicator component icon slot and the matching ComponentIconSlotMap member:
- state
{direction: 'ascending' | 'descending' | 'none'}; - fallbacks
arrowUp,arrowDown, andarrowsUpDown; nullhides only the glyph;- a request size changes only the glyph.
This changes a current record, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request. The author may do this as an engineering owner. The decision should also cover that null can hide a sorted column's only visual sort cue.
Blocking finding
- A theme value
{size: 'lg'}grows the Sort control from 21 px to 24 px and the header row from 37.5 px to 40.5 px. The indicator wrapper inuseTableSortable.tsxhas no fixed block size, which contradicts AST-087 FR14 and INV8 of the icon-slot architecture. Give the wrapper a fixed block size and check the header height forlgin a browser test; the current size test only checksdata-size="sm".
The default glyphs, the direction passed to a slot function, null behaviour, the docs, and the CLI listing all check out.
[Automated review]
| <ComponentIcon | ||
| slot="table-sort-indicator" | ||
| state={{direction: direction ?? 'none'}} | ||
| fallback={{icon: indicator, size: 'xsm'}} |
There was a problem hiding this comment.
A theme request {size: 'lg'} makes this glyph 24 px. The wrapper span around it (styles at lines 158-168) has no fixed block size, so the Sort control grows from 21 px to 24 px and the header row from 37.5 px to 40.5 px (Chromium, neutral theme, balanced density). AST-087 FR14 and INV8 keep the control's height with the component. Give the indicator wrapper a fixed block size, for example the label's line height, and let a larger glyph overflow it.
| const icon = screen | ||
| .getByRole('button', {name: 'Name'}) | ||
| .querySelector('.astryx-icon'); | ||
| expect(icon).toHaveAttribute('data-size', 'sm'); |
There was a problem hiding this comment.
sm (16 px) fits inside the 21 px line box, so this passes while lg still moves the header. jsdom has no layout. A browser assertion that the Sort control's and header's heights stay the same for {size: 'lg'} would cover FR14.
|
Fixed in 79408fb: the indicator wrapper now takes no block size, so a larger glyph overflows it instead of growing the Sort control or the header row. A new browser spec ( |
…template's componentIcons example builds The icon slot architecture record's baseline points to ComponentIconSlotMap and each owning component's docs for Core's slots. The theme template's componentIcons example is a static value, which astryx theme build carries.
…sort-indicator icon slot
A sortable column's indicator passes {direction} ('ascending', 'descending',
or 'none') to the theme's componentIcons['table-sort-indicator'] and keeps
arrowUp, arrowDown, and arrowsUpDown as its fallbacks. null hides only the
glyph; the sort control keeps its label, its sorting, and aria-sort.
…ight The indicator wrapper takes no block size, so a theme's size request for the table-sort-indicator slot overflows it instead of growing the Sort control and the header row. A browser spec over a new IndicatorSlotSize story checks both heights in Chromium and WebKit.
79408fb to
77bb176
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the rewritten component:Table FR5; nothing else blocks.
Spec decision. FR5 now adds the table-sort-indicator component icon slot and the matching ComponentIconSlotMap member:
- state
{direction: 'ascending' | 'descending' | 'none'}; - fallbacks
arrowUp,arrowDownandarrowsUpDown; nullhides only the glyph;- a request size changes only the glyph.
This changes a current record, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do this as an engineering owner. The decision should also cover that null can hide a sorted column's only visible sort cue.
The earlier size finding is fixed: a {size: 'lg'} glyph now keeps the Sort control at 21 px and the header row at 37.5 px, and the new browser spec guards it.
Non-blocking suggestion
- With
null, the empty indicator wrapper keeps the button's 4 px gap, so an end-aligned header label ends 4 px short of its figures; collapsing the empty wrapper (for example':empty'→display: 'none') fixes it.
[Automated review]
| iconWrapperUnsorted: { | ||
| // The wrapper takes no block size, so a theme's larger glyph overflows it | ||
| // instead of growing the Sort control or the header row. | ||
| iconWrapper: { |
There was a problem hiding this comment.
Non-blocking: when the slot resolves null, this wrapper still renders empty, and the button's 4 px gap stays beside it. In an align: 'end' column the label then ends 4 px short of the figures below (648 px vs 652 px in Chromium). Collapsing the empty wrapper keeps the header aligned:
iconWrapper: {
display: {default: 'inline-flex', ':empty': 'none'},
alignItems: 'center',
blockSize: 0,
},…states only its reason
When the table-sort-indicator slot resolves null, the empty indicator wrapper collapses, so the button's gap does not offset an end-aligned label. The browser spec checks the hidden case in Chromium and WebKit.
|
Took the non-blocking suggestion in f8d4396: when the slot resolves |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the rewritten component:Table FR5; no code change is needed.
Spec decision. FR5 now adds the table-sort-indicator component icon slot and its ComponentIconSlotMap member, an intentional update to a current spec that an engineering owner must approve, covering:
- state
{direction: 'ascending' | 'descending' | 'none'}, withnonefor an unsorted column; - fallbacks
arrowUp,arrowDownandarrowsUpDown; nullhides only the glyph, which on a sorted column leavesaria-sortas the only sort cue;- a request size changes only the glyph.
An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do this as an engineering owner.
The earlier suggestion is taken: with null the empty indicator wrapper collapses, so an end-aligned header label lines up with its figures, and tables without a theme entry render unchanged.
[Automated review]
humbertovirtudes
left a comment
There was a problem hiding this comment.
Table-scoped review of exact head f8d4396d9f5c924490048d2bd77b45dd5f82a1d4.
The earlier large-glyph height regression and empty-wrapper gap are fixed at this head. No blocking code defect remains in the authored sorter change. The FR5 decision must cover the table-sort-indicator slot, direction values, fallbacks, glyph-only sizing and null on a sorted column. Keep the current size/empty-wrapper browser regressions and verify them on the eventual integrated head; current stack-base CI does not execute those suites. Two optional documentation corrections remain: qualify the representative glyph requirement for null, and attribute aria-sort to the column header rather than the button. Approval remains pending for the record decision and validation, not for the fixed geometry defects.
…de-block # Conflicts: # docs/specs/components/CodeBlock/CodeBlock.spec.md # packages/cli/test/__golden__/no-icon-set/search-icon-set.json # packages/cli/test/__golden__/no-icon-set/search-icon-set.txt
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the new table-sort-indicator slot, and one fix is needed.
Spec decision. No current record covers this slot: component:Table FR5 names only an Icon-owned sort glyph, and the slot is recorded only in the open record pull request #10045. An engineering owner provides the governing spec by approving the slot as #10045 records it, with #10045 merged first, and records that decision here with /approve-spec <full head SHA>; the author may do this as an engineering owner. It covers:
- the slot name and its
{direction: 'ascending' | 'descending' | 'none'}state, withnonefor an unsorted column; - the fallbacks
arrowUp,arrowDownandarrowsUpDown; nullhiding only the glyph, which leaves a sorted column witharia-sortas its only sort cue;- a
sizethat changes only the glyph; - the new public
ComponentIconSlotMap['table-sort-indicator']member.
Blocking finding
- Regression:
TableSortIndicatorSlot.a11y.browser.spec.tsimportsexpectandtestfrom@playwright/test, which the browser-spec lint rule now on the base branch rejects, so import them from@astryxdesign/a11y-spec/playwrightas the other Table specs do.
Non-blocking
- Miss: the
whenNulltext inTable.doc.mjssays the sort control keepsaria-sort, but the column header carries it, as the changeset says.
[Automated review]
| * @position Regression proof for the sort indicator wrapper's fixed block size | ||
| */ | ||
|
|
||
| import {expect, test} from '@playwright/test'; |
There was a problem hiding this comment.
Regression: the browser-spec lint rule now on the base branch rejects this import (no-restricted-imports), so pnpm lint fails. Import from the shared base test, as the other Table specs do:
import {expect, test} from '@astryxdesign/a11y-spec/playwright';| }, | ||
| ], | ||
| whenNull: | ||
| 'Hides the glyph. The sort control keeps its label, its `aria-sort` direction, and its click and keyboard sorting.', |
There was a problem hiding this comment.
Non-blocking: aria-sort is on the column header, not the sort control (the changeset says "the header's aria-sort"). Suggested:
'Hides the glyph. The Sort control keeps its label and its click and keyboard sorting; the column header keeps `aria-sort`.',…y-spec base; the slot doc says the header keeps aria-sort
|
Addressed in 1fc96db, which also merges the updated #9828 branch, now including current
|
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the new table-sort-indicator slot; no code change is needed.
Spec decision. No current record covers this slot: component:Table FR5 names only an Icon-owned sort glyph, and the slot is recorded only in the open record pull request #10045. An engineering owner provides the governing spec by approving the slot as #10045 records it, with #10045 merged first, and records that decision here with /approve-spec <full head SHA>; the author may do this as an engineering owner. The decision covers:
-
the slot name and its
{direction: 'ascending' | 'descending' | 'none'}state, withnonefor an unsorted column; -
the fallbacks
arrowUp,arrowDownandarrowsUpDown; -
nullhiding only the glyph, which leaves a sorted column witharia-sortas its only sort cue; -
a
sizethat changes only the glyph; -
the new public
ComponentIconSlotMap['table-sort-indicator']member. -
Miss:
nullhiding the glyph also contradicts the current Table "Sortable column" state, which requires the glyph; #10045 already amends that row, so the same decision covers it.
The browser spec's import and the whenNull wording are fixed, and nothing else blocks.
[Automated review]
…de-block # Conflicts: # packages/cli/test/__golden__/no-icon-set/search-icon-set.json # packages/cli/test/__golden__/no-icon-set/search-icon-set.txt
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on the new table-sort-indicator slot; no code change is needed.
Spec decision. No current record covers this slot: component:Table FR5 names only an Icon-owned sort glyph, and the slot is recorded only in the open record pull request #10045. An engineering owner provides the governing spec by approving the slot as #10045 records it, with #10045 merged first, and records that decision here by commenting /approve-spec <full head SHA>; the author may do this as an engineering owner. The decision covers:
- the slot name and its
{direction: 'ascending' | 'descending' | 'none'}state, withnonefor an unsorted column; - the fallbacks
arrowUp,arrowDownandarrowsUpDown; - a theme
nullthat hides only the glyph and takes no space, so a sorted column keeps onlyaria-sortas its sort cue; - a request
sizethat never grows the Sort control or the header row; - the new
ComponentIconSlotMap['table-sort-indicator']member exported from@astryxdesign/coreand@astryxdesign/core/Icon.
[Automated review]
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet. CI runs only for pull requests that target main, so it runs once this pull request is retargeted after #9828 merges.
The table-sort-indicator slot now has its governing spec: component:Table FR5, recorded on main by #10045, covers the slot name and its {direction} state, the arrowUp / arrowDown / arrowsUpDown fallbacks, a null that hides only the glyph, and a size that changes only the glyph, and this change implements exactly that. With no theme entry the sortable headers render as before; a {size: 'lg'} glyph keeps the Sort control and header row height, and null leaves no gap while the header keeps aria-sort.
[Automated review]
There was a problem hiding this comment.
Approved.
The table-sort-indicator slot implements component:Table FR5 as it now stands on main: the {direction} state with none for an unsorted column, the arrowUp / arrowDown / arrowsUpDown fallbacks, a null that hides only the glyph and leaves no gap, and a size that changes only the glyph. Tables with no theme entry render exactly as before, CI passes on this head, and the new browser spec passes in Chromium.
[Automated review]
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TableBody | 3.5 kB (0) · 3.3 kB CSS (0) | — | ✓ · ✓ · ✗ |
| TableFooter | 3.5 kB (0) · 3.3 kB CSS (0) | — | ✓ · ✓ · ✗ |
| TableHeader | 3.5 kB (0) · 3.3 kB CSS (0) | — | ✓ · ✓ · ✗ |
82 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| TableRow | 6.7 kB (0) · 3.9 kB CSS (0) | — | ✓ · ✓ · ✗ |
| AppShell | 80.3 kB (0) · 12.3 kB CSS (0) | — | — · — · — |
| Banner | 52.5 kB (0) · 9.3 kB CSS (0) | — | — · — · — |
| BaseTypeahead | 60.9 kB (0) · 9.7 kB CSS (0) | — | — · — · — |
| BreadcrumbItem | 75.2 kB (0) · 11.4 kB CSS (0) | — | — · — · — |
| Calendar | 61.4 kB (0) · 9.3 kB CSS (0) | — | — · — · — |
| Carousel | 57.4 kB (0) · 9.5 kB CSS (0) | — | — · — · — |
| ChatComposer | 67.1 kB (0) · 10.6 kB CSS (0) | — | — · — · — |
| ChatDictationButton | 51.1 kB (0) · 8.8 kB CSS (0) | — | — · — · — |
| ChatLayout | 53.8 kB (0) · 9.3 kB CSS (0) | — | — · — · — |
| ChatLayoutScrollButton | 51.1 kB (0) · 8.9 kB CSS (0) | — | — · — · — |
| ChatMessageMetadata | 19.9 kB (0) · 4.1 kB CSS (0) | — | — · — · — |
| ChatSendButton | 51.0 kB (0) · 8.7 kB CSS (0) | — | — · — · — |
| ChatToolCalls | 26.1 kB (0) · 8.3 kB CSS (0) | — | — · — · — |
| Citation | 20.2 kB (0) · 4.4 kB CSS (0) | — | — · — · — |
| CodeBlock | 65.0 kB (0) · 10.0 kB CSS (0) | — | — · — · — |
| Collapsible | 25.0 kB (0) · 4.5 kB CSS (0) | — | — · — · — |
| CommandPalette | 58.7 kB (0) · 12.4 kB CSS (0) | — | — · — · — |
| CommandPaletteInput | 27.0 kB (0) · 7.5 kB CSS (0) | — | — · — · — |
| ComplexSelector | 61.4 kB (0) · 10.5 kB CSS (0) | — | — · — · — |
| ContextMenu | 88.0 kB (0) · 16.4 kB CSS (0) | — | — · — · — |
| ContextMenuItem | 26.4 kB (0) · 6.1 kB CSS (0) | — | — · — · — |
| DateInput | 165.8 kB (0) · 15.6 kB CSS (0) | — | — · — · — |
| DateRangeInput | 80.4 kB (0) · 11.3 kB CSS (0) | — | — · — · — |
| DateTimeInput | 188.3 kB (0) · 17.3 kB CSS (0) | — | — · — · — |
| DrawerHeader | 53.6 kB (0) · 11.7 kB CSS (0) | — | — · — · — |
| DropdownMenu | 85.0 kB (0) · 16.5 kB CSS (0) | — | — · — · — |
| DropdownMenuCheckboxItem | 21.1 kB (0) · 6.4 kB CSS (0) | — | — · — · — |
| DropdownMenuItem | 20.3 kB (0) · 6.0 kB CSS (0) | — | — · — · — |
| DropdownMenuRadioItem | 21.1 kB (0) · 6.4 kB CSS (0) | — | — · — · — |
| DropdownMenuSubMenu | 63.6 kB (0) · 9.4 kB CSS (0) | — | — · — · — |
| FileInput | 59.2 kB (0) · 9.7 kB CSS (0) | — | — · — · — |
| Icon · Storybook | 7.8 kB (0) · 681 B CSS (0) | 925 (+3) | ✓ · ✓ · — |
| Lightbox | 58.7 kB (0) · 9.2 kB CSS (0) | — | — · — · — |
| Link | 48.1 kB (0) · 6.9 kB CSS (0) | — | — · — · — |
| Markdown | 159.1 kB (0) · 19.3 kB CSS (0) | — | — · — · — |
| MobileNav | 60.4 kB (0) · 9.4 kB CSS (0) | — | — · — · — |
| MobileNavToggle | 50.9 kB (0) · 8.7 kB CSS (0) | — | — · — · — |
| MoreMenu | 85.2 kB (0) · 16.5 kB CSS (0) | — | — · — · — |
| MultiSelector | 84.9 kB (0) · 15.7 kB CSS (0) | — | — · — · — |
| NumberInput | 61.7 kB (0) · 10.2 kB CSS (0) | — | — · — · — |
| Pagination | 98.0 kB (0) · 16.7 kB CSS (0) | — | — · — · — |
| PowerSearch | 262.5 kB (0) · 22.7 kB CSS (0) | — | — · — · — |
| Selector | 88.0 kB (0) · 16.3 kB CSS (0) | — | — · — · — |
| SelectorOption | 19.3 kB (0) · 5.8 kB CSS (0) | — | — · — · — |
| SideNav | 80.3 kB (0) · 10.2 kB CSS (0) | — | — · — · — |
| SideNavCollapseButton | 51.4 kB (0) · 8.8 kB CSS (0) | — | — · — · — |
| SideNavHeading | 65.4 kB (0) · 10.0 kB CSS (0) | — | — · — · — |
| SideNavItem | 60.5 kB (0) · 9.9 kB CSS (0) | — | — · — · — |
| Step | 29.6 kB (0) · 5.6 kB CSS (0) | — | — · — · — |
| Stepper | 52.2 kB (0) · 8.9 kB CSS (0) | — | — · — · — |
| Table | 97.3 kB (0) · 17.0 kB CSS (0) | — | ✓ · ✓ · — |
| TableCell | 89.2 kB (0) · 16.8 kB CSS (0) | — | ✓ · ✓ · ✓ |
| TableHeaderCell | 88.8 kB (0) · 16.5 kB CSS (0) | — | ✓ · ✓ · ✓ |
| TableSelectionToolbar | 60.1 kB (0) · 11.9 kB CSS (0) | — | ✓ · ✓ · ✓ |
| TabList | 40.1 kB (0) · 6.4 kB CSS (0) | — | — · — · — |
| TabMenu | 62.0 kB (0) · 9.9 kB CSS (0) | — | — · — · — |
| TextArea | 53.3 kB (0) · 8.9 kB CSS (0) | — | — · — · — |
| Thumbnail | 54.8 kB (0) · 10.3 kB CSS (0) | — | — · — · — |
| TimeInput | 142.6 kB (0) · 14.6 kB CSS (0) | — | — · — · — |
| Toast | 64.5 kB (0) · 9.1 kB CSS (0) | — | — · — · — |
| Token | 27.2 kB (0) · 4.7 kB CSS (0) | — | — · — · — |
| Tokenizer | 79.2 kB (0) · 17.2 kB CSS (0) | — | — · — · — |
| TopNav | 62.1 kB (0) · 9.7 kB CSS (0) | — | — · — · — |
| TopNavHeading | 64.8 kB (0) · 9.9 kB CSS (0) | — | — · — · — |
| TopNavMegaMenu | 59.9 kB (0) · 10.6 kB CSS (0) | — | — · — · — |
| TopNavMenu | 64.8 kB (0) · 10.0 kB CSS (0) | — | — · — · — |
| TreeList | 41.2 kB (0) · 5.4 kB CSS (0) | — | — · — · — |
| Typeahead | 68.8 kB (0) · 11.3 kB CSS (0) | — | — · — · — |
| lab/CommentComposer | 114.2 kB (0) · 1.9 kB CSS (0) | — | — · — · — |
| lab/CommentPin | 52.2 kB (0) · 1.2 kB CSS (0) | — | — · — · — |
| lab/Comments | 279.2 kB (0) · 2.5 kB CSS (0) | — | — · — · — |
| lab/CommentThread | 273.4 kB (0) · 2.4 kB CSS (0) | — | — · — · — |
| lab/DiffViewer | 76.9 kB (0) · 2.1 kB CSS (0) | — | — · — · — |
| lab/EmojiPicker | 76.3 kB (0) · 722 B CSS (0) | — | — · — · — |
| lab/ListInput | 90.0 kB (0) · 1.6 kB CSS (0) | — | — · — · — |
| lab/Schedule | 69.0 kB (0) · 3.9 kB CSS (0) | — | — · — · — |
| lab/TransferList | 84.7 kB (0) · 1.7 kB CSS (0) | — | — · — · — |
| lab/TransferListSelector | 91.8 kB (0) · 1.9 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 287.5 kB (0) · 2.6 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditorToolbar | 238.6 kB (0) · 454 B CSS (0) | — | — · — · — |
| richtext/RichTextView | 267.8 kB (0) · 2.3 kB CSS (0) | — | — · — · — |
Package size: @astryxdesign/core 6.61 MB packed (+711 B); no new dependencies.
API changes: core +1 · ~0 · −0
Committed API report behind this build: cli 19 rows, core 23 rows; run pnpm api:report.
1 API change (advisory)
| Package | Where | Signature | Usage | |
|---|---|---|---|---|
| + | core |
. · Types · interface ComponentIconSlotMap |
table-sort-indicator: { readonly direction: 'ascending' | 'descending' | 'none' } |
import type {ComponentIconSlotMap} from '@astryxdesign/core'; const x: ComponentIconSlotMap = {table-sort-indicator: …} |
Touched components checked; add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suites.
Generated by PR Enrichment workflow | View full report
Specified by #10045 (the record PR for the first component icon slots); this PR merges after it.
Stack: on #9828 (component icon slots and CodeBlock's
code-block-copy). Review and merge after it.User need
The arrows in a sortable Table header are the most visible directional icons in data-heavy products. A theme that wants carets or chevrons there, or no glyph for unsorted columns, can today only remap
arrowUp,arrowDown, andarrowsUpDown. That also changes every other place those names appear: a chat send button usesarrowUp. A theme needs to change the sort indicator alone, per direction.Problem and solution fit
table-sort-indicatorslot, with state{direction: 'ascending' | 'descending' | 'none'}, is declared inComponentIconSlotMap.useTableSortable's indicator resolves through the slot with the sharedComponentIconrenderer.arrowUp,arrowDown, andarrowsUpDown, as before.Table.doc.mjsgains itstheming.componentIconsentry.astryx component Tablelists it.Name check:
table-sort-indicatoris<component-kebab>-<semantic-role>, and the spec's anatomy calls this part the "Sort indicator glyph". The state is the column's sort direction.'none'stands for an unsorted column, where the sort config holdsnull, so a slot function never sees a nullable state field.Current specification
architecture:icon-resolution-and-component-slots: slot model, INV2, INV4–INV8, change coupling.spec:AST-087: FR11–FR17.component:TableFR5, recorded by spec: record component icon slots in CodeBlock, Timestamp, and Table #10045. This PR changes no record.Public delta and caller burden
table-sort-indicator(type{readonly direction: 'ascending' | 'descending' | 'none'}) inComponentIconSlotMap.nullhides the glyph. The Sort control keeps its label (the column name), its click and keyboard sorting, and the header'saria-sort. A requestsizechanges only the glyph.Design and alternatives
One slot with a direction state, rather than three slots, so a theme maps the whole indicator in one place, and a static value still applies to every direction. Rejected: passing the multi-sort rank in the state, because the rank is drawn as text beside the glyph, not by it.
Evidence
useTableSortable.test.tsxhas a new sort indicator icon slot suite. It covers:noneincluded, with anullresult hiding the unsorted glyph;nullhiding only the glyph whilearia-sortand sorting still work;componentIconSlots.test.tschecks that the slot is declared, rendered by the Table plugin, and listed inTable.doc.mjs.componentIcons.test.tsxchecks the slot name type.Scope
Testing
pnpm vitest run --project ui packages/core/src/Table packages/core/src/Icon packages/core/src/theme/themingTargets.test.ts(32 files, 1,102 tests)pnpm vitest run --project node packages/cli/test/experimental-isolation.test.mjs packages/cli/test/core-doc-quality.test.mjspnpm check:knowledge;pnpm review:pre --base icons/ast087-slots-code-block; core typecheck.