Skip to content

Comments

Enhance support for different profiles#10

Open
iamlopes-eng wants to merge 7 commits intomasterfrom
lopes/fix/9-enhance-support-for-different-profiles
Open

Enhance support for different profiles#10
iamlopes-eng wants to merge 7 commits intomasterfrom
lopes/fix/9-enhance-support-for-different-profiles

Conversation

@iamlopes-eng
Copy link
Contributor

This PR simplifies profile selection by adding numeric profile support (e.g., /1, /2) and implements bookmark merging for multiple profiles.

Changes

  • Added numeric profile support: brave://bookmarks/1, brave://bookmarks/2 instead of requiring full profile names
  • Implemented execute_multiple method in BookmarksTransform to merge bookmarks from multiple profiles
  • Refactored fetch_bookmarks to use the new merge functionality
  • Simplified user experience by removing the need to specify exact profile names like /Profile 1

Now users can simply use numeric indices to access specific profiles, and when no index is specified (e.g., brave://bookmarks), all profiles are automatically merged into a single result.

@iamlopes-eng iamlopes-eng linked an issue Aug 12, 2025 that may be closed by this pull request
@artob artob requested a review from Copilot August 12, 2025 12:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances profile support by adding numeric profile indices and implementing bookmark merging functionality. Users can now access profiles using simple numeric indices (e.g., /1, /2) instead of full profile names, and the system automatically merges bookmarks from all profiles when no specific profile is requested.

  • Added numeric profile indexing system for easier profile access
  • Implemented bookmark merging to combine results from multiple profiles
  • Refactored Arc browser support to use the new numeric profile system

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/specialized/arc.rs Added numeric profile mapping functions and duplicate conversion method
src/cataloger/main.rs Added logic to skip transformation for already-processed JSON-LD content
src/browsers.rs Implemented numeric profile support and bookmark merging across all browsers
src/bookmarks.rs Added execute_multiple method to merge bookmarks from multiple profiles
README.md Updated documentation to reflect new numeric profile syntax

Copy link

@isaac-asimov-bot isaac-asimov-bot bot left a comment

Choose a reason for hiding this comment

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

⚠️ CI failed

Show all
Platform Name Status Details
All Formatting Details
Linux Build library Details
Linux Build library (no default features) Details
Linux Build binaries Details
Linux Build tests Details
Linux Build examples Details
Linux Run tests Details
Linux Run doctests Details
macOS Build library Details
macOS Build library (no default features) Details
macOS Build binaries Details
macOS Build tests Details
macOS Build examples Details
macOS Run tests Details
macOS Run doctests Details
Windows Build library Details
Windows Build library (no default features) Details
Windows Build binaries Details
Windows Build tests Details
Windows Build examples Details
Windows Run tests Details
Windows Run doctests Details

=============================================

Platform Name Status Details
All Formatting Details

@iamlopes-eng iamlopes-eng marked this pull request as ready for review August 13, 2025 11:01
@artob artob self-assigned this Aug 20, 2025
@artob artob self-requested a review August 20, 2025 15:49
@artob artob added the enhancement New feature or request label Aug 20, 2025
@artob artob moved this to In review in Platform Launch Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

Enhance support for different profiles

2 participants