-
Notifications
You must be signed in to change notification settings - Fork 6
Use dialog from shared UI #324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for graypaper-reader ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
WalkthroughReplaced local dropdown-menu module; migrated modal UI from react-modal to shared-ui DialogModal and removed react-modal; updated Tailwind imports and added shared-ui styles; swapped several HTML buttons for Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Header
participant MoreBtn as MoreNotesActionsButton
participant Settings as SettingsModal
participant Dialog as DialogModal(shared-ui)
User->>Header: clicks "More"
Header->>MoreBtn: open modal
MoreBtn->>Settings: set isOpen = true
Settings->>Dialog: Dialog.open = isOpen
Dialog-->>Settings: user clicks Close
Settings->>MoreBtn: onClose -> toggleModal
MoreBtn->>Header: isOpen = false (modal closed)
rect #F0F7FF
note right of Dialog: DialogModal replaces react-modal and local modal implementation
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (20)
📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
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 |
Visual Regression Test Report ✅ PassedGithub run id: 18317522940 🔗 Artifacts: Download |
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: 0
🧹 Nitpick comments (1)
package.json (1)
53-53: Drop the orphaned@types/react-modalentry.Since we no longer ship
react-modal, the corresponding type package now just bloats installs. Please remove it to keep devDependencies aligned with actual usage.- "@types/react-modal": "^3.16.3",
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (1)
package.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: visual-tests
Summary by CodeRabbit
Style
Chores
Refactor
Chores
Infrastructure