feat(frontend): schema-linking types + columns modal

This commit is contained in:
2026-07-06 23:25:00 +02:00
committed by Marco Pancotti
parent 9de87d2d51
commit 1d877d98ec
3 changed files with 126 additions and 0 deletions
+20
View File
@@ -7,6 +7,24 @@ export interface WidgetOption {
opens?: WidgetDescriptor;
}
export interface SchemaColumn {
name: string;
description?: string;
type?: string;
pk?: boolean;
suggested?: boolean;
}
export interface SchemaTable {
id: string;
name: string;
kind: "promote" | "exclude";
recommended?: boolean;
description?: string;
rationale?: string;
columns: SchemaColumn[];
}
export interface WidgetDescriptor {
id: string;
schema_version?: number;
@@ -21,6 +39,7 @@ export interface WidgetDescriptor {
artifact?: { kind: string; content?: string; [k: string]: unknown };
level?: "info" | "warning" | "error";
text?: string;
tables?: SchemaTable[];
[k: string]: unknown;
}
@@ -31,6 +50,7 @@ export interface UiResponse {
text?: string;
decision?: { type: string };
control?: string;
tables?: { id: string; enacted: boolean; columns?: string[] }[];
}
export type StreamEvent =