Skip to content

feat: add user account approval with admin review UI#2145

Merged
benjamin-747 merged 3 commits into
gitmono-dev:mainfrom
benjamin-747:main
Jul 14, 2026
Merged

feat: add user account approval with admin review UI#2145
benjamin-747 merged 3 commits into
gitmono-dev:mainfrom
benjamin-747:main

Conversation

@benjamin-747

Copy link
Copy Markdown
Collaborator

No description provided.

…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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread jupiter/src/storage/user_approval_storage.rs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread moon/apps/web/components/AccountApprovalGuard.tsx
Comment on lines +114 to +115
let mut query = user_approval_status::Entity::find()
.order_by_desc(user_approval_status::Column::CreatedAt);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@benjamin-747 benjamin-747 merged commit fd38395 into gitmono-dev:main Jul 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant