docs(CLAUDE): derived-achievements pattern, FR24 cabin-code gotcha, internal-split example #27

Closed
ronnyandre wants to merge 0 commits from docs/claude-md into main
Owner

Surgical additions to CLAUDE.md for patterns introduced by recent merges (PR #24 cabin fix, PR #26 achievements). The file was already comprehensive — this only adds what's new and non-obvious; nothing removed.

  • New critical pattern #10 — "Achievements & 'firsts' are derived, never stored": the load-bearing rule behind src/lib/achievements.ts (computed by query so imports / edits / reorders stay correct), plus createFlight's tailCallback + earnedFirsts return.
  • §8 — adds _achievements-internal.ts as a second worked example of the client-bundle split.
  • Conventions — documents the FR24 cabin-code gotcha (Flight class is NOT rank-ordered: 4 = premium_economy), with a pointer to the db:fix:fr24-cabin repair script.
  • Testing bullet — adds airline-match and achievements to the tested pure-modules list.

Deliberately left the top "Reference docs" list alone — the two new plan docs live on the still-open docs PR (#25), so referencing them here would dangle until that merges.

Surgical additions to CLAUDE.md for patterns introduced by recent merges (PR #24 cabin fix, PR #26 achievements). The file was already comprehensive — this only adds what's new and non-obvious; nothing removed. - **New critical pattern #10** — "Achievements & 'firsts' are derived, never stored": the load-bearing rule behind `src/lib/achievements.ts` (computed by query so imports / edits / reorders stay correct), plus `createFlight`'s `tailCallback` + `earnedFirsts` return. - **§8** — adds `_achievements-internal.ts` as a second worked example of the client-bundle split. - **Conventions** — documents the FR24 cabin-code gotcha (`Flight class` is NOT rank-ordered: `4 = premium_economy`), with a pointer to the `db:fix:fr24-cabin` repair script. - **Testing bullet** — adds `airline-match` and `achievements` to the tested pure-modules list. Deliberately left the top "Reference docs" list alone — the two new plan docs live on the still-open docs PR (#25), so referencing them here would dangle until that merges.
ronnyandre closed this pull request 2026-11-17 12:04:04 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ronnyandre/fliary!27
No description provided.