Skip to content

armgit / cogit

Public Imported from GitHub
0

Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.

feat(map): open the side panel beside the map, not over it

Erenccfe237d4d28
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dbaf053..99eba48 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Changed
- The large "Copy resume command" button is now two small buttons for the session: **Resume** copies `claude --resume <id>`, and **Fork** copies the same with `--fork-session`, so the chat goes on as a new session and the original stays. The command shows only when copying fails.
+- Dates read the same everywhere: the side panel, the inbox and the project panel show `2026-10-30 21:09` like the map's rows, and the project tabs `10-30`, instead of the browser's locale (`10/30/2026, 9:09:30 PM`, `Oct 30`).
+- The side panel opens beside the map instead of over it, and the map column grows into the empty right margin while it is open; a narrow window still lays it over the map.
## [0.23.2] - 2026-10-30
### Changed
diff --git a/packages/template/src/Graph.tsx b/packages/template/src/Graph.tsx
index a230108..17a37a8 100644
--- a/packages/template/src/Graph.tsx
+++ b/packages/template/src/Graph.tsx
@@ -833,17 +833,19 @@ function Flow({ model, search }: { model: LineageViewModel; search: MapSearchSta
refocus={refocus}
/>
)}
- <DrillDown
- model={model}
- selection={selection}
- onClose={() => setSelection(null)}
- onNavigate={selectFromOutline}
- read={selection?.type === "node" ? readIds.has(selection.nodeId) : false}
- onToggleRead={toggleRead}
- bigChangeLines={bigChangeLines}
- readError={readError}
- />
</div>
+ {/* Beside the map, not over it, so the rows it would cover stay readable;
+ a narrow window lays it over the map (styles.css). */}
+ <DrillDown
+ model={model}
+ selection={selection}
+ onClose={() => setSelection(null)}
+ onNavigate={selectFromOutline}
+ read={selection?.type === "node" ? readIds.has(selection.nodeId) : false}
+ onToggleRead={toggleRead}
+ bigChangeLines={bigChangeLines}
+ readError={readError}
+ />
</div>
</div>
</GraphActions.Provider>
diff --git a/packages/template/src/styles.css b/packages/template/src/styles.css
index 8ad5503..e146cef 100644
--- a/packages/template/src/styles.css
+++ b/packages/template/src/styles.css
@@ -238,6 +238,16 @@ main.map-page {
flex: none;
}
+/* With the side panel open the map column grows into the empty right gutter, so
+ the panel takes that room instead of the map's. The left edge stays put. */
+@media (min-width: 1101px) {
+ .map-page .lineage-map:has(.drilldown) {
+ width: auto;
+ margin-right: 24px;
+ margin-left: 16.667%;
+ }
+}
+
.map-page .lineage-map {
display: flex;
flex: 1 1 auto;
@@ -1226,19 +1236,29 @@ body:has(.map-shell.is-expanded) {
}
/* Drill-down panel: overlays the graph from the right, scrolls on its own. */
+/* A column beside the map: the canvas narrows instead of rows going under it. */
.drilldown {
- position: absolute;
- top: 12px;
- right: 12px;
- bottom: 12px;
z-index: 10;
display: flex;
+ flex: none;
flex-direction: column;
- width: min(460px, calc(100% - 24px));
+ width: 460px;
background: var(--translucent-panel);
- border: 1px solid var(--line);
- border-radius: 10px;
- box-shadow: 0 12px 32px var(--shadow);
+ border-left: 1px solid var(--line);
+}
+
+/* Too narrow for two columns: the panel floats over the map again. */
+@media (max-width: 900px) {
+ .drilldown {
+ position: absolute;
+ top: 12px;
+ right: 12px;
+ bottom: 12px;
+ width: min(460px, calc(100% - 24px));
+ border: 1px solid var(--line);
+ border-radius: 10px;
+ box-shadow: 0 12px 32px var(--shadow);
+ }
}
.drilldown-head {