GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): a refused review shows GitHub's reason · pingdotgg/t3code@3582b8c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/web/src/components/pullRequest
    • PullRequestReviewForm.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/web/src/components/pullRequest/PullRequestReviewForm.tsx‎

Copy file name to clipboardExpand all lines: apps/web/src/components/pullRequest/PullRequestReviewForm.tsx
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ import { CheckIcon, MessageSquareIcon, XCircleIcon } from "lucide-react";
44
import { useState, type ReactNode, type RefObject } from "react";
55

66
import { pullRequestEnvironment } from "~/state/pullRequests";
7+
import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
78

89
import { Button } from "../ui/button";
910
import { Select, SelectItem, SelectPopup, SelectTrigger } from "../ui/select";
1011
import { Textarea } from "../ui/textarea";
1112
import { toastManager } from "../ui/toast";
13+
import { readableFailure } from "./pullRequestDetail.logic";
1214
import {
1315
pullRequestReviewKey,
1416
usePendingReviewComments,
@@ -94,7 +96,14 @@ export function PullRequestReviewForm({
9496
});
9597
onPendingChange(false);
9698
if (result._tag === "Failure") {
97-
toastManager.add({ type: "error", title: "The review could not be submitted" });
99+
toastManager.add({
100+
type: "error",
101+
title: "The review could not be submitted",
102+
description: readableFailure(
103+
squashAtomCommandFailure(result),
104+
"The host refused the review. Your draft is still here to try again.",
105+
),
106+
});
98107
return;
99108
}
100109
// More remarks may have been added while the host was accepting this snapshot. Leave those,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.