Use organization-neutral names in code and browser keys

- The timeline's ngu-tl classes and keyframes are site-tl; nguLogo is
  siteLogo; the event card's ngu grid area is org; window.__NGU_SITE__
  is window.__SITE__; QR downloads are qr-<page>.png
- Browser keys (theme, closed banner and privacy notice, chunk reload)
  start site-; the page's first script moves any old ngu- values over
  once, so nobody loses their theme or sees a closed notice again
- Session and Google sign-in cookies are site_session and site_oauth
  (__Host- over https); everyone signs in again once

Record ids, server paths, the service and the database file keep
their names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-29 09:23:29 -05:00
parent 92e7938b64
commit 2b009beac1
23 changed files with 191 additions and 181 deletions

View file

@ -31,18 +31,18 @@ function fullMarker(item: TimelineItem): string {
function PersonChip({ person }: { person: PersonRef }) {
const img = useSmallImage(mediaUrl(person.photo))
return (
<li className="ngu-tl__person">
<li className="site-tl__person">
{!img.failed ? (
<img className="ngu-tl__personPhoto" src={img.src} alt="" loading="lazy" onError={img.onError} />
<img className="site-tl__personPhoto" src={img.src} alt="" loading="lazy" onError={img.onError} />
) : (
<span className="ngu-tl__personPhoto ngu-tl__personPhoto--blank" aria-hidden="true">
<span className="site-tl__personPhoto site-tl__personPhoto--blank" aria-hidden="true">
{initials(person.name)}
</span>
)}
<span className="ngu-tl__personName">
<span className="site-tl__personName">
{person.name}
{person.title ? (
<span className="ngu-tl__personTitle">{person.title}</span>
<span className="site-tl__personTitle">{person.title}</span>
) : null}
</span>
</li>
@ -61,34 +61,34 @@ export default function TimelineEntry({ item, variant = 'inline' }: Props) {
const logo = logoSrc(item)
const className = [
'ngu-tl__entry',
featured ? 'ngu-tl__entry--featured' : '',
href ? 'ngu-tl__entry--linked' : '',
'site-tl__entry',
featured ? 'site-tl__entry--featured' : '',
href ? 'site-tl__entry--linked' : '',
]
.filter(Boolean)
.join(' ')
const marker = (
<span className="ngu-tl__entryDay">
<span className="site-tl__entryDay">
{featured ? fullMarker(item) : dayMarker(item)}
</span>
)
const body = (
<span className="ngu-tl__entryBody">
<span className="ngu-tl__entryTitle">
<span className="site-tl__entryBody">
<span className="site-tl__entryTitle">
{logo ? (
<img className="ngu-tl__logo logo-plate" src={logo} alt="" loading="lazy" />
<img className="site-tl__logo logo-plate" src={logo} alt="" loading="lazy" />
) : (
<span
className={`ngu-tl__kind ngu-tl__kind--${item.kind}`}
className={`site-tl__kind site-tl__kind--${item.kind}`}
aria-hidden="true"
/>
)}
{item.title}
</span>
{item.meta ? <span className="ngu-tl__entryMeta">{item.meta}</span> : null}
{item.blurb ? <p className="ngu-tl__entryBlurb">{item.blurb}</p> : null}
{item.meta ? <span className="site-tl__entryMeta">{item.meta}</span> : null}
{item.blurb ? <p className="site-tl__entryBlurb">{item.blurb}</p> : null}
</span>
)
@ -97,15 +97,15 @@ export default function TimelineEntry({ item, variant = 'inline' }: Props) {
const roster =
item.kind === 'people' && item.people && item.people.length > 0 ? (
<div
className={`ngu-tl__roster${featured ? ' ngu-tl__roster--featured' : ''}`}
className={`site-tl__roster${featured ? ' site-tl__roster--featured' : ''}`}
>
{item.team ? (
<span className="ngu-tl__rosterTeam">
<span className="site-tl__rosterTeam">
{item.team.name}
{item.team.orgName ? ` · ${item.team.orgName}` : ''}
</span>
) : null}
<ul className="ngu-tl__people">
<ul className="site-tl__people">
{item.people.map((person) => (
<PersonChip key={person.id} person={person} />
))}
@ -118,7 +118,7 @@ export default function TimelineEntry({ item, variant = 'inline' }: Props) {
const external = !!href && /^(https?:)?\/\//.test(href)
return (
<li className="ngu-tl__entryWrap">
<li className="site-tl__entryWrap">
{href && external ? (
<a
href={href}