@open-mercato/sync-akeneo 0.5.1-develop.2672.g2128128275 → 0.5.1-develop.2683.4878a05b8e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import { apiCall } from "@open-mercato/ui/backend/utils/apiCall";
7
7
  import { useConfirmDialog } from "@open-mercato/ui/backend/confirm-dialog";
8
8
  import { flash } from "@open-mercato/ui/backend/FlashMessages";
9
9
  import { NextStepCallout } from "@open-mercato/ui/backend/NextStepCallout";
10
- import { Notice } from "@open-mercato/ui/primitives/Notice";
10
+ import { Alert, AlertDescription, AlertTitle } from "@open-mercato/ui/primitives/alert";
11
11
  import { Badge } from "@open-mercato/ui/primitives/badge";
12
12
  import { Button } from "@open-mercato/ui/primitives/button";
13
13
  import { Progress } from "@open-mercato/ui/primitives/progress";
@@ -1053,23 +1053,14 @@ function AkeneoConfigWidget({ context, data }) {
1053
1053
  return /* @__PURE__ */ jsxs("div", { className: "space-y-6 rounded-lg border bg-card p-4", children: [
1054
1054
  /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
1055
1055
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold", children: t("sync_akeneo.setup.heading", "Akeneo API setup") }),
1056
- /* @__PURE__ */ jsx(
1057
- Notice,
1058
- {
1059
- compact: true,
1060
- message: t("sync_akeneo.setup.scheduleTab", "Run once and recurring schedules now live in the dedicated Sync schedules tab, shared by all data sync integrations.")
1061
- }
1062
- ),
1063
- /* @__PURE__ */ jsx(
1064
- Notice,
1065
- {
1066
- title: t("sync_akeneo.setup.order.title", "Recommended sync order"),
1067
- message: t(
1068
- "sync_akeneo.setup.order.message",
1069
- "Run category sync first, attribute sync second, and product sync last. Product import expects local categories and family-based schemas to exist already."
1070
- )
1071
- }
1072
- ),
1056
+ /* @__PURE__ */ jsx(Alert, { variant: "info", children: /* @__PURE__ */ jsx(AlertDescription, { children: t("sync_akeneo.setup.scheduleTab", "Run once and recurring schedules now live in the dedicated Sync schedules tab, shared by all data sync integrations.") }) }),
1057
+ /* @__PURE__ */ jsxs(Alert, { variant: "info", children: [
1058
+ /* @__PURE__ */ jsx(AlertTitle, { children: t("sync_akeneo.setup.order.title", "Recommended sync order") }),
1059
+ /* @__PURE__ */ jsx(AlertDescription, { children: t(
1060
+ "sync_akeneo.setup.order.message",
1061
+ "Run category sync first, attribute sync second, and product sync last. Product import expects local categories and family-based schemas to exist already."
1062
+ ) })
1063
+ ] }),
1073
1064
  shouldShowFirstImportCallout ? /* @__PURE__ */ jsx(
1074
1065
  NextStepCallout,
1075
1066
  {
@@ -1173,7 +1164,7 @@ function AkeneoConfigWidget({ context, data }) {
1173
1164
  "The imported product cleanup is running in the background. Progress also appears in the global progress bar."
1174
1165
  ) })
1175
1166
  ] }) : null,
1176
- discovery?.message ? /* @__PURE__ */ jsx(Notice, { compact: true, variant: discovery.ok ? "info" : "warning", children: discovery.message }) : null,
1167
+ discovery?.message ? /* @__PURE__ */ jsx(Alert, { variant: discovery.ok ? "info" : "warning", children: /* @__PURE__ */ jsx(AlertDescription, { children: discovery.message }) }) : null,
1177
1168
  /* @__PURE__ */ jsxs("div", { className: "grid gap-6 xl:grid-cols-[1.2fr_0.8fr]", children: [
1178
1169
  /* @__PURE__ */ jsxs("div", { className: "space-y-5 rounded-lg border p-4", children: [
1179
1170
  /* @__PURE__ */ jsxs("div", { className: "grid gap-4 md:grid-cols-2", children: [
@@ -1343,7 +1334,7 @@ function AkeneoConfigWidget({ context, data }) {
1343
1334
  /* @__PURE__ */ jsx("td", { className: "px-3 py-2", children: row.skip ? renderSkippedCustomFieldBadge() : renderCustomFieldStatusBadge(exists) })
1344
1335
  ] }, `${row.attributeCode}:${row.fieldKey}:${index}`);
1345
1336
  }) })
1346
- ] }) }) : /* @__PURE__ */ jsx(Notice, { compact: true, children: t("sync_akeneo.customFields.empty", "No Akeneo custom fields are shown yet. They are discovered and mapped automatically after credentials are saved or when you use Refresh discovery. Use the editor only if you want to review or override the automatic mapping.") }),
1337
+ ] }) }) : /* @__PURE__ */ jsx(Alert, { variant: "info", children: /* @__PURE__ */ jsx(AlertDescription, { children: t("sync_akeneo.customFields.empty", "No Akeneo custom fields are shown yet. They are discovered and mapped automatically after credentials are saved or when you use Refresh discovery. Use the editor only if you want to review or override the automatic mapping.") }) }),
1347
1338
  customFieldRows.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 text-xs", children: [
1348
1339
  /* @__PURE__ */ jsx("span", { className: "rounded border px-2 py-1", children: t("sync_akeneo.mapping.customFields.total", `${customFieldRows.length} mapped`) }),
1349
1340
  skippedCustomFieldCount > 0 ? /* @__PURE__ */ jsx("span", { className: "rounded border px-2 py-1", children: t("sync_akeneo.mapping.customFields.skipped", `${skippedCustomFieldCount} skipped`) }) : null,