fix: show pull request unavailable state

Replace the empty PR tab with a clear unavailable message
Explain when pull request actions are available
This commit is contained in:
Bohdan Triapitsyn
2026-05-06 00:55:56 +03:00
parent 89f0e0a0e6
commit 6b25fd7d20
7 changed files with 16 additions and 1 deletions
@@ -1365,7 +1365,16 @@ export const PullRequestSection: React.FC<{
}, [directory, editBody, editTitle, github, prStatusKey, refresh, scheduleActionRefresh, updatePrStatus, t]);
if (!canShow) {
return null;
return (
<section className="border-0 bg-transparent rounded-none">
<div className="space-y-1 pt-3">
<div className="typography-ui-header font-semibold text-foreground">{t('gitView.pullRequest.title')}</div>
<div className="typography-micro text-muted-foreground">
{t('gitView.pullRequest.availableOnFeatureBranches')}
</div>
</div>
</section>
);
}
const originRepoUrl = status?.repo?.url || null;