Skip to content

refactor(core): move the AdvancedDnD module into dockview-core#1387

Merged
mathuo merged 1 commit into
v8-branchfrom
refactor/advanced-dnd-to-core
Jul 1, 2026
Merged

refactor(core): move the AdvancedDnD module into dockview-core#1387
mathuo merged 1 commit into
v8-branchfrom
refactor/advanced-dnd-to-core

Conversation

@mathuo

@mathuo mathuo commented Jul 1, 2026

Copy link
Copy Markdown
Owner

What

Relocates the AdvancedDnD module from dockview-modules into dockview-core.

  • Moves advancedDnDService.ts (implementation) and its three test specs into core.
  • Registers AdvancedDnDModule via core's allModules.ts (so it auto-registers from core), and exports AdvancedDnDModule / AdvancedDnDService from the core entrypoint.
  • Repoints the two modules that dependsOn it — drop guide and keyboard docking — to import AdvancedDnDModule from dockview-core.

The service's contract (IAdvancedDnDHost / IAdvancedDnDService) already lived in core's moduleContracts.ts; only the implementation and tests needed to move.

Why

AdvancedDnD's onWill* hooks have shipped in core for years, so it belongs with the built-in core modules rather than the separately-distributed package. Moving it into core also resolves an existing coupling where core reached into the sibling package to call the service.

Behaviour / API

Unchanged. The dockview meta-package re-exports core (export * from 'dockview-core'), so AdvancedDnDModule / AdvancedDnDService remain importable from dockview, and DockviewComponent auto-registers AllModules exactly as before.

Verification

  • dockview-core: 1117 tests green (incl. the relocated specs), tsc --noEmit clean, full build clean.
  • dockview-modules: 184 tests green, tsc --noEmit clean against the rebuilt core types.
  • Formatted (prettier), no dangling references.

🤖 Generated with Claude Code

Relocate the AdvancedDnD service and its tests from dockview-modules into
dockview-core, register it via allModules, and export it from the core
entrypoint. Repoint the drop-guide and keyboard-docking modules, which
dependOn it, to import AdvancedDnDModule from dockview-core.

Public API and behaviour are unchanged: the dockview meta-package re-exports
core, and DockviewComponent auto-registers AllModules. Core 1117 + modules 184
tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mathuo mathuo force-pushed the refactor/advanced-dnd-to-core branch from 68b02fc to 6c363db Compare July 1, 2026 16:19
@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

@mathuo mathuo merged commit fae83c4 into v8-branch Jul 1, 2026
9 checks passed
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