Admin UI: instance management (add, enable, disable) #36
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Currently instances are managed via raw DB inserts/updates. There is no UI to add a new Mastodon or Lemmy instance, enable/disable polling, or change the interval. This is an operational blocker for self-hosters.
Acceptance criteria
GET /admin/instances(already exists) — extend with Add buttonPOST /admin/instances— create new instance (url, type, interval_seconds, enabled). Validates viaInstanceConfig::fromArray()— reuse existing validation logicPATCH /admin/instances/{id}/toggle— flip enabled/disabledDELETE /admin/instances/{id}— remove instance (pages remain, FK isonDelete('set null'))Notes
/adminis not publicly reachable in prod (Pangolin can enforce this at the proxy layer). Document this assumption.interval_secondsin the UI can be a simple integer field for now — a "every N minutes" helper label is a nice-to-have.