Problem (Domain Model Distortion)
The JournalPageType enum uses the misspelled member attachement (with an extra 'e'). This typo has leaked into multiple files and comments across the codebase.
Consequence
Code that mismatches standard language forces mental translation and increases cognitive load. Maintaining typos in the core domain model makes the codebase feel unpolished and can lead to confusion during search/replace operations.
Remedy
Rename JournalPageType.attachement to JournalPageType.attachment across the entire project.
In Scope
- Update enum definition in
src/model/config.ts
- Update all consumers (e.g.,
src/journal/paths.ts, src/features/entries/scan-entries.ts)
- Update all test files and assertions
- Update documentation and comments
Related
Problem (Domain Model Distortion)
The
JournalPageTypeenum uses the misspelled memberattachement(with an extra 'e'). This typo has leaked into multiple files and comments across the codebase.Consequence
Code that mismatches standard language forces mental translation and increases cognitive load. Maintaining typos in the core domain model makes the codebase feel unpolished and can lead to confusion during search/replace operations.
Remedy
Rename
JournalPageType.attachementtoJournalPageType.attachmentacross the entire project.In Scope
src/model/config.tssrc/journal/paths.ts,src/features/entries/scan-entries.ts)Related