Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
e5cb122
add multiselect functionality
ZakaryH Feb 19, 2026
7164077
avoid border visually intercepting container edge
ZakaryH Feb 19, 2026
2cee9a4
stabilize height to avoid visual shifts on select
ZakaryH Feb 19, 2026
4ad1a78
add customRenderValue prop
ZakaryH Feb 20, 2026
e65f2db
render selections inline with wrapping
ZakaryH Feb 20, 2026
6c3fc3a
allow arrow left/right to navigate between selected values
ZakaryH Feb 20, 2026
ca7aa40
leverage FormFieldWrapper for placeholder/miniLabel behavior
ZakaryH Feb 20, 2026
9066b27
add more stories
ZakaryH Feb 20, 2026
a42a4da
conditionally render value container to avoid misalignment with custo…
ZakaryH Feb 20, 2026
b4dfdec
update props
ZakaryH Feb 20, 2026
0954186
remove redundant max statement suppression statements
ZakaryH Feb 20, 2026
f0323bc
add disabled story
ZakaryH Feb 20, 2026
200f55b
limit customValue rendering to chip contents to avoid re-implementing…
ZakaryH Feb 20, 2026
1c0b97a
add examples, adjust chip styles and use Icon
ZakaryH Feb 23, 2026
ad934cb
add Clearable prop
ZakaryH Feb 23, 2026
5646457
update props
ZakaryH Feb 23, 2026
f0d6829
update visual tests
ZakaryH Feb 23, 2026
373021b
adjust focus styles for chips
ZakaryH Feb 23, 2026
86484db
ensure clicking visual input area triggers menu behavior
ZakaryH Feb 24, 2026
d71d14c
extract chip code to useChipNavigation hook
ZakaryH Feb 24, 2026
4a0ac29
simplify guards used in input ref assignment
ZakaryH Feb 24, 2026
62266b0
extract FloatingMenu to own component to colocate all menu specific f…
ZakaryH Feb 24, 2026
91d4d25
swap useEffects for event driven
ZakaryH Feb 24, 2026
8d11841
extract local component, move clear handler into hook with other hand…
ZakaryH Feb 24, 2026
7d01bed
avoid outlines on options
ZakaryH Feb 24, 2026
641d172
refocus input on selection with clicks in multiselect
ZakaryH Feb 24, 2026
2daecca
use POM methods to avoid wwarnings in tests
ZakaryH Feb 24, 2026
ee8cd17
improve test coverage for multiselect
ZakaryH Feb 24, 2026
ff0ac11
add and update visual tests for multi
ZakaryH Feb 24, 2026
59b4ba6
fix character deletion debounce issue, add regression test
ZakaryH Feb 24, 2026
ddf3764
set up test properly
ZakaryH Feb 25, 2026
315c115
implement allowFreeFrom on multiple, allow space key entry while main…
ZakaryH Feb 25, 2026
25bdc47
replace useEffects in useChipNavigation for improved clarity
ZakaryH Feb 25, 2026
2d1d2bf
use single, stable empty array definition for value/selections
ZakaryH Feb 25, 2026
47161ea
prevent opening menu when disabled
ZakaryH Feb 26, 2026
3384417
clean up one-off invocations with Wrapper usages in tests
ZakaryH Feb 26, 2026
25047fd
increase 'wrapping' example, update snapshots
ZakaryH Feb 26, 2026
06f0f4f
Merge remote-tracking branch 'origin' into autocomplete-multiselection
ZakaryH Feb 26, 2026
d6c04de
fix Autocomplete multi height to match other inputs
ZakaryH Feb 26, 2026
ac69aad
update visual tests with new input dimensions
ZakaryH Feb 26, 2026
a618d60
add limitVisibleSelections and limitText props and implementations
ZakaryH Feb 26, 2026
3762136
remove unwarranted memoization
ZakaryH Feb 26, 2026
ec2972d
update dismiss appearance, increase clickable area
ZakaryH Feb 26, 2026
1404f4d
update snapshots
ZakaryH Feb 26, 2026
9489f7d
update props
ZakaryH Feb 26, 2026
e9956b3
match truncate element text with sizing and line height of other text…
ZakaryH Feb 26, 2026
60f1b70
allow ReactNode for limitSelectionText
ZakaryH Feb 27, 2026
8c7f688
update props
ZakaryH Feb 27, 2026
d4d589c
Merge remote-tracking branch 'origin' into autocomplete-multiselection
ZakaryH Feb 27, 2026
f8b016e
adjust disabled selection style
ZakaryH Feb 27, 2026
ebb4b56
add additional disabled state attributes
ZakaryH Feb 27, 2026
cc36f28
update snapshots
ZakaryH Feb 27, 2026
c326f0e
Merge remote-tracking branch 'origin' into autocomplete-multiselection
ZakaryH Feb 27, 2026
5a63241
update props
ZakaryH Feb 27, 2026
deb8ab0
remove 'large' that showcases an existing issue
ZakaryH Mar 2, 2026
a881003
implement onOpen and onClose, add tests and example
ZakaryH Mar 2, 2026
0d83ea5
add additional context to limitSelectionText JSDocs
ZakaryH Mar 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion packages/components/src/Autocomplete/Autocomplete.pom.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import { screen, waitFor } from "@testing-library/react";
import { userEvent } from "@testing-library/user-event";

const user = userEvent.setup();
let user = userEvent.setup();

/**
* Reconfigure the shared userEvent instance used by all POM helpers.
* Call with options (e.g. `{ advanceTimers: jest.advanceTimersByTime }`) before
* tests that use fake timers, and call with no arguments afterwards to restore defaults.
*/
export function configureUser(options?: Parameters<typeof userEvent.setup>[0]) {
user = userEvent.setup(options);
}

/**
* Open the Autocomplete menu
Expand Down Expand Up @@ -167,3 +176,7 @@ export async function expectMenuClosed() {
expect(screen.queryByRole("listbox")).not.toBeInTheDocument();
});
}

export async function clickOnSelectionArea() {
await user.click(screen.getByTestId("ATL-AutocompleteRebuilt-chipArea"));
}
Loading
Loading