Skip to content

refactor: extract browser data-import subsystem out of BrowserPanel.swift - #57

Merged
arzafran merged 1 commit into
mainfrom
refactor/n6-extract-browser-import
Jul 8, 2026
Merged

refactor: extract browser data-import subsystem out of BrowserPanel.swift#57
arzafran merged 1 commit into
mainfrom
refactor/n6-extract-browser-import

Conversation

@arzafran

@arzafran arzafran commented Jul 8, 2026

Copy link
Copy Markdown
Member

What this does

Moves the browser data-import subsystem (~3,800 lines: importer engine, cookie decryptor, plan/outcome models, wizard coordinator) out of BrowserPanel.swift into Sources/Panels/BrowserDataImport.swift. BrowserPanel.swift drops from 10,401 to 6,585 lines.

Nuclear-review finding N6/WP2: the block has zero references to the BrowserPanel class — it was just parked in the same file.

Summary

  • Lines 6550–10354 moved verbatim; dedupedCanonicalURLs (fileprivate helper used only by import code) moves with them
  • No visibility changes needed — verified bidirectionally that no private symbol crosses the new file boundary
  • Registered in project.pbxproj

Test Plan

  • Line-count identity: 6,585 + 3,805 moved + 11 helper = 10,401 original
  • Debug build compiles clean
  • CI green (BrowserConfigTests / BrowserPanelTests cover the import machinery)

…wift

BrowserPanel.swift carried ~3,800 lines (35% of the file) of
self-contained browser-import machinery — scope/engine/profile types,
InstalledBrowserDetector, plan/outcome models, the Chromium cookie
decryptor, BrowserDataImporter, and BrowserDataImportCoordinator with
its wizard window controller. None of it references the BrowserPanel
class.

Pure move, no logic changes:
- Sources/Panels/BrowserDataImport.swift — the entire import subsystem
- BrowserPanel.swift shrinks 10,401 -> 6,585 lines
- dedupedCanonicalURLs (fileprivate helper used only by the import
  code) moves with it
@arzafran
arzafran merged commit c98826f into main Jul 8, 2026
8 checks passed
@arzafran
arzafran deleted the refactor/n6-extract-browser-import branch July 8, 2026 02:54
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