Files
vibe-kanban/frontend
Anastasiia Solop 8ba3a50d0b The implementation is complete. Here's a summary of the changes made to frontend/src/components/ui-new/primitives/RepoCard.tsx: (#2073)
## Summary

**Changes made:**

1. **Added `useMemo` import** (line 1) for memoizing the filtered options array

2. **Added logic to hide "Open pull request" when PR is open** (lines 101-109):
   - `hasPrOpen` checks if `prStatus === 'open'`
   - `availableActionOptions` filters out the 'pull-request' option when a PR is already open

3. **Added fallback for selected action** (lines 111-113):
   - `effectiveSelectedAction` ensures that if the user had previously selected 'pull-request' but a PR is now open, the button shows 'Merge' instead

4. **Updated SplitButton** to use `availableActionOptions` and `effectiveSelectedAction` (lines 286-291)

**Behavior:**
- When there is no open PR: Both "Open pull request" and "Merge" options are available
- When there is an open PR (`prStatus === 'open'`): Only the "Merge" option is shown
- When PR is closed or merged: The "Open pull request" option reappears (allowing users to create a new PR)
2026-01-15 14:10:43 +01:00
..
2026-01-15 13:09:41 +00:00
2025-06-25 09:36:07 +01:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2026-01-15 10:58:39 +00:00
2026-01-08 22:14:38 +00:00
2025-06-14 15:14:08 -04:00
2026-01-14 09:11:07 +00:00