Skip to content

fix(users): directory role exclusions, session ctx refresh, full_name validation, profile headings, and inline 422 errors - #1342

Merged
antosubash merged 9 commits into
mainfrom
feat/users-directory-profile-fixes
Nov 30, 2026
Merged

antosubash merged 9 commits into
mainfrom
feat/users-directory-profile-fixes

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

Verification

  • Local CI: make gen, make lint, PYTEST_WORKERS=8 make test-py, make test-js, make ci-doctor — all passed.
  • Browser QA (Playwright against live dev stack on port 8211):
    • Verified /users/me heading hierarchy (h1 "Your profile" + h2 "Details", "Password", "Sessions", "Preferences") and maxlength="200".
    • Verified whitespace-only full_name returns 422 inline field error on /users/me, and saving " Admin QA Name " trims to "Admin QA Name" and refreshes auth.user.name on reload.
    • Verified /admin/users/<id> Details card displays inline 422 role="alert" errors for both blank full_name and invalid email (no generic failure banner), clears each field error independently on edit, and updates auth.user.name to "Admin Updated" on reload after saving " Admin Updated ".
    • Zero uncaught page errors and zero unexpected console errors.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2933256
Status: ✅  Deploy successful!
Preview URL: https://7e46b441.simple-module-python.pages.dev
Branch Preview URL: https://feat-users-directory-profile.simple-module-python.pages.dev

View logs

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-30T16:27:04.194014Z 3958e1b PR opened
ℹ️ 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
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@antosubash antosubash added the shipped /ship passed on the head commit label Nov 30, 2026
@antosubash

antosubash commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner Author

/ship passed on 3958e1b

Pipeline Summary (Round 1 — Converged Clean)

  • Stage O (optimize --safe-only): nothing-to-do (0 lines removed, 0 commits; static checks and targeted tests clean).
  • Stage A (Dual Codex Code Review): 3 passes, converged clean on 3958e1b0425bc3c3d209a61aee0da097e72692db.
    • Pass 1: fixed explicit null clearing vs omitted field on PATCH /api/users/me and /api/users/admin/{id}, applied FullNameStr to UserCreate/UserInvite, omitted empty full_name in Register.tsx, added maxLength={200} + inline error to AcceptInvite.tsx, switched DetailsCard to shared FieldError with disabled={saving} + stale-422 guard, deduplicated test helpers, and documented exclude_roles in docs/framework/user-directory.md.
    • Pass 2: stripped whitespace before length validation on AcceptInviteRequest, reconciled form + baseline from PATCH response in useEditUserForm, passed disabled={loading} + aria-describedby in AcceptInvite.tsx, removed redundant if name filter in UsersDirectory.search, and removed unused exports from useEditUserForm.
    • Pass 3: test + doc only (exercised partial-save roles 403 retry in users_details_card_errors.test.tsx and added third-party provider compatibility note for exclude_roles in docs/framework/user-directory.md).
  • Stage B (Browser QA): 1 iteration, 0 bugs found, 0 page/console errors. Verified /users/me (h1 + h2 headings, maxlength=200, blank 422 inline error, trimmed save + auth.user.name refresh on reload) and /admin/users/<id> (inline 422 role="alert" for full_name and email, independent clear on edit, trimmed save + auth.user.name refresh on reload). Stack stopped cleanly.
  • Stage C (Verify & CI):
    • Local CI: make gen, make lint, PYTEST_WORKERS=8 make test-py, make test-js, make ci-doctor — all passed.
    • Remote CI: 22/22 checks passed (including SQLite + Postgres test shards, E2E smoke, Perf guards, Migrations round-trip, and Production Docker smoke).

@antosubash antosubash removed the shipped /ship passed on the head commit label Nov 30, 2026
@antosubash
antosubash force-pushed the feat/users-directory-profile-fixes branch from 3958e1b to 2933256 Compare November 30, 2026 18:02
@antosubash antosubash added the shipped /ship passed on the head commit label Nov 30, 2026
@antosubash

Copy link
Copy Markdown
Owner Author

/ship passed on 2933256

Post-rebase verification summary (rebased onto origin/main 70c95000):

  • Stage O (Optimize): skipped (--no-optimize; already ran on 3958e1b0 prior to CHANGELOG.md rebase)
  • Stage A (Dual Codex review, medium effort): 1 pass — 1 doc-only clarification applied (CHANGELOG.md CacheDirectory exclude_roles no-op caveat); all other findings triaged and rejected with evidence; no production code touched
  • Stage B (Browser QA): skipped (--skip-browser; Playwright browser QA already passed with 0 bugs on identical UI code prior to rebase)
  • Stage C (Local CI + Remote CI):
    • make gen, make lint, make ci-doctor: passed
    • make test-js: 176 test files, 1,349 tests passed
    • PYTEST_WORKERS=8 make test-py: 12,345 passed, 57 skipped
    • Remote GitHub CI: 22/22 checks passed (including PR/PR checks, 4 Python shards, 4 Postgres shards, E2E smoke 1–2, Migrations round trip, Perf guards, Production Docker smoke)

@antosubash
antosubash merged commit b8bf276 into main Nov 30, 2026
22 checks passed
@antosubash
antosubash deleted the feat/users-directory-profile-fixes branch November 30, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment