feat: expand pull request review context and panel tabs #5546
Mergedmaria-rcksmerged 10 commits into
stack/pr-4849-base fromrefs/pull/5546/headmerged by maria-rcks View on GitHub- apps/server/src/pullRequest/GitLabPullRequestCli.ts lines 964 to 971Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +863,21 @@863+ cwd: input.cwd,864+ path: `projects/${projectPath(input.repository)}/repository/files/${encodeURIComponent(865+ filePath,866+ )}/raw?ref=${encodeURIComponent(revision)}`,867+ maxOutputBytes: DIFF_FILE_MAX_OUTPUT_BYTES,868+ timeoutMs: DIFF_TIMEOUT_MS,869+ }).pipe(870+ Effect.flatMap((result) =>871+ result.stdoutTruncated || result.stdout.includes("\0")872+ ? Effect.fail(873+ new GitLabMergeRequestReadError({874+ command: "glab",875+ cwd: input.cwd,876+ operation: "getMergeRequestDiffFileContents",877+ cause: new Error(878+ result.stdoutTruncated879+ ? `The diff file '${filePath}' exceeds the 1 MB expansion limit.`880+ : `The diff file '${filePath}' is binary.`,881+ ),882+ }),883+ )apps/server/src/pullRequest/GitHubPullRequestCli.ts lines 790 to 799OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +779,21 @@779+ .split("/")780+ .map(encodeURIComponent)781+ .join("/")}?ref=${encodeURIComponent(revision)}`,782+ ],783+ maxOutputBytes: DIFF_FILE_MAX_OUTPUT_BYTES,784+ timeoutMs: DIFF_TIMEOUT_MS,785+ })786+ .pipe(787+ Effect.flatMap((result) =>788+ result.stdoutTruncated || result.stdout.includes("\0")789+ ? Effect.fail(790+ new GitHubPullRequestReadError({791+ command: "gh",792+ cwd: input.cwd,793+ operation: "getPullRequestDiffFileContents",794+ cause: new Error(795+ result.stdoutTruncated796+ ? `The diff file '${filePath}' exceeds the 1 MB expansion limit.`797+ : `The diff file '${filePath}' is binary.`,798+ ),799+ }),apps/server/src/pullRequest/GitLabPullRequestCli.ts lines 712 to 718OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +698,21 @@698+ }).pipe(699+ Effect.flatMap((result) => {700+ const decoded = decodeCommitDiffRefsJson(result.stdout.trim());701+ if (!Result.isSuccess(decoded)) {702+ return Effect.fail(703+ new GitLabMergeRequestReadError({704+ command: "glab",705+ cwd: input.cwd,706+ operation: "getMergeRequestDiffFileContents",707+ cause: decoded.failure,708+ }),709+ );710+ }711+ return decoded.success === null712+ ? Effect.fail(713+ new GitLabMergeRequestReadError({714+ command: "glab",715+ cwd: input.cwd,716+ operation: "getMergeRequestDiffFileContents",717+ cause: new Error("GitLab returned no usable parent for the commit."),718+ }),apps/server/src/pullRequest/GitHubPullRequestCli.ts lines 760 to 765OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +745,21 @@745+ ? "[.base.sha, .head.sha] | @tsv"746+ : "[.parents[0].sha, .sha] | @tsv",747+ ],748+ maxOutputBytes: 1024,749+ timeoutMs: DIFF_TIMEOUT_MS,750+ });751+ const [baseRef, headRef, ...extraRefs] = refsResult.stdout.trim().split("\t");752+ if (753+ refsResult.stdoutTruncated ||754+ !baseRef ||755+ !headRef ||756+ extraRefs.length > 0 ||757+ !isCommitSha(baseRef) ||758+ !isCommitSha(headRef)759+ ) {760+ return yield* new GitHubPullRequestReadError({761+ command: "gh",762+ cwd: input.cwd,763+ operation: "getPullRequestDiffFileContents",764+ cause: new Error("GitHub returned no usable base and head revisions."),765+ });
maria-rcks closed this
maria-rcks reopened this
- apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx lines 28 to 40OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +17,21 @@17+ const [expanded, setExpanded] = useState(false);18+ const [overflows, setOverflows] = useState(false);19+ const contentRef = useRef<HTMLDivElement | null>(null);20+21+ /**22+ * Measured rather than guessed from the text. A body's height depends on the width it is23+ * given and on what the markdown turned into: a screenshot or a recording is a handful of24+ * characters and half a screen tall, and a length heuristic would fold it away behind no25+ * control at all. Latched, because once expanded the content is no longer taller than its box.26+ */27+ useLayoutEffect(() => {28+ const content = contentRef.current;29+ if (content === null) return;30+ const measure = () => {31+ if (content.getBoundingClientRect().height > COLLAPSED_BODY_HEIGHT) setOverflows(true);32+ };33+ measure();34+ const observer = new ResizeObserver(measure);35+ observer.observe(content);36+ return () => observer.disconnect();37+ }, [body]);apps/server/src/pullRequest/GitLabPullRequestCli.ts line 479OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +413,21 @@413+ * `per_page` stops at 100, so a larger page is walked one request at a time. The walk is414+ * bounded twice over: it stops on a short page or once the extra row that reveals a next415+ * page has been read, and it never asks for more pages than the caller's page needs. The416+ * second bound is what makes it terminate when every row on a page fails to decode, which417+ * leaves nothing collected but does not mean GitLab has run out of rows.418+ */419+ const listPage = (input: {420+ readonly cwd: string;421+ readonly repository: string;422+ readonly state: PullRequestListState;423+ readonly involvement: PullRequestInvolvement;424+ readonly viewer: string;425+ readonly limit: number;426+ readonly query?: string | undefined;427+ readonly cursor?: ProviderListCursor | undefined;428+ readonly page: number;429+ readonly collected: ReadonlyArray<GitLabMergeRequestListItem>;430+ }): Effect.Effect<GitLabMergeRequestListBatch, GitLabPullRequestCliError> => {431+ // Fixed across the walk: GitLab pages by offset, so a page size that changed between432+ // requests would skip or repeat rows. One row over the limit probes for a next page.433+ const perPage = Math.min(input.limit + 1, MAX_PAGE_SIZE);apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx line 370OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +350,21 @@350+ : "Fix in a thread"}351+ </Button>352+ ) : null}353+ </div>354+ {comment.path ? (355+ <p className="mt-1 truncate text-xs text-muted-foreground" title={comment.path}>356+ {comment.path}357+ </p>358+ ) : null}359+ <PullRequestMarkdown360+ className="mt-2"361+ text={comment.body}362+ cwd={detail.workspaceRoot}363+ />364+ </article>365+ ))}366+ </div>367+ )}368+ {/* A host that cannot post a comment gets no composer, rather than one that fails. */}369+ {detail.capabilities.comment && detail.viewerPermissions.comment ? (370+ <CommentComposer environmentId={environmentId} detail={detail} onCommented={onRefresh} />apps/server/src/pullRequest/bitbucketPullRequestJson.ts line 527OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +507,21 @@507+ if (!Result.isSuccess(decoded)) {508+ return Result.fail(decoded.failure);509+ }510+ const commits: PullRequestCommit[] = [];511+ for (const entry of decoded.success.values) {512+ const decodedCommit = decodeCommitEntry(entry);513+ if (Exit.isFailure(decodedCommit)) continue;514+ const commit = decodedCommit.value;515+ const committedDate = trimmed(commit.date);516+ if (committedDate === null) continue;517+ commits.push({518+ oid: commit.hash,519+ messageHeadline: (commit.message ?? "").split("\n")[0] ?? "",520+ committedDate: toIsoUtc(committedDate),521+ });522+ }523+ // Bitbucket lists a pull request's commits newest first; the timeline reads oldest first.524+ return Result.succeed(commits.toReversed());525+}526+527+export function decodeStatusesJson(apps/web/src/components/pullRequest/PullRequestListFilters.tsx lines 56 to 56OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +36,21 @@36+}37+38+export function PullRequestFilterPills<Value extends string>({39+ value,40+ options,41+ label,42+ onChange,43+}: {44+ value: Value;45+ options: ReadonlyArray<PullRequestFilterOption<Value>>;46+ label: string;47+ onChange: (value: Value) => void;48+}) {49+ return (50+ <div className={FILTER_GROUP_CLASS} role="group" aria-label={label}>51+ {options.map((option) => (52+ <button53+ key={option.value}54+ type="button"55+ aria-pressed={option.value === value}56+ onClick={() => onChange(option.value)}apps/server/src/pullRequest/GitHubPullRequestProvider.ts line 217OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +197,21 @@197+ [198+ cli.getPullRequestDetail(input),199+ cli.getRepositoryAccess({200+ cwd: input.cwd,201+ repository: input.repository,202+ host: input.host,203+ }),204+ // Line comments live on review threads, which `gh pr view --json` cannot reach. A205+ // GraphQL hiccup must not blank the whole detail, so it degrades to "none" — marked206+ // truncated, because an unread thread is a missing comment, not an absent one.207+ cli.listReviewThreadComments(input).pipe(208+ Effect.orElseSucceed(() => ({209+ comments: [],210+ reviewThreads: [],211+ commentCount: 0,212+ truncated: true,213+ reviewers: [],214+ avatarsByLogin: new Map<string, string>(),215+ // A read that never happened says nothing about the reader, and an unknown216+ // permission is granted: the controls stay live and GitHub explains any refusal.217+ viewer: { canUpdate: true, didAuthor: true },apps/server/src/pullRequest/BitbucketPullRequestProvider.ts lines 62 to 62OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +42,21 @@42+ * of the two this account is.43+ */44+export function bitbucketViewerPermissions(input: {45+ readonly canWrite: boolean;46+}): PullRequestViewerPermissions {47+ return {48+ actions: CAPABILITIES.actions.filter((action) => action !== "merge" || input.canWrite),49+ comment: true,50+ resolve: true,51+ verdicts: CAPABILITIES.review.verdicts,52+ requestReviewers: true,53+ };54+}55+56+/** The failures that mean the credentials are the problem, rather than one request. */57+function reasonFor(58+ error: BitbucketPullRequestApi.BitbucketPullRequestApiError,59+): PullRequestProviderError["reason"] {60+ // Bitbucket is read over HTTP with credentials from the environment, so there is no tool to be61+ // missing: unusable always means the credentials are absent or refused.62+ if (error._tag === "BitbucketResponseError" && (error.status === 401 || error.status === 403)) {apps/server/src/pullRequest/AzureDevOpsPullRequestCli.ts line 236OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +211,21 @@211+ return ["--draft", "false"];212+ case "draft":213+ return ["--draft", "true"];214+ case "close":215+ return ["--status", "abandoned"];216+ case "reopen":217+ return ["--status", "active"];218+ }219+}220+221+/**222+ * A reviewer Azure could be given: an email address, a display name or an identity guid, and223+ * nothing that starts with a dash. The dash is the whole point — these are argv, and a value that224+ * looks like a flag stops being a value.225+ */226+function isReviewerName(value: string): boolean {227+ const name = value.trim();228+ return name.length > 0 && !name.startsWith("-");229+}230+231+export const make = Effect.gen(function* () {@@ -0,0 +538,21 @@538+ const status = decodedStatus.value;539+ const name = trimmed(status.name) ?? trimmed(status.key);540+ if (name === null) continue;541+ checks.push({542+ name,543+ status: toBuildStatus(status.state),544+ description: trimmed(status.description),545+ url: trimmed(status.url),546+ });547+ }548+ return Result.succeed(checks);549+}550+551+export interface BitbucketDiffStat {552+ readonly additions: number;553+ readonly deletions: number;554+ readonly changedFiles: number;555+}556+557+/** One entry per changed file, each carrying that file's line counts. */558+export function decodeDiffstatJson(raw: string): Result.Result<BitbucketDiffStat, DecodeFailure> {apps/web/src/components/pullRequest/PullRequestReviewBar.tsx line 86OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +66,21 @@66+ const submitReview = useAtomCommand(pullRequestEnvironment.submitReview, {67+ reportFailure: false,68+ });69+70+ const offered = VERDICTS.filter((verdict) => verdicts.includes(verdict.value));71+ if (offered.length === 0) return null;72+73+ const submit = async (verdict: (typeof VERDICTS)[number]) => {74+ if (pending) return;75+ setPending(true);76+ const result = await submitReview({77+ environmentId,78+ input: { ...reference, verdict: verdict.value, body, comments },79+ });80+ setPending(false);81+ if (result._tag === "Failure") {82+ // The draft is kept: whatever went wrong, retyping the review is not the answer.83+ toastManager.add({ type: "error", title: "The review could not be submitted" });84+ return;85+ }86+ clear(reviewKey);apps/server/src/pullRequest/bitbucketPullRequestJson.ts line 503OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +483,21 @@483+ const comment = decodedComment.value;484+ if (comment.deleted === true || comment.pending === true) continue;485+ const body = comment.content?.raw ?? "";486+ if (body.trim().length === 0) continue;487+ kept.push(comment);488+ const path = trimmed(comment.inline?.path);489+ comments.push({490+ id: String(comment.id),491+ kind: path === null ? "issue-comment" : "review-comment",492+ author: toActor(comment.user),493+ body,494+ createdAt: toIsoUtc(comment.created_on),495+ url: trimmed(comment.links?.html?.href),496+ path,497+ reviewState: null,498+ });499+ }500+ return Result.succeed({ comments, entries: kept, next: trimmed(decoded.success.next) });501+}502+503+export function decodeCommitsJson(apps/web/src/components/diffs/DiffCommentAnnotation.tsx lines 96 to 96OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -74,4 +93,4 @@7493 event.preventDefault();7594 onCancel();7695 }77- if ((event.metaKey || event.ctrlKey) && event.key === "Enter" && displayedText.trim()) {96+ if ((event.metaKey || event.ctrlKey) && event.key === "Enter" && trimmedText) {apps/server/src/pullRequest/GitHubPullRequestCli.ts line 514OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +447,21 @@447+function involvementArgs(input: {448+ readonly state: PullRequestListState;449+ readonly involvement: PullRequestInvolvement;450+ readonly viewer: string;451+ readonly query?: string | undefined;452+ /** Where to carry on from, which only a search can express. */453+ readonly cursor?: ProviderListCursor | undefined;454+ /**455+ * Ask GitHub for the order the page reads its rows in. False on the fallback read, which456+ * cannot use search at all and takes whatever order `gh pr list` answers in.457+ */458+ readonly sorted: boolean;459+}): ReadonlyArray<string> {460+ // `--state closed` includes merged pull requests, so the Closed tab additionally excludes461+ // them through search; `--author` and `review-requested:` are GitHub's own filters. `gh`462+ // takes one `--search`, so the reader's text joins the qualifiers rather than replacing them.463+ const query = input.query?.trim() ?? "";464+ // The fallback read exists because this repository's search index answered nothing, so it goes465+ // nowhere near search: no order, no cursor, and no qualifiers either, since `review-requested:`466+ // and `is:unmerged` are searches too and would come back just as empty.467+ const searchTerms = !input.sortedapps/web/src/components/pullRequest/PullRequestReviewBar.tsx line 58OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +38,21 @@38+ },39+ {40+ value: "request-changes",41+ label: "Request changes",42+ sent: "Changes requested",43+ icon: <XCircleIcon className="size-3" />,44+ },45+];46+47+export function PullRequestReviewBar({48+ environmentId,49+ reference,50+ verdicts,51+ onSubmitted,52+}: {53+ environmentId: EnvironmentId;54+ reference: PullRequestRef;55+ verdicts: ReadonlyArray<PullRequestReviewVerdict>;56+ onSubmitted: () => void;57+}) {58+ const [body, setBody] = useState("");apps/server/src/pullRequest/GitHubPullRequestCli.ts line 811Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +724,21 @@724+ );725+ };726+727+ const getPullRequestDiffFileContents: GitHubPullRequestCli["Service"]["getPullRequestDiffFileContents"] =728+ (input) =>729+ Effect.gen(function* () {730+ if (input.commit !== undefined && !isCommitSha(input.commit)) {731+ return yield* new GitHubDiffCommitError({ command: "gh", cwd: input.cwd });732+ }733+ const { owner, name } = parseRepositorySelector(input.repository);734+ const refsResult = yield* github.execute({735+ cwd: input.cwd,736+ args: [737+ "api",738+ "--hostname",739+ input.host,740+ input.commit === undefined741+ ? `repos/${owner}/${name}/pulls/${input.number}`742+ : `repos/${owner}/${name}/commits/${input.commit}`,743+ "--jq",744+ input.commit === undefined
- apps/web/src/routes/_chat.pull-requests.tsx line 606OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -601,3 +602,5 @@601602 search.repository && search.number && selectedProjectId602603 ? { repository: search.repository, number: search.number, projectId: selectedProjectId }603604 : null;605+ const lastSelected = useRef<typeof selected>(null);606+ if (selected !== null) lastSelected.current = selected;
- apps/server/src/pullRequest/GitLabPullRequestCli.ts line 986Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -796,0 +880,21 @@880+ : `The diff file '${filePath}' is binary.`,881+ ),882+ }),883+ )884+ : Effect.succeed(result.stdout),885+ ),886+ );887+888+ const [oldContents, newContents] = yield* Effect.all(889+ [890+ input.changeType === "new"891+ ? Effect.succeed("")892+ : readFile(refs.baseSha, input.oldPath),893+ input.changeType === "deleted"894+ ? Effect.succeed("")895+ : readFile(refs.headSha, input.newPath),896+ ],897+ { concurrency: 2 },898+ );899+ return { oldContents, newContents };900+ }),apps/web/src/components/ChatView.tsx line 5809Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -5794,3 +5806,4 @@57945806 ? "thread"57955807 : "page"57965808 }5809+ onStateChange={handlePullRequestTabStatusChange}
- @@ -604,0 +659,21 @@659+ const selectSurfaceInUrl = (surface: PullRequestSurface | null) =>660+ updateSearch(661+ surface === null662+ ? clearedSelection663+ : {664+ repository: surface.repository,665+ number: surface.number,666+ selectedProjectId: surface.projectId as ProjectId,667+ },668+ );669+670+ const toggleRightPanel = () => {671+ if (rightPanelRef === null) return;672+ if (rightPanelState.isOpen) {673+ useRightPanelStore.getState().close(rightPanelRef);674+ updateSearch(clearedSelection);675+ return;676+ }677+ if (activePullRequestSurface === null) return;678+ useRightPanelStore.getState().show(rightPanelRef);679+ selectSurfaceInUrl(activePullRequestSurface);@@ -674,0 +740,21 @@740+ cwd: input.cwd,741+ path: `projects/${projectPath(input.repository)}/repository/commits/${input.commit}`,742+ }).pipe(743+ Effect.flatMap((result): Effect.Effect<GitLabDiffRefs, GitLabPullRequestCliError> => {744+ const decoded = decodeCommitDiffRefsJson(result.stdout.trim());745+ if (!Result.isSuccess(decoded)) {746+ return Effect.fail(747+ new GitLabMergeRequestReadError({748+ command: "glab",749+ cwd: input.cwd,750+ operation: "getMergeRequestDiffFileContents",751+ cause: decoded.failure,752+ }),753+ );754+ }755+ return decoded.success === null756+ ? Effect.fail(757+ new GitLabDiffCommitParentUnavailableError({758+ command: "glab",759+ cwd: input.cwd,760+ commit: input.commit,
- apps/server/src/pullRequest/GitHubPullRequestCli.ts line 858Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -710,0 +834,21 @@834+835+ const readFile = (revision: string, filePath: string) =>836+ github837+ .execute({838+ cwd: input.cwd,839+ args: [840+ "api",841+ "--hostname",842+ input.host,843+ "--header",844+ "Accept: application/vnd.github.raw+json",845+ `repos/${owner}/${name}/contents/${filePath846+ .split("/")847+ .map(encodeURIComponent)848+ .join("/")}?ref=${encodeURIComponent(revision)}`,849+ ],850+ maxOutputBytes: DIFF_FILE_MAX_OUTPUT_BYTES,851+ timeoutMs: DIFF_TIMEOUT_MS,852+ })853+ .pipe(854+ Effect.flatMap((result) =>apps/server/src/pullRequest/GitHubPullRequestCli.ts line 537Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -470,3 +530,5 @@470530 ];471531 }472532533+/** The search-free fallback is wider than the request, so narrow its decoded rows locally. */534+function matchesUnsortedListing(
- apps/server/src/pullRequest/GitLabPullRequestCli.ts line 513OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -455,4 +510,4 @@455510 }),456511 );457512 }458- const collected = [...input.collected, ...decoded.success.items];513+ const pageItems =apps/server/src/pullRequest/GitHubPullRequestCli.ts line 536Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -470,3 +530,4 @@470530 ];471531 }472532533+/** The search-free fallback is wider than the request, so narrow its decoded rows locally. */
- apps/server/src/pullRequest/GitLabPullRequestCli.ts line 963OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -796,0 +943,21 @@943+ ? getDiffRefs(input)944+ : getCommitDiffRefs({945+ cwd: input.cwd,946+ repository: input.repository,947+ commit: input.commit,948+ allowRoot: input.changeType === "new",949+ });950+951+ const readFile = (revision: string, filePath: string) =>952+ api({953+ cwd: input.cwd,954+ path: `projects/${projectPath(input.repository)}/repository/files/${encodeURIComponent(955+ filePath,956+ )}/raw?ref=${encodeURIComponent(revision)}`,957+ maxOutputBytes: DIFF_FILE_MAX_OUTPUT_BYTES,958+ timeoutMs: DIFF_TIMEOUT_MS,959+ }).pipe(960+ Effect.flatMap((result) =>961+ result.stdoutTruncated ||962+ result.stdout.includes("\0") ||963+ result.stdout.includes("\uFFFD")
- @@ -756,10 +921,11 @@756- continues,757- })758- : Effect.fail(759- new GitHubPullRequestReadError({760- command: "gh",761- cwd: input.cwd,762- operation: "listPullRequests",763- cause: decoded.failure,764- }),765- );921+ if (Result.isSuccess(decoded)) {922+ const items = continues923+ ? decoded.success.items924+ : decoded.success.items.filter((item) => matchesUnsortedListing(item, input));925+ if (926+ !continues &&927+ items.length < input.limit &&928+ decoded.success.rawCount >= requestedRows929+ ) {930+ const nextRows = Math.min(requestedRows * 2, Number.MAX_SAFE_INTEGER);931+ if (nextRows > requestedRows) return read(false, nextRows);
- apps/web/src/routes/_chat.pull-requests.tsx lines 239 to 247Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -201,3 +236,11 @@201236 number: undefined,202237 selectedProjectId: undefined,203238 };239+ const updateListScope = (patch: {240+ [Key in keyof PullRequestsSearch]?: PullRequestsSearch[Key] | undefined;241+ }) => {242+ if (rightPanelRef !== null) {243+ useRightPanelStore.getState().closeAllSurfaces(rightPanelRef);244+ }245+ updateSearch({ ...patch, ...clearedSelection });246+ };
maria-rcks merged this71fe93a
maria-rcks closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
60eda22e-09ac-4373-9412-25c2767e44afYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share