diff options
| author | bndw <ben@bdw.to> | 2026-02-28 20:22:12 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-28 20:22:12 -0800 |
| commit | dc4156fec54a8efdab84834fe2f5bc90120e32c1 (patch) | |
| tree | 8eb3b979fcce0d0e6ddec1ab66232fb1229c3688 /renderer/src/styles/globals.css | |
| parent | 9d192d16b7a4026b35ad2bcaff9edb9f2670de2b (diff) | |
feat: Complete 7 tasks
- ✅ Add `.branch-badge` CSS block to `globals.css` after `.phase-step.complete` rule
- ✅ Extend `HeaderProps` interface with `gitBranch: string | null`
- ✅ Add `gitBranch` to `Header` function destructure
- ✅ Add `copied` state and `handleCopyBranch` function inside `Header`
- ✅ Update session `<option>` text to append branch name / "git unavailable"
- ✅ Add branch badge button to `header-right` between phase indicator and theme toggle
- ✅ Pass `gitBranch={selectedSession?.git_branch ?? null}` to `<Header>` in `App.tsx`
Diffstat (limited to 'renderer/src/styles/globals.css')
| -rw-r--r-- | renderer/src/styles/globals.css | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/renderer/src/styles/globals.css b/renderer/src/styles/globals.css index f141538..9d37742 100644 --- a/renderer/src/styles/globals.css +++ b/renderer/src/styles/globals.css | |||
| @@ -179,6 +179,39 @@ html[data-theme="light"] .session-rename-input { | |||
| 179 | color: white; | 179 | color: white; |
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | /* ── Branch Badge ────────────────────────────────────────────── */ | ||
| 183 | .branch-badge { | ||
| 184 | padding: 3px 10px; | ||
| 185 | font-size: 11px; | ||
| 186 | letter-spacing: 0.04em; | ||
| 187 | border-radius: 2px; | ||
| 188 | background: var(--bg-tertiary); | ||
| 189 | border: 1px solid var(--border); | ||
| 190 | color: var(--text-secondary); | ||
| 191 | cursor: pointer; | ||
| 192 | font-family: inherit; | ||
| 193 | white-space: nowrap; | ||
| 194 | transition: background 0.15s, color 0.15s, border-color 0.15s; | ||
| 195 | } | ||
| 196 | |||
| 197 | .branch-badge:hover:not(:disabled) { | ||
| 198 | background: var(--border); | ||
| 199 | color: var(--text-primary); | ||
| 200 | border-color: var(--accent); | ||
| 201 | } | ||
| 202 | |||
| 203 | .branch-badge.branch-copied { | ||
| 204 | background: var(--success); | ||
| 205 | border-color: var(--success); | ||
| 206 | color: white; | ||
| 207 | } | ||
| 208 | |||
| 209 | .branch-badge.branch-unavailable { | ||
| 210 | border-style: dashed; | ||
| 211 | opacity: 0.5; | ||
| 212 | cursor: default; | ||
| 213 | } | ||
| 214 | |||
| 182 | /* ── Main Content ─────────────────────────────────────────────── */ | 215 | /* ── Main Content ─────────────────────────────────────────────── */ |
| 183 | .main-content { | 216 | .main-content { |
| 184 | flex: 1; | 217 | flex: 1; |
