Files
teletypegames/apps/api
mr.zeroandClaude Opus 5 bcb95424c3 A store can be listed or not
Soft deletion already said "this store is gone". What was missing is "not yet" —
a catalog still being set up, or one pulled from the picker for a while without
losing the row and its history. `GET /api/stores` now answers with the active
ones only.

The client is deliberately told nothing about the flag. It has no state for
"there but switched off", and giving it one would mean every client release
having an opinion about it; an inactive store is simply absent, which is a case
the client already handles because it is the same as never having existed. The
payload stays two fields, and a spec holds it there.

Default true, so the migration lists every store that exists today. One that
silently emptied the registry would be a client with nothing to install from.
No index: a handful of rows, read once per client on first run.

In the admin the flag is what the page is *for*, so it is not just a checkbox on
the form: Active is the default scope, the index shows listed/hidden as a status
tag with a one-click toggle beside Edit, and the two batch actions do it in bulk.
A request spec covers all of it, because none of it is reachable from a model
spec — the pipelines resource shipped without `permit_params` and every edit
raised, which is the same layer and the same lesson. The last example toggles in
the admin and then reads /api/stores, since a change here that the registry does
not reflect is the only failure that actually matters.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-19 14:23:20 +02:00
..
2026-08-19 14:23:20 +02:00
2026-05-05 19:27:29 +02:00
2026-08-18 13:04:21 +02:00
2026-08-19 14:23:20 +02:00
2026-08-02 18:31:55 +02:00
2026-08-19 14:23:20 +02:00
2026-05-05 19:27:29 +02:00
2026-07-29 08:10:59 +02:00
2026-05-06 20:15:52 +02:00
2026-05-05 19:27:29 +02:00
2026-05-05 19:27:29 +02:00
2026-05-05 19:27:29 +02:00