Historical document. This batch report describes the original admin-panel implementation and is not the current implementation contract. Use
docs/CODEBASE_MAP.mdand the current code instead.
Done:
- Added migration 20250201000000-add-admin-panel.sql with new tables and chat flags.
- Extended db.Settings and added admin panel, manager, membership, and spam example entities.
- Updated settings defaults in service/base handler.
- Updated sqlite settings queries and added CRUD for new admin panel tables and spam examples.
Remaining:
- Implement admin panel handler flows, session rendering, callbacks, input handling, and cleanup.
- Update reactor and gatekeeper to use new flags and /ban command behavior.
- Add spam examples to LLM detection flow.
- Add language catalog and i18n keys for admin panel UI.
- Implement bot membership tracking via my_chat_member updates.
Done:
- Integrated admin panel flows: /settings in group, /start settings in private, callbacks, prompt input, session cleanup, bot membership updates.
- Fixed panel rendering/navigation, payload command storage, callback parsing, and message update fallback.
- Added language names catalog and admin panel i18n keys, including community voting disabled messaging.
- Updated reactor for /ban, voting rules, LLM first-message toggle, and custom spam examples feeding the LLM.
- Updated gatekeeper to use GatekeeperEnabled and refreshed settings defaults.
- Updated update processor to handle callback/my_chat_member updates without skipping.
- Ran gofumpt and go vet.
Remaining:
- If desired, remove unused OpenTelemetry/Prometheus indirect deps via go.mod tidy (no code usage found).