trails/openspec/specs
Ullrich Schäfer f0ef989ac3 Rebuild the Journal home around a public feed and flagship marketing
The old home was an h1, subtitle, and two auth buttons — visitors
arriving at trails.cool had no idea what it was, and self-hosted
instances had nothing interesting to land on.

The new home is one layout that serves both audiences:

- Hero: a product-describing h1 ("Federated outdoor journal") +
  tagline. The site name already lives in the top banner and nav brand,
  so the h1 carries the pitch instead of triplicating "trails.cool".
- Auth CTAs: Register (blue) + Sign In (outlined) get primary weight.
  Planner demotes to a small "Or try the Planner without an account →"
  link below them — it's a nice escape hatch but not the goal.
- Marketing cards: on the flagship only, a 2x2 grid of emoji-icon cards
  for Planner / Journal / Federation / Ownership, matching the Planner
  home's visual weight. `IS_FLAGSHIP=true` toggles it. Self-hosters get
  a "Powered by trails.cool — about the project" link back to the
  flagship instead, so they don't have to write their own marketing.
- Public feed: reverse-chronological list of the 20 most recent public
  activities on the instance, with owner + distance + date. Empty state
  for fresh installs.

Plumbing:
- `listRecentPublicActivities(limit)` in activities.server.ts joins
  users so the feed can render "by <displayName>" in one query.
- `IS_FLAGSHIP` env wired through docker-compose.yml; cd-apps and
  cd-infra both write `IS_FLAGSHIP=true` alongside `DOMAIN=trails.cool`,
  so self-hosters (who deploy without these workflows) default to off.

Specs:
- `activity-feed`: new "Instance-wide public activity feed" requirement
  so the visibility contract is pinned (public in feed, unlisted +
  private are not).
- `journal-landing`: new small spec capturing the hero / marketing /
  feed layout contract and the `IS_FLAGSHIP` toggle, so future
  instance-branding or empty-state changes have a stable anchor.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 20:00:23 +02:00
..
account-settings Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
activity-feed Rebuild the Journal home around a public feed and flagship marketing 2026-04-24 20:00:23 +02:00
brouter-integration Archive relocate-brouter-to-dedicated-host 2026-04-24 18:35:37 +02:00
crash-recovery Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
elevation-map-interaction Fix all openspec validation errors (45/45 pass) 2026-04-12 22:41:51 +02:00
gpx-import Update specs: session-notes, route-coloring, gpx-import 2026-04-11 03:24:54 +02:00
infrastructure Archive relocate-brouter-to-dedicated-host 2026-04-24 18:35:37 +02:00
journal-auth Prompt users with stale terms_version to re-accept 2026-04-19 08:06:16 +02:00
journal-landing Rebuild the Journal home around a public feed and flagship marketing 2026-04-24 20:00:23 +02:00
legal-disclaimers Realign legal-disclaimers spec with post-review implementation 2026-04-19 07:33:27 +02:00
local-dev-environment Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
map-core Fix all openspec validation errors (45/45 pass) 2026-04-12 22:41:51 +02:00
map-display Fix all openspec validation errors (45/45 pass) 2026-04-12 22:41:51 +02:00
multi-day-routes Fix all openspec validation errors (45/45 pass) 2026-04-12 22:41:51 +02:00
no-go-areas Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
observability Archive relocate-brouter-to-dedicated-host 2026-04-24 18:35:37 +02:00
osm-poi-overlays Fix all openspec validation errors (45/45 pass) 2026-04-12 22:41:51 +02:00
osm-tile-overlays Fix all openspec validation errors (45/45 pass) 2026-04-12 22:41:51 +02:00
planner-journal-handoff Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
planner-session Fix all openspec validation errors (45/45 pass) 2026-04-12 22:41:51 +02:00
rate-limiting Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
road-type-coloring Add road type color mode to route visualization 2026-04-11 11:13:43 +02:00
route-coloring Update route-coloring spec with all 10 modes, create follow-up changes 2026-04-11 11:20:17 +02:00
route-drag-reshape Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
route-management Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
route-preview Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
route-splitting Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
secret-management Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
security-hardening Archive relocate-brouter-to-dedicated-host 2026-04-24 18:35:37 +02:00
session-notes Sync notes through GPX, Journal, and Planner roundtrip 2026-04-11 03:35:40 +02:00
shared-packages Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
transactional-emails Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00
wahoo-import Fix all OpenSpec validation failures (36/36 passing) 2026-04-06 22:17:52 +02:00