Reference Library expansion: Sources, Organizations, and a compact Timeline
Summary
The lossless-site Reference Library went from two collections (Vocabulary, Concepts) to four (Vocabulary, Concepts, Sources, Organizations), and gained a compact "show my work" timeline that aggregates additions and updates across all four. Production analytics (Umami + Fathom + OpenPanel) were wired in via a single shared component.
Why Care
The Reference Library is the surface area where months of curated knowledge becomes legible to the people we work with. Until now, two of our richest collections —
sources (books, people, media, source extracts) and organizations (companies, institutions) — had no presence in /more-about. They were searchable only as standalone pages, which made it hard for a reader to feel the full weight of what we've gathered. The expansion fixes that, and the Timeline gives a "wow you guys did a lot since we last talked" view that's specifically engineered for clients we don't communicate with often.Implementation
New collections wired into the Reference Library
sources was already a defined content collection but only rendered at /sources. organizations had a generated-content folder but no collection definition or pages at all. Both are now first-class in the Reference Library:- Sources — added to
/more-about/index.astroas a third grid section, plus a dedicated/more-about/sourcespage with the same folder-tab filtering as the standalone/sourcespage. Detail pages still resolve to/sources/<slug>via the existing route. - Organizations — defined
organizationsCollectionincontent.config.ts(ultra-permissive schema mirroringsources), added to thepathsmap andcollectionsexport. Added/organizations/index.astroand/organizations/[...slug].astro(mirroring the sources routes), plus/more-about/organizations.astrofor the Reference Library view, plus an Organizations section on/more-about/index.astro.
ReferenceLayout.astro and ReferenceNavRow.astro were updated to load and surface counts/word-counts for all four collections. The "Words: …" total at the top of the nav now sums across vocabulary + concepts + sources + organizations.Reference Timeline
/more-about/timeline.astro is a single-page aggregator over all four collections. Each entry contributes up to two events (one per date_created, one per date_modified, deduplicated when they fall on the same day). Events are grouped Month → Week, newest first, with the most recent month auto-expanded and older months collapsed for fast scanning.Compact density was deliberate — one row per event, single line: ▎ date · title · collection chip · folder · tag preview. The toolkit timeline was the design reference but everything got tightened to roughly half its size, on the theory that a client should be able to scroll past two months of activity without thinking.
The page ships with client-side filtering: a search box doing case-insensitive substring on title + id + tags, plus toggle chips for Added/Updated and each of the four collections. Empty weeks/months hide automatically; when you type, all months auto-expand so matches are visible. No Pagefind — for ~1,300 events the haystack is small enough that
String.includes() on pre-lowercased data attributes is instant.A "📅 Timeline" CTA was added to the right side of
ReferenceNavRow, with margin-left: auto pushing it past the All / Vocabulary / Concepts / Sources / Organizations buttons. Cyan→purple gradient pill so it reads as the action, not just another tab.Analytics
A single
Analytics.astro component was added under src/components/ that mounts Umami, Fathom, and OpenPanel in parallel, all gated on import.meta.env.PROD. It's included from Layout.astro (covers the bulk of the site) and from the three slide-deck layouts that bypass the main Layout (/slides/[collection]/[...slug], /slides/embed/[...slug], /slides/embed/astro/[...slug]). Rollout details live in context-v/prompts/Setup-Analytics-Across-Sites.md.Companion content release
The submodule was bumped to
0.1.3.0 (lossless-content release tagged today) — 9 months and 150 commits of content growth, including the buildout of sources/, organizations/, and vertical-toolkits/ from scaffolds to first-class collections. The site changes here exist specifically to make that growth legible.Files Changed
text
Created:
src/components/Analytics.astro
src/components/reference/SourcePreviewCard.astro
src/components/reference/OrganizationPreviewCard.astro
src/pages/more-about/sources.astro
src/pages/more-about/organizations.astro
src/pages/more-about/timeline.astro
src/pages/organizations/index.astro
src/pages/organizations/[...slug].astro
Modified:
src/content.config.ts (added organizationsCollection)
src/layouts/Layout.astro (mount Analytics)
src/layouts/ReferenceLayout.astro (load sources + organizations, plumb counts)
src/pages/more-about/index.astro (added Sources + Organizations sections)
src/components/reference/ReferenceNavRow.astro (Sources tab + Organizations tab + Timeline CTA)
src/utils/collectionWordCount.ts (added 'sources' | 'organizations' to type)
src/pages/slides/[collection]/[...slug].astro (Analytics)
src/pages/slides/embed/[...slug].astro (Analytics)
src/pages/slides/embed/astro/[...slug].astro (Analytics)
src/generated-content (submodule bump → 0.1.3.0 / d7ecea2a)
.claude/settings.local.json (sandbox permissions) Notes for Future Refactor
The lossless-site doesn't have its own
changelog/ directory yet — this entry lives in lossless-content/changelog--code/ because that's where site engineering changelogs have historically gone. When we eventually scaffold lossless-site/changelog/ (per the splash-page conventions), this entry and its predecessors should migrate.