From d63d55f52dafea8024c60131e3dc2846dcdedd98 Mon Sep 17 00:00:00 2001 From: ARUNAVO RAY Date: Fri, 21 Aug 2026 07:09:32 +0530 Subject: [PATCH] fix(ui): surface Mirror Options on mobile repo cards and desktop org menu (#365) The per-repo overrides from #361 were reachable only from the desktop repositories table. The mobile card layout had no dropdown at all, and the organizations page had the inverse gap: the item existed in the mobile card menu but not the desktop one. Mobile repo cards get a three-dot menu in the header opening the same MirrorOverridesDialog, plus the Custom badge shown when a repository overrides something. The organizations desktop dropdown gains the same Mirror Options item the mobile variant already had. --- .../organizations/OrganizationsList.tsx | 8 ++++++-- src/components/repositories/RepositoryTable.tsx | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/components/organizations/OrganizationsList.tsx b/src/components/organizations/OrganizationsList.tsx index 5be0c70..ba76ffc 100644 --- a/src/components/organizations/OrganizationsList.tsx +++ b/src/components/organizations/OrganizationsList.tsx @@ -635,8 +635,12 @@ export function OrganizationList({ + setOverridesTarget(org)}> + + Mirror Options + {org.status !== "ignored" && ( - org.id && onIgnore && onIgnore({ orgId: org.id, ignore: true })} > @@ -645,7 +649,7 @@ export function OrganizationList({ )} {onDelete && ( <> - {org.status !== "ignored" && } + org.id && onDelete(org.id)} diff --git a/src/components/repositories/RepositoryTable.tsx b/src/components/repositories/RepositoryTable.tsx index 190342c..bf50204 100644 --- a/src/components/repositories/RepositoryTable.tsx +++ b/src/components/repositories/RepositoryTable.tsx @@ -9,7 +9,7 @@ import { type SortingState, } from "@tanstack/react-table"; import { useVirtualizer } from "@tanstack/react-virtual"; -import { FlipHorizontal, GitFork, RefreshCw, RotateCcw, Star, Lock, Ban, Check, ChevronDown, SlidersHorizontal, Trash2, X } from "lucide-react"; +import { FlipHorizontal, GitFork, MoreVertical, RefreshCw, RotateCcw, Star, Lock, Ban, Check, ChevronDown, SlidersHorizontal, Trash2, X } from "lucide-react"; import { SiGithub, SiGitea } from "react-icons/si"; import type { MirrorOverrides, Repository } from "@/lib/db/schema"; import { Button } from "@/components/ui/button"; @@ -418,8 +418,22 @@ export default function RepositoryTable({ {repo.isPrivate && Private} {repo.isForked && Fork} {repo.isStarred && Starred} + {hasMirrorOverrides(repo.mirrorOverrides) && Custom} + + + + + + setOverridesTarget(repo)}> + + Mirror Options + + + {/* Repository details */}