From e932fd4fcd5bde31947d2a1fec39081eecdcac34 Mon Sep 17 00:00:00 2001 From: xarmian Date: Thu, 7 May 2026 22:50:17 -0400 Subject: [PATCH] feat(web): show PR state badge on item cards (TASK-1230) (#436) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Render a state-colored pill badge in the top-right corner of ItemCard whenever an item has a linked GitHub PR. The badge overlaps the card border ("sticker on card" feel), shows the PR number, and opens the PR URL in a new tab on click without navigating to the item. PR data is read from `item.code_context?.pull_request` which the server already derives from `fields.github_pr` via ExtractItemCodeContext — no new types, helpers, or API calls. State colors: - OPEN -> var(--accent-green) - MERGED -> var(--accent-purple, #8b5cf6) - CLOSED -> var(--accent-red, #ef4444) - DRAFT -> var(--text-muted) - default -> var(--text-muted) Implementation matches the existing star-btn pattern: a + {/if}