Skip to content

feat(users,branding,ui): OAuth defaults, domain validation, Microsoft display name, native links & brandable login - #1343

Merged
antosubash merged 8 commits into
mainfrom
feat/users-oauth-and-branded-login
Nov 30, 2026
Merged

antosubash merged 8 commits into
mainfrom
feat/users-oauth-and-branded-login

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

Closes #1332
Closes #1336
Closes #1338
Closes #1339
Closes #1340

Verification

Browser QA (Playwright against live dev stack on :8213 / :5213)

  • /users/login (default): rendered default i18n aside copy and Microsoft OAuth link (Continue with IIASA Account) with href="/api/users/auth/microsoft/login" and data-native-link attribute.
  • /admin/branding: saved padded login_heading and login_tagline, confirmed inputs reconciled to trimmed values with unsaved-changes counter cleared and Publish branding disabled, and verified persistence across full page reload.
  • /users/login (branded): confirmed custom heading and tagline rendered in the login split-aside while preserving the native OAuth button.
  • /admin/branding → clear & /users/login (fallback): cleared both fields, published, and confirmed /users/login fell back to default i18n copy.
  • Zero console errors, zero page errors, zero failed network requests across all scenarios.

Local CI

  • make gen — clean (0 diff)
  • make lint — passed (Ruff format/check, ty, Biome, host/module tsc, locales, doc paths, i18n/API freshness, file-size/convention checks)
  • make ci-doctor — passed
  • make test-js — passed
  • PYTEST_WORKERS=8 make test-py — 12,300 passed, 57 skipped

@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: 3108f38
Status: ✅  Deploy successful!
Preview URL: https://f26fce31.simple-module-python.pages.dev
Branch Preview URL: https://feat-users-oauth-and-branded.simple-module-python.pages.dev

View logs

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

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:50:53.835162Z c2ed73d 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 3108f38

Pipeline Summary

  • Rounds: 1 (converged clean)
  • Stage O (optimize --safe-only): nothing-to-do (0 commits; 1 needs-care duplication lead in constants.py subsequently resolved in Stage A pass 1)
  • Stage A (dual Codex code review): 3 passes (correctness + maintainability), converged clean:
    • Pass 1: fixed newline-before-dot hostname regex (fullmatch), whitespace-only tenant override inheritance, Manage.tsx publish trim reconciliation, useLoginState.submitLogin email sync, BrandingUpdate mode="before" trim-before-bound, _clean_bounded_text helper extraction, DEFAULT_MICROSOFT_DISPLAY_NAME, LoginForm.test.tsx URL arg, and exact boundary tests.
    • Pass 2: fixed IDNA trailing root dot equivalents (\u3002, \uff0e, \uff61), clean_footer_text docstring, docs/modules/branding.md updates, and submitLogin verification resend test.
    • Pass 3: correctness CLEAN (0 findings); 2 low test/doc-only fixes (users_Login.branding.test.tsx real signIn export check + branding.md Inertia payload example).
    • Post-CI fix (3108f383): guarded undefined fields when reconciling partial PUT /api/branding/ responses in Manage.tsx + regression test in branding_ManageSave.test.tsx.
  • Stage B (Playwright browser QA on :8213 / :5213): 1 iteration, 0 bugs, 0 console/page/network errors (verified default /users/login + custom Microsoft display name + data-native-link, /admin/branding padded save/trim/reload persistence, branded /users/login copy, and cleared fallback; stack stopped cleanly).
  • Stage C (local + remote CI):
    • Local CI: make gen (0 diff), make lint, make ci-doctor, make test-js, PYTEST_WORKERS=8 make test-py (12,300 passed, 57 skipped).
    • Remote CI: 22/22 checks passed (including PR/PR checks, Postgres tests 1-4/4, E2E smoke 1-2/2, Production Docker smoke, JS tests, Python tests 1-4/4, Migrations round trip, Perf guards).

@antosubash
antosubash merged commit 6f72928 into main Nov 30, 2026
22 checks passed
@antosubash
antosubash deleted the feat/users-oauth-and-branded-login branch November 30, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment