@inkindcards/semantic-layer 2.2.4 → 2.2.6

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.
@@ -1146,7 +1146,7 @@ function InspectorModal({
1146
1146
  entry,
1147
1147
  onClose
1148
1148
  }) {
1149
- const { fields: catalog } = useMetrics();
1149
+ const { fields: catalog, error: catalogError, isLoading: catalogLoading } = useMetrics();
1150
1150
  const initialMatches = useMemo(
1151
1151
  () => matchFields(entry.columns, catalog),
1152
1152
  [entry.columns, catalog]
@@ -1231,7 +1231,7 @@ function InspectorModal({
1231
1231
  col
1232
1232
  )) })
1233
1233
  ] }),
1234
- catalog.length === 0 && /* @__PURE__ */ jsx("div", { style: { fontSize: 12, color: "#9ca3af", marginTop: 8, textAlign: "center" }, children: "No semantic layer catalog available. Connect to the gateway to enable smart matching." })
1234
+ catalog.length === 0 && /* @__PURE__ */ jsx("div", { style: { fontSize: 12, color: "#9ca3af", marginTop: 8, textAlign: "center" }, children: catalogLoading ? "Loading catalog..." : catalogError ? `Error loading catalog: ${catalogError}` : "No semantic layer catalog available. Connect to the gateway to enable smart matching." })
1235
1235
  ] }),
1236
1236
  /* @__PURE__ */ jsx("div", { style: { padding: "12px 20px", borderTop: "1px solid #e5e7eb" }, children: /* @__PURE__ */ jsx("button", { onClick: handleGenerate, style: generateBtnStyle, children: copied ? "Copied to clipboard!" : "Generate Migration Prompt" }) })
1237
1237
  ] })