gunk-dev/the-valley
the-valley:oc-75d81aeoutcomedone

A reader finds every project they may read, and each project's knots sit beside its source

State
done
Created
2026-10-31 by contributor
Changes
  • valley:the-valley/lmuyrzvryqmtolommxtkvxrqormxwpxl

Body

At the web edge, a reader who may read several projects has no way to find them. `/` redirects to the first project in their view. `/<group>/` is not a route. The header links every visible project's source as a separate tab ("<name> source"), beside one knots page that spans every project (`web/server/render.go`, `page`).

Fixed when:
- **A projects page**, `/-/projects`, lists every project the reader may read, grouped by group, each linking to its source and its knots. The header's site navigation links it as `projects`, beside the freshness line and `Sign out`.
- **`/`** redirects to `/-/projects` when the reader's view holds more than one project. With exactly one, it redirects to that project's source, as today.
- **`/<group>/`** (and `/<group>`) lists that group's projects that the reader may read, and answers 404 for a group with none.
- **Inside a project**, on its source pages, its knots and each of its knots, a project header names `<group>/<project>` and carries two tabs: `source` and `knots`. `knots` opens a new route, `/<group>/<project>/knots`, which shows that project's knots only.
- **`/-/knots` stays**, as every visible project's knots, linked from the projects page as "all knots". The header no longer lists per-project source tabs.
- **Every new page is built from the reader's projection** and names no project outside the reader's view. Its caching and CSP headers are those of its route class.
- **Tests and docs:**
  - `web-server-unit` covers each route for `anyone` and for a named reader;
  - `web-push-e2e`'s signed-in steps reach a named-reader project from `/` through the projects page;
  - the docs' route table and reader docs state the routes.

Comments

  1. contributor2026-11-02 20:55 UTC
    Landed in the-valley as 9b67d021, but not deployed: the web edge on Fly (infra, apps/valley-web) still pins the-valley f961a59e from 2026-10-31. On 2026-11-02 the operator still saw the old header, with per-project source tabs and no per-project knots. An infra bump PR to f69adc17 is in progress. This outcome closes once the production edge serves the new routes.
  2. contributor2026-11-02 22:05 UTCedited2026-11-04 00:27 UTC by contributor
    Deployed 2026-11-02: infra #102 moved the edge to the-valley f69adc17, and the operator ran the production deploy and confirmed the new header, projects page and per-project knots pages at the web edge.