Skip to content

Replace Mosaic split-view library with custom tiles#679

Merged
Mng-dev-ai merged 1 commit into
mainfrom
refactor/replace-mosaic-with-custom-tiles
Jun 27, 2026
Merged

Replace Mosaic split-view library with custom tiles#679
Mng-dev-ai merged 1 commit into
mainfrom
refactor/replace-mosaic-with-custom-tiles

Conversation

@Mng-dev-ai

Copy link
Copy Markdown
Owner

Summary

  • Replace Mosaic library with custom grid-based tile system for managing split panes
  • Simplify layout state management using 2D array (rows of tiles) instead of binary tree
  • Remove 1000+ lines of abstraction while maintaining feature parity
  • Remove Mosaic from package.json dependencies

Changes

  • Rename mosaicHelperstileHelpers with new layout utilities
  • Refactor uiStore split-view state to use TileId[][] grid layout
  • Replace MosaicSplitView component with WorkspaceSplit
  • Update all layout hooks (useActiveViews, useIsSplitMode, etc.) for tile layout
  • Update type definitions and command registry

Test plan

  • Verify split panes can be opened side-by-side (row layout)
  • Verify shift-click stacks panes vertically (new rows)
  • Verify pane closing removes tiles and preserves remaining layout
  • Verify mobile view shows single pane switching
  • Verify secondary (split-chat) tiles work correctly
  • Check that existing split-view state restores on reload

…yout

Replace the Mosaic library with a custom grid-based tile system for managing
split panes. Simplifies layout state management by using a 2D array (rows of
tiles) instead of Mosaic's binary tree structure. Removes 1000+ lines of
abstraction while maintaining feature parity.

- Rename mosaicHelpers to tileHelpers with new layout utilities
- Refactor uiStore split-view state to use TileId[][] grid layout
- Replace MosaicSplitView component with WorkspaceSplit
- Update all layout hooks and view management to work with tile layout
- Remove Mosaic dependency from package.json
@Mng-dev-ai Mng-dev-ai marked this pull request as ready for review June 27, 2026 15:08
@Mng-dev-ai Mng-dev-ai merged commit 0828354 into main Jun 27, 2026
2 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