The archive viewer (events.photoreport.pt/arquivo/) redone, with the same engine for every owner.
Templates: FPA and Liga Portugal looks (tokens + logo under [data-look]), phone and tablet layouts, client cache and prefetch, lighter lists.
Sessions: kept signed in (30 days idle), shares read again from the cloud every 10 min; logout revokes the app password.
Face review: those with edit rights on a cloud folder confirm, reject ("não é"), mark false positives, undo; those who edit everything can turn a person's recognition off. History in archive_face_actions.
Downloads: 2048 px with metadata for every viewer (one, up to 100 picked, a gallery as ZIP up to 1000), via a short-lived signed link. Cloud links only for editors; the cloud is not named to others.
Own address: cloud_sources.hostname; the site middleware serves that archive at the host's root; Caddy on-demand TLS asks /v1/archive/host.
The archive viewer (events.photoreport.pt/arquivo/<id>) redone, with the same engine for every owner.
- **Templates**: FPA and Liga Portugal looks (tokens + logo under `[data-look]`), phone and tablet layouts, client cache and prefetch, lighter lists.
- **Sessions**: kept signed in (30 days idle), shares read again from the cloud every 10 min; logout revokes the app password.
- **Face review**: those with edit rights on a cloud folder confirm, reject ("não é"), mark false positives, undo; those who edit everything can turn a person's recognition off. History in `archive_face_actions`.
- **Downloads**: 2048 px with metadata for every viewer (one, up to 100 picked, a gallery as ZIP up to 1000), via a short-lived signed link. Cloud links only for editors; the cloud is not named to others.
- **Own address**: `cloud_sources.hostname`; the site middleware serves that archive at the host's root; Caddy on-demand TLS asks `/v1/archive/host`.
Migrations: `archive_long_session`, `archive_face_review`, `archive_hostname`.
After merging, for an own address: DNS of the host to the proxy, and the on-demand block from `infra/proxy/Caddyfile.example` on the server's Caddy.
Tests: archive suite 36/36; API, site, app typecheck clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
Closing the browser signed a viewer out: the session lived in sessionStorage and the grant ended after 12 hours.
"Manter sessão iniciada" (on by default) now keeps the token in localStorage and the viewer's app password,
sealed, on the grant. The session lasts while it is used at least once a month, and what is shared is read from
the cloud again when the last reading is over 10 minutes old, so a share taken away there is gone here too. A
refused app password ends the session; an unreachable cloud keeps the last reading for one hour, never longer.
"Sair" revokes the kept app password. Unticked, sign-in works as before (revoked at once, 12 hours).
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
One set of screens; FPA and Liga Portugal differ only in tokens (colours, display type, radius) and their logo,
in archive.css under `data-look`. Two-bar header with the sections, a bottom bar on phones; galleries open on
the latest game, cards show the two teams; a game's page shows the match, the people of the game and the
photos; people with a club list (a sidebar on desktop, pills on smaller screens); teams as cards.
Speed: answers are kept for the page's life and read again behind; galleries load ahead on hover; faces and
reference photos are lazy <img> instead of CSS backgrounds (all fetched at once before); the next and previous
photos preload in the large view. The directory sends the teams at once and the players apart, both kept five
minutes per source and per set of visible folders. Galleries carry a preview-size cover, and a gallery its two
teams.
The archive's styles move out of the site's globals.css into the archive's own stylesheet.
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
Rights come from the cloud: a share's permissions with update or create make its folder (and those below)
editable. There an archive viewer confirms a suggestion, says "não é" (the group is never suggested as that
person again; the next best guess takes its place), marks a false positive, names an unnamed face, or undoes.
A group is changed only when every photo of it is in folders the viewer edits.
The indexing account, or a root share with edit rights, may also act on a person: turn their face recognition
off (centroid and reference photo dropped, every suggestion taken back, never suggested again, optionally the
names already given removed), take back all open suggestions, or drop a wrong reference photo. Every action is
logged as the person's history. Suggestions skip people with recognition off and rejected pairs.
New: /me (what the viewer may do and how many suggestions wait), /review, /review/groups/:id, a person's
/recognition, /drop-suggestions, /reference and /history; faces of a photo carry their group.
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
"Rever rostos" appears for viewers with edit rights on the cloud (with how many suggestions wait): face groups by
state, filtered by person, one card per group with its sharpest faces and how sure; confirm, "não é", false
positive, name an unnamed face, undo, one at a time (keys C, N, F) or for a selection. The large view offers the
same on each face. A person's page shows their recognition state and history to editors and, to whoever edits
the whole archive, taking back every suggestion, dropping a wrong reference photo, and turning recognition off
(with the names already given, if chosen) or on again.
Layout fixes found on phone and tablet; docs updated for templates and face review.
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
The archive's resets had more weight than the component classes, so primary buttons took the text colour of
their parent; they are weightless now (:where). Faces in the review sidebar stretched; stacked columns on phone
and tablet grew to their content's width.
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
- Downloads: one photo, a selection (up to 100) or a whole gallery (ZIP, up to 1000) at 2048 px with
metadata, through a short-lived signed link. Gallery and large view get the buttons.
- The cloud is named only to those who edit the folder there (a small "originals" link); sign-in no
longer mentions it.
- cloud_sources.hostname: the site's middleware serves that archive at the root of its own host;
Caddy asks /v1/archive/host before getting a certificate. Set in the app (Endereço próprio).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The archive viewer (events.photoreport.pt/arquivo/) redone, with the same engine for every owner.
[data-look]), phone and tablet layouts, client cache and prefetch, lighter lists.archive_face_actions.cloud_sources.hostname; the site middleware serves that archive at the host's root; Caddy on-demand TLS asks/v1/archive/host.Migrations:
archive_long_session,archive_face_review,archive_hostname.After merging, for an own address: DNS of the host to the proxy, and the on-demand block from
infra/proxy/Caddyfile.exampleon the server's Caddy.Tests: archive suite 36/36; API, site, app typecheck clean.
🤖 Generated with Claude Code
https://claude.ai/code/session_017sovZz1NXBwx4VySojoyA1
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
auto-approve: CI success (gitea_auto_approve_open_prs_once.py)