From f37c093dc04e83f310557d19b560eec8b3a087d3 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Wed, 30 Sep 2026 15:40:04 -0500 Subject: [PATCH 001/149] Overhaul fixes: vertical parallax backdrop, bracket notices, list-framed people tiles - Backdrop: two slow circles fixed to the window drift up as the page scrolls (a scroll-driven animation), three sit down the page and travel with their sections; tones still change per section. - Notices are two corner brackets, no box or fill. - People tiles: the frame is the list's, and details open right under the tile, closing on Escape or a click elsewhere. - Featured cards and the connect section: 4px rules; video frames inset from the card edge. - Calendar weekday row is a solid bar; History decade numerals are tags on the rail instead of a white box. - Region and partner buttons say Request; the region list's group count is gone. Co-Authored-By: Claude Opus 5.5 --- src/components/FeaturedCards.tsx | 11 ++-- src/components/Layout.tsx | 2 +- src/components/PageBackdrop.css | 73 ++++++++++++++++++------- src/components/PageBackdrop.tsx | 31 ++++++++--- src/components/PeopleTiles.css | 47 ++++++++++++++-- src/components/PeopleTiles.tsx | 57 ++++++++++++++++--- src/index.css | 31 +++++++++-- src/pages/Community.tsx | 4 +- src/pages/sections/EventCalendar.tsx | 7 ++- src/pages/sections/OrgList-Vertical.tsx | 16 +----- src/pages/sections/history/timeline.css | 24 +++++--- src/pages/sections/home/Pathfinder.tsx | 6 +- 12 files changed, 228 insertions(+), 81 deletions(-) diff --git a/src/components/FeaturedCards.tsx b/src/components/FeaturedCards.tsx index c0fc3dc..d7112c5 100644 --- a/src/components/FeaturedCards.tsx +++ b/src/components/FeaturedCards.tsx @@ -20,7 +20,7 @@ The grid is one continuous block: no gaps and no frame, only a colored rule between cards (each card's right and bottom border, with the grid pulled past its clipping wrapper so the outer ones - fall outside). With three or more cards the first is the large + fall outside), 4px thick. With three or more cards the first is the large one, two rows tall, and the next two stack beside it, so it no longer stretches its neighbor. ═══════════════════════════════════════════════════════════════ */ @@ -112,14 +112,15 @@ function Card({ card, large }: { card: FeaturedCard; large: boolean }) { return (
  • {card.kind === 'video' ? ( // Above the stretched link, which a video card doesn't have - // anyway, so the play button always gets the click. -
    + // anyway, so the play button always gets the click. Inset + // from the card's edges, so the frame sits inside the cell. +
    ) : ( @@ -134,7 +135,7 @@ export default function FeaturedCards({ cards }: { cards: FeaturedCard[] }) { const leadLarge = cards.length >= 3 return (
    -
    - {open && ( + {open && !anchored && ( { - setOpenKey(null); - onExpand?.(null, null); - }} + onClose={closePanel} /> )}
    @@ -662,13 +689,27 @@ function DetailPanel({ id, person, group, + anchored = false, onClose, }: { id: string; person: Person; group: PeopleGroup; + anchored?: boolean; onClose: () => void; }) { + const panelRef = useRef(null); + const [alignEnd, setAlignEnd] = useState(false); + + // Under the tile, starting at its left edge unless that would run + // off the right of the screen; then ending at its right edge. + useLayoutEffect(() => { + if (!anchored || !panelRef.current) return; + const tile = panelRef.current.parentElement?.getBoundingClientRect(); + const width = panelRef.current.offsetWidth; + if (tile) setAlignEnd(tile.left + width > document.documentElement.clientWidth - 16); + }, [anchored]); + const org = resolveOrg(person.org); const title = titleOf(person); const paragraphs = Array.isArray(person.bio) ? person.bio : [person.bio]; @@ -677,8 +718,10 @@ function DetailPanel({ return (
    -
    + {/* The weekday row: a solid bar in the button color, so the + grid has a clear head. */} +
    {WEEKDAYS.map((day) => (
    {day}
    diff --git a/src/pages/sections/OrgList-Vertical.tsx b/src/pages/sections/OrgList-Vertical.tsx index 6a4622a..18ed850 100644 --- a/src/pages/sections/OrgList-Vertical.tsx +++ b/src/pages/sections/OrgList-Vertical.tsx @@ -36,9 +36,9 @@ import { accentText } from '../../lib/color.ts' groupBy={org => org.details?.scope} /> - Kind-specific extras (the areas a region covers, the groups - inside it) come from `details` and render only when present, so - a partner row simply doesn't have them. + Kind-specific extras (the areas a region covers, its map note) + come from `details` and render only when present, so a partner + row simply doesn't have them. ═══════════════════════════════════════════════════════════════ */ const MUTED = "var(--color-muted)"; @@ -88,7 +88,6 @@ function OrgRow({ org, pageLabel, siteLabel }) { // Region extras. Absent for every other kind, and the JSX below // skips them rather than rendering empty headings. const areas = areasSentence(org.details?.areas ?? []); - const groupCount = (org.details?.groups ?? []).length; const note = org.details?.map_note; /* Collapsed, a row says who it is and nothing else, the areas @@ -124,15 +123,6 @@ function OrgRow({ org, pageLabel, siteLabel }) { )} - {groupCount > 0 && ( - 1 ? "s" : ""}`} - > - {groupCount} - - )}
    diff --git a/src/pages/sections/history/timeline.css b/src/pages/sections/history/timeline.css index 95305fe..3c73c36 100644 --- a/src/pages/sections/history/timeline.css +++ b/src/pages/sections/history/timeline.css @@ -80,25 +80,33 @@ padding-block-start: 0.5rem; } -/* Numeral breaks the rail. */ +/* The numeral is a tag on the rail: a dark block with white type, + centered on the line, so the rail runs into it and out again. + (It used to paint the page's color to hide the rail behind it, + which showed as a white box once sections went transparent.) */ .site-tl__decadeNum { position: relative; z-index: 1; - margin-left: calc(var(--tl-rail-x) * -1 + 0.125rem); - padding-block: 0.35rem; - background: var(--tl-surface); + justify-self: start; + width: fit-content; + margin-left: calc(var(--tl-rail-x) + (var(--tl-rail-w) / 2)); + transform: translateX(-50%); + padding: 0.5rem 0.3rem; + background: var(--color-action); + color: #ffffff; + font-family: var(--font-display); font-size: 0.9375rem; - font-weight: 650; + font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; line-height: 1.1; writing-mode: vertical-rl; text-orientation: sideways; - color: color-mix(in srgb, var(--tl-accent) var(--accent-text-mix), #fff); } .site-tl__decade--pre .site-tl__decadeNum { - color: var(--tl-faint); + background: var(--color-tint); + color: var(--color-muted); } .site-tl__decadeTitle { @@ -132,8 +140,8 @@ align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; - background: var(--color-tint-soft); border-left: 3px solid var(--tl-rail); + border-bottom: 3px solid var(--tl-rail); font-size: 0.8125rem; color: var(--tl-faint); } diff --git a/src/pages/sections/home/Pathfinder.tsx b/src/pages/sections/home/Pathfinder.tsx index 71f4bf1..a246398 100644 --- a/src/pages/sections/home/Pathfinder.tsx +++ b/src/pages/sections/home/Pathfinder.tsx @@ -97,8 +97,8 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) } // A cell's rules: right and bottom, the outer ones clipped off - // by the wrapper (the grid runs 2px past it). - const cell = 'border-r-2 border-b-2 border-brand' + // by the wrapper (the grid runs 4px past it). + const cell = 'border-r-4 border-b-4 border-brand' const panelFill = `color-mix(in srgb, ${accent} 12%, var(--color-surface))` return ( @@ -108,7 +108,7 @@ export default function Pathfinder({ id, title, blurb, paths }: PathfinderProps) {blurb &&

    {blurb}

    }
    -
    +
    Date: Wed, 30 Sep 2026 15:40:51 -0500 Subject: [PATCH 002/149] Version v1.10.1 Co-Authored-By: Claude Opus 5.5 --- src/lib/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/version.ts b/src/lib/version.ts index 63c494a..00488f9 100644 --- a/src/lib/version.ts +++ b/src/lib/version.ts @@ -7,4 +7,4 @@ box or a build banner can read the same value later. ═══════════════════════════════════════════════════════════════ */ -export const SITE_VERSION = "NGU-Web.v1.10.0"; +export const SITE_VERSION = "NGU-Web.v1.10.1"; From a397f3eac0e5a2378416b78e7d4ffd5822e208e5 Mon Sep 17 00:00:00 2001 From: Zaldimmar Date: Wed, 30 Sep 2026 16:24:36 -0500 Subject: [PATCH 003/149] Overhaul fixes: raised cards, balanced people rows, solid map, small button radius - Cards sit on a raised surface (white, or a touch of tint in dark mode) with a shadow: featured cards, the connect block, people tiles. tint-soft is a faint teal again, not green. - Buttons: a small plain radius everywhere; no superellipse. - Video stills use YouTube's 16:9 frame (the 4:3 one cropped as a fallback), have small rounded corners, and show a round, centered play button on hover or focus (always on touch screens). - People tiles: rows balanced between 2 and 10 across, never ending on a lone tile where it can be helped. - Map tiles and region tags are solid, dimmed by color, not opacity. - Admin: white (surface) background, header and footer as wide as the content. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- server/src/themeDefaults.js | 2 +- src/components/FeaturedCards.tsx | 4 +- src/components/PeopleTiles.css | 31 ++++++++++++++- src/components/PeopleTiles.tsx | 51 ++++++++++++++++++++++++- src/components/VideoPlayer.tsx | 33 ++++++++++------ src/index.css | 44 +++++++++++++-------- src/lib/embeds.ts | 5 ++- src/pages/admin/AdminLayout.tsx | 15 +++++--- src/pages/sections/OrgList-Map.tsx | 32 ++++++++-------- src/pages/sections/history/timeline.css | 1 - src/pages/sections/home/Pathfinder.tsx | 6 +-- 12 files changed, 165 insertions(+), 61 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 82a149f..24281e0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -72,7 +72,7 @@ In dev, Vite proxies `/api` to the target set in `vite.config.ts`, so the API mu - **Colors are tokens, not hex.** Admins can override any token (Panel → Site settings → Colors). The defaults are `server/src/themeDefaults.js` plus the same values as CSS in `src/index.css`; the build fails if they differ (`themeDefaultsCheck` in `vite.config.ts`), and migration 041's CHECK lists the token names. Use the utilities from `src/index.css` (`text-ink`, `text-body`, `text-muted`, `text-link`, `bg-surface`, `bg-tint`, `bg-action`, `border-brand/20`...) so dark mode works; a literal only for something that must look the same in both modes (white on a dark band, a platform's color). Data colors (accents, event and region colors) go through `withAlpha`, `accentText` and `readableOn` in `src/lib/color.ts`, never `${color}55`. - **Icons are Phosphor** (`@phosphor-icons/react`), weight `bold` (or `fill` for play/star). No hand-drawn `` icons and no Unicode glyphs as icons (× › ▶ →). Brand marks are the exception: `DoveMark`, `PlatformIcon`, the Google logo, the group map. - **Accents come from `src/lib/color.ts`:** `BRAND` (the teal, via the button token so the admin palette reaches it) and `ACCENTS` (deep, green, olive), all from `PALETTE` (the site's 16-color grid). Not a new hex in a page. -- **No rounded corners.** Everything is square except buttons, which use the `btn` utility (Poppins Bold, a superellipse via `corner-shape`; `var(--btn-radius)` in plain CSS), and things round by nature (dots, radio marks). A note in place of content (empty section, "coming soon") uses the `notice` utility, not a dashed border. Nothing glows: no blur blobs, no glow shadows. +- **Corners: square.** Everything is square except buttons, which use the `btn` utility (Poppins Bold, a small `var(--btn-radius)` corner, also for plain CSS), video players (small rounded) and things round by nature (dots, radio marks, the play button). A note in place of content (empty section, "coming soon") uses the `notice` utility (corner brackets), not a dashed border. Cards sit on `bg-raised` with a shadow so they stand off the page. Nothing glows: no blur blobs, no glow shadows. - **Sections paint no background.** `PageBackdrop` (in Layout) draws the page's palette circles behind every public page; a band that needs its own color (the hero, the stats band, the footer) is a deliberate exception. - **No em-dashes** (U+2014) anywhere: UI text, help text, comments, docs, commit messages. Use a colon, comma or parentheses. An empty table cell shows `-`. - **Admin editor text:** blank select options read `Default: …` (what blank means), examples in help text start with `eg.`, and record ids are called "URL ID". Cut-off preview text uses `preview()` from `src/lib/text.ts`, which ends it with an ellipsis. See `docs/updating-data-in-code.md`. diff --git a/server/src/themeDefaults.js b/server/src/themeDefaults.js index aa44680..ac94cab 100644 --- a/server/src/themeDefaults.js +++ b/server/src/themeDefaults.js @@ -23,7 +23,7 @@ export const THEME_DEFAULTS = { "action-hover": ["#001011", "#004552"], surface: ["#fcfffd", "#001011"], tint: ["#c2f6ff", "#004552"], - "tint-soft": ["#dfebd6", "#27371b"], + "tint-soft": ["#e8fcfe", "#00252b"], danger: ["#b3261e", "#ff8a80"], "danger-tint": ["#fdf3f2", "#3b1714"], }; diff --git a/src/components/FeaturedCards.tsx b/src/components/FeaturedCards.tsx index d7112c5..708052a 100644 --- a/src/components/FeaturedCards.tsx +++ b/src/components/FeaturedCards.tsx @@ -112,7 +112,7 @@ function Card({ card, large }: { card: FeaturedCard; large: boolean }) { return (
  • @@ -134,7 +134,7 @@ function Card({ card, large }: { card: FeaturedCard; large: boolean }) { export default function FeaturedCards({ cards }: { cards: FeaturedCard[] }) { const leadLarge = cards.length >= 3 return ( -
    +
      {cards.map((card, index) => ( >(() => new Set()); const rootRef = useRef(null); + const probeRef = useRef(null); const resolvedSize: PeopleTilesSize = SIZE_FEATURES[size] ? size : "md"; const features = SIZE_FEATURES[resolvedSize]; @@ -433,6 +438,27 @@ export function PeopleTilesView({ .filter((group) => group.people.length > 0); }, [groups, people]); + const hasPeople = resolvedGroups.length > 0; + + // How much room a row has, and one tile's width and gap there, in + // px: the probe carries --pl-w and --pl-gap, so the CSS stays the + // one place that sizes tiles. + const [room, setRoom] = useState<{ width: number; tile: number; gap: number } | null>(null); + + useLayoutEffect(() => { + const root = rootRef.current; + const probe = probeRef.current; + if (!root || !probe || overflow === "scroll") return undefined; + const measure = () => { + const padding = parseFloat(getComputedStyle(root).paddingLeft) * 2; + setRoom({ width: root.clientWidth - padding, tile: probe.offsetWidth, gap: probe.offsetHeight }); + }; + measure(); + const observer = new ResizeObserver(measure); + observer.observe(root); + return () => observer.disconnect(); + }, [overflow, hasPeople]); + // A click anywhere outside the list closes the panel. useEffect(() => { if (!openKey) return undefined; @@ -509,6 +535,7 @@ export function PeopleTilesView({ onKeyDown={handleKeyDown} {...rest} > +