Skip to content

Tests: ComboBox - Recreate test suite for new implementation - #86

Merged
nicolas-jaussaud merged 10 commits into
mainfrom
tests/recreate-tests-for-new-combobox-components
Aug 14, 2026
Merged

Tests: ComboBox - Recreate test suite for new implementation#86
nicolas-jaussaud merged 10 commits into
mainfrom
tests/recreate-tests-for-new-combobox-components

Conversation

@nicolas-jaussaud

Copy link
Copy Markdown
Contributor

In #80, we modified existing tests to run them for the deprecated combo-box only

This PR adapt the legacy tests and to run them for the new combo-box implementation

juliacanzaniand others added 10 commits July 30, 2026 20:35
Picks up MultiCombobox (searchable multi-select — needed for the combo-box
field migration's multiple+async case), Chip onRemove, and the Combobox
aria-describedby/invalid/required forwarding fix.
Compat: TUI 0.2.0's Button dropped the `iconSize` prop (icons size
intrinsically now) — removed it from the base Button wrapper + its story.
tsc error count unchanged from 0.1.x (422 pre-existing); rebuilt bundle.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the react-aria/react-stately select-field internals with TUI's Select
(single) and MultiSelect (multiple), in the TUI Field idiom. Static-only
(select has no async), so the contract is simple and preserved — verified live:
- single: hidden input = the key
- multiple: hidden input = "a,b,c"; onChange([...keys]) (array, as before)
New: Single.tsx (TUI Select + hidden input for form submission, replacing
react-aria HiddenSelect), Multiple.tsx (TUI MultiSelect, display=chips),
renderOptions.tsx (flat/grouped/disabledKeys). Removed MultipleSelect.tsx.
Note: select/Select.tsx (the react-aria Select) is KEPT — it's still an internal
building block for the gradient / dimensions / simple-dimension fields; only the
select FIELD TYPE stops using it. Its .tf-select styles stay; the migrated field
uses a distinct .tf-select-field class.
tsc 422 -> 414; rebuilt bundle.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicolas-jaussaudnicolas-jaussaud changed the title Tests: ComboBox - Recreate test suite for new impementationTests: ComboBox - Recreate test suite for new implementationAug 14, 2026
@nicolas-jaussaud
nicolas-jaussaud merged commit aeba8b4 into mainAug 14, 2026
2 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@nicolas-jaussaud@juliacanzani