circagraph
Sign inSign up

openchronology/timeline-app on GitHub

The OpenChronology repository on GitHub, mirrored by och-import-github: issues and pull requests as durations (ongoing while open), what happened to them as moments, plus releases, milestones, commits and branches. The Branches view shows the most recently active branches each in a track of its own.

Source: https://github.com/openchronology/timeline-app

3,131 moments · 2026-10-05 CE 20:21:49 UTC – 2026-11-16 CE 12:10:45 UTC · by @athan · @athan

#478 Page titles fit what search results show

–

  • github
  • github/openchronology/timeline-app
  • github/openchronology/timeline-app#478
  • pull request
  • state:merged

Closes #469. Event pages' titles ran to 171 characters (` · · `), and 38 of 65 timelines' were over 60, so search engines cut or rewrote them. A page's ` ` now fits in 60 characters (`fitTitle`, `platform/lib/sharing.js`). **Order of attempts**, using the first form that fits: 1. `event · timeline · site` 2. `event · head of timeline · site`, where the head is the timeline's name before a subtitle (` · `, `: `, ` — `, ` – `) if it's at least 12 characters 3. `event · timeline` 4. `event · head of timeline` 5. `event · timeline head cut between words`, if at least 20 characters of room are left 6. `event`, cut between words with "…" A timeline's own page drops the site's name, then is cut between words. **What else changes:** - **Link previews:** `og:title` and `twitter:title` keep the whole title. - **Site pages:** `pageTitle`, used by the site's own pages, fits theirs the same way. The /for pages (66–77 characters) and two help pages now go without the site's name. Search engines show the site's name next to the result anyway. **Examples** from the audit: - **"Beedle the Bard's tales · Harry Potter and the Wizarding World: an unofficial chronology · timescale.info"** (105 characters) becomes "Beedle the Bard's tales · Harry Potter and the Wizarding World" (62 characters), which still doesn't fit, so it falls to step 5: "Beedle the Bard's tales · Harry Potter and the Wizarding…". - **"Collaborative timeline maker for teachers and classrooms · timescale.info"** becomes "Collaborative timeline maker for teachers and classrooms". **Tests:** - **Unit:** `entity-pages.test.mjs` covers each step, the head rule, a timeline's own page, and previews keeping the whole title. - **Browser:** `landing-live-postgres` expects the educators page's shorter title. - **Run locally:** unit tests (except `contents.test.mjs`, which fails on `main` here too) and `next-postgres` pass. The sharing test's HTTP checks pass; its browser steps run in CI. **Docs:** `docs/sharing.md#link-previews`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/478

Related

Open #478 Page titles fit what search results show in the timeline

#478 Page titles fit what search results show