Skip to content

Add browser sync, detection, and parsers#7

Merged
sukanth merged 2 commits intomasterfrom
sync-feature
Apr 18, 2026
Merged

Add browser sync, detection, and parsers#7
sukanth merged 2 commits intomasterfrom
sync-feature

Conversation

@sukanth
Copy link
Copy Markdown
Owner

@sukanth sukanth commented Apr 18, 2026

Introduce browser-based sync by adding a new mindmark.browsers package (paths, chromium, firefox, init) to detect installed browsers and parse bookmarks (Chromium JSON and Firefox places.sqlite). Add CLI sync command and related UI hints, plus README/CONTRIBUTING updates documenting the sync workflow. Extend Index to support incremental sync: content hashing, bookmark_sources table, schema migration to v2, sync/rebuild logic, and model-change handling; implement safe Firefox DB snapshotting and Chromium tree walking. Add comprehensive tests for detection, parsing, and orchestration and include .coverage capture.

What this PR does

Why

How to test

Checklist

  • Tests pass (pytest -q)
  • New behavior is covered by tests (if applicable)
  • README or docs updated (if applicable)

sukanth added 2 commits April 18, 2026 13:51
Introduce browser-based sync by adding a new mindmark.browsers package (paths, chromium, firefox, __init__) to detect installed browsers and parse bookmarks (Chromium JSON and Firefox places.sqlite). Add CLI `sync` command and related UI hints, plus README/CONTRIBUTING updates documenting the sync workflow. Extend Index to support incremental sync: content hashing, bookmark_sources table, schema migration to v2, sync/rebuild logic, and model-change handling; implement safe Firefox DB snapshotting and Chromium tree walking. Add comprehensive tests for detection, parsing, and orchestration and include .coverage capture.
Add a close() method to Index to explicitly close the SQLite connection. Refactor tests to use pytest (import pytest) and a shared idx fixture that creates an Index via _make_index(tmp_path/"test.db") and ensures the DB is closed on teardown. Update _make_index signature to accept a db_path and convert many tests to use the idx fixture (removing tempfile usage and simplifying setup/teardown). Also ensure the migration test closes the index after assertions. These changes improve test hygiene and ensure DB connections are properly cleaned up.
@sukanth sukanth merged commit 79ca48d into master Apr 18, 2026
17 of 18 checks passed
@sukanth sukanth deleted the sync-feature branch April 18, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant