This repository was archived by the owner on Aug 6, 2026. It is now read-only.
Commit 6b73ec2
authored
refactor(branch-selector): address qa-swarm review nits
Multi-perspective review (paul + xp + security-audit) surfaced low/nit items;
this addresses the actionable ones:
- Extract the duplicated "Loading branches…" literal into a shared
LOADING_BRANCHES_LABEL const so the two render sites can't drift.
- Clarify the TaskInput comment: the cached default is best-effort — a
default branch renamed since it was cached stays seeded until the user
picks another (the auto-select only fires while nothing is selected).
- Lock the empty-state gating with a test asserting "No branches found."
keeps the `hidden` class when the seeded trunk row makes the list
non-empty, so it never flashes above the seeded row.
security-audit: 0 findings (API-derived branch name → auto-escaped React
text + the pre-existing selection path; no new sink).
Generated-By: PostHog Code
Task-Id: 562fb90f-d823-425d-b53c-5f482b55a8b21 parent 593d744 commit 6b73ec2
3 files changed
Lines changed: 17 additions & 3 deletions
File tree
- packages/ui/src/features
- git-interaction/components
- task-detail/components
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
472 | 476 | | |
473 | 477 | | |
474 | 478 | | |
475 | | - | |
| 479 | + | |
476 | 480 | | |
477 | 481 | | |
478 | 482 | | |
| |||
540 | 544 | | |
541 | 545 | | |
542 | 546 | | |
543 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
544 | 550 | | |
545 | 551 | | |
546 | 552 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
439 | 442 | | |
440 | 443 | | |
441 | 444 | | |
| |||
0 commit comments