From 1e40540ef48a51f3de909d69383065b196f67e1a Mon Sep 17 00:00:00 2001 From: marxlaml Date: Fri, 22 May 2026 21:50:58 +0200 Subject: [PATCH] feat: show banner for bare mirror repositories - Add isMirror prop to GitToolbar\n- Show warning banner when repo is a bare mirror\n- Explain that editing/committing/pulling/merging are unavailable\n- Suggest deleting and recreating to enable full features\n\nQuality gates: vitest (43 passed) --- apps/web/src/components/git-toolbar.tsx | 10 +++++++++- apps/web/src/pages/repo-workspace.tsx | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/git-toolbar.tsx b/apps/web/src/components/git-toolbar.tsx index 31a8f07..04556c3 100644 --- a/apps/web/src/components/git-toolbar.tsx +++ b/apps/web/src/components/git-toolbar.tsx @@ -18,6 +18,7 @@ interface GitToolbarProps { currentBranch: string; branches: string[]; hasRemote: boolean; + isMirror: boolean; onBranchChange: (branch: string) => void; onRefresh: () => void; } @@ -28,6 +29,7 @@ export const GitToolbar = ({ currentBranch, branches, hasRemote, + isMirror, onBranchChange, onRefresh, }: GitToolbarProps) => { @@ -136,7 +138,13 @@ export const GitToolbar = ({ return (
{error &&
{error}
} - + {isMirror && ( +
+ This repository is a bare mirror. + Editing, committing, pulling, and merging are not available. + Delete and recreate it to enable full workspace features. +
+ )}