Skip to content

fix(model): rename JournalPageType.attachement to attachment #221

Description

@pajoma

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions