Commit

The agents' empty state keeps its link in the sentence; Branches leaves out the merge queue's working branches

syntaqxcommitted Parent1aedeb9Browse files
2 files+7−40/2 viewed
+4−3
473473 /** Nothing running, said plainly. */
474474 export function Idle({ children }: { children: ReactNode }) {
475475 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>
479480 </p>
480481 );
481482 }
+3−1
3131 soft(deployments.list({ workspace: params.owner, slug: params.repo }, viewer)),
3232 ]);
3333 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/"));
3537 const matching = query ? all.filter((branch) => branch.name === found.defaultBranch || branch.name.toLowerCase().includes(query)) : all;
3638 const read = await readBranches(
3739 path,