#463 The editor lists what links to a timeline as a whole
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#463
- pull request
- state:merged
Closes #458. A timeline's editor now lists, under **Linked from other timelines** below its tags, the moments and durations on other timelines that link to it as a whole. This matches its page on the website. - **Paging and visibility:** 25 at a time, with **Next 25 links**. The section is folded until opened, and hidden when nothing links there. Only links from timelines the viewer may read are served, as before. - **Each entry:** opens the linking moment's or duration's page. Those who may edit the timeline get **×**, and the server still checks that they may edit the other timeline too. - **Live updates:** when the timeline's links change, the list reloads. - **Shared row:** the link row is shared with a moment's **On other timelines** (`timelineLinkRow`). - **No server change:** `GET /api/timelines/{id}/links` without `moment` or `duration` already lists these, and `DELETE` already accepts either end. **Tests:** `test/timeline-links-live-postgres.mjs` now links Rome's moment to Greece as a whole, opens Greece's editor, checks the entry and its address, and removes the link there. It runs on desktop and phone widths. - **Not run locally:** Chromium wouldn't download on this machine, so CI's run is the first. - **Passing here:** typecheck, Prettier and the platform build. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/463
Related
Open #463 The editor lists what links to a timeline as a whole in the timeline