mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
fix(edit): balance id unions when a record is deleted
Deleting a record in edit mode removed the structure row and its text but left the id union member in src/types/index.ts, so Record<SkillGroupId, SkillGroupText> rejected the shortened text document (TS2741) and pnpm build failed. draft.ts: readUnionBlock reads a union as its declaration span (CRLF/LF safe, never round-trips), diffIdsWithUnions reports missing and stale members against committedStructures(), applyUnionChanges rewrites only that member list in one PUT; newIdsInCommitted/patchUnionSource removed. types/index.ts drops logistics-technology. Verified: smoke-draft 12/12 (new checks 9-12), validate:content, lint (no new warnings), build.
This commit is contained in:
1 parent
a0a1451272
commit
150ef90c73
8 files changed
+235
-41
No files matched your search
@@ -33,7 +33,6 @@ export type ExperienceId =
|
||||
export type SkillGroupId =
|
||||
| 'software-engineering'
|
||||
| 'system-architecture'
|
||||
| 'logistics-technology'
|
||||
| 'ai-ml'
|
||||
| 'infrastructure'
|
||||
| 'engineering-practices';
|
||||
|
||||
Reference in new issue
Block a user