Skip to content

Commit

Permalink
Better wording for sending response
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin committed Aug 27, 2024
1 parent 0412da0 commit b405e59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from "queries/useRequestsQuery";

const hintText = (data?: RequestWithReviewOutcome) =>
`A new submission (API) key will be generated and sent to ${data?.requesterEmail} along with the review outcome and comments`;
`A response email will sent to ${data?.requesterEmail} along with the review outcome and comments. If the request was approved, a new submission (API) key will be included.`;

export function ConfirmNotifyDialog({
data,
Expand Down Expand Up @@ -61,13 +61,13 @@ export function ConfirmNotifyDialog({
onConfirm?.();
notify("Saving outcome");
await submitForm();
notify("Requesting for an API key to be sent");
notify("Queueing a response to be sent");
await sendOutcome(data?.id);
notify("Successfully requested for an API key to be sent");
notify("Successfully queued a response to be sent");
onClose?.();
}}
>
Generate and send API key
Send response
</Button>
</>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function ReviewRequestDialog({
const notify = useSnackbar();
const { open: showConfirmation, dialog: confirmationDialog } = useDialog(
ConfirmNotifyDialog,
{ padded: true, title: "Generate and send API key" }
{ padded: true, title: "Respond to request" }
);
const { mutateAsync: updateRequest } = useRequestsUpdateMutation();
return (
Expand Down Expand Up @@ -122,7 +122,7 @@ export function ReviewRequestDialog({
<SendOutlined />
</ListItemIcon>
<ListItemText
primary={`Save and send an API key to ${data?.requesterEmail}`}
primary={`Save and send a response to ${data?.requesterEmail}`}
/>
</ListItemButton>
</List>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function index() {
);
const { open: showConfirmation, dialog: confirmationDialog } = useDialog(
ConfirmNotifyDialog,
{ padded: true, title: "Generate and send API key" }
{ padded: true, title: "Respond to request" }
);

const columns: GridColDef<RequestWithReviewOutcome>[] = [
Expand Down Expand Up @@ -90,7 +90,7 @@ export default function index() {
action: (row) => showDetails({ data: row }),
},
{
name: "Send outcome",
name: "Respond to request",
icon: <SendOutlined />,
action: (row) => showConfirmation({ data: row }),
},
Expand Down

0 comments on commit b405e59

Please sign in to comment.