fix: keep board pr footer lifecycle-only
This commit is contained in:
parent
c989df0851
commit
4e46922197
|
|
@ -20,7 +20,6 @@ import { spawnOrchestrator } from "../lib/spawn-orchestrator";
|
||||||
import { restartProjectOrchestrator } from "../lib/restart-orchestrator";
|
import { restartProjectOrchestrator } from "../lib/restart-orchestrator";
|
||||||
import { prBrowserUrl, sessionPRDisplaySummaries } from "../lib/pr-display";
|
import { prBrowserUrl, sessionPRDisplaySummaries } from "../lib/pr-display";
|
||||||
import { cn } from "../lib/utils";
|
import { cn } from "../lib/utils";
|
||||||
import { PRSummaryParts } from "./PRSummaryDisplay";
|
|
||||||
import { useUiStore } from "../stores/ui-store";
|
import { useUiStore } from "../stores/ui-store";
|
||||||
|
|
||||||
type SessionsBoardProps = {
|
type SessionsBoardProps = {
|
||||||
|
|
@ -373,31 +372,26 @@ type BoardPRGroup = { status: BoardPRLifecycleStatus; prs: SessionPRSummary[] };
|
||||||
|
|
||||||
function BoardPRGroup({ group }: { group: BoardPRGroup }) {
|
function BoardPRGroup({ group }: { group: BoardPRGroup }) {
|
||||||
return (
|
return (
|
||||||
<div
|
<span
|
||||||
aria-label={`${group.prs.map((pr) => `#${pr.number}`).join(", ")} ${group.status.label}`}
|
aria-label={`${group.prs.map((pr) => `#${pr.number}`).join(", ")} ${group.status.label}`}
|
||||||
className="flex min-w-0 flex-col gap-1"
|
className="inline-flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1"
|
||||||
>
|
>
|
||||||
<span className="inline-flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1">
|
<span>PR</span>
|
||||||
<span>PR</span>
|
{group.prs.map((pr, index) => (
|
||||||
{group.prs.map((pr, index) => (
|
<span key={pr.number}>
|
||||||
<span key={pr.number}>
|
<a
|
||||||
<a
|
className="text-passive underline-offset-2 transition-colors hover:text-foreground hover:underline"
|
||||||
className="text-passive underline-offset-2 transition-colors hover:text-foreground hover:underline"
|
href={prBrowserUrl(pr)}
|
||||||
href={prBrowserUrl(pr)}
|
rel="noreferrer"
|
||||||
rel="noreferrer"
|
target="_blank"
|
||||||
target="_blank"
|
>
|
||||||
>
|
#{pr.number}
|
||||||
#{pr.number}
|
</a>
|
||||||
</a>
|
{index < group.prs.length - 1 ? "," : null}
|
||||||
{index < group.prs.length - 1 ? "," : null}
|
</span>
|
||||||
</span>
|
|
||||||
))}
|
|
||||||
<span className={cn("font-medium", group.status.className)}>{group.status.label}</span>
|
|
||||||
</span>
|
|
||||||
{group.prs.map((pr) => (
|
|
||||||
<PRSummaryParts key={`${pr.number}-summary`} maxLinks={2} pr={pr} />
|
|
||||||
))}
|
))}
|
||||||
</div>
|
<span className={cn("font-medium", group.status.className)}>{group.status.label}</span>
|
||||||
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue