GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@Storypapst

@Storypapst Storypapst commented Aug 2, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Closes #854

The last screen of the two-factor setup flow was the only surface in that dialog ignoring the tenant scheme, and its single action button was squeezed into an icon-sized grid track.

Changes

  • renderSuccess now uses ORISO's own checkmark_filled.svg instead of MUI's CheckCircleRounded. The asset carries no baked-in fill, so the SCSS paints it with --m3-primary — the same move the voice-note player already made away from --m3-success green.
  • New twoFactorSetupDialog__actions--single modifier, applied on the success step, collapses the 72px 72px 1fr action row to one right-aligned column. It is re-declared inside the @media (width <= 520px) block, because the mobile rule re-declares the icon tracks and would otherwise win by source order.
  • __primaryAction gets white-space: nowrap plus a min-width in the single-action row, so the label can never break mid-word again.

Tests

  • twoFactorSetupDialog.styles.test.ts: two new cases pin the brand-role fill (and assert the green is gone) and the single-row override for both desktop and mobile.
  • TwoFactorSetupDialog.test.tsx: the app-success case now asserts the ORISO checkmark renders and that the footer carries the --single class with exactly one button.
  • npx vitest run src/components/twoFactorAuth/ — 21 passed, 5 files.

Reviewer test plan

  • Complete the authenticator-app setup path to the success step: the checkmark is brand-coloured, not green.
  • Complete the e-mail-code setup path to its success step: same checkmark treatment.
  • On the success step, "Schließen" sits on a single line, right-aligned, and closes the dialog.
  • Repeat the success step at ≤520px width (mobile): still one line, still right-aligned, no horizontal overflow.
  • Step back to a non-success step (e.g. verification): close and back icon buttons plus the primary action still share one row as before.
  • With a tenant whose primary colour is not the default red, the checkmark follows that tenant colour.

Summary by CodeRabbit

  • Style

    • Updated the two-factor authentication success screen with the primary brand color.
    • Improved success-state action layout with a single, right-aligned button.
    • Added responsive behavior for mobile displays and prevented button text wrapping.
  • Tests

    • Added coverage for success icon styling and action alignment across desktop and mobile layouts.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Storypapst
fix(2fa): put the setup success card on the M3 scheme
a18caea
The success step painted MUI's CheckCircleRounded with --m3-success
(#0a882f), the only surface in this dialog that ignores the tenant
scheme. Swap it for ORISO's own checkmark_filled.svg, which carries no
baked-in fill, and colour it with --m3-primary — same move the voice-note
player already made away from success green.

The action row is sized 72px/72px/1fr for close-icon, back-icon and the
primary action. Success hides both icon buttons, so the lone "Schließen"
landed in the first 72px track and broke mid-word. Add an --single
modifier that collapses the row to one right-aligned column, re-declared
inside the mobile block so the 64px tracks there do not win by source
order.

Refs #854
@cursor

cursor Bot commented Aug 2, 2026

Copy link
Copy Markdown

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Aug 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The 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.

Changes

Two-factor setup success step

Layer / File(s) Summary
Success rendering and action state
src/components/twoFactorAuth/TwoFactorSetupDialog.tsx, src/components/twoFactorAuth/TwoFactorSetupDialog.test.tsx
The success view uses SuccessCheckIcon. The action container applies twoFactorSetupDialog__actions--single. Tests verify the icon, modifier class, and single remaining button.
Themed icon and responsive action layout
src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss, src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts
The icon uses the M3 primary color. The close action is right-aligned, non-wrapping, and single-column on desktop and mobile. Tests cover these style rules.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • OpenResilienceInitiative/ORISO-Frontend#535: Modifies TwoFactorSetupDialog and its tests for post-activation error handling.
  • OpenResilienceInitiative/ORISO-Frontend#570: Modifies the same dialog stylesheet and style tests for different styling changes.

Suggested labels: coderabbit

Suggested reviewers: shazia-k, shanzaeimran

🚥 Pre-merge checks | ✅ 7
✅ Passed checks (7 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title uses a conventional fix prefix, names the 2FA area, and describes the M3 success-card change.
Linked Issues check ✅ Passed The changes satisfy [#854] by applying the M3 primary checkmark, using the ORISO asset, and fixing single-action alignment and wrapping.
Out of Scope Changes check ✅ Passed The implementation and tests remain within [#854], including success styling, responsive action layout, and preservation of other-step behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Validation Evidence ✅ Passed Product behavior changes include relevant component and SCSS tests; the PR also reports npx vitest run src/components/twoFactorAuth/ with 21 passed across 5 files.
Shared Ui Architecture ✅ Passed The change reuses MUI buttons, IconButton, Tooltip, existing clsx, the shipped checkmark asset, and the tenant --m3-primary token; no duplicate shared interaction primitive was created.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/2fa-success-card-scheme

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.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot requested changes Aug 2, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
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.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 29d43e35-acbc-4897-9670-de64c79f3b8f

📥 Commits

Reviewing files that changed from the base of the PR and between 0104c03 and a18caea.

📒 Files selected for processing (4)
  • src/components/twoFactorAuth/TwoFactorSetupDialog.test.tsx
  • src/components/twoFactorAuth/TwoFactorSetupDialog.tsx
  • src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss
  • src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts
📜 Review details
⏰ Context from checks skipped due to timeout. (4)
  • GitHub Check: lint, type-check, test, build and Docker validation
  • GitHub Check: lint, type-check, build and Storybook Docker validation
  • GitHub Check: lint, type-check, build and test frontend
  • GitHub Check: lint, type-check and build frontend
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{ts,tsx,js,jsx}

📄 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.tsx
  • src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts
  • src/components/twoFactorAuth/TwoFactorSetupDialog.tsx
**/*.{scss,sass,css,ts,tsx,js,jsx}

📄 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.tsx
  • src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss
  • src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts
  • src/components/twoFactorAuth/TwoFactorSetupDialog.tsx
src/**/*.{ts,tsx,js,jsx}

⚙️ 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.tsx
  • src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts
  • src/components/twoFactorAuth/TwoFactorSetupDialog.tsx
src/**/*.scss

⚙️ 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.scss
🧠 Learnings (1)
📚 Learning: 2026-07-17T23:33:56.247Z
Learnt 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
🪛 Stylelint (17.14.1)
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)

🔇 Additional comments (6)
src/components/twoFactorAuth/TwoFactorSetupDialog.tsx (2)

22-24: LGTM!

Also applies to: 719-722, 843-849


70-72: 🎯 Functional Correctness

No SVG paint contract issue.

checkmark_filled.svg has no hard-coded fill or stroke, 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 Correctness

Verify that the asset can inherit this fill.

The rule sets fill on the root SVG. Confirm that checkmark_filled.svg does 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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss
Comment on lines +320 to +322
// 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);

@coderabbitai coderabbitai Bot Aug 2, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for 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.

🧰 Tools
🪛 Stylelint (17.14.1)

[error] 320-320: Expected empty line before comment (scss/double-slash-comment-empty-line-before)

(scss/double-slash-comment-empty-line-before)

🤖 Prompt for AI Agents
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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss
Comment on lines 356 to +360
&__primaryAction {
text-transform: none !important;
font-weight: 600 !important;
white-space: nowrap !important;
}

@coderabbitai coderabbitai Bot Aug 2, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for 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.

📍 Affects 2 files
  • src/components/twoFactorAuth/twoFactorSetupDialog.styles.scss#L356-L360 (this comment)
  • src/components/twoFactorAuth/twoFactorSetupDialog.styles.test.ts#L50-L58
🤖 Prompt for AI Agents
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
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.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@coderabbitai coderabbitai Bot mentioned this pull request Aug 2, 2026
Success confirmations: play the shared Lottie animations instead of the green static illustrations #856
Closed
8 tasks
@Storypapst Storypapst mentioned this pull request Aug 2, 2026
feat(success): play the shared confirmation animations in the tenant's colours #857
Merged
14 tasks
This was referenced Aug 2, 2026
ADR: tenant branding contract for e-mails — one mechanism instead of three #862
Closed
Storybook: account and access mails — magic link, OTP, password reset #866
Closed
Profile settings: introduce 'Sicherheit & Datenschutz' section with grouped security, recovery and privacy options #878
Closed
[Bug]: public DPA sign page asks for the organisation a second time #879
Closed
@Storypapst

Storypapst commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Storypapst Storypapst closed this Aug 2, 2026
@Storypapst Storypapst mentioned this pull request Aug 2, 2026
2FA setup dialog: success step uses off-scheme green check and a wrapped close button #854
Closed
6 tasks
This was referenced Aug 2, 2026
Element Call: put the call UI on the OrisoScheme colour contract (dark) #896
Closed
Generate the Element Call theme from the OrisoScheme engine (+ drift test) #897
Closed
Regenerate the App.Oriso Figma colour variables from the engine #901
Open
Animations: bring the licensed set into the repo with tokenised fallbacks #933
Closed
Asker flow fixes: timeline empty state, single-topic auto-select, about-me email save race #953
Closed
[FE-H05a] Remove Caritas legal-URL fallback, branding and storage keys from the frontend #964
Closed
Login: replace the green security banner with the end-to-end encryption explainer card #991
Closed
EPIC: Accessibility — WCAG 2.1 AA before go-live, WCAG 2.2 AA as the end state #997
Open
This was referenced Aug 11, 2026
UI Focus & Accessibility Improvements #595
Closed
Live-chat queue: cancel-chat dialog is missing (stay / start / delete profile) #893
Closed
Consultant deep links are swallowed by forced 2FA onboarding redirect #841
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] requested changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Storypapst
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.