Skip to content

feat(minimap): show cell index in dependency minimap#9633

Merged
mscolnick merged 1 commit into
mainfrom
ms/feature/minimap-index-column-breaks
May 20, 2026
Merged

feat(minimap): show cell index in dependency minimap#9633
mscolnick merged 1 commit into
mainfrom
ms/feature/minimap-index-column-breaks

Conversation

@mscolnick

@mscolnick mscolnick commented May 20, 2026

Copy link
Copy Markdown
Contributor

show cell index in dependency minimap

Screenshot 2026-05-20 at 5 06 55 PM Screenshot 2026-05-20 at 5 06 49 PM
Copilot AI review requested due to automatic review settings May 20, 2026 21:07
@vercel

vercel Bot commented May 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment May 20, 2026 9:16pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a visible per-cell index to the dependency minimap list, adjusting layout offsets so the new index gutter doesn’t overlap existing content.

Changes:

  • Extend MinimapCell props to accept an index and render it as an absolute-positioned badge.
  • Adjust left padding and SVG positioning to account for the added index gutter.
  • Pass the mapped index from MinimapContent into MinimapCell.
<MinimapCell cellId={cellId} cellPositions={cellPositions} />
<MinimapCell
cellId={cellId}
index={idx}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope

Comment thread frontend/src/components/dependency-graph/minimap-content.tsx

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Architecture diagram
sequenceDiagram
    participant MM as MinimapContent
    participant MC as MinimapCell
    participant CG as Cell Graph

    Note over MM,CG: Cell Index Display in Dependency Minimap

    MM->>MM: Map ordered cell list
    loop For each cell (idx, cellId)
        MM->>MC: Render MinimapCell(cellId, index=idx, cellPositions)
        MC->>MC: Render cell row with left padding [59px]
        MC->>MC: Render index span (absolute, left:0, 5px wide)
        Note over MC: Shows cell index number<br/>(e.g., "1", "2", "3")
        MC->>CG: Use cellId for dependency graph
        CG-->>MC: Cell state, connections
        MC->>MC: Render cell preview text
        MC->>MC: Render SVG dependency edges<br/>(left offset adjusted to 25px)
    end
Loading

Re-trigger cubic

@codecov

codecov Bot commented May 20, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 11.44kB (0.05%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
marimo-esm 25.19MB 11.44kB (0.05%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: marimo-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/JsonOutput-*.js 189.41kB 556.64kB 51.58% ⚠️
assets/index-*.js -176.64kB 431.12kB -29.06%
assets/index-*.css 94 bytes 366.4kB 0.03%
assets/dist-*.js -211 bytes 176 bytes -54.52%
assets/dist-*.js 299 bytes 403 bytes 287.5% ⚠️
assets/dist-*.js 46 bytes 183 bytes 33.58% ⚠️
assets/dist-*.js -7 bytes 169 bytes -3.98%
assets/dist-*.js 119 bytes 256 bytes 86.86% ⚠️
assets/dist-*.js -90 bytes 169 bytes -34.75%
assets/dist-*.js 111 bytes 387 bytes 40.22% ⚠️
assets/dist-*.js -198 bytes 137 bytes -59.1%
assets/dist-*.js -152 bytes 104 bytes -59.38%
assets/dist-*.js -220 bytes 183 bytes -54.59%
assets/dist-*.js -9 bytes 160 bytes -5.33%
assets/dist-*.js -6 bytes 177 bytes -3.28%
assets/dist-*.js 231 bytes 335 bytes 222.12% ⚠️
assets/dist-*.js -79 bytes 104 bytes -43.17%
assets/dist-*.js 35 bytes 137 bytes 34.31% ⚠️
assets/dist-*.js 155 bytes 259 bytes 149.04% ⚠️
assets/dist-*.js -60 bytes 104 bytes -36.59%
assets/dist-*.js 107 bytes 276 bytes 63.31% ⚠️
assets/dist-*.js -13 bytes 164 bytes -7.34%
assets/dist-*.js -58 bytes 102 bytes -36.25%
assets/edit-*.js 3 bytes 325.1kB 0.0%
assets/dependency-*.js 341 bytes 156.71kB 0.22%
assets/panels-*.js 680 bytes 47.89kB 1.44%
assets/react-*.browser.esm-Ce2ksurd.js (New) 25.64kB 25.64kB 100.0% 🚀
assets/state-*.js -13 bytes 24.79kB -0.05%
assets/config-*.js 315 bytes 6.41kB 5.17% ⚠️
assets/ttcn-*.js -7 bytes 57 bytes -10.94%
assets/ttcn-*.js 7 bytes 64 bytes 12.28% ⚠️
assets/useBoolean-*.js -2.75kB 3.02kB -47.66%
assets/react-*.browser.esm-CgWOEYeG.js (Deleted) -25.64kB 0 bytes -100.0% 🗑️

Files in assets/dependency-*.js:

  • ./src/components/dependency-graph/minimap-content.tsx → Total Size: 14.45kB
@mscolnick mscolnick added the enhancement New feature or request label May 20, 2026
@mscolnick mscolnick enabled auto-merge (squash) May 20, 2026 22:42
@mscolnick mscolnick merged commit 1e301d0 into main May 20, 2026
35 of 37 checks passed
@mscolnick mscolnick deleted the ms/feature/minimap-index-column-breaks branch May 20, 2026 23:07
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.23.7-dev66

@manzt

manzt commented May 20, 2026

Copy link
Copy Markdown
Collaborator

This looks really clean. I assume we have some kind of alignment when there are double/triple digit cells?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

4 participants