A way down the tree from every page #1

Merged
bl merged 1 commits from down-the-tree into main 2026-09-29 11:29:57 +00:00
Owner

An arrow fixed at the left edge, half-way up, and the same link in words at the foot of every page. It replaces the "back" alternatives content has carried on every followup and list page.

Where it goes: the nearest page below the current path that this visitor may open (from the same list that drives "Also worth asking"), taking the path apart one segment at a time, and / when none is a page. /melde-fra → /, /status/oppslag → /, /review/abc123 → /review, /kasserer/utlegg-sent → /kasserer. Nothing on the front door.

How it reads: "Tilbake til starten" / "Back to the start", otherwise the target's question quoted: "Tilbake til «Hva kom inn?»". Arrow: 2.6rem circle in the left margin, 70% opacity until hover/focus; 2.2rem and 55% under 43.75rem wide, so it never covers text.

Tested: unit tests for the target and label (all 101 tests pass), and run locally against tomtervel/questions — the arrow sits in the margin clear of the cards, and the label is right on /melde-fra, /status/oppslag, /received/trafikkfare, absent on /.

After release, portal-trainer stops generating "back" alternatives (already on its main); a content repo drops its own when it takes the release.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GT37Z1Xtfd9pUuQtMTg6Yt

An arrow fixed at the left edge, half-way up, and the same link in words at the foot of every page. It replaces the "back" alternatives content has carried on every followup and list page. **Where it goes:** the nearest page below the current path that this visitor may open (from the same list that drives "Also worth asking"), taking the path apart one segment at a time, and `/` when none is a page. `/melde-fra` → `/`, `/status/oppslag` → `/`, `/review/abc123` → `/review`, `/kasserer/utlegg-sent` → `/kasserer`. Nothing on the front door. **How it reads:** "Tilbake til starten" / "Back to the start", otherwise the target's question quoted: "Tilbake til «Hva kom inn?»". Arrow: 2.6rem circle in the left margin, 70% opacity until hover/focus; 2.2rem and 55% under 43.75rem wide, so it never covers text. Tested: unit tests for the target and label (all 101 tests pass), and run locally against tomtervel/questions — the arrow sits in the margin clear of the cards, and the label is right on `/melde-fra`, `/status/oppslag`, `/received/trafikkfare`, absent on `/`. After release, portal-trainer stops generating "back" alternatives (already on its main); a content repo drops its own when it takes the release. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01GT37Z1Xtfd9pUuQtMTg6Yt
bl added 1 commit 2026-09-29 05:05:40 +00:00
A way down the tree from every page
Test / test (pull_request) Successful in 53s
e2596bc3cf
An arrow fixed at the left edge, half-way up the screen, and the same
link in words at the foot of the page. It goes one level down: the
nearest page below the current path that the visitor may open, found by
taking the path apart a segment at a time, and the front door when none
of those is a page (/status/oppslag -> /, /review/abc -> /review). The
front door itself has none. Labelled with where it goes: 'Tilbake til
starten', or the target page's question in quotation marks.

Content stops needing a 'back' alternative on every page, and a visitor
who went up a branch whose context did not apply is never stranded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GT37Z1Xtfd9pUuQtMTg6Yt
bl merged commit c9d52c6005 into main 2026-09-29 11:29:57 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uhhm/portal#1