Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Move minimap into "Dependencies" panel with tabbed UI (#7742)

Trevor Manz22a90651f798
diff --git a/frontend/src/components/dependency-graph/dependency-graph-minimap.tsx b/frontend/src/components/dependency-graph/dependency-graph-minimap.tsx
deleted file mode 100644
index 7794a774fb..0000000000
--- a/frontend/src/components/dependency-graph/dependency-graph-minimap.tsx
+++ /dev/null
@@ -1,197 +0,0 @@
-/* Copyright 2026 Marimo. All rights reserved. */
-
-import type { Atom } from "jotai";
-
-import React, {
- type PropsWithChildren,
- useEffect,
- useMemo,
- useRef,
- useState,
-} from "react";
-import useEvent from "react-use-event-hook";
-import ReactFlow, {
- type CoordinateExtent,
- type Edge,
- type Node,
- PanOnScrollMode,
- useEdgesState,
- useNodesState,
- useStore,
-} from "reactflow";
-import { nodeTypes } from "@/components/dependency-graph/custom-node";
-import type { CellId } from "@/core/cells/ids";
-import type { CellData } from "@/core/cells/types";
-import type { Variables } from "@/core/variables/types";
-import { scrollAndHighlightCell } from "../editor/links/cell-link";
-import { type NodeData, VerticalElementsBuilder } from "./elements";
-import { GraphSelectionPanel } from "./panels";
-import { useFitToViewOnDimensionChange } from "./utils/useFitToViewOnDimensionChange";
-
-interface Props {
- cellIds: CellId[];
- variables: Variables;
- cellAtoms: Atom<CellData>[];
-}
-
-const elementsBuilder = new VerticalElementsBuilder();
-
-export const DependencyGraphMinimap: React.FC<PropsWithChildren<Props>> = ({
- cellIds,
- variables,
- cellAtoms,
- children,
-}) => {
- // State
- const { nodes: initialNodes, edges: allEdges } =
- elementsBuilder.createElements(cellIds, cellAtoms, variables, false);
- const [edges, setEdges] = useEdgesState([]);
- const [nodes, setNodes] = useNodesState(initialNodes);
- const [selectedNodeId, setSelectedNodeId] = useState<CellId>();
- const [selectedEdge, setSelectedEdge] = useState<Edge>();
- const hasRenderer = useRef(false);
-
- // Subscriptions
- useFitToViewOnDimensionChange();
- const height = useStore(({ height }) => height);
-
- // If the cellIds change, update the nodes.
- const syncChanges = useEvent(
- (elements: { nodes: Node<NodeData>[]; edges: Edge[] }) => {
- setNodes(elements.nodes);
- setEdges([]);
- },
- );
-
- // If the cellIds change, update the nodes.
- // Only on the second render, because the first render is the initial render.
- useEffect(() => {
- if (!hasRenderer.current) {
- hasRenderer.current = true;
- return;
- }
- syncChanges(
- elementsBuilder.createElements(cellIds, cellAtoms, variables, false),
- );
- }, [cellIds, variables, cellAtoms, syncChanges]);
-
- // If the selected node changes, update the edges.
- useEffect(() => {
- if (selectedNodeId) {
- const selectedEdges = allEdges.filter((edge) => {
- const { source, target, data } = edge;
-
- return (
- (source === selectedNodeId && data.direction === "outputs") ||
- (target === selectedNodeId && data.direction === "inputs")
- );
- });
- setEdges(selectedEdges);
- }
- }, [selectedNodeId, setEdges, allEdges]);
-
- const translateExtent = useTranslateExtent(nodes, height);
-
- const handleClearSelection = () => {
- setSelectedNodeId(undefined);
- setSelectedEdge(undefined);
- };
-
- const renderGraphSelectionPanel = () => {
- if (selectedEdge) {
- return (
- <GraphSelectionPanel
- selection={{
- type: "edge",
- source: selectedEdge.source as CellId,
- target: selectedEdge.target as CellId,
- }}
- onClearSelection={handleClearSelection}
- variables={variables}
- edges={edges}
- />
- );
- }
- if (selectedNodeId) {
- return (
- <GraphSelectionPanel
- selection={{ type: "node", id: selectedNodeId }}
- variables={variables}
- edges={edges}
- onClearSelection={handleClearSelection}
- />
- );
- }
-
- return null;
- };
-
- return (
- <ReactFlow
- nodes={nodes}
- edges={edges}
- nodeTypes={nodeTypes}
- translateExtent={translateExtent}
- onNodeClick={(_event, node) => {
- const id = node.id;
- setSelectedNodeId(id as CellId);
- setSelectedEdge(undefined);
- setEdges([]);
- }}
- onNodeDoubleClick={(_event, node) => {
- scrollAndHighlightCell(node.id as CellId, "focus");
- }}
- onEdgeClick={(_event, edge) => {
- setSelectedEdge(edge);
- }}
- // On
- snapToGrid={true}
- fitView={true}
- elementsSelectable={true}
- // Off
- minZoom={1}
- maxZoom={1}
- draggable={false}
- panOnScrollMode={PanOnScrollMode.Vertical}
- zoomOnDoubleClick={false}
- nodesDraggable={false}
- nodesConnectable={false}
- nodesFocusable={false}
- edgesFocusable={false}
- selectNodesOnDrag={false}
- panOnDrag={false}
- preventScrolling={false}
- zoomOnPinch={false}
- panOnScroll={true}
- autoPanOnNodeDrag={false}
- autoPanOnConnect={false}
- >
- {renderGraphSelectionPanel()}
- {children}
- </ReactFlow>
- );
-};
-
-// Limit the extent of the graph to just the visible nodes.
-// The top node and bottom node can be scrolled to the middle of the graph.
-function useTranslateExtent(nodes: Node[], height: number): CoordinateExtent {
- const PADDING_Y = 10;
-
- return useMemo<CoordinateExtent>(() => {
- const top = nodes.reduce(
- (top, { position }) => Math.min(top, position.y - height / 2 - PADDING_Y),
- Number.POSITIVE_INFINITY,
- );
-
- const bottom = nodes.reduce(
- (bottom, { position }) =>
- Math.max(bottom, position.y + height / 2 + PADDING_Y),
- Number.NEGATIVE_INFINITY,
- );
-
- return [
- [Number.NEGATIVE_INFINITY, top],
- [Number.POSITIVE_INFINITY, bottom],
- ];
- }, [nodes, height]);
-}
diff --git a/frontend/src/components/dependency-graph/dependency-graph.tsx b/frontend/src/components/dependency-graph/dependency-graph.tsx
index 5eba124fd8..ef5fa6bf02 100644
--- a/frontend/src/components/dependency-graph/dependency-graph.tsx
+++ b/frontend/src/components/dependency-graph/dependency-graph.tsx
@@ -7,10 +7,9 @@ import { ReactFlowProvider } from "reactflow";
import type { CellId } from "@/core/cells/ids";
import type { CellData } from "@/core/cells/types";
import type { Variables } from "@/core/variables/types";
-import { DependencyGraphMinimap } from "./dependency-graph-minimap";
import { DependencyGraphTree } from "./dependency-graph-tree";
import { GraphToolbar } from "./panels";
-import type { GraphLayoutView, GraphSettings } from "./types";
+import type { GraphSettings, LayoutDirection } from "./types";
import "reactflow/dist/style.css";
import "./dependency-graph.css";
@@ -22,7 +21,7 @@ interface Props {
children?: React.ReactNode;
}
-const graphViewAtom = atom<GraphLayoutView>("_minimap_");
+const graphViewAtom = atom<LayoutDirection>("TB");
const graphViewSettings = atom<GraphSettings>({
hidePureMarkdown: true,
});
@@ -31,20 +30,8 @@ export const DependencyGraph: React.FC<Props> = (props) => {
const [layoutDirection, setLayoutDirection] = useAtom(graphViewAtom);
const [settings, setSettings] = useAtom(graphViewSettings);
- const renderGraph = () => {
- if (layoutDirection === "_minimap_") {
- return (
- <DependencyGraphMinimap {...props}>
- <GraphToolbar
- settings={settings}
- onSettingsChange={setSettings}
- view={layoutDirection}
- onChange={setLayoutDirection}
- />
- </DependencyGraphMinimap>
- );
- }
- return (
+ return (
+ <ReactFlowProvider key={layoutDirection}>
<DependencyGraphTree
{...props}
settings={settings}
@@ -57,10 +44,6 @@ export const DependencyGraph: React.FC<Props> = (props) => {
onChange={setLayoutDirection}
/>
</DependencyGraphTree>
- );
- };
-
- return (
- <ReactFlowProvider key={layoutDirection}>{renderGraph()}</ReactFlowProvider>
+ </ReactFlowProvider>
);
};
diff --git a/frontend/src/components/editor/chrome/wrapper/minimap.tsx b/frontend/src/components/dependency-graph/minimap-content.tsx
similarity index 83%
rename from frontend/src/components/editor/chrome/wrapper/minimap.tsx
rename to frontend/src/components/dependency-graph/minimap-content.tsx
index e259b15bec..036b850c8a 100644
--- a/frontend/src/components/editor/chrome/wrapper/minimap.tsx
+++ b/frontend/src/components/dependency-graph/minimap-content.tsx
@@ -1,9 +1,12 @@
/* Copyright 2026 Marimo. All rights reserved. */
-import { useAtom, useAtomValue } from "jotai";
-import { XIcon } from "lucide-react";
+import { useAtomValue } from "jotai";
import * as React from "react";
-import { Button } from "@/components/ui/button";
+import {
+ type CellGraph,
+ cellGraphsAtom,
+ isVariableAffectedBySelectedCell,
+} from "@/components/editor/chrome/wrapper/minimap-state";
import {
useCellActions,
useCellData,
@@ -13,14 +16,7 @@ import {
import { cellFocusAtom, useCellFocusActions } from "@/core/cells/focus";
import type { CellId } from "@/core/cells/ids";
import { useVariables } from "@/core/variables/state";
-import { useHotkey } from "@/hooks/useHotkey";
import { cn } from "@/utils/cn";
-import {
- type CellGraph,
- cellGraphsAtom,
- isVariableAffectedBySelectedCell,
- minimapOpenAtom,
-} from "./minimap-state";
interface MinimapCellProps {
cellId: CellId;
@@ -127,72 +123,6 @@ const MinimapCell: React.FC<MinimapCellProps> = (props) => {
);
};
-const MinimapInternal: React.FC<{
- open: boolean;
- setOpen: (update: boolean) => void;
-}> = ({ open, setOpen }) => {
- const cellIds = useCellIds();
- const cellPositions: Record<CellId, number> = Object.fromEntries(
- cellIds.inOrderIds.map((id, idx) => [id, idx]),
- );
- const columnBoundaries: number[] = [];
- let cellCount = 0;
- for (const [idx, column] of cellIds.getColumns().entries()) {
- if (idx > 0) {
- columnBoundaries.push(cellCount);
- }
- cellCount += column.inOrderIds.length;
- }
- return (
- <div
- className={cn(
- "fixed top-14 right-5 z-50 bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/60 rounded-lg border shadow-lg w-64 flex flex-col max-h-[58vh]",
- "motion-safe:transition-transform motion-safe:duration-200 motion-safe:ease-in-out",
- open ? "translate-x-0" : "translate-x-[calc(100%+20px)]",
- )}
- >
- <div className="flex items-center justify-between p-4 border-b">
- <span className="text-sm font-semibold">Minimap</span>
- <Button
- variant="ghost"
- size="icon"
- className="h-6 w-6"
- onClick={() => setOpen(false)}
- >
- <XIcon className="h-4 w-4" />
- </Button>
- </div>
- <div className="overflow-y-auto overflow-x-hidden flex-1 scrollbar-none">
- <div className="py-3 pl-3 pr-4 relative min-h-full">
- {cellIds.inOrderIds.map((cellId, idx) => {
- const isColumnBoundary = columnBoundaries.includes(idx);
- return (
- <React.Fragment key={cellId}>
- {/* Subtle visual divider between nodes */}
- {isColumnBoundary && (
- <div
- className="absolute left-5 w-[36px] h-px bg-(--gray-4) pointer-events-none"
- aria-hidden="true"
- />
- )}
- <MinimapCell cellId={cellId} cellPositions={cellPositions} />
- </React.Fragment>
- );
- })}
- </div>
- {/* Invisible element to prevent SVG overflow from affecting scroll */}
- <div className="h-0 overflow-hidden" aria-hidden="true" />
- </div>
- </div>
- );
-};
-
-export const Minimap: React.FC = () => {
- const [open, setOpen] = useAtom(minimapOpenAtom);
- useHotkey("global.toggleMinimap", () => setOpen((prev) => !prev));
- return <MinimapInternal open={open} setOpen={setOpen} />;
-};
-
function codePreview(code: string): string | undefined {
return code.split("\n")[0].trim() || undefined;
}
@@ -443,3 +373,46 @@ function isNonReferenceableCell(graph: CellGraph): boolean {
graph.descendants.size === 0
);
}
+
+/**
+ * Minimap content component for display in the dependencies panel.
+ * Shows a scrollable list of cells with dependency visualization.
+ */
+export const MinimapContent: React.FC = () => {
+ const cellIds = useCellIds();
+ const cellPositions: Record<CellId, number> = Object.fromEntries(
+ cellIds.inOrderIds.map((id, idx) => [id, idx]),
+ );
+ const columnBoundaries: number[] = [];
+ let cellCount = 0;
+ for (const [idx, column] of cellIds.getColumns().entries()) {
+ if (idx > 0) {
+ columnBoundaries.push(cellCount);
+ }
+ cellCount += column.inOrderIds.length;
+ }
+
+ return (
+ <div className="overflow-y-auto overflow-x-hidden flex-1 scrollbar-none h-full max-w-80">
+ <div className="py-3 pl-3 pr-4 relative min-h-full">
+ {cellIds.inOrderIds.map((cellId, idx) => {
+ const isColumnBoundary = columnBoundaries.includes(idx);
+ return (
+ <React.Fragment key={cellId}>
+ {/* Subtle visual divider between nodes */}
+ {isColumnBoundary && (
+ <div
+ className="absolute left-5 w-[36px] h-px bg-(--gray-4) pointer-events-none"
+ aria-hidden="true"
+ />
+ )}
+ <MinimapCell cellId={cellId} cellPositions={cellPositions} />
+ </React.Fragment>
+ );
+ })}
+ </div>
+ {/* Invisible element to prevent SVG overflow from affecting scroll */}
+ <div className="h-0 overflow-hidden" aria-hidden="true" />
+ </div>
+ );
+};
diff --git a/frontend/src/components/dependency-graph/panels.tsx b/frontend/src/components/dependency-graph/panels.tsx
index 839bdee748..33b3604f9f 100644
--- a/frontend/src/components/dependency-graph/panels.tsx
+++ b/frontend/src/components/dependency-graph/panels.tsx
@@ -6,7 +6,6 @@ import {
ArrowRightToLineIcon,
MoreVerticalIcon,
NetworkIcon,
- Rows3Icon,
SettingsIcon,
SquareFunction,
WorkflowIcon,
@@ -26,11 +25,11 @@ import { Checkbox } from "../ui/checkbox";
import { Label } from "../ui/label";
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover";
import { VariableName } from "../variables/common";
-import type { GraphLayoutView, GraphSelection, GraphSettings } from "./types";
+import type { GraphSelection, GraphSettings, LayoutDirection } from "./types";
interface Props {
- view: GraphLayoutView;
- onChange: (view: GraphLayoutView) => void;
+ view: LayoutDirection;
+ onChange: (view: LayoutDirection) => void;
settings: GraphSettings;
onSettingsChange: (settings: GraphSettings) => void;
}
@@ -73,16 +72,6 @@ export const GraphToolbar: React.FC<Props> = memo(
return (
<Panel position="top-right" className="flex flex-col items-end gap-2">
<div className="flex gap-2">
- <Button
- variant="outline"
- className="bg-background"
- aria-selected={view === "_minimap_"}
- size="xs"
- onClick={() => onChange("_minimap_")}
- >
- <Rows3Icon className="w-4 h-4 mr-1" />
- Mini Map
- </Button>
<Button
variant="outline"
className="bg-background"
@@ -104,7 +93,7 @@ export const GraphToolbar: React.FC<Props> = memo(
Horizontal Tree
</Button>
</div>
- {view !== "_minimap_" && settingsButton}
+ {settingsButton}
</Panel>
);
},
diff --git a/frontend/src/components/dependency-graph/types.ts b/frontend/src/components/dependency-graph/types.ts
index 6b1e42cc46..d3c6e8ad0d 100644
--- a/frontend/src/components/dependency-graph/types.ts
+++ b/frontend/src/components/dependency-graph/types.ts
@@ -2,7 +2,6 @@
import type { CellId } from "@/core/cells/ids";
export type LayoutDirection = "TB" | "LR";
-export type GraphLayoutView = LayoutDirection | "_minimap_";
export type GraphSelection =
| {
diff --git a/frontend/src/components/editor/chrome/panels/dependency-graph-panel.tsx b/frontend/src/components/editor/chrome/panels/dependency-graph-panel.tsx
index 3cdaf1dde3..4cd2468dc1 100644
--- a/frontend/src/components/editor/chrome/panels/dependency-graph-panel.tsx
+++ b/frontend/src/components/editor/chrome/panels/dependency-graph-panel.tsx
@@ -5,19 +5,26 @@ import { useCellDataAtoms, useCellIds } from "@/core/cells/cells";
import { useVariables } from "@/core/variables/state";
import { cn } from "@/utils/cn";
import { DependencyGraph } from "../../../dependency-graph/dependency-graph";
+import { MinimapContent } from "../../../dependency-graph/minimap-content";
+import { useDependencyPanelTab } from "../wrapper/useDependencyPanelTab";
const DependencyGraphPanel: React.FC = () => {
+ const { dependencyPanelTab } = useDependencyPanelTab();
const variables = useVariables();
const cellIds = useCellIds();
const [cells] = useCellDataAtoms();
return (
<div className={cn("w-full h-full flex-1 mx-auto -mb-4 relative")}>
- <DependencyGraph
- cellAtoms={cells}
- variables={variables}
- cellIds={cellIds.inOrderIds}
- />
+ {dependencyPanelTab === "minimap" ? (
+ <MinimapContent />
+ ) : (
+ <DependencyGraph
+ cellAtoms={cells}
+ variables={variables}
+ cellIds={cellIds.inOrderIds}
+ />
+ )}
</div>
);
};
diff --git a/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx b/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx
index d45eb199c5..fef85862d8 100644
--- a/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx
@@ -35,10 +35,10 @@ import {
type PanelDescriptor,
} from "../types";
import { BackendConnectionStatus } from "./footer-items/backend-status";
-import { Minimap } from "./minimap";
import { PanelsWrapper } from "./panels";
import { PendingAICells } from "./pending-ai-cells";
import { useAiPanelTab } from "./useAiPanel";
+import { useDependencyPanelTab } from "./useDependencyPanelTab";
import { handleDragging } from "./utils";
const LazyTerminal = React.lazy(() => import("@/components/terminal/terminal"));
@@ -84,6 +84,7 @@ export const AppChrome: React.FC<PropsWithChildren> = ({ children }) => {
const sidebarRef = React.useRef<ImperativePanelHandle>(null);
const developerPanelRef = React.useRef<ImperativePanelHandle>(null);
const { aiPanelTab, setAiPanelTab } = useAiPanelTab();
+ const { dependencyPanelTab, setDependencyPanelTab } = useDependencyPanelTab();
const errorCount = useAtomValue(cellErrorCount);
const [panelLayout, setPanelLayout] = useAtom(panelLayoutAtom);
@@ -231,7 +232,36 @@ export const AppChrome: React.FC<PropsWithChildren> = ({ children }) => {
<PanelSectionProvider value="sidebar">
<div className="flex flex-col h-full flex-1 overflow-hidden mr-[-4px]">
<div className="p-3 border-b flex justify-between items-center">
- {selectedPanel === "ai" && agentsEnabled ? (
+ {selectedPanel === "dependencies" ? (
+ <div className="flex items-center justify-between flex-1">
+ <span className="text-sm text-(--slate-11) uppercase tracking-wide font-semibold">
+ Dependencies
+ </span>
+ <Tabs
+ value={dependencyPanelTab}
+ onValueChange={(value) => {
+ if (value === "minimap" || value === "graph") {
+ setDependencyPanelTab(value);
+ }
+ }}
+ >
+ <TabsList>
+ <TabsTrigger
+ value="minimap"
+ className="py-0.5 text-xs uppercase tracking-wide font-bold"
+ >
+ Minimap
+ </TabsTrigger>
+ <TabsTrigger
+ value="graph"
+ className="py-0.5 text-xs uppercase tracking-wide font-bold"
+ >
+ Graph
+ </TabsTrigger>
+ </TabsList>
+ </Tabs>
+ </div>
+ ) : selectedPanel === "ai" && agentsEnabled ? (
<Tabs
value={aiPanelTab}
onValueChange={(value) => {
@@ -481,7 +511,6 @@ export const AppChrome: React.FC<PropsWithChildren> = ({ children }) => {
</Panel>
<ContextAwarePanel />
</PanelGroup>
- <Minimap />
<PendingAICells />
<ErrorBoundary>
<TooltipProvider>
diff --git a/frontend/src/components/editor/chrome/wrapper/footer-items/minimap-status.tsx b/frontend/src/components/editor/chrome/wrapper/footer-items/minimap-status.tsx
deleted file mode 100644
index 7f1ad05b5c..0000000000
--- a/frontend/src/components/editor/chrome/wrapper/footer-items/minimap-status.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright 2026 Marimo. All rights reserved. */
-
-import { useAtom } from "jotai";
-import { MapIcon } from "lucide-react";
-import { FooterItem } from "../footer-item";
-import { minimapOpenAtom } from "../minimap-state";
-
-export const MinimapStatusIcon: React.FC = () => {
- const [open, setOpen] = useAtom(minimapOpenAtom);
-
- return (
- <FooterItem
- tooltip="Toggle Minimap"
- selected={open}
- onClick={() => setOpen((prev) => !prev)}
- data-testid="footer-minimap"
- >
- <MapIcon className="h-4 w-4" />
- </FooterItem>
- );
-};
diff --git a/frontend/src/components/editor/chrome/wrapper/footer.tsx b/frontend/src/components/editor/chrome/wrapper/footer.tsx
index 82186c31d6..84eef9fee6 100644
--- a/frontend/src/components/editor/chrome/wrapper/footer.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/footer.tsx
@@ -18,13 +18,16 @@ import {
} from "./footer-items/backend-status";
import { CopilotStatusIcon } from "./footer-items/copilot-status";
import { MachineStats } from "./footer-items/machine-stats";
-import { MinimapStatusIcon } from "./footer-items/minimap-status";
import { RTCStatus } from "./footer-items/rtc-status";
import { RuntimeSettings } from "./footer-items/runtime-settings";
+import { useSetDependencyPanelTab } from "./useDependencyPanelTab";
export const Footer: React.FC = () => {
- const { isDeveloperPanelOpen } = useChromeState();
- const { toggleDeveloperPanel } = useChromeActions();
+ const { isDeveloperPanelOpen, isSidebarOpen, selectedPanel } =
+ useChromeState();
+ const { toggleDeveloperPanel, openApplication, setIsSidebarOpen } =
+ useChromeActions();
+ const setDependencyPanelTab = useSetDependencyPanelTab();
const errorCount = useAtomValue(cellErrorCount);
const connectionStatus = useAtomValue(connectionStatusAtom);
@@ -46,6 +49,17 @@ export const Footer: React.FC = () => {
toggleDeveloperPanel();
});
+ useHotkey("global.toggleMinimap", () => {
+ // If already on dependencies panel with minimap tab, close the sidebar
+ if (isSidebarOpen && selectedPanel === "dependencies") {
+ setIsSidebarOpen(false);
+ } else {
+ // Open sidebar with dependencies panel and switch to minimap tab
+ openApplication("dependencies");
+ setDependencyPanelTab("minimap");
+ }
+ });
+
return (
<footer className="h-10 py-1 gap-1 bg-background flex items-center text-muted-foreground text-md pl-2 pr-1 border-t border-border select-none no-print text-sm z-50 print:hidden hide-on-fullscreen overflow-x-auto overflow-y-hidden scrollbar-thin">
<FooterItem
@@ -92,7 +106,6 @@ export const Footer: React.FC = () => {
<div className="flex items-center shrink-0 min-w-0">
<MachineStats />
- <MinimapStatusIcon />
<AIStatusIcon />
<CopilotStatusIcon />
<RTCStatus />
diff --git a/frontend/src/components/editor/chrome/wrapper/minimap-state.ts b/frontend/src/components/editor/chrome/wrapper/minimap-state.ts
index edd4748325..e0877c1f57 100644
--- a/frontend/src/components/editor/chrome/wrapper/minimap-state.ts
+++ b/frontend/src/components/editor/chrome/wrapper/minimap-state.ts
@@ -6,8 +6,6 @@ import type { CellId } from "@/core/cells/ids";
import { variablesAtom } from "@/core/variables/state";
import type { Variable, VariableName, Variables } from "@/core/variables/types";
-export const minimapOpenAtom = atom(false);
-
export interface CellGraph {
variables: readonly VariableName[];
diff --git a/frontend/src/components/editor/chrome/wrapper/useDependencyPanelTab.ts b/frontend/src/components/editor/chrome/wrapper/useDependencyPanelTab.ts
new file mode 100644
index 0000000000..e98f8e39b0
--- /dev/null
+++ b/frontend/src/components/editor/chrome/wrapper/useDependencyPanelTab.ts
@@ -0,0 +1,16 @@
+/* Copyright 2026 Marimo. All rights reserved. */
+
+import { atom, useAtom, useSetAtom } from "jotai";
+
+export const dependencyPanelTabAtom = atom<"minimap" | "graph">("minimap");
+
+export function useDependencyPanelTab() {
+ const [dependencyPanelTab, setDependencyPanelTab] = useAtom(
+ dependencyPanelTabAtom,
+ );
+ return { dependencyPanelTab, setDependencyPanelTab };
+}
+
+export function useSetDependencyPanelTab() {
+ return useSetAtom(dependencyPanelTabAtom);
+}