fix(board): persist batch item actions
This commit is contained in:
12 files changed
+256
-205
No files matched your search
@@ -96,7 +96,7 @@ describe("Advanced Add App - Modal Subcomponents", () => {
|
||||
),
|
||||
);
|
||||
|
||||
expect(host.textContent?.trim()).toBe("");
|
||||
expect(host.querySelector("[class*='Badge-root']")).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -180,7 +180,7 @@ describe("Advanced Add App - Modal Subcomponents", () => {
|
||||
expect(onSelect).toHaveBeenCalledOnce();
|
||||
});
|
||||
|
||||
it("marks card as selected when isSelected is true", async () => {
|
||||
it("does not mark widget cards as selected", async () => {
|
||||
const item = {
|
||||
kind: "clock" as WidgetKind,
|
||||
name: "Clock",
|
||||
@@ -204,7 +204,7 @@ describe("Advanced Add App - Modal Subcomponents", () => {
|
||||
);
|
||||
|
||||
const button = host.querySelector("button");
|
||||
expect(button?.getAttribute("data-selected")).toBe("true");
|
||||
expect(button?.hasAttribute("data-selected")).toBe(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -484,7 +484,7 @@ const ItemSelectModalContent = ({
|
||||
description={def.description ?? ""}
|
||||
footerLeft={
|
||||
<Text size="xs" c="dimmed">
|
||||
Custom Widget
|
||||
{t("item.create.customWidget")}
|
||||
</Text>
|
||||
}
|
||||
/>
|
||||
@@ -569,10 +569,12 @@ export const ConnectionStatusBadge = ({ status }: { status: WidgetConnectionStat
|
||||
};
|
||||
|
||||
export const SupportedIntegrations = ({ integrations }: { integrations: IntegrationKind[] }) => {
|
||||
const t = useI18n();
|
||||
|
||||
if (integrations.length === 0) {
|
||||
return (
|
||||
<Text size="xs" c="dimmed" fs="italic">
|
||||
Standalone
|
||||
{t("item.create.standalone")}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user