@inkindcards/semantic-layer 2.2.5 → 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.
- package/dist/components.cjs +2 -2
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +2 -2
- package/dist/components.js.map +1 -1
- package/package.json +1 -1
package/dist/components.cjs
CHANGED
|
@@ -1148,7 +1148,7 @@ function InspectorModal({
|
|
|
1148
1148
|
entry,
|
|
1149
1149
|
onClose
|
|
1150
1150
|
}) {
|
|
1151
|
-
const { fields: catalog } = chunkT2C43AAL_cjs.useMetrics();
|
|
1151
|
+
const { fields: catalog, error: catalogError, isLoading: catalogLoading } = chunkT2C43AAL_cjs.useMetrics();
|
|
1152
1152
|
const initialMatches = react.useMemo(
|
|
1153
1153
|
() => matchFields(entry.columns, catalog),
|
|
1154
1154
|
[entry.columns, catalog]
|
|
@@ -1233,7 +1233,7 @@ function InspectorModal({
|
|
|
1233
1233
|
col
|
|
1234
1234
|
)) })
|
|
1235
1235
|
] }),
|
|
1236
|
-
catalog.length === 0 && /* @__PURE__ */ jsxRuntime.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." })
|
|
1236
|
+
catalog.length === 0 && /* @__PURE__ */ jsxRuntime.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." })
|
|
1237
1237
|
] }),
|
|
1238
1238
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "12px 20px", borderTop: "1px solid #e5e7eb" }, children: /* @__PURE__ */ jsxRuntime.jsx("button", { onClick: handleGenerate, style: generateBtnStyle, children: copied ? "Copied to clipboard!" : "Generate Migration Prompt" }) })
|
|
1239
1239
|
] })
|