Add graph type error diagnostics to the UI (#1535)

* Fontend input types

* Fix index of errors / types

* Bug fixes, styling improvements, and code review

* Improvements to the error box

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube
2023-12-29 08:38:45 +00:00
committed by GitHub
co-authored by Keavon Chambers
parent 96b5d7b520
commit 947a131a4b
20 changed files with 566 additions and 170 deletions
+7 -1
View File
@@ -82,18 +82,22 @@ export class FrontendDocumentDetails extends DocumentDetails {
readonly id!: bigint;
}
export type FrontendGraphDataType = "general" | "raster" | "color" | "vector" | "vec2" | "graphic" | "artboard";
export type FrontendGraphDataType = "general" | "number" | "raster" | "vector" | "color" | "artboard";
export class FrontendGraphInput {
readonly dataType!: FrontendGraphDataType;
readonly name!: string;
readonly resolvedType!: string | undefined;
}
export class FrontendGraphOutput {
readonly dataType!: FrontendGraphDataType;
readonly name!: string;
readonly resolvedType!: string | undefined;
}
export class FrontendNode {
@@ -119,6 +123,8 @@ export class FrontendNode {
readonly previewed!: boolean;
readonly disabled!: boolean;
readonly errors!: string | undefined;
}
export class FrontendNodeLink {