Browser Bookmarks Import Feature #340
Open
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.
Overview
Adds the ability to import bookmarks and folders from the browser's bookmarks into Widgetify. Users can select multiple items, with limits based on available slots, and import folder contents.
Features
1. Import Bookmark Modal (
import-bookmark.modal.tsx)2. Permission Handling
bookmark-permission-info.modal.tsx) with screenshot3. Import Functionality
4. UI/UX Improvements
Technical Details
New Components
import-bookmark.modal.tsx: Main import modal with tree view and selectionbookmark-permission-info.modal.tsx: Permission explanation modal with screenshotModified Components
add-bookmark.modal.tsx: Added import button, removed browser bookmark logicbookmarks.tsx: Added import modal state management and slot calculationKey Functions
toggleItemSelection: Handles bookmark/folder selectiontoggleImportChildren: Toggles folder content import with capacity validationgetSelectedCount: Calculates total selected items including folder contentshandleImport: Processes and imports all selected itemsValidation & Limits
User Flow
Edge Cases Handled
This feature enhances the bookmark management experience by allowing users to quickly import their existing browser bookmarks into Widgetify with a user-friendly interface and proper validation.