feat: refine metadata catalog workflows

This commit is contained in:
Codex
2026-09-02 15:58:23 +02:00
parent 4531746038
commit ae053961a3
31 changed files with 848 additions and 219 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ test("compacts table, filter, detail, and rationale rows", () => {
expect(within(rationale!).getByText("Rationale")).toHaveClass("mb-1");
});
test("shows 'no dependencies' for a CTE with an empty depends_on", () => {
test("shows 'No dependencies' for a CTE with an empty depends_on", () => {
render(<CtePlanViewer plan={plan} />);
expect(screen.getByText(/no dependencies/i)).toBeInTheDocument();
});
+1 -1
View File
@@ -93,7 +93,7 @@ function CteCard({ cte, total }: { cte: CtePlanCte; total: number }) {
))}
</div>
) : (
<p className="text-xs text-muted-foreground">no dependencies</p>
<p className="text-xs text-muted-foreground">No dependencies</p>
)}
</section>
@@ -52,7 +52,7 @@ test("(b) clicking toggle switches to table listing a promoted table name", asyn
test("(c) oversized linking (>45) shows cap notice", () => {
render(<SchemaLinkingViewer linking={bigLinking} />);
expect(
screen.getByText(/too many elements for the graph/i)
screen.getByText(/too many nodes to display in the graph/i)
).toBeInTheDocument();
});
+1 -1
View File
@@ -147,7 +147,7 @@ export function SchemaLinkingViewer({ linking }: { linking: SchemaLinking }) {
{oversized && (
<p className="text-sm text-amber-600">
Too many elements for the graph, use the table
Too many nodes to display in the graph. Use the table instead.
</p>
)}