Commit 6abbf7f
fix(tui): theme the AI plan popup's highlight, help, and pending markers (#169)
* fix(tui): theme the AI plan popup's highlight, help, and pending markers
The AI plan overlay already filled its interior with the theme background, but
the selected step was drawn with a hardcoded magenta bar and the help line and
pending-step markers with a hardcoded gray — jarring on non-default themes (e.g.
mc's blue). The highlighted step now uses the theme's selection colors (like the
panes), and the help + pending markers use the theme's status color. Approval/run
status keeps its semantic colors (green/red/cyan).
Test asserts the overlay carries the theme background, the highlighted step uses
the theme selection colour, and no hardcoded magenta highlight remains. Snapshots
are unaffected (they capture glyphs, not colour).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* test(tui): assert the AI overlay's help/pending markers use theme.status
Review follow-up: the theming test only covered the highlight color. Override
theme.status to a distinctive value and assert both a pending step's marker and
the help line render with it, so the help/pending half of the fix has regression
protection too.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e3f0ffd commit 6abbf7f
2 files changed
Lines changed: 97 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
185 | 191 | | |
186 | 192 | | |
187 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1333 | 1333 | | |
1334 | 1334 | | |
1335 | 1335 | | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
1336 | 1339 | | |
1337 | | - | |
| 1340 | + | |
1338 | 1341 | | |
1339 | 1342 | | |
1340 | 1343 | | |
| |||
1354 | 1357 | | |
1355 | 1358 | | |
1356 | 1359 | | |
1357 | | - | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
1358 | 1367 | | |
1359 | 1368 | | |
1360 | 1369 | | |
| |||
1368 | 1377 | | |
1369 | 1378 | | |
1370 | 1379 | | |
1371 | | - | |
| 1380 | + | |
1372 | 1381 | | |
1373 | 1382 | | |
1374 | 1383 | | |
| |||
2341 | 2350 | | |
2342 | 2351 | | |
2343 | 2352 | | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
2344 | 2432 | | |
2345 | 2433 | | |
2346 | 2434 | | |
| |||
0 commit comments