signal-bot/web
Krzysztof kuhy Rudnicki 8500a1add1
Some checks are pending
CI / check (push) Waiting to run
CI / web (push) Waiting to run
fix: the absorbed tagger gets its setup form and untagged filter back
The first pass shipped the tagging checkboxes and nothing else, which was a
regression dressed as an absorption: an album with no people.json has an
empty roster, so the checkboxes rendered an empty list and there was no way
to add anybody. The old page gated a setup form on `configured` for exactly
that reason. So does this one now.

Restored, behaviour-for-behaviour:

- The roster grammar, in src/api/setup.ts. One person per line, aliases by
  comma, `=` for a combination with `+` meaning both and `|` meaning either.
  Keys are reused for anyone already listed and otherwise handed out one past
  the highest in use -- never the count, or a key deleted by hand gets
  reissued and inherits somebody else's photos. Mirrors pack_people.next_key.
- The add-person box, for the usual case of noticing a new face in the photo
  already on screen.
- `--untagged`, which was a no-op: it is a view filter, and anything seen
  this session stays navigable, or tagging the photo you are looking at
  removes it from the list you are walking.

DOCS-web-ui.md claimed group ids were "picked, never typed" while settings
rendered a plain text box. That was the mitigation cited for accepting an
.env editor at all, so the claim is now backed by a <select> filled from
/api/groups -- and a failed listing leaves it empty rather than unhandled.

parseSetup returns a result instead of throwing, and readCombos has one
return type: a try/catch in the view carried an "and if it was some other
error" branch that could not happen, and an untestable branch is an untested
one. Same reason the album view splits into roster.tsx and tagger.tsx.

Still 100% on all four metrics with no exclude list, and verified against the
real album: 185 items, 4 groups in the picker, guard still answering 421.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01416TegJ3sa8xL5qGGgrygP
2026-08-31 15:08:38 +02:00
..
public feat: one page to manage the bot, and the tagger folded into it 2026-08-31 14:54:49 +02:00
src fix: the absorbed tagger gets its setup form and untagged filter back 2026-08-31 15:08:38 +02:00
eslint.config.js feat: one page to manage the bot, and the tagger folded into it 2026-08-31 14:54:49 +02:00
index.html feat: one page to manage the bot, and the tagger folded into it 2026-08-31 14:54:49 +02:00
package.json feat: one page to manage the bot, and the tagger folded into it 2026-08-31 14:54:49 +02:00
pnpm-lock.yaml feat: one page to manage the bot, and the tagger folded into it 2026-08-31 14:54:49 +02:00
tsconfig.json feat: one page to manage the bot, and the tagger folded into it 2026-08-31 14:54:49 +02:00
vite.config.ts feat: one page to manage the bot, and the tagger folded into it 2026-08-31 14:54:49 +02:00