Alerting: Improved filters part 2 (#109738)

* refactor: split out form component into separate functions

* add storybook variation for infoOption in dropdown

* add tracking to search input for v2 view, tidy up tracking functions

* add tests for filter tracking

* refactor: boy-scouting V1 filter

* move FiltersV2 to rule-list directory

* fix lint issue

* resolve PR comments round 1

* resolve PR comments round 2- update file locations

* generate apis

* fix tests

* fix lint issue

* fix imports
This commit is contained in:
Lauren
2025-08-21 16:04:00 +00:00
committed by GitHub
parent 82d36a259e
commit 56c8e53a99
11 changed files with 955 additions and 724 deletions
@@ -66,6 +66,31 @@ export const Basic: Story = {
},
};
export const WithInfoOption: Story = {
name: 'With infoOption',
args: {
...commonArgs,
options: [
...commonArgs.options,
{ label: 'Can’t find your country? Select “Other” or contact an admin', value: '__INFO__', infoOption: true },
],
},
render: (args) => {
const [{ value }, setArgs] = useArgs();
return (
<MultiCombobox
{...args}
value={value}
onChange={(val) => {
onChangeAction(val);
setArgs({ value: val });
}}
/>
);
},
};
export const AutoSize: Story = {
args: { ...commonArgs, width: 'auto', minWidth: 20 },
render: (args) => {