Commit graph

1 commit

Author SHA1 Message Date
Zaldimmar
e35d09b172 Add a guide to updating data that isn't in the database
docs/updating-data-in-code.md covers content that lives in code
rather than SQLite and how to change it:

- The two kinds of admin dropdown: filled from records
  (optionsFrom, change the record) and fixed lists (options, in
  adminSchema.ts), and that a bare-string option shows its stored
  value while a [value, label] pair shows the label.
- Relabelling a dropdown is adminSchema.ts alone; adding, removing
  or renaming a stored value is a migration, both descriptor halves
  and whatever the public site renders it with.
- A table of every dropdown in the editor, where its values and
  labels live, and what on the public site depends on them.
- The front page's three kinds of "section name" (the heading the
  admin sets, the dropdown label, the subnav link) and stat sources.
- Every other piece of code-owned content: nav, page section
  manifests, banner, history decades, map grid, feedback types,
  public label maps, roles, SITE_ORIGIN.

CLAUDE.md points at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:44:35 -05:00