Docs: refresh CLAUDE.md (duration helper, tests, backups, pagination) #16

Merged
ronnyandre merged 1 commit from docs/claude-md-updates into main 2026-06-03 11:01:21 +02:00
Owner

From /init review — targeted CLAUDE.md improvements reflecting work that merged this session (no rewrite).

  • Date-format convention now points at the shared durationMinutesBetween() (src/lib/duration.ts) used by both the create and FR24-import paths, so future edits dont re-inline the timezone math.
  • New Testing convention — the suite is pure-module unit tests only (no DB harness); explains why bug-prone logic is extracted into src/lib/ and how to run one test file.
  • New Flight-list pagination convention — documents the listFlights keyset cursor signature ({cursor,limit} → {rows,nextCursor}) and "dont use OFFSET".
  • Commands — add pnpm db:backup; note migrate.mjs takes a pre-migration snapshot.
  • Prettier normalized a few pre-existing *emphasis* markers (mains CLAUDE.md was already prettier-dirty).

Docs-only.

From `/init` review — targeted CLAUDE.md improvements reflecting work that merged this session (no rewrite). - **Date-format convention** now points at the shared `durationMinutesBetween()` (`src/lib/duration.ts`) used by both the create and FR24-import paths, so future edits dont re-inline the timezone math. - **New Testing convention** — the suite is pure-module unit tests only (no DB harness); explains *why* bug-prone logic is extracted into `src/lib/` and how to run one test file. - **New Flight-list pagination convention** — documents the `listFlights` keyset cursor signature (`{cursor,limit}` → `{rows,nextCursor}`) and "dont use OFFSET". - **Commands** — add `pnpm db:backup`; note `migrate.mjs` takes a pre-migration snapshot. - Prettier normalized a few pre-existing `*emphasis*` markers (mains CLAUDE.md was already prettier-dirty). Docs-only.
- Date-format convention now points at the shared durationMinutesBetween()
  helper (src/lib/duration.ts) used by both the create and FR24-import paths.
- New Testing convention: pure-module unit tests only (no DB harness) — why
  bug-prone logic is extracted into src/lib/ and how to run a single test.
- New Flight-list pagination convention: listFlights keyset cursor signature.
- Commands: add db:backup; note migrate.mjs takes a pre-migration snapshot.
- (prettier normalized a few pre-existing *emphasis* markers)
ronnyandre deleted branch docs/claude-md-updates 2026-06-03 11:01:22 +02:00
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!16
No description provided.