GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(2fa): put the setup success card on the M3 scheme by Storypapst · Pull Request #855 · OpenResilienceInitiative/ORISO-Frontend Conversation
|
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
📝 WalkthroughWalkthroughThe 2FA success step now renders the custom filled checkmark with the tenant primary color. Its close action uses a single-column, right-aligned layout on desktop and mobile. Tests cover rendering, color tokens, alignment, and text wrapping. ChangesTwo-factor setup success step
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 7✅ Passed checks (7 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss`:
- Around line 320-322: Insert a blank line immediately before the “M3 brand
role” double-slash comment in the style block, preserving the existing comment
and fill declaration.
- Around line 356-360: Scope the white-space: nowrap rule in the
twoFactorSetupDialog styles to the success footer selector &__actions--single
&__primaryAction, while retaining the existing primary-action styling. Update
the related style test in
src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts lines 50-58 to
assert the success-scoped selector, and verify responsive and localization
behavior in the surrounding ORISO flow.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 29d43e35-acbc-4897-9670-de64c79f3b8f
src/components/twoFactorAuth/TwoFactorSetupDialog.test.tsxsrc/components/twoFactorAuth/TwoFactorSetupDialog.tsxsrc/components/twoFactorAuth/twoFactorSetupDialog.styles.scsssrc/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts📄 CodeRabbit inference engine (AGENTS.md)
**/*.{ts,tsx,js,jsx}: Keep shared behavior in hooks/utilities when multiple screens need the same state, route, selection, or formatting logic.
UI changes must have accessible focus/keyboard behavior and must not rely on color alone.
Files:
src/components/twoFactorAuth/TwoFactorSetupDialog.test.tsxsrc/components/twoFactorAuth/twoFactorSetupDialog.styles.test.tssrc/components/twoFactorAuth/TwoFactorSetupDialog.tsx📄 CodeRabbit inference engine (AGENTS.md)
Reuse existing design tokens, Sass mixins, and component patterns; avoid one-off hardcoded CSS for controls, active list states, focus rings, and responsive layout.
Files:
src/components/twoFactorAuth/TwoFactorSetupDialog.test.tsxsrc/components/twoFactorAuth/twoFactorSetupDialog.styles.scsssrc/components/twoFactorAuth/twoFactorSetupDialog.styles.test.tssrc/components/twoFactorAuth/TwoFactorSetupDialog.tsx⚙️ CodeRabbit configuration file
src/**/*.{ts,tsx,js,jsx}: Check behavior against the surrounding ORISO flow, not only types.
Flag duplicated route/state logic, missing error/loading handling,
privacy regressions around Matrix/chat/drafts, and changes that should
be expressed through shared hooks or utilities instead of local flags.
Files:
src/components/twoFactorAuth/TwoFactorSetupDialog.test.tsxsrc/components/twoFactorAuth/twoFactorSetupDialog.styles.test.tssrc/components/twoFactorAuth/TwoFactorSetupDialog.tsx⚙️ CodeRabbit configuration file
src/**/*.scss: Prefer existing design tokens, mixins, and shared component states.
Flag hardcoded one-off styling when the same control/state already
exists elsewhere. Active/focus/list-item behavior should stay shared.
Files:
src/components/twoFactorAuth/twoFactorSetupDialog.styles.scssLearnt from: Storypapst
Repo: OpenResilienceInitiative/ORISO-Frontend PR: 485
File: src/components/conversationCreate/conversationCreate.styles.scss:168-175
Timestamp: 2026-07-17T23:33:56.247Z
Learning: This repo uses Stylelint v15.11.0. For the `value-keyword-case` rule, `currentColor` is considered an accepted keyword under this configuration. During code review, do not flag `currentColor` based on newer Stylelint (e.g., v17) behavior; only flag violations according to the repo’s Stylelint 15.11.0 setup.
Applied to files:
src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss[error] 320-320: Expected empty line before comment (scss/double-slash-comment-empty-line-before)
(scss/double-slash-comment-empty-line-before)
src/components/twoFactorAuth/TwoFactorSetupDialog.tsx (2)
22-24: LGTM!Also applies to: 719-722, 843-849
70-72: 🎯 Functional CorrectnessNo SVG paint contract issue.
checkmark_filled.svghas no hard-codedfillorstroke, and existing vendor styles make inline SVG paths inherit current color.src/components/twoFactorAuth/TwoFactorSetupDialog.test.tsx (1)
211-215: LGTM!Also applies to: 361-371
src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss (2)
317-323: 🎯 Functional CorrectnessVerify that the asset can inherit this fill.
The rule sets
fillon the root SVG. Confirm thatcheckmark_filled.svgdoes not override the paint on its child paths. The component test uses an empty SVG mock, so it cannot validate the rendered asset color.
337-343: LGTM!Also applies to: 362-364, 415-418
src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts (1)
35-48: LGTM!Also applies to: 60-68
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // M3 brand role, not a traffic-light green: ORISO signals success with | ||
| // the scheme's primary colour (same rule as the voice-note player). | ||
| fill: var(--m3-primary, #a5000a); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Add the required blank line before the comment.
Stylelint reports scss/double-slash-comment-empty-line-before at Line 320. Insert an empty line before the // M3 brand role... comment to prevent the style check from failing.
[error] 320-320: Expected empty line before comment (scss/double-slash-comment-empty-line-before)
(scss/double-slash-comment-empty-line-before)
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss` around lines
320 - 322, Insert a blank line immediately before the “M3 brand role”
double-slash comment in the style block, preserving the existing comment and
fill declaration.
Source: Linters/SAST tools
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| &__primaryAction { | ||
| text-transform: none !important; | ||
| font-weight: 600 !important; | ||
| white-space: nowrap !important; | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Scope the no-wrap rule to the success footer.
The production selector and its test currently apply the no-wrap contract to every primary action. This can cause overflow for longer localized labels in the non-success multi-action footer.
src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss#L356-L360: move white-space: nowrap into the &__actions--single &__primaryAction selector.src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts#L50-L58: update the regex to assert the success-scoped selector.As per path instructions, check responsive and localization behavior against the surrounding ORISO flow.
src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss#L356-L360 (this comment)src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts#L50-L58Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss` around lines
356 - 360, Scope the white-space: nowrap rule in the twoFactorSetupDialog styles
to the success footer selector &__actions--single &__primaryAction, while
retaining the existing primary-action styling. Update the related style test in
src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts lines 50-58 to
assert the success-scoped selector, and verify responsive and localization
behavior in the surrounding ORISO flow.
Source: Path instructions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Superseded by #857. The two-factor success card now plays the shared confirmation animation, which put both changes on the same files, so the commit from this branch is included there and the fixes ship as one package. Closing this in favour of #857. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.