authorgravatar for maria@kuuro.netmaria <maria@kuuro.net> 2026-09-11 23:58:42-03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-11 23:58:42-03:00
log25da986037a99d1e87bf1ed51aa58d7babee064a
treec4f9edd88125ad1bbdb084490455b651ab2d5eec
parentfd5553f1afcef4f410a067687faa991743b5034c
signature Signed by PGP key B5690EEEBB952194

fix(web): keep comment actions visible when pr comments are folded (#11357)


1 files changed, 6 insertions(+), 4 deletions(-)

apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx+6-4
...@@ -363,7 +363,7 @@ function CommentComposer({...@@ -363,7 +363,7 @@ function CommentComposer({
363 };363 };
364364
365 return (365 return (
366 <div className="mt-3 space-y-2">366 <div className="space-y-2">
367 <Textarea367 <Textarea
368 // Locked while posting: the body is cleared on success, which would otherwise throw368 // Locked while posting: the body is cleared on success, which would otherwise throw
369 // away a new draft typed while the request was still in flight.369 // away a new draft typed while the request was still in flight.
...@@ -719,7 +719,7 @@ export function PullRequestSummaryTab({...@@ -719,7 +719,7 @@ export function PullRequestSummaryTab({
719 </div>719 </div>
720 </section>720 </section>
721721
722 <section aria-label="Description" className="px-4 pt-2 pb-4">722 <section aria-label="Description" className="px-4 pt-2 pb-1">
723 <div className="group">723 <div className="group">
724 {bodyScope === detail.url ? (724 {bodyScope === detail.url ? (
725 <PullRequestMarkdownEditor725 <PullRequestMarkdownEditor
...@@ -991,7 +991,9 @@ export function PullRequestSummaryTab({...@@ -991,7 +991,9 @@ export function PullRequestSummaryTab({
991 )}991 )}
992 </>992 </>
993 )}993 )}
994 {/* Posting is a core capability and remains usable even if the activity read failed. */}994 </Section>
995 <div className="px-4 pb-4">
996 {/* Posting stays available when the conversation is folded or its activity read failed. */}
995 {detail.capabilities.comment && detail.viewerPermissions.comment ? (997 {detail.capabilities.comment && detail.viewerPermissions.comment ? (
996 <CommentComposer998 <CommentComposer
997 reference={reference}999 reference={reference}
...@@ -1009,7 +1011,7 @@ export function PullRequestSummaryTab({...@@ -1009,7 +1011,7 @@ export function PullRequestSummaryTab({
1009 onCommented={onRefresh}1011 onCommented={onRefresh}
1010 />1012 />
1011 ) : null}1013 ) : null}
1012 </Section>1014 </div>
1013 </div>1015 </div>
1014 );1016 );
1015}1017}