@devries-cameron20 / t3code-1 / commits / 12b34e83af
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(mobile): Forgejo change requests ask for the summary they require (#18455)

oliver committed Oct 11, 2026 at 19:45 UTC 12b34e83af63da05368e97b7cd0bb7719b17a62d
1 file changed +18 -2
apps/mobile/src/features/pull-requests/PullRequestReviewSheet.tsx
+18 -2
@@ -1,5 +1,6 @@
1 import { useAtomRefresh } from "@effect/atom-react";
2 import { StackActions, useNavigation, type StaticScreenProps } from "@react-navigation/native";
3 +import { sourceControlClients } from "@t3tools/client-runtime/source-control-clients";
4 import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
5 import type { PullRequestReviewVerdict } from "@t3tools/contracts";
6 import { useCallback, useRef, useState } from "react";
@@ -84,12 +85,21 @@ export function PullRequestReviewSheet({
85 const verdict = offered.find((option) => option.value === requestedVerdict) ?? offered[0];
86 const reviewing = params.mode === "review";
87 const canSubmitComments = !store.draft.comments.length || permissions.canInlineComment;
88 + // Forgejo requires a summary when requesting changes, even with inline comments.
89 + const summaryRequired =
90 + verdict !== undefined && result.data
91 + ? sourceControlClients.get(result.data.provider).reviewSummaryRequired(verdict.value)
92 + : false;
93 const canSubmit =
94 store.ready &&
95 (!reviewing || (!stale && canSubmitComments)) &&
96 (reviewing
97 ? verdict !== undefined &&
92 - (verdict.value === "approve" || body.trim().length > 0 || store.draft.comments.length > 0)
98 + (summaryRequired
99 + ? body.trim().length > 0
100 + : verdict.value === "approve" ||
101 + body.trim().length > 0 ||
102 + store.draft.comments.length > 0)
103 : permissions.canComment && body.trim().length > 0);
104 const perform = () =>
105 submission.submit(async () => {
@@ -160,7 +170,13 @@ export function PullRequestReviewSheet({
170 <TextInput
171 multiline
172 accessibilityLabel={reviewing ? "Review summary" : "Comment"}
163 - placeholder={reviewing ? "Summarize your review…" : "Write a comment…"}
173 + placeholder={
174 + reviewing
175 + ? summaryRequired
176 + ? "Summary required to request changes…"
177 + : "Summarize your review…"
178 + : "Write a comment…"
179 + }
180 placeholderTextColorClassName="accent-foreground-muted"
181 editable={store.ready && !submission.busy}
182 value={body}