Separate ADMIN_EMAIL from site users #174
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit#174
Loading…
Add table
Add a link
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?
Summary
The Site users settings page shows the configured
ADMIN_EMAILas a normal editable site user. This is confusing becauseADMIN_EMAILis a deployment-configured bootstrap/recovery admin identity, not a regular user managed from the Site users table.Steps to reproduce
ADMIN_EMAILin the dev or deployment environment, for exampleslug@example.com.ADMIN_EMAILrow with normal stored users.Expected behavior
ADMIN_EMAILis shown in its own recovery/bootstrap admin email section.ADMIN_EMAILas an ordinary editable user.Actual behavior
ADMIN_EMAILappears in the normal Site users table beside regular users.Acceptance criteria
ADMIN_EMAIL.ADMIN_EMAILis configured from deployment environment and must be changed in deployment config.ADMIN_EMAILhas a stored site-user record, the section shows its stored status and roles for context.ADMIN_EMAILas a normal editable row, or otherwise disables role/deactivate controls with clear explanatory copy.ADMIN_EMAILhas a matching stored user.ADMIN_EMAILdoes not yet have a stored user.Synced from todu comment by @todu on 2026-06-21T16:22:14.829Z
Review update
npm test --workspace @slugkit/template-site -- src/routes/__tests__/admin-users.test.ts,npm run build --workspace @slugkit/template-site,./scripts/pre-pr.sh, and Forgejo Actions run #241.Synced from todu comment by @todu on 2026-06-21T16:40:08.525Z
Closing summary
PR #175 was merged into
main.Acceptance criteria:
ADMIN_EMAIL— met.ADMIN_EMAILis configured from deployment environment and must be changed in deployment config — met.ADMIN_EMAILas a normal editable row — met by filtering it out of editable users.ADMIN_EMAILuser — met.ADMIN_EMAILwithout stored site user — met.Verification:
npm test --workspace @slugkit/template-site -- src/routes/__tests__/admin-users.test.tsnpm run build --workspace @slugkit/template-site./scripts/pre-pr.shReadiness: READY. Closing task.
Synced from todu comment by @todu on 2026-06-21T16:39:34.382Z
Review update
autocomplete="off"to avoid stale browser-restored role selections../scripts/pre-pr.sh, and Forgejo Actions run #242.