refactor: undo feature cover every single part of editor

This commit is contained in:
taDuc
2026-05-23 12:23:01 +07:00
parent 3b4ff71b9a
commit 282b365287
47 changed files with 2184 additions and 3311 deletions
+5 -3
View File
@@ -1,3 +1,5 @@
import type { EditorSnapshot } from "@/uhm/types/projects";
export interface Project {
id: string;
title: string;
@@ -14,9 +16,9 @@ export interface Project {
display_name: string;
avatar_url: string;
};
commits?: any[];
commits?: unknown[];
// Legacy (old BE): submission_ids
submission_ids?: any[];
submission_ids?: string[];
// New BE: lightweight submissions list on project response
submissions?: Array<{ id: string; status: string }>;
members?: ProjectMember[];
@@ -63,7 +65,7 @@ export interface GetProjectsParams {
}
export interface CreateCommitPayload {
edit_summary: string;
snapshot_json: number[];
snapshot_json: EditorSnapshot;
}
export interface RestoreCommitPayload {
commit_id: string;