From 0484d97dfbc3b8a2e7878d3ab35a9895decdf467 Mon Sep 17 00:00:00 2001 From: bndw Date: Sat, 28 Feb 2026 21:35:39 -0800 Subject: feat: **1 — `git.ts`:** Add exported `getCurrentBranch` helpe… (+8 more) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ✅ **1 — `git.ts`:** Add exported `getCurrentBranch` helper after `ensureGitRepo` - ✅ **2a — `ipc/handlers.ts`:** Update git import to include `ensureGitRepo` and `getCurrentBranch` - ✅ **2b — `ipc/handlers.ts`:** Replace `workflow:advance` implement-phase block with branching-toggle logic - ✅ **3 — `GitSettings.tsx`:** Create new settings component with pill toggle - ✅ **4 — `SettingsPage.tsx`:** Add `"git"` section type, import, nav item, content render; fix both unicode glyphs - ✅ **5 — `globals.css`:** Append toggle-row + pill toggle + maximize-btn CSS - ✅ **6 — `index.ts`:** Add `ipcMain` to import; add `window:toggleMaximize` handler + maximize/unmaximize events inside `createWindow()` - ✅ **7 — `preload.ts`:** Add `toggleMaximize` + `onWindowMaximized` to interface and `api` object - ✅ **8 — `Header.tsx`:** Add `isMaximized` state + effect + maximize button in JSX --- renderer/src/styles/globals.css | 93 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) (limited to 'renderer/src/styles/globals.css') diff --git a/renderer/src/styles/globals.css b/renderer/src/styles/globals.css index 61a37c0..8e43f3a 100644 --- a/renderer/src/styles/globals.css +++ b/renderer/src/styles/globals.css @@ -905,3 +905,96 @@ html[data-theme="light"] .settings-textarea:focus { background: var(--bg-tertiary); color: var(--text-primary); } + +/* ── Settings Toggle Row ─────────────────────────────────────── */ +.settings-toggle-row { + display: flex; + align-items: center; + gap: 12px; + margin-top: 16px; +} + +.settings-toggle-label { + display: flex; + align-items: flex-start; + gap: 14px; + cursor: pointer; + flex: 1; +} + +.settings-toggle-text { + display: flex; + flex-direction: column; + gap: 4px; + font-size: 12px; + color: var(--text-primary); + line-height: 1.4; +} + +.settings-toggle-hint { + color: var(--text-secondary); + font-size: 11px; +} + +.settings-toggle-hint code { + font-family: monospace; + background: var(--bg-tertiary); + padding: 1px 3px; + border-radius: 2px; +} + +/* The pill toggle switch */ +.settings-toggle { + flex-shrink: 0; + width: 36px; + height: 20px; + border-radius: 10px; + background: var(--border); + position: relative; + cursor: pointer; + transition: background 0.2s; + outline-offset: 2px; +} + +.settings-toggle:focus-visible { + outline: 2px solid var(--accent); +} + +.settings-toggle::after { + content: ""; + position: absolute; + top: 3px; + left: 3px; + width: 14px; + height: 14px; + border-radius: 50%; + background: var(--text-secondary); + transition: transform 0.2s, background 0.2s; +} + +.settings-toggle.on { + background: var(--accent); +} + +.settings-toggle.on::after { + transform: translateX(16px); + background: #fff; +} + +/* ── Header Maximize Button ──────────────────────────────────── */ +.maximize-btn { + padding: 5px 8px; + background: transparent; + border: 1px solid var(--border); + border-radius: 2px; + color: var(--text-secondary); + cursor: pointer; + font-size: 13px; + font-family: inherit; + transition: background 0.15s, color 0.15s; +} + +.maximize-btn:hover { + background: var(--bg-tertiary); + color: var(--text-primary); +} -- cgit v1.2.3