Skip to content

Add admin user management and verification UI - #22

Merged
thinkclay merged 2 commits into
mainfrom
codex/add-admin-user-management-features
Sep 23, 2025
Merged

thinkclay merged 2 commits into
mainfrom
codex/add-admin-user-management-features

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Summary

  • add web admin list and detail screens that consume the new admin.users tRPC procedures and surface verification controls
  • extend the admin users router with profile updates, verification ledger data, and search field metadata so the UI can highlight verified fields
  • expose profile verification state through shared hooks and show badges on the worker profile; document the new role-based guard enforced in middleware

Testing

  • yarn lint

https://chatgpt.com/codex/tasks/task_b_68d1e2fc5b5c833192cfa4f6e4a12d7c

@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 suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment on lines +114 to +118
const updateWorkerInputSchema = workerIdentifierSchema
.extend({
profileData: workerProfileUpdateSchema.optional(),
publicData: workerPublicUpdateSchema.optional(),
privateData: workerPrivateUpdateSchema.optional(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[P0] Reference schema before it is defined

updateWorkerInputSchema calls workerProfileUpdateSchema.optional() but workerProfileUpdateSchema is declared later in the file. Because const bindings are not hoisted, the module will throw ReferenceError: Cannot access 'workerProfileUpdateSchema' before initialization as soon as this file is evaluated, preventing the admin users router from loading at all. Define workerProfileUpdateSchema before it is referenced or reorder the declarations to avoid the temporal dead zone.

Useful? React with 👍 / 👎.

@thinkclay
thinkclay merged commit 2d80b44 into main Sep 23, 2025
@thinkclay
thinkclay deleted the codex/add-admin-user-management-features branch September 23, 2025 00:59
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