Clean up code found in the audit

- Replace every em-dash in src and server/src with a colon, comma or hyphen
- Give every relative import its file extension (.jsx imports of .tsx fixed)
- Delete old-historyMock.ts, unused exports, unused CSS utilities, the
  unused @ alias and the fallback option nothing passed
- One copy each of initials, capitalize, byName and the server's marks()
- Move the organization, chapter and event hooks from src/data to src/lib
- Schema sync always throws on a mismatch (strict was never turned off)
- Replace the placeholder README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-28 22:02:03 -05:00
parent 4066e9ec61
commit 5274e09571
75 changed files with 282 additions and 688 deletions

View file

@ -1,5 +1,5 @@
/**
* History timeline — scoped under .ngu-tl.
* History timeline, scoped under .ngu-tl.
*
* Everything themeable is a custom property with a fallback, so rewiring to the
* site tokens is a one-block edit at the top. Typefaces are deliberately not
@ -32,7 +32,7 @@
}
}
/* ——— Decade block ——————————————————————————————————————————————— */
/* --- Decade block ----------------------------------------------- */
.ngu-tl__decade {
position: relative;
@ -66,7 +66,7 @@
color: var(--tl-muted);
}
/* ——— Decade header ——————————————————————————————————————————————— */
/* --- Decade header ----------------------------------------------- */
.ngu-tl__decadeHead {
position: relative;
@ -138,7 +138,7 @@
color: var(--tl-faint);
}
/* ——— Year node ———————————————————————————————————————————————— */
/* --- Year node ------------------------------------------------ */
.ngu-tl__year {
position: relative;
@ -231,7 +231,7 @@
font-weight: 450;
}
/* ——— Expanded panel ——————————————————————————————————————————— */
/* --- Expanded panel ------------------------------------------- */
.ngu-tl__panel {
padding: 0.25rem 0 1.5rem var(--tl-gutter);
@ -286,7 +286,7 @@
gap: 0.125rem;
}
/* ——— Entry ————————————————————————————————————————————————————— */
/* --- Entry ----------------------------------------------------- */
.ngu-tl__entry {
display: grid;
@ -371,7 +371,7 @@ a.ngu-tl__entry:hover .ngu-tl__entryTitle {
box-shadow: inset 0 0 0 1.5px var(--tl-faint);
}
/* ——— Featured entries ————————————————————————————————————————— */
/* --- Featured entries ----------------------------------------- */
.ngu-tl__featured {
display: flex;
@ -403,7 +403,7 @@ a.ngu-tl__entry--featured:hover {
background: color-mix(in srgb, var(--tl-accent) 18%, transparent);
}
/* ——— Empty state ——————————————————————————————————————————————— */
/* --- Empty state ----------------------------------------------- */
.ngu-tl__empty {
padding: 0.5rem 0 1.25rem var(--tl-gutter);
@ -420,7 +420,7 @@ a.ngu-tl__entry--featured:hover {
}
}
/* ——— Toolbar + utilities ————————————————————————————————————— */
/* --- Toolbar + utilities ------------------------------------- */
.ngu-tl__toolbar {
display: flex;
@ -468,7 +468,7 @@ a.ngu-tl__entry--featured:hover {
border: 0;
}
/* ——— Upcoming block ——————————————————————————————————————————
/* --- Upcoming block ------------------------------------------
Opens upward: the toggle is first in the DOM, column-reverse puts the
list above it. Faded because none of it has happened yet. */
@ -556,7 +556,7 @@ a.ngu-tl__entry--featured:hover {
}
}
/* ——— Event / org / award logo ————————————————————————————————— */
/* --- Event / org / award logo --------------------------------- */
.ngu-tl__logo {
display: inline-block;
@ -574,7 +574,7 @@ a.ngu-tl__entry--featured:hover {
vertical-align: -0.3125rem;
}
/* ——— People roster ——————————————————————————————————————————— */
/* --- People roster ------------------------------------------- */
.ngu-tl__entryWrap {
display: block;
@ -643,7 +643,7 @@ a.ngu-tl__entry--featured:hover {
color: var(--tl-faint);
}
/* ——— Kind markers, continued ————————————————————————————————— */
/* --- Kind markers, continued --------------------------------- */
.ngu-tl__kind--organization {
border-radius: 2px;