feat: add user account approval with admin review UI#2145
Conversation
…warding Drop NEXT_PUBLIC_CAMPSITE_API_SESSION_COOKIE from the build and entrypoint injection path so mega-ui reads the cookie name at runtime, matching Rails SESSION_COOKIE_KEY in k8s without rebuilding the image.
Gate new users behind Mono-backed pending/approved/rejected status, and let admins review them from settings with a top-right pending badge.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7d05d5f706
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 32a626df8d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| let mut query = user_approval_status::Entity::find() | ||
| .order_by_desc(user_approval_status::Column::CreatedAt); |
There was a problem hiding this comment.
Don't hide oldest pending users behind the limit
When there are more pending users than the supplied limit, this orders newest records first and then applies the limit; the admin UI calls the endpoint with the default 100 and has no pagination, so older pending accounts can fall off the review list and remain undiscoverable from the UI. For a review queue, either page through results or show the oldest pending records first.
Useful? React with 👍 / 👎.
No description provided.