// The shape of a Settings ยท system action's plan (lib/system/actions.ts), shared // with the client's ActionPlan. Types only: safe for a client component. /** One thing the action touches: a project, a directory, an index record. */ export type PlanRow = { label: string; what?: string; state?: string; bytes?: number; files?: number }; export type ActionPlanView = { /** The action as the CLI would say it (`storage move-out reports/x`). */ action: string; title: string; /** One or two sentences: what happens, how big, that it is a job. */ summary: string; rows: PlanRow[]; /** Why it cannot run now. Any refusal blocks the confirm. */ refusals: string[]; /** Worth knowing; does not block. */ warnings: string[]; /** The confirm button's words ("Move out", "Drop 2 records"). */ confirm: string; /** It runs as a umtool job (in the rail's Running list). */ job: boolean; /** Nothing to do, or refused: the confirm is not offered. */ blocked: boolean; }; /** A confirm's answer. */ export type ActionAnswer = { applied: true; message: string; job?: { id: string; kind: string; state: string } };