src/features/reviews/save-status-label.ts
Linked repository file from this build.
/** Where the open review stands relative to the database. */
export type SaveStatus =
| "loading"
| "saved"
| "unsaved"
| "saving"
| "save_failed"
| "load_failed"
| "conflict"
| "refused";
export const saveStatusLabels: Record<SaveStatus, string> = {
loading: "Loading saved review…",
saved: "Saved to database",
unsaved: "Unsaved changes",
saving: "Saving…",
save_failed: "Save failed",
load_failed: "Load failed",
conflict: "Conflict. Server copy loaded",
refused: "Changes refused. Server copy loaded",
};