Commit graph

15 commits

Author SHA1 Message Date
Nathaniel Watts
afe7ae455e Add searchDisabledChoices configuration option
This adds a new configuration option `searchDisabledChoices` that allows
disabled choices to appear in search results while remaining non-selectable.

Previously, disabled choices were always excluded from search results via
the Store's searchableChoices getter. This made it impossible for users to
find disabled options even when they wanted to see what options exist but
are currently unavailable.

Changes:
- Add searchDisabledChoices option to Options interface (default: false)
- Update Store.searchableChoices getter to respect the new config
- Add test coverage for the new functionality
- Maintain backward compatibility with default behavior

The selection prevention logic in _handleChoiceAction already prevents
disabled choices from being selected, so they remain non-selectable even
when found in search results.

Fixes the limitation where users couldn't search for disabled options to
see what choices exist but are currently unavailable.
2025-10-24 14:04:50 -05:00
Xon
59f7d6775a cleanup tests 2024-09-05 12:47:06 +08:00
Xon
8c56acb44c Use group reference instead of groupId 2024-09-05 12:13:47 +08:00
Xon
0d74ffc6f3 Push highlight css toggle into reducer, simplifying state tracking 2024-08-26 01:15:05 +08:00
Xon
f8de8cac44 Bundle byte-shaving 2024-08-15 19:21:21 +08:00
Xon
b4055ec65c Update template unit tests, and groupId being set to "empty" 2024-08-15 17:53:28 +08:00
Xon
00433d200d It isn't the 1990s where 1080p monitors were exotic 2024-08-14 19:53:48 +08:00
Xon
d65a471b67 Fix resetting the store inside a transaction did not defer the listener notification 2024-08-12 18:23:26 +08:00
Xon
88db9639b0 Remove redux store in replace for hand-rolled replacement design for in-place updates of the state. Avoids a lot of data copying, and reduces bundle size 2024-08-12 17:36:17 +08:00
Xon
79eab4c9cb Remove bad test 2024-08-12 14:13:22 +08:00
Xon
4fc4bc44c0 Rename 'loading' state to 'txn' to better match what it is 2024-08-12 14:06:23 +08:00
Xon
062b744b64 Fix search results could be unexpectedly unstable, and that fuseOptions.sortFn was effectively ignored #1106 2024-08-12 05:28:05 +08:00
Xon
7bce16d75e Update various tests, and ensure the seed state can't be modified 2024-08-07 21:59:46 +08:00
Xon
9cba1d96ea Use to.deep.equal for object comparisons 2024-08-07 21:49:42 +08:00
Xon
a2f5632829 Remove tests types from distribution files 2024-08-07 15:07:51 +08:00