Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

📢 Add Featurebase (#796)

Luke Vella222947292b7d
diff --git a/README.md b/README.md
index 9dabeef58..de35c56b4 100644
--- a/README.md
+++ b/README.md
@@ -89,13 +89,14 @@ Thank you to our sponsors for making this project possible.
[Become a sponsor →](https://github.com/sponsors/lukevella)
-This project is also supported by the following companies through their open-source sponsorships.
+And thank you to these companies for sponsoring and showing support for this project.
-<a href="https://appwrite.io"><img src="./assets/images/appwrite.svg" alt="appwrite" height="30" /></a>
+<a href="https://appwrite.io?utm_source=rallly"><img src="./assets/images/appwrite.svg" alt="appwrite" height="24" /></a>
&nbsp;&nbsp;&nbsp;
-<a href="https://vercel.com/?utm_source=rallly&utm_campaign=oss"><img src="./apps/landing/public/vercel-logotype-dark.svg" alt="Powered by Vercel" height="30" /></a>
+<a href="https://vercel.com/?utm_source=rallly&utm_campaign=oss"><img src="./apps/landing/public/vercel-logotype-dark.svg" alt="Powered by Vercel" height="24" /></a>
&nbsp;&nbsp;&nbsp;
-<a href="https://m.do.co/c/f91efc9c9e50"><img src="./apps/landing/public/digitalocean.svg" alt="Digital Ocean" height="30" /></a>
+<a href="https://m.do.co/c/f91efc9c9e50"><img src="./apps/landing/public/digitalocean.svg" alt="Digital Ocean" height="24" /></a>
&nbsp;&nbsp;&nbsp;
-<a href="https://sentry.io"><img src="./apps/landing/public/sentry.svg" alt="Sentry" height="30" /></a>&nbsp;&nbsp;&nbsp;
-<a href="https://cloudron.io"><img src="./assets/images/cloudron-logo.svg" alt="Cloudron" height="36"></a>
+<a href="https://sentry.io?utm_source=rallly"><img src="./apps/landing/public/sentry.svg" alt="Sentry" height="24" /></a>&nbsp;&nbsp;&nbsp;
+<a href="https://cloudron.io?utm_source=rallly"><img src="./assets/images/cloudron-logo.svg" alt="Cloudron" height="32"></a>&nbsp;&nbsp;&nbsp;
+<a href="https://featurebase.app?utm_source=rallly"><img src="./assets/images/featurebase.svg" alt="Featurebase" height="30"></a>
diff --git a/apps/landing/src/pages/privacy-policy.tsx b/apps/landing/src/pages/privacy-policy.tsx
index 3a137aa55..b175d54f1 100644
--- a/apps/landing/src/pages/privacy-policy.tsx
+++ b/apps/landing/src/pages/privacy-policy.tsx
@@ -9,7 +9,7 @@ const PrivacyPolicy = () => {
<NextSeo title="Privacy Policy" />
<div className="prose my-16 mx-auto max-w-3xl rounded-lg bg-white p-8 shadow-md">
<h1>Privacy Policy</h1>
- <p>Last updated: 19 April 2023</p>
+ <p>Last updated: 1 August 2023</p>
<p>
At rallly.co, we take your privacy seriously. This privacy policy
explains how we collect, use, and disclose your personal data, and
@@ -66,10 +66,18 @@ const PrivacyPolicy = () => {
<h2>Sharing of personal data</h2>
<p>
- We do not share your personal data with third parties, except for our
- data processor, Posthog, which is based in the United States. We have
- implemented appropriate safeguards to protect your personal data when
- it is transferred outside of the European Economic Area.
+ We do not share your personal data with any third parties for
+ marketing or commercial purposes. We may share your personal data with
+ third parties to provide you with our services, to comply with
+ applicable laws and regulations, to respond to a subpoena, search
+ warrant or other lawful request for information we receive, or to
+ otherwise protect our rights.
+ </p>
+
+ <p>
+ For example, we use Featurebase to make it easy for users to submit
+ feedback. Your name and email may be shared with Featurbase to provide
+ a seamless transition between the two services.
</p>
<h2>Your rights</h2>
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index 5969d960b..46269b3bd 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -10,7 +10,6 @@
"settings": "Settings",
"changeNameDescription": "Enter a new name for this participant.",
"changeNameInfo": "This will not affect any votes you have already made.",
- "close": "Close",
"comments": "Comments",
"continue": "Continue",
"copied": "Copied",
@@ -36,11 +35,6 @@
"emailPlaceholder": "[email protected]",
"expiredOrInvalidLink": "This link is expired or invalid. Please request a new link.",
"exportToCsv": "Export to CSV",
- "feedbackFormFooter": "Need help? Visit the <a>support page</a>.",
- "feedbackFormLabel": "How can we improve <appname />?",
- "feedbackFormPlaceholder": "Share your thoughts…",
- "feedbackFormTitle": "Feedback Form",
- "feedbackSent": "Thank you! Your feedback has been sent.",
"forgetMe": "Forget me",
"guest": "Guest",
"ifNeedBe": "If need be",
@@ -76,7 +70,6 @@
"response": "Response",
"save": "Save",
"saveInstruction": "Select your availability and click <b>{action}</b>",
- "send": "Send",
"sendFeedback": "Send Feedback",
"specifyTimes": "Specify times",
"specifyTimesDescription": "Include start and end times for each option",
@@ -213,5 +206,8 @@
"disableCommentsDescription": "Remove the option to leave a comment on the poll",
"planCustomizablePollSettings": "Customizable poll settings",
"clockPreferences": "Clock Preferences",
- "clockPreferencesDescription": "Set your preferred time zone and time format."
+ "clockPreferencesDescription": "Set your preferred time zone and time format.",
+ "featureRequest": "Request a Feature",
+ "bugReport": "Report an Issue",
+ "getSupport": "Get Support"
}
diff --git a/apps/web/src/components/featurebase.tsx b/apps/web/src/components/featurebase.tsx
new file mode 100644
index 000000000..3bba4e59b
--- /dev/null
+++ b/apps/web/src/components/featurebase.tsx
@@ -0,0 +1,44 @@
+import Script from "next/script";
+import React from "react";
+
+import { useUser } from "@/components/user-provider";
+
+export const FeaturebaseProvider = ({ children }: React.PropsWithChildren) => {
+ const { user } = useUser();
+
+ React.useEffect(() => {
+ if (user.isGuest) return;
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ const win = window as any;
+
+ if (typeof win.Featurebase !== "function") {
+ win.Featurebase = function () {
+ // eslint-disable-next-line prefer-rest-params
+ (win.Featurebase.q = win.Featurebase.q || []).push(arguments);
+ };
+ }
+ win.Featurebase(
+ "identify",
+ {
+ organization: "rallly",
+
+ // Required. Replace with your customers data.
+ email: user.email,
+ name: user.name,
+ id: user.id,
+ },
+ (err: Error) => {
+ // Callback function. Called when identify completed.
+ if (err) {
+ console.error(err);
+ }
+ },
+ );
+ }, [user]);
+ return (
+ <>
+ <Script src="https://do.featurebase.app/js/sdk.js" id="featurebase-sdk" />
+ {children}
+ </>
+ );
+};
diff --git a/apps/web/src/components/feedback.tsx b/apps/web/src/components/feedback.tsx
index 7b18a7333..39282bd95 100644
--- a/apps/web/src/components/feedback.tsx
+++ b/apps/web/src/components/feedback.tsx
@@ -1,107 +1,75 @@
-import { trpc } from "@rallly/backend";
-import { CheckCircleIcon, MegaphoneIcon } from "@rallly/icons";
-import { Button } from "@rallly/ui/button";
-import { Tooltip, TooltipContent, TooltipTrigger } from "@rallly/ui/tooltip";
+import {
+ BugIcon,
+ LifeBuoyIcon,
+ LightbulbIcon,
+ MegaphoneIcon,
+ SmileIcon,
+} from "@rallly/icons";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuLabel,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from "@rallly/ui/dropdown-menu";
import Link from "next/link";
-import { Trans, useTranslation } from "next-i18next";
-import { useForm } from "react-hook-form";
+import { Trans } from "next-i18next";
-import { Logo } from "@/components/logo";
-import { useModalState } from "@/components/modal/use-modal";
-
-const FeedbackForm = (props: { onClose: () => void }) => {
- const { t } = useTranslation();
- const sendFeedback = trpc.feedback.send.useMutation();
- const { handleSubmit, register, formState } = useForm<{ content: string }>();
-
- return (
- <form
- onSubmit={handleSubmit(async (data) => {
- await sendFeedback.mutateAsync(data);
- })}
- className="shadow-huge animate-popIn fixed bottom-8 right-8 z-20 w-[460px] max-w-full origin-bottom-right space-y-2 overflow-hidden rounded-md border bg-white p-3"
- >
- {formState.isSubmitted ? (
- <div className="absolute inset-0 flex h-full w-full items-center justify-center bg-white">
- <div className="space-y-3 text-center">
- <CheckCircleIcon className="inline-block h-14 text-green-500" />
- <div>{t("feedbackSent")}</div>
- <div>
- <button onClick={props.onClose} className="text-link">
- {t("close")}
- </button>
- </div>
- </div>
- </div>
- ) : null}
- <div className="font-semibold text-gray-800">
- {t("feedbackFormTitle")}
- </div>
- <fieldset>
- <label className="mb-2" htmlFor="feedback">
- <Trans
- t={t}
- i18nKey="feedbackFormLabel"
- components={{ appname: <Logo /> }}
- />
- </label>
- <textarea
- id="feedback"
- autoFocus={true}
- placeholder={t("feedbackFormPlaceholder")}
- rows={4}
- className="w-full border bg-gray-50 p-2 text-gray-800"
- {...register("content", { required: true })}
- />
- </fieldset>
- <div className="flex items-center justify-between gap-4">
- <div className="flex gap-2">
- <Button onClick={props.onClose}>{t("cancel")}</Button>
- <Button
- loading={formState.isSubmitting}
- type="submit"
- variant="primary"
- >
- {t("send")}
- </Button>
- </div>
- <div className="text-sm">
- <Trans
- t={t}
- i18nKey="feedbackFormFooter"
- components={{
- a: (
- <Link href="https://support.rallly.co" className="text-link" />
- ),
- }}
- />
- </div>
- </div>
- </form>
- );
-};
+import { FeaturebaseProvider } from "@/components/featurebase";
const FeedbackButton = () => {
- const { t } = useTranslation();
- const [isVisible, show, close] = useModalState();
- if (isVisible) {
- return <FeedbackForm onClose={close} />;
- }
-
return (
- <Tooltip>
- <TooltipTrigger asChild>
- <button
- onClick={show}
- className="shadow-huge fixed bottom-8 right-8 hidden h-14 w-14 items-center justify-center rounded-full bg-gray-800 sm:inline-flex"
- >
- <MegaphoneIcon className="h-7 text-white" />
- </button>
- </TooltipTrigger>
- <TooltipContent side="left">
- <p>{t("sendFeedback")}</p>
- </TooltipContent>
- </Tooltip>
+ <FeaturebaseProvider>
+ <DropdownMenu modal={false}>
+ <DropdownMenuTrigger className="shadow-huge fixed bottom-8 right-6 hidden h-12 w-12 items-center justify-center rounded-full bg-gray-800 hover:bg-gray-700 active:shadow-none sm:inline-flex">
+ <MegaphoneIcon className="h-5 text-white" />
+ </DropdownMenuTrigger>
+ <DropdownMenuContent sideOffset={10} align="end">
+ <DropdownMenuLabel>
+ <Trans i18nKey="menu" />
+ </DropdownMenuLabel>
+ <DropdownMenuSeparator />
+ <DropdownMenuItem asChild>
+ <Link
+ href={`https://rallly.featurebase.app/?b=feedback`}
+ target={"_blank"}
+ >
+ <SmileIcon className="mr-2 h-4 w-4" />
+ <Trans i18nKey="sendFeedback" defaults="Send Feedback" />
+ </Link>
+ </DropdownMenuItem>
+ <DropdownMenuItem asChild>
+ <Link
+ href={`https://rallly.featurebase.app/?b=feature-request`}
+ target={"_blank"}
+ >
+ <LightbulbIcon className="mr-2 h-4 w-4" />
+ <Trans
+ i18nKey={"featureRequest"}
+ defaults={"Request a Feature"}
+ />
+ </Link>
+ </DropdownMenuItem>
+ <DropdownMenuItem asChild>
+ <Link
+ href={`https://rallly.featurebase.app/?b=bug-reports`}
+ target={"_blank"}
+ >
+ <BugIcon className="mr-2 h-4 w-4" />
+ <Trans i18nKey={"bugReport"} defaults={"Report an Issue"} />
+ </Link>
+ </DropdownMenuItem>
+ <DropdownMenuSeparator />
+ <DropdownMenuItem asChild>
+ <Link href={`https://support.rallly.co`} target={"_blank"}>
+ <LifeBuoyIcon className="mr-2 h-4 w-4" />
+ <Trans i18nKey={"getSupport"} defaults={"Get Support"} />
+ </Link>
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </FeaturebaseProvider>
);
};
diff --git a/assets/images/featurebase.svg b/assets/images/featurebase.svg
new file mode 100644
index 000000000..e5cfca813
--- /dev/null
+++ b/assets/images/featurebase.svg
@@ -0,0 +1,16 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="148" height="33" fill="none" viewBox="0 0 148 33">
+ <g clip-path="url(#a)">
+ <mask id="b" width="20" height="20" x="5" y="6" maskUnits="userSpaceOnUse" style="mask-type:luminance">
+ <path fill="#fff" d="M25 6H5v20h20V6Z"/>
+ </mask>
+ <g mask="url(#b)">
+ <path fill="#4F46E5" d="M22.37 11.304a6.098 6.098 0 0 1-1.87 10.901 2.25 2.25 0 0 1-2.172-3.763l1.732-1.733a7.197 7.197 0 0 0 2.108-5.545c.063.046.133.091.201.14ZM10.304 8.628a6.1 6.1 0 0 1 10.901 1.87 2.25 2.25 0 0 1-3.763 2.176l-1.731-1.732a7.23 7.23 0 0 0-5.546-2.107l.139-.207ZM7.628 20.694a6.1 6.1 0 0 1 1.87-10.902 2.248 2.248 0 0 1 2.179 3.763l-1.732 1.732a7.226 7.226 0 0 0-2.107 5.547 8.8 8.8 0 0 1-.21-.14Zm12.067 2.676A6.1 6.1 0 0 1 8.792 21.5a2.25 2.25 0 0 1 3.765-2.18l1.731 1.732a7.213 7.213 0 0 0 5.546 2.107c-.044.07-.091.142-.139.21Z"/>
+ </g>
+ </g>
+ <path fill="#000" d="M34 21.812V9h8.685v2.233h-5.912v3.053h5.335v2.234h-5.335v5.292H34ZM48.26 22c-1.012 0-1.883-.2-2.613-.6a4.156 4.156 0 0 1-1.678-1.715c-.393-.742-.59-1.62-.59-2.633 0-.989.197-1.857.59-2.603a4.294 4.294 0 0 1 1.658-1.745c.718-.418 1.559-.626 2.524-.626.649 0 1.253.102 1.812.306.564.2 1.055.503 1.473.908.423.404.752.913.987 1.526.234.609.352 1.322.352 2.14v.732h-8.307v-1.652h5.739c0-.384-.086-.724-.257-1.02a1.813 1.813 0 0 0-.71-.694 2.065 2.065 0 0 0-1.044-.257c-.414 0-.782.094-1.102.282a1.996 1.996 0 0 0-.743.744c-.18.309-.27.653-.275 1.033v1.57c0 .475.09.886.269 1.232.183.346.442.613.775.801.333.188.728.282 1.185.282.303 0 .58-.042.832-.125.252-.084.468-.21.647-.376.18-.167.316-.371.41-.613l2.523.163a3.337 3.337 0 0 1-.787 1.551c-.393.438-.901.78-1.525 1.026-.619.242-1.334.363-2.145.363Zm9.1-.006c-.627 0-1.186-.107-1.677-.32a2.686 2.686 0 0 1-1.166-.956c-.282-.426-.423-.956-.423-1.59 0-.533.1-.982.301-1.345.201-.362.474-.654.82-.875a4.025 4.025 0 0 1 1.178-.5c.445-.114.91-.193 1.397-.239a36.026 36.026 0 0 0 1.383-.162c.35-.055.604-.134.762-.238a.519.519 0 0 0 .237-.463v-.037c0-.397-.128-.703-.384-.92-.252-.217-.61-.325-1.076-.325-.491 0-.882.106-1.172.319a1.47 1.47 0 0 0-.576.788l-2.524-.2c.128-.584.38-1.089.756-1.514.376-.43.86-.76 1.454-.989.598-.233 1.29-.35 2.075-.35.546 0 1.07.063 1.569.188.504.125.95.319 1.339.581.392.263.702.601.928 1.014.226.409.34.899.34 1.47v6.481h-2.588V20.48h-.077c-.158.3-.37.565-.634.794a2.953 2.953 0 0 1-.954.532c-.372.125-.8.188-1.287.188Zm.782-1.84a2.34 2.34 0 0 0 1.063-.231 1.86 1.86 0 0 0 .724-.638c.175-.267.262-.57.262-.907v-1.02a1.477 1.477 0 0 1-.352.15c-.145.042-.31.082-.493.119-.184.033-.367.065-.55.094l-.5.069c-.32.046-.6.119-.84.219-.238.1-.424.235-.556.406a.975.975 0 0 0-.2.626c0 .363.135.64.404.832.274.188.62.281 1.038.281Zm12.108-7.951v2.002h-5.924v-2.002h5.924Zm-4.58-2.302h2.73v8.959c0 .245.038.437.115.575a.631.631 0 0 0 .32.282c.141.054.303.08.487.08.128 0 .256-.01.384-.03L70 19.71l.43 1.983c-.138.042-.33.09-.577.144a4.724 4.724 0 0 1-.903.107c-.658.025-1.234-.06-1.73-.257a2.402 2.402 0 0 1-1.146-.913c-.273-.413-.408-.934-.403-1.564V9.9Zm12.665 7.819v-5.517h2.729v9.61h-2.62v-1.746h-.102a2.85 2.85 0 0 1-1.108 1.357c-.512.342-1.138.513-1.877.513-.657 0-1.236-.146-1.735-.438a3.03 3.03 0 0 1-1.172-1.244c-.278-.538-.419-1.183-.423-1.933v-6.119h2.728v5.643c.005.567.16 1.016.468 1.345.307.33.72.494 1.236.494a2 2 0 0 0 .922-.219 1.74 1.74 0 0 0 .692-.663c.18-.292.267-.652.263-1.082Zm4.911 4.092v-9.609h2.645v1.677h.103c.18-.597.48-1.047.903-1.352.422-.308.91-.463 1.46-.463a4.22 4.22 0 0 1 .858.094v2.365a3.632 3.632 0 0 0-.531-.1 4.886 4.886 0 0 0-.622-.044c-.4 0-.76.086-1.075.257-.312.166-.56.4-.743.7-.18.3-.27.647-.27 1.039v5.436h-2.728ZM94.651 22c-1.012 0-1.883-.2-2.613-.6a4.156 4.156 0 0 1-1.678-1.715c-.393-.742-.59-1.62-.59-2.633 0-.989.197-1.857.59-2.603a4.294 4.294 0 0 1 1.659-1.745c.717-.418 1.558-.626 2.523-.626a5.24 5.24 0 0 1 1.813.306c.563.2 1.054.503 1.473.908.422.404.751.913.986 1.526.235.609.352 1.322.352 2.14v.732H90.86v-1.652h5.738c0-.384-.085-.724-.256-1.02a1.814 1.814 0 0 0-.711-.694 2.065 2.065 0 0 0-1.044-.257c-.414 0-.781.094-1.102.282a1.996 1.996 0 0 0-.742.744c-.18.309-.272.653-.276 1.033v1.57c0 .475.09.886.27 1.232.183.346.441.613.774.801.333.188.728.282 1.185.282.303 0 .58-.042.833-.125a1.75 1.75 0 0 0 .646-.376c.18-.167.316-.371.41-.613l2.524.163a3.336 3.336 0 0 1-.788 1.551c-.393.438-.901.78-1.524 1.026-.62.242-1.335.363-2.146.363Zm6.347-.188V9h2.728v4.817h.084a3.5 3.5 0 0 1 .518-.788c.231-.271.53-.496.897-.676.372-.183.833-.275 1.383-.275.718 0 1.38.184 1.986.55.606.363 1.091.912 1.454 1.646.363.73.544 1.645.544 2.746 0 1.072-.177 1.977-.532 2.715-.35.734-.828 1.291-1.434 1.67a3.748 3.748 0 0 1-2.024.564c-.529 0-.98-.086-1.351-.257a2.776 2.776 0 0 1-.903-.644 3.239 3.239 0 0 1-.538-.795h-.122v1.54h-2.69Zm2.671-4.804c0 .571.081 1.07.243 1.495.162.425.397.757.705.995.307.233.681.35 1.12.35.444 0 .82-.119 1.128-.357.307-.242.54-.575.698-1 .162-.43.243-.924.243-1.483 0-.555-.079-1.043-.237-1.464-.158-.421-.391-.75-.698-.989-.307-.237-.685-.356-1.134-.356-.444 0-.819.114-1.127.344-.303.23-.536.555-.698.976-.162.421-.243.917-.243 1.489Zm11.549 4.986c-.628 0-1.187-.107-1.678-.32a2.687 2.687 0 0 1-1.166-.956c-.282-.426-.423-.956-.423-1.59 0-.533.101-.982.301-1.345.201-.362.474-.654.82-.875a4.029 4.029 0 0 1 1.179-.5 9.171 9.171 0 0 1 1.396-.239 36.014 36.014 0 0 0 1.383-.162c.35-.055.604-.134.762-.238a.519.519 0 0 0 .237-.463v-.037c0-.397-.128-.703-.384-.92-.252-.217-.61-.325-1.076-.325-.491 0-.882.106-1.172.319a1.47 1.47 0 0 0-.576.788l-2.524-.2c.128-.584.38-1.089.756-1.514.376-.43.86-.76 1.454-.989.598-.233 1.289-.35 2.075-.35.546 0 1.069.063 1.569.188.504.125.95.319 1.339.581.392.263.702.601.928 1.014.227.409.34.899.34 1.47v6.481h-2.588V20.48h-.077c-.158.3-.369.565-.634.794a2.939 2.939 0 0 1-.954.532 4.03 4.03 0 0 1-1.287.188Zm.781-1.84c.401 0 .756-.077 1.063-.231a1.86 1.86 0 0 0 .724-.638 1.62 1.62 0 0 0 .263-.907v-1.02a1.485 1.485 0 0 1-.353.15 6.468 6.468 0 0 1-.493.119c-.183.033-.367.065-.551.094l-.499.069c-.32.046-.6.119-.839.219s-.425.235-.557.406a.972.972 0 0 0-.199.626c0 .363.135.64.404.832.273.188.619.281 1.037.281Zm15.06-5.211-2.497.15a1.252 1.252 0 0 0-.276-.563 1.456 1.456 0 0 0-.557-.406 1.928 1.928 0 0 0-.813-.157c-.423 0-.78.088-1.07.263-.29.171-.435.4-.435.688 0 .23.094.424.281.582.188.159.511.286.967.382l1.781.35c.956.192 1.669.5 2.139.926.47.425.705.984.705 1.676 0 .63-.19 1.183-.57 1.658-.376.476-.893.847-1.55 1.114-.654.263-1.407.394-2.261.394-1.302 0-2.34-.265-3.113-.794-.768-.534-1.219-1.26-1.351-2.178l2.683-.137c.082.388.278.684.59.888.311.2.711.3 1.197.3.478 0 .863-.09 1.153-.269.295-.183.444-.419.448-.706a.729.729 0 0 0-.313-.595c-.205-.158-.521-.28-.948-.363l-1.704-.331c-.961-.188-1.676-.513-2.145-.976-.466-.463-.699-1.053-.699-1.77 0-.618.171-1.15.513-1.596.346-.446.83-.79 1.454-1.032.627-.242 1.362-.363 2.203-.363 1.242 0 2.22.257 2.933.77.717.512 1.136 1.211 1.255 2.095ZM137.485 22c-1.012 0-1.883-.2-2.613-.6a4.157 4.157 0 0 1-1.678-1.715c-.393-.742-.589-1.62-.589-2.633 0-.989.196-1.857.589-2.603a4.29 4.29 0 0 1 1.659-1.745c.717-.418 1.558-.626 2.523-.626.649 0 1.253.102 1.812.306.564.2 1.055.503 1.473.908.423.404.752.913.987 1.526.235.609.352 1.322.352 2.14v.732h-8.307v-1.652h5.739c0-.384-.086-.724-.256-1.02a1.817 1.817 0 0 0-.711-.694 2.066 2.066 0 0 0-1.044-.257c-.414 0-.782.094-1.102.282a2 2 0 0 0-.743.744 2.065 2.065 0 0 0-.275 1.033v1.57c0 .475.089.886.269 1.232.183.346.442.613.775.801.333.188.728.282 1.185.282.303 0 .58-.042.832-.125.252-.084.468-.21.647-.376.179-.167.316-.371.41-.613l2.523.163a3.335 3.335 0 0 1-.787 1.551c-.393.438-.901.78-1.525 1.026-.619.242-1.334.363-2.145.363Z"/>
+ <defs>
+ <clipPath id="a">
+ <path fill="#fff" d="M5 6h20v20H5z"/>
+ </clipPath>
+ </defs>
+</svg>
diff --git a/packages/backend/trpc/routers/feedback.ts b/packages/backend/trpc/routers/feedback.ts
deleted file mode 100644
index 3e3e3529a..000000000
--- a/packages/backend/trpc/routers/feedback.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-import { prisma } from "@rallly/database";
-import { sendRawEmail } from "@rallly/emails";
-import { z } from "zod";
-
-import { publicProcedure, router } from "../trpc";
-
-export const feedback = router({
- send: publicProcedure
- .input(z.object({ content: z.string() }))
- .mutation(async ({ input, ctx }) => {
- let replyTo: string | undefined;
- let name = "Guest";
-
- if (!ctx.user.isGuest) {
- const user = await prisma.user.findUnique({
- where: { id: ctx.user.id },
- select: { email: true, name: true },
- });
-
- if (user) {
- replyTo = user.email;
- name = user.name;
- }
- }
-
- await sendRawEmail({
- to: process.env.NEXT_PUBLIC_FEEDBACK_EMAIL,
- from: {
- name: "Rallly Feedback Form",
- address: process.env.SUPPORT_EMAIL ?? "",
- },
- subject: "Feedback",
- replyTo,
- text: `${name} says:\n\n${input.content}`,
- });
- }),
-});
diff --git a/packages/backend/trpc/routers/index.ts b/packages/backend/trpc/routers/index.ts
index f27b95962..a334ddae2 100644
--- a/packages/backend/trpc/routers/index.ts
+++ b/packages/backend/trpc/routers/index.ts
@@ -1,6 +1,5 @@
import { mergeRouters, router } from "../trpc";
import { auth } from "./auth";
-import { feedback } from "./feedback";
import { polls } from "./polls";
import { user } from "./user";
import { userPreferences } from "./user-preferences";
@@ -12,7 +11,6 @@ export const appRouter = mergeRouters(
auth,
polls,
user,
- feedback,
userPreferences,
}),
);