NGU-Web/src/lib
Zaldimmar 54bf649b8d Tidy the admin editor's text: previews, blank options, no em-dashes
Your wording pass on adminSchema.ts and fields.tsx: "Default: ..."
blank options, "eg." examples, "URL ID" for slugs, and relabelled
front page sections, stat sources and hero fields.

On top of it:

- Content block row titles end with an ellipsis when the paragraph
  is cut. preview() in src/lib/text.ts does it for anything that
  shortens text: it collapses whitespace, cuts on a word and adds
  "..." only when it actually shortened.
- No em-dashes in the editor, front end or server: placeholders
  ("Internal note: ..."), the Organizations blurb, the URL ID help,
  empty table cells (now "-"), the Award dropdown ("Torch Award
  (NGU)" in OPTION_QUERIES), a boot error message, and every comment
  in the admin files. Also cleared from the files added this branch
  (QR page, directory route, embeds, hero, migration 024), and the
  QR page's team labels read "Board (NGU)".
- A few comments where removing the dash had run two sentences
  together get a comma, colon or parentheses back.
- docs/updating-data-in-code.md matches the new labels and gains a
  "Writing text in the editor" section with these conventions;
  CLAUDE.md lists them under Rules and gotchas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:38:24 -05:00
..
adminSchema.ts Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
adminTitle.tsx Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
api.ts Convert src/ JavaScript modules to TypeScript 2026-09-26 15:39:42 -05:00
auth.tsx Convert src/ JavaScript modules to TypeScript 2026-09-26 15:39:42 -05:00
embeds.ts Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
eventSeries.ts Add a reusable event calendar and put it on the front page 2026-09-25 06:28:42 -05:00
eventTypes.ts Clean up the schema: drop unused tables, rename scopes, publishable awards 2026-09-26 17:09:58 -05:00
hrefs.ts Convert src/ JavaScript modules to TypeScript 2026-09-26 15:39:42 -05:00
media.ts Add a featured video mode to the front page hero 2026-09-26 17:55:51 -05:00
qr.ts Add a QR code page at /qr for any page on the site 2026-09-26 18:24:08 -05:00
roles.ts Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
sections.tsx Revert the implicit-any typing of src/ 2026-09-26 15:32:28 -05:00
site.ts Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
text.ts Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
timeline.ts Convert src/ JavaScript modules to TypeScript 2026-09-26 15:39:42 -05:00
timelineRefs.ts v1.5 - history and timeline as well as many datastructure updates added, polished, fixes 2026-09-25 02:38:51 -05:00
useContent.ts Add a QR code page at /qr for any page on the site 2026-09-26 18:24:08 -05:00
useFrontPage.ts Tidy the admin editor's text: previews, blank options, no em-dashes 2026-09-26 19:38:24 -05:00
useHistory.ts Convert src/ JavaScript modules to TypeScript 2026-09-26 15:39:42 -05:00
useRecord.ts Convert src/ JavaScript modules to TypeScript 2026-09-26 15:39:42 -05:00
useResource.ts Convert src/ JavaScript modules to TypeScript 2026-09-26 15:39:42 -05:00
version.ts v1.5 - history and timeline as well as many datastructure updates added, polished, fixes 2026-09-25 02:38:51 -05:00