chore: new secondary-danger generic modal variant#37223
chore: new secondary-danger generic modal variant#37223kodiakhq[bot] merged 6 commits intodevelopfrom
secondary-danger generic modal variant#37223Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
WalkthroughAdds a new GenericModal variant Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User
participant GM as GenericModal
participant BTN as ConfirmButton
U->>GM: open modal (variant="danger-secondary")
GM->>GM: getButtonProps("danger-secondary")
Note right of GM #DDEBF7: returns { secondary: true, danger: true }
GM->>BTN: render confirm button with props
U-->>BTN: click confirm
BTN-->>GM: onConfirm()
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
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 |
packages/ui-client/src/components/Modal/GenericModal/GenericModal.spec.tsx
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #37223 +/- ##
========================================
Coverage 67.68% 67.69%
========================================
Files 3342 3342
Lines 114028 114030 +2
Branches 20677 20677
========================================
+ Hits 77185 77192 +7
+ Misses 34166 34163 -3
+ Partials 2677 2675 -2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
packages/ui-client/src/components/Modal/GenericModal/GenericModal.spec.tsx (1)
28-44: Consider verifying variant-specific behavior rather than just rendering.Per your own comment on line 28, testing all variants may not add much value if the tests only verify basic rendering. If you decide to keep variant-specific tests, consider asserting on the actual differences between variants (e.g., button props, icon presence) rather than just snapshot testing.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
⛔ Files ignored due to path filters (1)
packages/ui-client/src/components/Modal/GenericModal/__snapshots__/GenericModal.spec.tsx.snapis excluded by!**/*.snap
📒 Files selected for processing (1)
packages/ui-client/src/components/Modal/GenericModal/GenericModal.spec.tsx(1 hunks)
packages/ui-client/src/components/Modal/GenericModal/GenericModal.spec.tsx
Outdated
Show resolved
Hide resolved
danger-secondary generic modal variantsecondary-danger generic modal variant
Co-authored-by: Douglas Fabris <27704687+dougfabris@users.noreply.github.com>
Co-authored-by: Douglas Fabris <27704687+dougfabris@users.noreply.github.com>
Proposed changes (including videos or screenshots)
Create a new
secondary-dangervariant for theGenericModalcomponentIssue(s)
ABAC-56
Further comments
Summary by CodeRabbit
New Features
Tests