Repository navigation
fix(login): preserve body class on OAuth grant - #1062
ShaunLinTW wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthrough
ChangesOAuth grant body class
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The OAuth page preserves custom body styling while retaining the required OAuth class, with both supported configurations covered by tests. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
LoginOauthGrantpassesbodyClassName="oauth"to the shared template, which replaces the configuredkcBodyClasson the OAuth consent page.Compose the theme body class with the OAuth-specific class so custom body styling is preserved without removing the existing
oauthmarker or changing the globalTemplate.bodyClassNameoverride semantics.Added regression coverage for both a custom
kcBodyClassand the default case.Tested with:
vitest run test/login/LoginOauthGrant.spec.tsvitest run(31 tests)tsc -p test/tsconfig.json --noEmitprettier --check src/login/pages/LoginOauthGrant.tsx test/login/LoginOauthGrant.spec.tsgit diff --checkfixes #958
Summary by CodeRabbit