ops: dossiers-ngi cascade bar dates, center/mobile, soft refresh; serve /cascade
This commit is contained in:
parent
ee82ef9b6e
commit
5677318ae2
6 changed files with 391 additions and 110 deletions
|
|
@ -87,18 +87,22 @@ rsync -avz --exclude .DS_Store "$SITE/branch-status.json" "$WWW/branch-status.js
|
|||
`bar.js` fetches `/branch-status.json` and draws:
|
||||
|
||||
```
|
||||
main @ d2fbd79
|
||||
├── feat/sm-content @ …
|
||||
main @ d2fbd79 · tip 2026-09-01 16:52 · build 8.4s · at 2026-09-30 15:23
|
||||
├── feat/sm-content @ … · tip YYYY-MM-DD HH:MM · …
|
||||
│ └── …
|
||||
└── project_template @ …
|
||||
```
|
||||
|
||||
`tip` / `at` always include **date + HH:MM** (ISO already in JSON; clock-only was misleading across days). The bar is **viewport-centered** (max-width 45em, mobile-friendly). Poll every 30s **updates tip/build/at text in place** when the branch structure is unchanged (no full tree remount).
|
||||
|
||||
Each name links to `/_cascade/use/<edition>` (cookie + 302 `/`). Caddy map:
|
||||
|
||||
```
|
||||
~^[A-Za-z0-9_-]+$ {http.request.cookie.tdpd_edition}
|
||||
```
|
||||
|
||||
Also serve `/cascade/*` from the site www root (path stubs). Live Caddy must not use a trailing `~.* flask` catch-all.
|
||||
|
||||
so new branches need no Caddy edit — only an `editions/<slug>/` tree.
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue