Skip to content

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

🔥 Remove feedback alert

Luke Vella67c738c2af00
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index 4c34d77fd..0d7d073e4 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -279,11 +279,7 @@
"canceledEventsEmptyStateTitle": "No Canceled Events",
"canceledEventsEmptyStateDescription": "Canceled events will show up here.",
"pending": "Pending",
- "helpUsImprove": "Help us improve",
- "helpUsImproveDesc": "Take a few minutes to share your feedback and help us shape the future of Rallly.",
- "giveFeedback": "Give feedback",
"homeActionsTitle": "Actions",
- "dismissFeedback": "Don't show again",
"livePollCount": "{count} live",
"upcomingEventCount": "{count} upcoming",
"adminSetupCta": "Make me an admin",
diff --git a/apps/web/src/app/[locale]/(space)/(dashboard)/feedback-alert.tsx b/apps/web/src/app/[locale]/(space)/(dashboard)/feedback-alert.tsx
deleted file mode 100644
index dd96f2eb0..000000000
--- a/apps/web/src/app/[locale]/(space)/(dashboard)/feedback-alert.tsx
+++ /dev/null
@@ -1,55 +0,0 @@
-"use client";
-import { usePostHog } from "@rallly/posthog/client";
-import { Button } from "@rallly/ui/button";
-import { HeartIcon } from "lucide-react";
-import Link from "next/link";
-import { useLocalStorage } from "react-use";
-import { Trans } from "@/components/trans";
-
-export function FeedbackAlert() {
- const [value, setValue] = useLocalStorage<string>("home_feedback_dismissed");
- const posthog = usePostHog();
-
- if (value) {
- return null;
- }
-
- return (
- <div className="flex flex-col items-start gap-4 rounded-xl border border-gray-200 bg-gray-50 p-4 text-sm sm:flex-row">
- <div className="hidden sm:block">
- <HeartIcon className="size-4 text-pink-600 opacity-75" />
- </div>
- <div className="flex-1">
- <h2 className="font-semibold leading-none">
- <Trans i18nKey="helpUsImprove" defaults="Help us improve" />
- </h2>
- <p className="mt-1.5 opacity-75">
- <Trans
- i18nKey="helpUsImproveDesc"
- defaults="Take a few minutes to share your feedback and help us shape the future of Rallly."
- />
- </p>
- </div>
- <div className="flex flex-row-reverse items-center gap-2 sm:flex-row">
- <Button
- variant="ghost"
- onClick={() => {
- setValue("1");
- posthog.capture("feedback_dismissed");
- }}
- >
- <Trans i18nKey="dismissFeedback" defaults="Don't show again" />
- </Button>
- <Button variant="primary" asChild>
- <Link
- href="https://www.trustpilot.com/evaluate/rallly.co"
- target="_blank"
- rel="noopener noreferrer"
- >
- <Trans i18nKey="giveFeedback" defaults="Give feedback" />
- </Link>
- </Button>
- </div>
- </div>
- );
-}
diff --git a/apps/web/src/app/[locale]/(space)/(dashboard)/page.tsx b/apps/web/src/app/[locale]/(space)/(dashboard)/page.tsx
index 7ff228f80..1d54e008c 100644
--- a/apps/web/src/app/[locale]/(space)/(dashboard)/page.tsx
+++ b/apps/web/src/app/[locale]/(space)/(dashboard)/page.tsx
@@ -18,7 +18,6 @@ import {
} from "@/app/components/page-layout";
import { requireSpace, requireUser } from "@/auth/data";
import { Trans } from "@/components/trans";
-import { IfCloudHosted } from "@/contexts/environment";
import { getUpcomingEventsCount } from "@/features/scheduled-event/data";
import { loadMembers } from "@/features/space/data";
import { defineAbilityForMember } from "@/features/space/member/ability";
@@ -27,7 +26,6 @@ import { getUserHasNoAccounts } from "@/features/user/queries";
import { getTranslation } from "@/i18n/server";
import { IfFeatureEnabled } from "@/lib/feature-flags/client";
import { isFeatureEnabled } from "@/lib/feature-flags/server";
-import { FeedbackAlert } from "./feedback-alert";
import { PasswordSetupAlert } from "./password-setup-alert";
async function loadData() {
@@ -88,9 +86,6 @@ export default async function Page() {
<PageContent className="space-y-8">
<div className="space-y-4">
{hasNoAccounts && isEmailLoginEnabled ? <PasswordSetupAlert /> : null}
- <IfCloudHosted>
- <FeedbackAlert />
- </IfCloudHosted>
</div>
<div className="space-y-4">
<h2 className="text-muted-foreground text-sm">