feat(studio): recover matching Nitro sources and persist import phases
This commit is contained in:
1 parent
00e33623f7
commit
13bd3695cb
45 files changed
+903
-28
No files matched your search
@@ -1,4 +1,14 @@
|
||||
import type { SourceFurni } from "@/lib/services/clone-import";
|
||||
export const IMPORT_PHASES = [
|
||||
"validating",
|
||||
"downloading",
|
||||
"converting",
|
||||
"checking_sources",
|
||||
"writing_db",
|
||||
"writing_furnidata",
|
||||
"translating",
|
||||
] as const;
|
||||
export type ImportPhase = (typeof IMPORT_PHASES)[number];
|
||||
export interface ImportJobItem {
|
||||
id: number;
|
||||
classname: string;
|
||||
@@ -34,6 +44,14 @@ export interface ImportJob {
|
||||
| "failed"
|
||||
| "cancelled"
|
||||
| "interrupted";
|
||||
phase?: ImportPhase;
|
||||
phaseStartedAt?: string;
|
||||
sourceAttempt?: string;
|
||||
recoveredSource?: {
|
||||
sourceId: string;
|
||||
sourceName: string;
|
||||
revision: number;
|
||||
};
|
||||
error?: string;
|
||||
warnings?: string[];
|
||||
itemId?: number;
|
||||
|
||||
Reference in new issue
Block a user