mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
fix(panel): kanban card no longer overflows; PR-review queue shows an empty state
- Kanban card: show the short 8-char task id (full id on hover) instead of the full UUID, which was one unbreakable token that ran off the card edge - PR Review queue: render an empty-state card instead of returning null when empty, so the surface is always visible on the Command Center (matching the CEO Approval Queue) rather than vanishing when there's nothing to decide
This commit is contained in:
@@ -117,8 +117,6 @@ export function PrReviewQueue({ className }: PrReviewQueueProps) {
|
||||
}
|
||||
|
||||
const items = reviews || [];
|
||||
if (items.length === 0) return null; // keep the dashboard clean when there's nothing to decide
|
||||
|
||||
const isPending = supersedeMutation.isPending || dismissMutation.isPending;
|
||||
|
||||
return (
|
||||
@@ -139,6 +137,16 @@ export function PrReviewQueue({ className }: PrReviewQueueProps) {
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
{items.length === 0 && (
|
||||
<div className="flex flex-col items-center justify-center py-10 text-center text-muted-foreground">
|
||||
<GitPullRequest className="mb-3 h-8 w-8 opacity-50" />
|
||||
<p className="text-sm">No external PRs under review right now.</p>
|
||||
<p className="mt-1 text-xs">
|
||||
Inbound external/fork PRs the reviewer has looked at show up here
|
||||
for your supersede / dismiss call.
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
<div className="space-y-3">
|
||||
{items.map((task) => {
|
||||
const awaiting = (task.status || "").toLowerCase() === "completed";
|
||||
|
||||
@@ -91,7 +91,10 @@ export function KanbanCard({ task, onAction, showQaActions, isDragging: isDraggi
|
||||
<div className="flex-1 min-w-0 overflow-hidden">
|
||||
<Link href={"/tasks/" + task.id} className="block">
|
||||
<p className="font-medium text-sm line-clamp-2 hover:underline break-words">
|
||||
<span className="text-muted-foreground">#{task.id}</span> {task.title}
|
||||
<span className="font-mono text-muted-foreground" title={task.id}>
|
||||
#{task.id.slice(0, 8)}
|
||||
</span>{" "}
|
||||
{task.title}
|
||||
</p>
|
||||
</Link>
|
||||
{task.description && (
|
||||
|
||||
Reference in New Issue
Block a user