@tscircuit/fake-snippets 0.0.76 → 0.0.77
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/bundle.js +8 -5
- package/dist/index.d.ts +15 -15
- package/dist/index.js +7 -4
- package/dist/schema.d.ts +24 -24
- package/dist/schema.js +3 -3
- package/fake-snippets-api/lib/db/autoload-dev-packages.ts +8 -0
- package/fake-snippets-api/lib/db/schema.ts +3 -3
- package/package.json +1 -1
- package/src/components/PackageBuildsPage/getColorForDisplayStatus.ts +2 -2
- package/src/components/PackageBuildsPage/package-build-details-panel.tsx +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -421,15 +421,15 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
421
421
|
has_transpiled: z.ZodDefault<z.ZodBoolean>;
|
|
422
422
|
transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
423
423
|
fs_sha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
|
-
display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "
|
|
424
|
+
display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
425
425
|
total_build_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
426
|
-
transpilation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "
|
|
426
|
+
transpilation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
427
427
|
transpilation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
428
428
|
transpilation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
429
429
|
transpilation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
430
430
|
transpilation_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
431
431
|
transpilation_is_stale: z.ZodDefault<z.ZodBoolean>;
|
|
432
|
-
circuit_json_build_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "
|
|
432
|
+
circuit_json_build_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
433
433
|
circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
434
434
|
circuit_json_build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
435
435
|
circuit_json_build_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -443,12 +443,12 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
443
443
|
is_locked: boolean;
|
|
444
444
|
is_latest: boolean;
|
|
445
445
|
has_transpiled: boolean;
|
|
446
|
-
display_status: "
|
|
447
|
-
transpilation_display_status: "
|
|
446
|
+
display_status: "error" | "pending" | "building" | "complete";
|
|
447
|
+
transpilation_display_status: "error" | "pending" | "building" | "complete";
|
|
448
448
|
transpilation_in_progress: boolean;
|
|
449
449
|
transpilation_logs: any[];
|
|
450
450
|
transpilation_is_stale: boolean;
|
|
451
|
-
circuit_json_build_display_status: "
|
|
451
|
+
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
452
452
|
circuit_json_build_in_progress: boolean;
|
|
453
453
|
circuit_json_build_logs: any[];
|
|
454
454
|
circuit_json_build_is_stale: boolean;
|
|
@@ -477,15 +477,15 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
477
477
|
has_transpiled?: boolean | undefined;
|
|
478
478
|
transpilation_error?: string | null | undefined;
|
|
479
479
|
fs_sha?: string | null | undefined;
|
|
480
|
-
display_status?: "
|
|
480
|
+
display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
481
481
|
total_build_duration_ms?: number | null | undefined;
|
|
482
|
-
transpilation_display_status?: "
|
|
482
|
+
transpilation_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
483
483
|
transpilation_in_progress?: boolean | undefined;
|
|
484
484
|
transpilation_started_at?: string | null | undefined;
|
|
485
485
|
transpilation_completed_at?: string | null | undefined;
|
|
486
486
|
transpilation_logs?: any[] | undefined;
|
|
487
487
|
transpilation_is_stale?: boolean | undefined;
|
|
488
|
-
circuit_json_build_display_status?: "
|
|
488
|
+
circuit_json_build_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
489
489
|
circuit_json_build_in_progress?: boolean | undefined;
|
|
490
490
|
circuit_json_build_started_at?: string | null | undefined;
|
|
491
491
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
@@ -751,12 +751,12 @@ declare const createDatabase: ({ seed }?: {
|
|
|
751
751
|
is_locked: boolean;
|
|
752
752
|
is_latest: boolean;
|
|
753
753
|
has_transpiled: boolean;
|
|
754
|
-
display_status: "
|
|
755
|
-
transpilation_display_status: "
|
|
754
|
+
display_status: "error" | "pending" | "building" | "complete";
|
|
755
|
+
transpilation_display_status: "error" | "pending" | "building" | "complete";
|
|
756
756
|
transpilation_in_progress: boolean;
|
|
757
757
|
transpilation_logs: any[];
|
|
758
758
|
transpilation_is_stale: boolean;
|
|
759
|
-
circuit_json_build_display_status: "
|
|
759
|
+
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
760
760
|
circuit_json_build_in_progress: boolean;
|
|
761
761
|
circuit_json_build_logs: any[];
|
|
762
762
|
circuit_json_build_is_stale: boolean;
|
|
@@ -1061,12 +1061,12 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1061
1061
|
is_locked: boolean;
|
|
1062
1062
|
is_latest: boolean;
|
|
1063
1063
|
has_transpiled: boolean;
|
|
1064
|
-
display_status: "
|
|
1065
|
-
transpilation_display_status: "
|
|
1064
|
+
display_status: "error" | "pending" | "building" | "complete";
|
|
1065
|
+
transpilation_display_status: "error" | "pending" | "building" | "complete";
|
|
1066
1066
|
transpilation_in_progress: boolean;
|
|
1067
1067
|
transpilation_logs: any[];
|
|
1068
1068
|
transpilation_is_stale: boolean;
|
|
1069
|
-
circuit_json_build_display_status: "
|
|
1069
|
+
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
1070
1070
|
circuit_json_build_in_progress: boolean;
|
|
1071
1071
|
circuit_json_build_logs: any[];
|
|
1072
1072
|
circuit_json_build_is_stale: boolean;
|
package/dist/index.js
CHANGED
|
@@ -150,17 +150,17 @@ var packageReleaseSchema = z.object({
|
|
|
150
150
|
transpilation_error: z.string().nullable().optional(),
|
|
151
151
|
fs_sha: z.string().nullable().optional(),
|
|
152
152
|
// Build Status and Display
|
|
153
|
-
display_status: z.enum(["pending", "building", "
|
|
153
|
+
display_status: z.enum(["pending", "building", "complete", "error"]).default("pending"),
|
|
154
154
|
total_build_duration_ms: z.number().nullable().optional(),
|
|
155
155
|
// Transpilation Process
|
|
156
|
-
transpilation_display_status: z.enum(["pending", "building", "
|
|
156
|
+
transpilation_display_status: z.enum(["pending", "building", "complete", "error"]).default("pending"),
|
|
157
157
|
transpilation_in_progress: z.boolean().default(false),
|
|
158
158
|
transpilation_started_at: z.string().datetime().nullable().optional(),
|
|
159
159
|
transpilation_completed_at: z.string().datetime().nullable().optional(),
|
|
160
160
|
transpilation_logs: z.array(z.any()).default([]),
|
|
161
161
|
transpilation_is_stale: z.boolean().default(false),
|
|
162
162
|
// Circuit JSON Build Process
|
|
163
|
-
circuit_json_build_display_status: z.enum(["pending", "building", "
|
|
163
|
+
circuit_json_build_display_status: z.enum(["pending", "building", "complete", "error"]).default("pending"),
|
|
164
164
|
circuit_json_build_in_progress: z.boolean().default(false),
|
|
165
165
|
circuit_json_build_started_at: z.string().datetime().nullable().optional(),
|
|
166
166
|
circuit_json_build_completed_at: z.string().datetime().nullable().optional(),
|
|
@@ -359,7 +359,10 @@ var loadPackageWithDependencies = async (db, owner, name, loadedPackages = /* @_
|
|
|
359
359
|
});
|
|
360
360
|
db.addPackageRelease({
|
|
361
361
|
...release,
|
|
362
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
362
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
363
|
+
transpilation_logs: Array.isArray(release.transpilation_logs) ? release.transpilation_logs : [],
|
|
364
|
+
circuit_json_build_logs: Array.isArray(release.circuit_json_build_logs) ? release.circuit_json_build_logs : [],
|
|
365
|
+
transpilation_display_status: release.transpilation_display_status ?? "pending"
|
|
363
366
|
});
|
|
364
367
|
for (const file of files) {
|
|
365
368
|
db.addPackageFile({
|
package/dist/schema.d.ts
CHANGED
|
@@ -546,15 +546,15 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
546
546
|
has_transpiled: z.ZodDefault<z.ZodBoolean>;
|
|
547
547
|
transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
548
548
|
fs_sha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
549
|
-
display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "
|
|
549
|
+
display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
550
550
|
total_build_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
551
|
-
transpilation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "
|
|
551
|
+
transpilation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
552
552
|
transpilation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
553
553
|
transpilation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
554
554
|
transpilation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
555
555
|
transpilation_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
556
556
|
transpilation_is_stale: z.ZodDefault<z.ZodBoolean>;
|
|
557
|
-
circuit_json_build_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "
|
|
557
|
+
circuit_json_build_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
558
558
|
circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
559
559
|
circuit_json_build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
560
560
|
circuit_json_build_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -568,12 +568,12 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
568
568
|
is_locked: boolean;
|
|
569
569
|
is_latest: boolean;
|
|
570
570
|
has_transpiled: boolean;
|
|
571
|
-
display_status: "
|
|
572
|
-
transpilation_display_status: "
|
|
571
|
+
display_status: "error" | "pending" | "building" | "complete";
|
|
572
|
+
transpilation_display_status: "error" | "pending" | "building" | "complete";
|
|
573
573
|
transpilation_in_progress: boolean;
|
|
574
574
|
transpilation_logs: any[];
|
|
575
575
|
transpilation_is_stale: boolean;
|
|
576
|
-
circuit_json_build_display_status: "
|
|
576
|
+
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
577
577
|
circuit_json_build_in_progress: boolean;
|
|
578
578
|
circuit_json_build_logs: any[];
|
|
579
579
|
circuit_json_build_is_stale: boolean;
|
|
@@ -602,15 +602,15 @@ declare const packageReleaseSchema: z.ZodObject<{
|
|
|
602
602
|
has_transpiled?: boolean | undefined;
|
|
603
603
|
transpilation_error?: string | null | undefined;
|
|
604
604
|
fs_sha?: string | null | undefined;
|
|
605
|
-
display_status?: "
|
|
605
|
+
display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
606
606
|
total_build_duration_ms?: number | null | undefined;
|
|
607
|
-
transpilation_display_status?: "
|
|
607
|
+
transpilation_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
608
608
|
transpilation_in_progress?: boolean | undefined;
|
|
609
609
|
transpilation_started_at?: string | null | undefined;
|
|
610
610
|
transpilation_completed_at?: string | null | undefined;
|
|
611
611
|
transpilation_logs?: any[] | undefined;
|
|
612
612
|
transpilation_is_stale?: boolean | undefined;
|
|
613
|
-
circuit_json_build_display_status?: "
|
|
613
|
+
circuit_json_build_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
614
614
|
circuit_json_build_in_progress?: boolean | undefined;
|
|
615
615
|
circuit_json_build_started_at?: string | null | undefined;
|
|
616
616
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
@@ -925,15 +925,15 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
925
925
|
has_transpiled: z.ZodDefault<z.ZodBoolean>;
|
|
926
926
|
transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
927
927
|
fs_sha: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
928
|
-
display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "
|
|
928
|
+
display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
929
929
|
total_build_duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
930
|
-
transpilation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "
|
|
930
|
+
transpilation_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
931
931
|
transpilation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
932
932
|
transpilation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
933
933
|
transpilation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
934
934
|
transpilation_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
|
|
935
935
|
transpilation_is_stale: z.ZodDefault<z.ZodBoolean>;
|
|
936
|
-
circuit_json_build_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "
|
|
936
|
+
circuit_json_build_display_status: z.ZodDefault<z.ZodEnum<["pending", "building", "complete", "error"]>>;
|
|
937
937
|
circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
938
938
|
circuit_json_build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
939
939
|
circuit_json_build_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -947,12 +947,12 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
947
947
|
is_locked: boolean;
|
|
948
948
|
is_latest: boolean;
|
|
949
949
|
has_transpiled: boolean;
|
|
950
|
-
display_status: "
|
|
951
|
-
transpilation_display_status: "
|
|
950
|
+
display_status: "error" | "pending" | "building" | "complete";
|
|
951
|
+
transpilation_display_status: "error" | "pending" | "building" | "complete";
|
|
952
952
|
transpilation_in_progress: boolean;
|
|
953
953
|
transpilation_logs: any[];
|
|
954
954
|
transpilation_is_stale: boolean;
|
|
955
|
-
circuit_json_build_display_status: "
|
|
955
|
+
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
956
956
|
circuit_json_build_in_progress: boolean;
|
|
957
957
|
circuit_json_build_logs: any[];
|
|
958
958
|
circuit_json_build_is_stale: boolean;
|
|
@@ -981,15 +981,15 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
981
981
|
has_transpiled?: boolean | undefined;
|
|
982
982
|
transpilation_error?: string | null | undefined;
|
|
983
983
|
fs_sha?: string | null | undefined;
|
|
984
|
-
display_status?: "
|
|
984
|
+
display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
985
985
|
total_build_duration_ms?: number | null | undefined;
|
|
986
|
-
transpilation_display_status?: "
|
|
986
|
+
transpilation_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
987
987
|
transpilation_in_progress?: boolean | undefined;
|
|
988
988
|
transpilation_started_at?: string | null | undefined;
|
|
989
989
|
transpilation_completed_at?: string | null | undefined;
|
|
990
990
|
transpilation_logs?: any[] | undefined;
|
|
991
991
|
transpilation_is_stale?: boolean | undefined;
|
|
992
|
-
circuit_json_build_display_status?: "
|
|
992
|
+
circuit_json_build_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
993
993
|
circuit_json_build_in_progress?: boolean | undefined;
|
|
994
994
|
circuit_json_build_started_at?: string | null | undefined;
|
|
995
995
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
@@ -1593,12 +1593,12 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1593
1593
|
is_locked: boolean;
|
|
1594
1594
|
is_latest: boolean;
|
|
1595
1595
|
has_transpiled: boolean;
|
|
1596
|
-
display_status: "
|
|
1597
|
-
transpilation_display_status: "
|
|
1596
|
+
display_status: "error" | "pending" | "building" | "complete";
|
|
1597
|
+
transpilation_display_status: "error" | "pending" | "building" | "complete";
|
|
1598
1598
|
transpilation_in_progress: boolean;
|
|
1599
1599
|
transpilation_logs: any[];
|
|
1600
1600
|
transpilation_is_stale: boolean;
|
|
1601
|
-
circuit_json_build_display_status: "
|
|
1601
|
+
circuit_json_build_display_status: "error" | "pending" | "building" | "complete";
|
|
1602
1602
|
circuit_json_build_in_progress: boolean;
|
|
1603
1603
|
circuit_json_build_logs: any[];
|
|
1604
1604
|
circuit_json_build_is_stale: boolean;
|
|
@@ -1831,15 +1831,15 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1831
1831
|
has_transpiled?: boolean | undefined;
|
|
1832
1832
|
transpilation_error?: string | null | undefined;
|
|
1833
1833
|
fs_sha?: string | null | undefined;
|
|
1834
|
-
display_status?: "
|
|
1834
|
+
display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
1835
1835
|
total_build_duration_ms?: number | null | undefined;
|
|
1836
|
-
transpilation_display_status?: "
|
|
1836
|
+
transpilation_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
1837
1837
|
transpilation_in_progress?: boolean | undefined;
|
|
1838
1838
|
transpilation_started_at?: string | null | undefined;
|
|
1839
1839
|
transpilation_completed_at?: string | null | undefined;
|
|
1840
1840
|
transpilation_logs?: any[] | undefined;
|
|
1841
1841
|
transpilation_is_stale?: boolean | undefined;
|
|
1842
|
-
circuit_json_build_display_status?: "
|
|
1842
|
+
circuit_json_build_display_status?: "error" | "pending" | "building" | "complete" | undefined;
|
|
1843
1843
|
circuit_json_build_in_progress?: boolean | undefined;
|
|
1844
1844
|
circuit_json_build_started_at?: string | null | undefined;
|
|
1845
1845
|
circuit_json_build_completed_at?: string | null | undefined;
|
package/dist/schema.js
CHANGED
|
@@ -145,17 +145,17 @@ var packageReleaseSchema = z.object({
|
|
|
145
145
|
transpilation_error: z.string().nullable().optional(),
|
|
146
146
|
fs_sha: z.string().nullable().optional(),
|
|
147
147
|
// Build Status and Display
|
|
148
|
-
display_status: z.enum(["pending", "building", "
|
|
148
|
+
display_status: z.enum(["pending", "building", "complete", "error"]).default("pending"),
|
|
149
149
|
total_build_duration_ms: z.number().nullable().optional(),
|
|
150
150
|
// Transpilation Process
|
|
151
|
-
transpilation_display_status: z.enum(["pending", "building", "
|
|
151
|
+
transpilation_display_status: z.enum(["pending", "building", "complete", "error"]).default("pending"),
|
|
152
152
|
transpilation_in_progress: z.boolean().default(false),
|
|
153
153
|
transpilation_started_at: z.string().datetime().nullable().optional(),
|
|
154
154
|
transpilation_completed_at: z.string().datetime().nullable().optional(),
|
|
155
155
|
transpilation_logs: z.array(z.any()).default([]),
|
|
156
156
|
transpilation_is_stale: z.boolean().default(false),
|
|
157
157
|
// Circuit JSON Build Process
|
|
158
|
-
circuit_json_build_display_status: z.enum(["pending", "building", "
|
|
158
|
+
circuit_json_build_display_status: z.enum(["pending", "building", "complete", "error"]).default("pending"),
|
|
159
159
|
circuit_json_build_in_progress: z.boolean().default(false),
|
|
160
160
|
circuit_json_build_started_at: z.string().datetime().nullable().optional(),
|
|
161
161
|
circuit_json_build_completed_at: z.string().datetime().nullable().optional(),
|
|
@@ -123,6 +123,14 @@ const loadPackageWithDependencies = async (
|
|
|
123
123
|
db.addPackageRelease({
|
|
124
124
|
...release,
|
|
125
125
|
created_at: new Date().toISOString(),
|
|
126
|
+
transpilation_logs: Array.isArray(release.transpilation_logs)
|
|
127
|
+
? release.transpilation_logs
|
|
128
|
+
: [],
|
|
129
|
+
circuit_json_build_logs: Array.isArray(release.circuit_json_build_logs)
|
|
130
|
+
? release.circuit_json_build_logs
|
|
131
|
+
: [],
|
|
132
|
+
transpilation_display_status:
|
|
133
|
+
release.transpilation_display_status ?? "pending",
|
|
126
134
|
})
|
|
127
135
|
|
|
128
136
|
for (const file of files) {
|
|
@@ -178,13 +178,13 @@ export const packageReleaseSchema = z.object({
|
|
|
178
178
|
fs_sha: z.string().nullable().optional(),
|
|
179
179
|
// Build Status and Display
|
|
180
180
|
display_status: z
|
|
181
|
-
.enum(["pending", "building", "
|
|
181
|
+
.enum(["pending", "building", "complete", "error"])
|
|
182
182
|
.default("pending"),
|
|
183
183
|
total_build_duration_ms: z.number().nullable().optional(),
|
|
184
184
|
|
|
185
185
|
// Transpilation Process
|
|
186
186
|
transpilation_display_status: z
|
|
187
|
-
.enum(["pending", "building", "
|
|
187
|
+
.enum(["pending", "building", "complete", "error"])
|
|
188
188
|
.default("pending"),
|
|
189
189
|
transpilation_in_progress: z.boolean().default(false),
|
|
190
190
|
transpilation_started_at: z.string().datetime().nullable().optional(),
|
|
@@ -194,7 +194,7 @@ export const packageReleaseSchema = z.object({
|
|
|
194
194
|
|
|
195
195
|
// Circuit JSON Build Process
|
|
196
196
|
circuit_json_build_display_status: z
|
|
197
|
-
.enum(["pending", "building", "
|
|
197
|
+
.enum(["pending", "building", "complete", "error"])
|
|
198
198
|
.default("pending"),
|
|
199
199
|
circuit_json_build_in_progress: z.boolean().default(false),
|
|
200
200
|
circuit_json_build_started_at: z.string().datetime().nullable().optional(),
|
package/package.json
CHANGED
|
@@ -8,9 +8,9 @@ export const getColorForDisplayStatus = (
|
|
|
8
8
|
return "bg-yellow-500"
|
|
9
9
|
case "building":
|
|
10
10
|
return "bg-blue-500"
|
|
11
|
-
case "
|
|
11
|
+
case "complete":
|
|
12
12
|
return "bg-green-500"
|
|
13
|
-
case "
|
|
13
|
+
case "error":
|
|
14
14
|
return "bg-red-500"
|
|
15
15
|
}
|
|
16
16
|
return "bg-gray-500"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Globe,
|
|
2
|
-
import { Badge } from "@/components/ui/badge"
|
|
1
|
+
import { Globe, Clock } from "lucide-react"
|
|
3
2
|
import { useCurrentPackageRelease } from "@/hooks/use-current-package-release"
|
|
4
3
|
import { useParams } from "wouter"
|
|
5
4
|
import { timeAgo } from "@/lib/utils/timeAgo"
|
|
@@ -17,9 +16,9 @@ function getColorFromDisplayStatus(
|
|
|
17
16
|
return "bg-yellow-500"
|
|
18
17
|
case "building":
|
|
19
18
|
return "bg-blue-500"
|
|
20
|
-
case "
|
|
19
|
+
case "complete":
|
|
21
20
|
return "bg-green-500"
|
|
22
|
-
case "
|
|
21
|
+
case "error":
|
|
23
22
|
return "bg-red-500"
|
|
24
23
|
}
|
|
25
24
|
}
|