add slides minimap#9097
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
Adds a slides minimap (thumbnail list) to the slides layout to improve navigation and enable slide reordering.
Changes:
- Introduces a
SlidesMinimapcomponent with thumbnail rendering and drag-to-reorder support. - Adds a new cell reducer action (
moveCellToIndex) and maps it to document changes for persistence/sync. - Refactors slide rendering into a shared
Slidecomponent and wires slide ↔ minimap active state.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/core/cells/document-changes.ts | Treats moveCellToIndex as a reorder/config change emitter for document syncing. |
| frontend/src/core/cells/cells.ts | Adds moveCellToIndex reducer logic to reorder cells by index/column. |
| frontend/src/core/cells/tests/cells.test.ts | Adds test coverage for moveCellToIndex (same column, across columns, no-ops). |
| frontend/src/components/slides/slides-component.tsx | Adds controlled active index support and reports active index changes. |
| frontend/src/components/slides/slide.tsx | Extracts slide rendering into a memoized Slide component. |
| frontend/src/components/slides/minimap.tsx | Implements the minimap UI + drag/drop reordering logic and active-slide scrolling. |
| frontend/src/components/editor/renderers/slides-layout/slides-layout.tsx | Integrates minimap into slides layout and keeps active slide state in sync. |
Bundle ReportChanges will increase total bundle size by 12.13kB (0.05%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: marimo-esmAssets Changed:
Files in
Files in
Files in
|
mscolnick
left a comment
There was a problem hiding this comment.
very clean, nice stuff
| }; | ||
| } | ||
|
|
||
| function resolveDropTarget({ |
There was a problem hiding this comment.
could be nice to add some snapshot tests for this and projectDropTarget
There was a problem hiding this comment.
added some unit tests for those functions, don't think snapshot tests are necessary for testing the logic (could be wrong).
|
🚀 looks great! |
|
🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.23.1-dev8 |
📝 Summary
Tested with light, medium and a heavy notebook (40+ cells with a lot of tables)
Screen.Recording.2026-04-08.at.6.46.33.PM.mov
📋 Pre-Review Checklist
✅ Merge Checklist