The agents' empty state keeps its link in the sentence; Branches leaves out the merge queue's working branches
2 files+7−40/2 viewed
| 473 | 473 | /** Nothing running, said plainly. */ | |
| 474 | 474 | export function Idle({ children }: { children: ReactNode }) { | |
| 475 | 475 | return ( | |
| 476 | − | <p className="flex items-center gap-2 rounded-xl border border-dashed border-line px-4 py-6 text-sm text-muted"> | |
| 477 | − | <CircleSlash size={15} className="text-faint" /> | |
| 478 | − | {children} | |
| 476 | + | <p className="flex items-start gap-2 rounded-xl border border-dashed border-line px-4 py-6 text-sm text-muted"> | |
| 477 | + | <CircleSlash size={15} className="mt-0.5 shrink-0 text-faint" /> | |
| 478 | + | {/* One run of text: a link inside it stays in the sentence. */} | |
| 479 | + | <span className="min-w-0">{children}</span> | |
| 479 | 480 | </p> | |
| 480 | 481 | ); | |
| 481 | 482 | } |
| 31 | 31 | soft(deployments.list({ workspace: params.owner, slug: params.repo }, viewer)), | |
| 32 | 32 | ]); | |
| 33 | 33 | const found = unwrap(repo); | |
| 34 | − | const all = unwrap(list); | |
| 34 | + | // The merge queue's own branches (g1t-queue/<entry>) are its working | |
| 35 | + | // copies, not anyone's branch to look at. | |
| 36 | + | const all = unwrap(list).filter((branch) => !branch.name.startsWith("g1t-queue/")); | |
| 35 | 37 | const matching = query ? all.filter((branch) => branch.name === found.defaultBranch || branch.name.toLowerCase().includes(query)) : all; | |
| 36 | 38 | const read = await readBranches( | |
| 37 | 39 | path, |