Write the site in US English

color, center, canceled, labeled, recognize and the rest, in UI
text, help text, comments, docs and names (ColorInput, QrCenter).
Migration 053 renames the two Site settings color CHECKs, whose
names are the messages the admin shows. Kept: events.status's
stored value 'cancelled' (shown as canceled), aria-labelledby,
schema.org's EventCancelled, and old migrations as they ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 13:23:56 -05:00
parent 38aff34c97
commit 2ad65cdc15
60 changed files with 182 additions and 148 deletions

View file

@ -83,7 +83,7 @@ export const events = {
label: "Type",
options: ["retreat", "class", "workshop", "meeting", "other"],
},
{ key: "status", label: "Status", options: ["upcoming", "past", "cancelled"] },
{ key: "status", label: "Status", options: ["upcoming", "past", ["cancelled", "canceled"]] },
{ key: "is_published", label: "Published", options: [["1", "Live"], ["0", "Hidden"]] },
{ key: "is_listed", label: "Listed", options: [["1", "Listed"], ["0", "Link only"]] },
],
@ -128,7 +128,7 @@ export const events = {
path: "status",
label: "Status",
widget: "select",
options: ["upcoming", "past", "cancelled"],
options: ["upcoming", "past", ["cancelled", "canceled"]],
blankLabel: "Default: derive from end date",
},
{
@ -146,7 +146,7 @@ export const events = {
fields: [
{ path: "event_logo", label: "Event logo", widget: "image", folder: "logos", resolve: mediaUrl, full: true },
{ path: "org_logo", label: "Org logo override", widget: "image", folder: "logos", resolve: mediaUrl, full: true },
{ path: "color", label: "Colour", widget: "color" },
{ path: "color", label: "Color", widget: "color" },
{
path: "card_image",
label: "Card background",

View file

@ -55,7 +55,7 @@ export const frontPage = {
label: "Background",
widget: "select",
options: [
["brand", "Brand: animated colour and the dove"],
["brand", "Brand: animated color and the dove"],
["photos", "Photos: cycles through the photos below"],
],
blankLabel: "Default: brand",

View file

@ -41,7 +41,7 @@ export const organizations = {
{ path: "name", label: "Name", required: true },
{ path: "short_name", label: "Short name" },
{ path: "tagline", label: "Tagline", full: true },
{ path: "color", label: "Colour", widget: "color" },
{ path: "color", label: "Color", widget: "color" },
{ path: "logo", label: "Logo", widget: "image", folder: "logos", resolve: mediaUrl, full: true },
],
},

View file

@ -228,10 +228,10 @@ export const linksChild = {
organization or a person, never both, which the CHECK on
event_hosts enforces and this form can only ask nicely about.
The first row supplies the logo and colour when the event sets
The first row supplies the logo and color when the event sets
neither, so the order here is data rather than a display choice.
A person supplies neither: there is no colour on a person and a
headshot is not a logo, so a person-hosted event with no colour
A person supplies neither: there is no color on a person and a
headshot is not a logo, so a person-hosted event with no color
of its own falls through to the section default. */
export const hostsChild = {
key: "event_hosts",

View file

@ -12,7 +12,7 @@ const SITE_PAGES: [string, string][] = Object.entries(siteConfiguration.pages).m
/* The palette an admin can change, in the order the dropdown lists
it: token and label. The defaults come from the server's list
(server/src/themeDefaults.js), which the build checks against
src/index.css, so there's one copy of each colour to change. */
src/index.css, so there's one copy of each color to change. */
const THEME_LABELS: [string, string][] = [
["ink", "Headings"],
["body", "Body text"],
@ -162,15 +162,15 @@ export const siteSettings = {
children: [
{
key: "colors",
label: "Colours",
note: "Change any of the site's colours, for light mode, dark mode or both; a blank keeps the default. Saving refuses a palette that would make text hard to read (under 4.5:1). Changes show on the next page load.",
addLabel: "Change a colour",
title: (row) => THEME_COLORS.find(([token]) => token === row.token)?.[1] ?? "New colour",
label: "Colors",
note: "Change any of the site's colors, for light mode, dark mode or both; a blank keeps the default. Saving refuses a palette that would make text hard to read (under 4.5:1). Changes show on the next page load.",
addLabel: "Change a color",
title: (row) => THEME_COLORS.find(([token]) => token === row.token)?.[1] ?? "New color",
blank: { token: "", light: "", dark: "" },
fields: [
{
path: "token",
label: "Colour",
label: "Color",
widget: "select",
options: THEME_COLORS.map(([token, label]) => [token, label]),
required: true,

View file

@ -46,7 +46,7 @@ export const teams = {
},
{ path: "name", label: "Name", required: true, help: "Board, Leadership Team" },
{ path: "tagline", label: "Tagline", full: true },
{ path: "color", label: "Colour", widget: "color" },
{ path: "color", label: "Color", widget: "color" },
{ path: "logo", label: "Logo", widget: "image", folder: "logos", resolve: mediaUrl, full: true },
],
},