fix(onboarding): collapse manual integrations
This commit is contained in:
1 parent
4f693b0465
commit
d4ffd19f01
2 files changed
+19
-8
No files matched your search
@@ -149,6 +149,7 @@ describe("Onboarding", () => {
|
|||||||
expect(await boardPreview.getAttribute("data-layout-columns")).toBe("12");
|
expect(await boardPreview.getAttribute("data-layout-columns")).toBe("12");
|
||||||
|
|
||||||
await page.getByRole("button", { name: /^Connect/ }).click();
|
await page.getByRole("button", { name: /^Connect/ }).click();
|
||||||
|
await page.getByRole("button", { name: "Add another integration" }).click();
|
||||||
const sonarr = page.locator('button[aria-label="Sonarr"]');
|
const sonarr = page.locator('button[aria-label="Sonarr"]');
|
||||||
await sonarr.click();
|
await sonarr.click();
|
||||||
await page.getByLabel("Service URL").waitFor();
|
await page.getByLabel("Service URL").waitFor();
|
||||||
|
|||||||
@@ -1050,14 +1050,24 @@ const Connections = (props: StudioSectionProps) => {
|
|||||||
</Fieldset>
|
</Fieldset>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
<Fieldset legend={t("otherIntegrations")}>
|
<Accordion variant="separated" radius="md">
|
||||||
<IntegrationMultiSelectGrid
|
<Accordion.Item value="manual-integrations">
|
||||||
selectedKinds={props.selectedKinds}
|
<Accordion.Control icon={<IconPlugConnected size={20} />}>
|
||||||
onSelectionChange={props.setSelectedKinds}
|
<Group gap="xs">
|
||||||
detectedKinds={props.detectedKinds}
|
<Text fw={600}>{t("otherIntegrations")}</Text>
|
||||||
onboarding
|
{props.selectedKinds.length > 0 ? <Badge variant="light">{props.selectedKinds.length}</Badge> : null}
|
||||||
/>
|
</Group>
|
||||||
</Fieldset>
|
</Accordion.Control>
|
||||||
|
<Accordion.Panel>
|
||||||
|
<IntegrationMultiSelectGrid
|
||||||
|
selectedKinds={props.selectedKinds}
|
||||||
|
onSelectionChange={props.setSelectedKinds}
|
||||||
|
detectedKinds={props.detectedKinds}
|
||||||
|
onboarding
|
||||||
|
/>
|
||||||
|
</Accordion.Panel>
|
||||||
|
</Accordion.Item>
|
||||||
|
</Accordion>
|
||||||
|
|
||||||
{props.discoveredApps.length > 0 ? (
|
{props.discoveredApps.length > 0 ? (
|
||||||
<Fieldset legend={t("discoveredApps", { count: String(props.discoveredApps.length) })}>
|
<Fieldset legend={t("discoveredApps", { count: String(props.discoveredApps.length) })}>
|
||||||
|
|||||||
Reference in new issue
Block a user