Skip to content

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

🔥 Drop the reply copy from the Share dialog and the invite email (#3169)

Luke Vella0c3aad5c66f0
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index 0a8c7d895..c3693fa68 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -779,7 +779,6 @@
"shareDialogNoInvitesDescription": "Enter an address above to send the first invite.",
"shareDialogNoInvitesTitle": "No one invited yet",
"shareDialogPollClosed": "Reopen the poll to send invites",
- "shareDialogRepliesGoToYou": "Replies go to you",
"shareDialogSendFailed": "Couldn't send to {email}. Try again.",
"shareDialogSendInvite": "Send invite",
"showParticipantVotes": "Show participant votes",
diff --git a/apps/web/src/features/poll/components/invite-by-email.tsx b/apps/web/src/features/poll/components/invite-by-email.tsx
index 302beb6c7..4a700f0a5 100644
--- a/apps/web/src/features/poll/components/invite-by-email.tsx
+++ b/apps/web/src/features/poll/components/invite-by-email.tsx
@@ -260,14 +260,7 @@ export function InviteByEmail({ invites }: { invites: PollInviteListItem[] }) {
) : null}
</Button>
</form>
- {isOpen ? (
- <p className="mt-2 text-muted-foreground text-sm">
- <Trans
- i18nKey="shareDialogRepliesGoToYou"
- defaults="Replies go to you"
- />
- </p>
- ) : (
+ {!isOpen ? (
<p
id="share-dialog-closed-reason"
className="mt-3 text-muted-foreground text-sm"
@@ -277,7 +270,7 @@ export function InviteByEmail({ invites }: { invites: PollInviteListItem[] }) {
defaults="Reopen the poll to send invites"
/>
</p>
- )}
+ ) : null}
<div className="mt-3">
{rows.length === 0 ? (
diff --git a/apps/web/tests/email-invites.spec.ts b/apps/web/tests/email-invites.spec.ts
index 84776032f..3f34fb8f2 100644
--- a/apps/web/tests/email-invites.spec.ts
+++ b/apps/web/tests/email-invites.spec.ts
@@ -92,7 +92,6 @@ test.describe("Email invites", () => {
expect(email.HTML).toContain("?invite=");
// Replies reach the host, not the From address.
expect(email.ReplyTo.map((address) => address.Address)).toEqual([PRO_HOST]);
- expect(email.HTML).toContain("Reply to this email to reach");
// Same address again is refused without sending.
await field.fill(INVITEE);
diff --git a/packages/emails/locales/en/emails.json b/packages/emails/locales/en/emails.json
index 425a4d55f..8147aab25 100644
--- a/packages/emails/locales/en/emails.json
+++ b/packages/emails/locales/en/emails.json
@@ -85,7 +85,6 @@
"pollInvite_content": "<b>{hostName}</b> is finding a time for <b>{pollTitle}</b> and wants to know when you're available.",
"pollInvite_heading": "You're invited",
"pollInvite_preview": "{hostName} wants to know when you're available",
- "pollInvite_reply": "Reply to this email to reach {hostName}",
"pollInvite_subject": "{hostName} invited you to respond to {pollTitle}",
"register_codeValid": "This code is valid for 15 minutes",
"register_heading": "Verify your email address",
diff --git a/packages/emails/src/templates/poll-invite.test.tsx b/packages/emails/src/templates/poll-invite.test.tsx
deleted file mode 100644
index c4bc84ee4..000000000
--- a/packages/emails/src/templates/poll-invite.test.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import { render } from "@react-email/render";
-import { describe, expect, it } from "vitest";
-import { previewChrome } from "../components/preview-chrome";
-import PollInviteEmail from "./poll-invite";
-
-const baseProps = {
- hostName: "Jessie Smith",
- pollTitle: "Team offsite dates",
- inviteUrl: "https://rallly.co/invite/abc123?invite=token",
- chrome: previewChrome,
-};
-
-describe("PollInviteEmail", () => {
- it("tells the invitee that replies reach the host", async () => {
- const html = await render(await PollInviteEmail(baseProps));
- expect(html).toContain("Reply to this email to reach");
- });
-});
diff --git a/packages/emails/src/templates/poll-invite.tsx b/packages/emails/src/templates/poll-invite.tsx
index 3ab39eaa2..4e05581d8 100644
--- a/packages/emails/src/templates/poll-invite.tsx
+++ b/packages/emails/src/templates/poll-invite.tsx
@@ -66,12 +66,6 @@ async function PollInviteEmail({
<Button href={inviteUrl} id="inviteUrl" color={chrome.primaryColor}>
{t("pollInvite_button", { defaultValue: "Respond" })}
</Button>
- <Text light={true}>
- {t("pollInvite_reply", {
- defaultValue: "Reply to this email to reach {hostName}",
- hostName,
- })}
- </Text>
<Hr style={{ margin: "16px 0" }} />
<PoweredBy chrome={chrome} locale={locale} />
</Container>