Repository navigation
Migrate bookmarks panel - #3889
Conversation
…migrate Header component Add new shadcn/ui base components including Badge, Dialog, InputGroup, Input, Label, and Textarea. Update Header and Search components in shared package to use Tailwind CSS instead of CSS modules. Migrate BookmarksHeader and ConfirmationDialog to use shadcn components. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extension Size Change: 99.03 KB 🔺
Significant size increase in this commit
|
- Replace CSS modules with Tailwind classes in BookmarksPanel components - Remove obsolete module.css files (Bookmark, BookmarksPanel, VirtualRow) - Add shadcn/ui hover-card component for person avatar tooltips - Update styling in BookmarksHeader, VirtualRow, and Bookmark components - Consolidate global CSS imports into extension entry point - Update shared package dependencies for styling consistency Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove CSS module files for FolderRow and Folder components - Replace module.css imports with Tailwind utility classes - Update hover and focus states using Tailwind syntax - Clean up global CSS imports and remove unused styles - Update migration plan markdown with progress tracking Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extension Size Change: 99.71 KB 🔺
Significant size increase in this commit
|
- Add shadcn/ui context-menu component to packages/ui - Migrate ContextMenu component from Mantine to Radix UI primitives - Remove ContextMenu.module.css and use Tailwind classes - Update BookmarkContextMenu with new shadcn context-menu API - Update BookmarksHeader, FolderRow, and PersonVirtualCell to use new context menu - Update migration plan with context menu completion status Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extension Size Change: 112.02 KB 🔺
Significant size increase in this commit
|
…utton - Add shadcn/ui separator component for visual dividers - Add custom button-group component for grouped button styles - Migrate ScrollButton from CSS module to Tailwind classes - Update Header to use new button-group component - Remove ScrollButton.module.css file - Update migration plan with progress tracking Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extension Size Change: 112.68 KB 🔺
Significant size increase in this commit
|
- Add shadcn/ui combobox component with command-like functionality - Add shadcn/ui field component for form field styling - Add shadcn/ui select component with Radix UI primitives - Update input and input-group components with enhanced styling - Migrate BookmarkAddEditDialog to use new form components - Update PersonSelect to use combobox with search/filter - Refactor ConfirmationDialog with improved styling - Move utility files to popup entrypoints directory - Remove unused scripting.ts utility - Update migration plan with form component completion Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extension Size Change: 141.11 KB 🔺
Significant size increase in this commit
|
- Update FolderAddEditDialog to use shadcn field components - Improve form layout and styling consistency - Clean up unused imports in BookmarksHeader and FolderRow Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extension Size Change: 141.39 KB 🔺
Significant size increase in this commit
|
- Remove unused Tooltip import from BookmarkAddEditDialog - Remove unused Separator import from FolderAddEditDialog - Clean up import statements for better code clarity Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extension Size Change: 135.17 KB 🔺
Significant size increase in this commit
|
- Add .prettierignore file to exclude build outputs - Run Prettier on all UI components for consistent formatting - Clean up component imports and improve code readability - Remove unnecessary blank lines and format spacing consistently Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extension Size Change: 135.16 KB 🔺
Significant size increase in this commit
|
- Delete shadcn-migration-plan.md as migration is complete - Clean up useBookmarkStore imports and remove unused code Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
/gemini review |
Extension Size Change: 135.16 KB 🔺
Significant size increase in this commit
|
|
@coderabbitai Please review complete PR |
|
I'll provide detailed feedback shortly. ✅ Actions performedFull review triggered. |
|
@greptileai Did I miss anything during the migration of bookmarks panel? |
|
@coderabbitai Did I miss anything during the migration of bookmarks panel? |
|
Yes, you missed a few things during the bookmarks panel migration: 1. Mantine dependencies still in package.jsonThe following Mantine packages are still listed as dependencies in
2. Mantine still being used outside bookmarks panelSeveral files still use Mantine components:
What you need to do:If your goal is to fully migrate away from Mantine, you'll need to:
The PR description says it's for "bookmarks panel" migration, so this is fine if you're doing it incrementally. But if the goal was complete Mantine removal, these parts need attention. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain
🏁 Script executed: Length of output: 988 🏁 Script executed: Length of output: 603 🏁 Script executed: Length of output: 506 🏁 Script executed: Length of output: 2300 🏁 Script executed: Length of output: 1642 🏁 Script executed: Length of output: 376 🏁 Script executed: Length of output: 5191 🏁 Script executed: Length of output: 6173 🏁 Script executed: Length of output: 4455 🏁 Script executed: Length of output: 1268 🏁 Script executed: Length of output: 4276 🏁 Script executed: Length of output: 2015 🏁 Script executed: Length of output: 3290 🏁 Script executed: Length of output: 2880 🏁 Script executed: Length of output: 397
✅ Successfully Migrated
📌 Expected Remaining ItemsThe following Mantine references are intentionally left because other panels still use them:
🎯 Recommendations
Verdict: You didn't miss anything in the BookmarksPanel migration! The remaining Mantine code exists only in other panels that haven't been migrated yet. The BookmarksPanel itself is 100% Mantine-free. 🎉 |
📝 WalkthroughWalkthroughThis pull request performs a comprehensive migration from Mantine UI components to a custom UI component library ( 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
- Fix unused variable warnings in ContextMenu and Folder components - Fix padding-box content-order warning in Favicon component - Update PersonSelect with proper type handling for combobox - Improve cache utility with better type annotations - Minor CSS adjustment in globals.css Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extension Size Change: 135.20 KB 🔺
Significant size increase in this commit
|
Check if the Pull Request fulfils these requirements
Greptile Summary
This PR migrates the bookmarks panel and several shared components from Mantine UI to shadcn/base-ui primitives, continuing the broader
feat-migrate-to-shadcneffort. Key changes include:@mantine/formto@tanstack/react-formwithzod/minischema validation inBookmarkAddEditDialogandFolderAddEditDialogModal,Select,MultiSelect,Box,Flex,Text,Avatar,Tooltip,HoverCardwith shadcn equivalents (Dialog,Select,Combobox, Tailwind utility classes, etc.)react-iconswith@hugeicons/core-free-icons+@hugeicons/reactmantine-contextmenuto a new@base-ui/react/context-menuwrapper@mantine/notificationswithsonnertoastaddToCacheto usewretchfor individual fetches with error handling (instead ofcache.add()), and addedaddAllToCachebatch helper. FixeddeleteAllCacheto properlyawaitall deletions@mantine/hooksuseHotkeystoahooksuseKeyPress— note thatmod+x/mod+v(cross-platform) was replaced withmeta.x/meta.v(Mac-only) inBookmarkContextMenutabs.tsandlastVisited.tsutils into the popup-specific directory, removed thescripting.tswrapper in favor of directbrowser.scripting.executeScriptcallsshared/styles/global.cssandshared/styles/bookmarks/styles.module.cssConfidence Score: 3/5
mod+x/mod+vto Mac-onlymeta.x/meta.vis a functional regression for Windows/Linux users. The rest of the changes (form library swap, UI component migration, caching improvements) are well-executed.BookmarkContextMenu.tsxfor the cross-platform keyboard shortcut regression, andConfirmationDialog.tsxfor keyboard accessibility.Last reviewed commit: fdbb36e