Skip to content

Commit 2aacf76

Browse files
authored
Adds a new entry in the help and feedback modal to request more feedback (#1936)
1 parent 5597291 commit 2aacf76

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

apps/webapp/app/components/Feedback.tsx

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { conform, useForm } from "@conform-to/react";
22
import { parse } from "@conform-to/zod";
3-
import { InformationCircleIcon } from "@heroicons/react/20/solid";
3+
import { InformationCircleIcon, ArrowUpCircleIcon } from "@heroicons/react/20/solid";
44
import { EnvelopeIcon } from "@heroicons/react/24/solid";
55
import { Form, useActionData, useLocation, useNavigation } from "@remix-run/react";
66
import { type ReactNode, useEffect, useState } from "react";
@@ -64,7 +64,9 @@ export function Feedback({ button, defaultValue = "bug" }: FeedbackProps) {
6464
How can we help? We read every message and will respond as quickly as we can.
6565
</Paragraph>
6666
</div>
67-
<hr className="border-charcoal-800" />
67+
{!(type === "feature" || type === "help" || type === "concurrency") && (
68+
<hr className="border-grid-dimmed" />
69+
)}
6870
<Form method="post" action="/resources/feedback" {...form.props} className="w-full">
6971
<Fieldset className="max-w-full gap-y-3">
7072
<input value={location.pathname} {...conform.input(path, { type: "hidden" })} />
@@ -97,6 +99,19 @@ export function Feedback({ button, defaultValue = "bug" }: FeedbackProps) {
9799
</Paragraph>
98100
</InfoPanel>
99101
)}
102+
{type === "concurrency" && (
103+
<InfoPanel
104+
icon={ArrowUpCircleIcon}
105+
iconClassName="text-indigo-500"
106+
panelClassName="w-full mb-2"
107+
>
108+
<Paragraph variant="small">
109+
How much extra concurrency do you need? You can add bundles of 50 for
110+
$50/month each. To help us advise you, please let us know what your tasks do,
111+
your typical run volume, and if your workload is spiky (many runs at once).
112+
</Paragraph>
113+
</InfoPanel>
114+
)}
100115
<Select
101116
{...conform.select(feedbackType)}
102117
variant="tertiary/medium"

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues/route.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ export default function Page() {
262262
LeadingIcon={ChatBubbleLeftEllipsisIcon}
263263
leadingIconClassName="text-indigo-500"
264264
>
265-
Increase limit
265+
Increase limit
266266
</Button>
267267
}
268-
defaultValue="help"
268+
defaultValue="concurrency"
269269
/>
270270
) : (
271271
<LinkButton

apps/webapp/app/routes/resources.feedback.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { parse } from "@conform-to/zod";
2-
import { ActionFunctionArgs, json } from "@remix-run/server-runtime";
3-
import { PlainClient, uiComponent } from "@team-plain/typescript-sdk";
4-
import { inspect } from "util";
2+
import { type ActionFunctionArgs, json } from "@remix-run/server-runtime";
3+
import { type PlainClient, uiComponent } from "@team-plain/typescript-sdk";
54
import { z } from "zod";
6-
import { env } from "~/env.server";
75
import { redirectWithSuccessMessage } from "~/models/message.server";
86
import { requireUser } from "~/services/session.server";
97
import { sendToPlain } from "~/utils/plain.server";
@@ -16,6 +14,7 @@ export const feedbackTypeLabel = {
1614
help: "Help me out",
1715
enterprise: "Enterprise enquiry",
1816
feedback: "General feedback",
17+
concurrency: "Increase my concurrency",
1918
};
2019

2120
export type FeedbackType = keyof typeof feedbackTypeLabel;

0 commit comments

Comments
 (0)