From 06862ab010219f2ef478446d03f6cf705ae344e4 Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Fri, 9 Jan 2026 09:59:54 +0000 Subject: [PATCH] Fix GitHub PR button display and refactor RepoCard styling (Vibe Kanban) (#1872) * Both issues have been fixed: **1. Fixed translation parameter mismatch** (`RepoCard.tsx:170, 176`) - Changed `{ prNumber }` to `{ number: prNumber }` to match the translation key `Open PR #{{number}}` **2. Refactored PR badge styling** (`RepoCard.tsx:156-180`) - Replaced hardcoded Tailwind colors with design system tokens: - Merged badge: `bg-panel text-success` (uses semantic success color) - Open PR button/badge: `bg-panel text-normal hover:bg-tertiary transition-colors` - Updated spacing to use consistent tokens: `gap-half`, `px-base`, `py-half` - Changed border radius from `rounded-full` to `rounded-sm` to match other UI elements in the panel * Both fixes are complete: 1. **Added spacing** - Added `mt-half` to the PR status row container (line 158) to create visual separation from the Actions row below 2. **Made merged PRs clickable** - When `prStatus === 'merged'` and `prUrl` is available, it now renders a clickable ` + + + + {tCommon('actions.copyPath')} + + + {tCommon('actions.openInIde')} + + + {/* Commits badge */} @@ -155,56 +173,49 @@ export function RepoCard({ {/* PR status row */} {prNumber && ( -
+
{prStatus === 'merged' ? ( - - - {t('git.pr.merged', { prNumber })} - + prUrl ? ( + + ) : ( + + + {t('git.pr.merged', { prNumber })} + + ) ) : prUrl ? ( ) : ( - + - {t('git.pr.open', { prNumber })} + {t('git.pr.open', { number: prNumber })} )}
)} {/* Actions row */} -
+
onActionsClick?.(action)} /> - - - - - - - {tCommon('actions.copyPath')} - - - {tCommon('actions.openInIde')} - - -
);