Skip to content

feat(browser): add bookmark folders and ordering #28

Closed

Description

@trmosala

Problem

Bookmarks are flat and imports discard folder structure.

Implementation order

Browser backlog item 24 of 29. Phase: Optional conveniences. This is ordered planning, not a claim that Codex implements every item. Items 24–29 are optional additions.

Acceptance criteria

  • Add folders and ordering with backward-compatible migration.
  • Preserve supported folder structure through HTML import/export.
  • Test duplicates, limits, malformed input and existing pin state.

Dependencies

No prerequisite backlog issue.

Engineering and validation

Reuse existing Chromium/Electron/OS facilities where available. Preserve main-process ownership and permission enforcement, add no placeholder controls, use existing i18n patterns, and test behavior with synthetic fixtures. Document platform limitations. Baseline: browser-tabs at 47fef3e; see packages/cm-browser/README.md and password-security.md.

Activity

  1. trmosala commented on Sep 18, 2026

    @trmosala
    OwnerAuthor

    Implemented and published on browser-tabs at 62e3f4ca9 (feat(browser): add bookmark folders and ordering).

    Delivered:

    • backward migration of flat bookmark records into the root folder without changing IDs, order, or pin state;
    • nested folders (8 levels, 128 characters per segment, 500 folders total) and ordering within each folder;
    • standard bookmark HTML import/export that preserves supported nested structure, traversal order, and CookieMonster pin state;
    • normalized-URL deduplication that preserves existing entries and uses the first source duplicate;
    • explicit 5 MB / 2,000 bookmark limits plus malformed and unsafe input rejection;
    • native coverage for migration, ordering, edit stability, round-trip import/export, duplicate behavior, and bookmark survival after history clearing.

    Verification: focused bookmark-format tests 3/3; imports fixture all 43 production-flow cases; full isolated native browser smoke PASS; desktop browser suite 184/184; selected app tests 11/11; desktop and app typechecks PASS; push hook 31/31 typechecks PASS.

    Documented limitation: empty folders are not stored, and › is reserved as the folder-path delimiter in the editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions