Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LJ-343 Allow search by default in all Selects #5738

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Changes can also be flagged with a GitHub label for tracking purposes. The URL o
- Added frequency field to DataHubSchema integration config [#5716](https://github.com/ethyca/fides/pull/5716)
- Added glossary_node field to DataHubSchema integration config [#5734](https://github.com/ethyca/fides/pull/5734)
- Added initial support for upcoming "headless" CMP experience type [#5731](https://github.com/ethyca/fides/pull/5731)
- All Select dropdowns will now allow searching to narrow down the options by default [#5738](https://github.com/ethyca/fides/pull/5738)
- Exposes privacy notice picker for TCF components [#5730](https://github.com/ethyca/fides/pull/5730)

### Fixed
Expand Down
1 change: 0 additions & 1 deletion clients/admin-ui/src/features/common/ScrollableList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ const ScrollableListAdd = ({
return isAdding ? (
<Box w="full">
<Select
showSearch
labelInValue
placeholder="Select..."
filterOption={(input, option) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ const dropdownRender = (
};

interface SystemSelectProps
extends Omit<
SelectProps,
"options" | "showSearch" | "filterOption" | "onSearch"
> {
extends Omit<SelectProps, "options" | "filterOption" | "onSearch"> {
onAddSystem?: MouseEventHandler<HTMLButtonElement>;
}

Expand Down Expand Up @@ -77,7 +74,6 @@ export const SystemSelect = ({ onAddSystem, ...props }: SystemSelectProps) => {
}
data-testid="system-select"
{...props}
showSearch
filterOption={false}
options={options}
onSearch={onSearch}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const TaxonomySelect = ({
<Select<string, TaxonomySelectOption>
options={selectOptions}
autoFocus
showSearch
variant="borderless"
optionRender={TaxonomyOption}
dropdownStyle={{ minWidth: "500px" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const SelectDataset = ({ options }: { options?: Option[] }) => {
options={options}
onChange={(v) => setValue(v)}
mode="multiple"
showSearch
className="w-full"
/>
</Box>
Expand Down
1 change: 0 additions & 1 deletion clients/admin-ui/src/features/system/VendorSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ const VendorSelector = ({
<Box width="100%" className="relative">
<Select<VendorOption, VendorOption>
id="vendorName"
showSearch
labelInValue
autoFocus
allowClear
Expand Down
2 changes: 2 additions & 0 deletions clients/fidesui/src/hoc/CustomSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const withCustomProps = (WrappedComponent: typeof Select) => {
placeholder = "Select...",
optionRender = optionDescriptionRender,
className = "w-full",
showSearch = true,
suffixIcon,
menuItemSelectedIcon = <Checkmark />,
...props
Expand All @@ -44,6 +45,7 @@ const withCustomProps = (WrappedComponent: typeof Select) => {
placeholder,
optionRender,
className,
showSearch,
suffixIcon: props.loading ? undefined : suffixIcon || <ChevronDown />,
menuItemSelectedIcon,
"data-testid": `select${props.id ? `-${props.id}` : ""}`,
Expand Down