fix(init): improve integrations step UX

- Replace plain Base URL input with a prominent Alert callout so users
  don't overlook it
- Add disableScroll prop to SelectGridLayout and use it in onboarding
  so integrations expand the page instead of scrolling
- Fix Collapse `in` → `expanded` prop for Mantine v9 migration in both
  the URL helpers panel and the Docker discovery panel
This commit is contained in:
Thomas Camlong committed 2026-05-28 12:15:56 +02:00
1 parent 1065e30c8d
commit 3ff3d41d7c
4 files changed
+61 -55

No files matched your search

+23 -17
View File
@@ -13,6 +13,7 @@ interface SelectGridLayoutProps {
onSearchChange: (value: string) => void;
placeholder: string;
onSearchKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
disableScroll?: boolean;
children: ReactNode;
}
@@ -21,22 +22,27 @@ export const SelectGridLayout = ({
onSearchChange,
placeholder,
onSearchKeyDown,
disableScroll = false,
children,
}: SelectGridLayoutProps) => (
<Stack>
<Input
value={search}
onChange={(event) => onSearchChange(event.currentTarget.value)}
leftSection={<IconSearch />}
placeholder={placeholder}
data-autofocus
onKeyDown={onSearchKeyDown}
/>
}: SelectGridLayoutProps) => {
const grid = (
<SimpleGrid cols={selectGridCols} spacing="sm">
{children}
</SimpleGrid>
);
<ScrollArea.Autosize mah={selectGridScrollMaxHeight}>
<SimpleGrid cols={selectGridCols} spacing="sm">
{children}
</SimpleGrid>
</ScrollArea.Autosize>
</Stack>
);
return (
<Stack>
<Input
value={search}
onChange={(event) => onSearchChange(event.currentTarget.value)}
leftSection={<IconSearch />}
placeholder={placeholder}
data-autofocus
onKeyDown={onSearchKeyDown}
/>
{disableScroll ? grid : <ScrollArea.Autosize mah={selectGridScrollMaxHeight}>{grid}</ScrollArea.Autosize>}
</Stack>
);
};