Skip to content

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

💬 Show the open poll limit on pricing and in the pay wall (#3489)

Luke Vella12187281d6a2
diff --git a/apps/landing/public/locales/en/home.json b/apps/landing/public/locales/en/home.json
index c89fe7701..65ed99b10 100644
--- a/apps/landing/public/locales/en/home.json
+++ b/apps/landing/public/locales/en/home.json
@@ -51,6 +51,7 @@
"doodleComparisonPaidPlansOnly": "Paid plans only",
"doodleComparisonPolls": "Group polls",
"doodleComparisonPollsDoodle": "1 on the free plan",
+ "doodleComparisonPollsRallly": "Unlimited, up to {count} open at once",
"doodleComparisonSelfHosting": "Self-hostable",
"doodleComparisonTimeZones": "Automatic time zone conversion",
"doodleComparisonTitle": "How Rallly compares to Doodle",
diff --git a/apps/landing/public/locales/en/pricing.json b/apps/landing/public/locales/en/pricing.json
index d4c5b1fa7..dff172138 100644
--- a/apps/landing/public/locales/en/pricing.json
+++ b/apps/landing/public/locales/en/pricing.json
@@ -10,7 +10,10 @@
"cancelSubscriptionAnswer": "You can cancel your subscription at any time by going to your <a>billing settings</a>. Once you cancel your subscription, you will still have access to your paid plan until the end of your billing period. After that, you will be downgraded to a free plan.",
"canUseFree": "Can I use Rallly for free?",
"canUseFreeAnswer3": "Yes. The free plan is not a trial. You can create as many polls as you like, invite as many participants as you like, and use it for as long as you like without paying or adding a card. Paid plans add extra features such as keeping polls indefinitely and custom branding, but you will never be asked to pay to keep using the basics.",
+ "canUseFreeAnswerOpenPollLimit": "Yes. The free plan is not a trial. You can create as many polls as you like, with up to {count} open at a time, invite as many participants as you like, and use it for as long as you like without paying or adding a card. Paid plans add extra features such as unlimited open polls, keeping polls indefinitely and custom branding, but you will never be asked to pay to keep using the basics.",
"compareFeature": "Feature",
+ "compareOpenPolls": "Open polls",
+ "compareOpenPollsDescription": "Polls collecting votes at the same time",
"compareParticipants": "Participants",
"compareParticipantsDescription": "People who can vote on your polls",
"comparePlans": "Compare plans",
@@ -34,6 +37,7 @@
"emailInvites": "Email invites",
"emailInvitesDescription": "Track who opened and responded with personal invite links",
"faq": "Frequently asked questions",
+ "freeOpenPollLimit": "Up to {count} open polls",
"getPro": "Get Pro",
"howToUpgrade": "How do I upgrade to a paid plan?",
"howToUpgradeAnswer": "To upgrade, you can go to your <a>billing settings</a> and click on <b>Upgrade</b>.",
@@ -50,6 +54,7 @@
"planProDescription": "For power users and professionals",
"pollLimit": "Is there a limit on how many polls I can create?",
"pollLimitAnswer": "No. There is no limit on the number of polls you can create or the number of people who can vote on them, on any plan. On the free plan, polls are deleted once all their dates have passed and there has been no activity for 30 days, and some features such as custom branding and advanced poll settings are only available on a paid plan. See the comparison table above for the full list.",
+ "pollLimitAnswerOpenPollLimit": "There is no limit on the number of polls you can create or the number of people who can vote on them. On the free plan, up to {count} polls can be open and collecting votes at a time; finalize or close one to make room for another. Pro has no limit. On the free plan, polls are deleted once all their dates have passed and there has been no activity for 30 days, and some features such as custom branding and advanced poll settings are only available on a paid plan. See the comparison table above for the full list.",
"pricingDescription": "Get started for free. No login required.",
"pricingFinalCtaDescription": "Create your first poll in under a minute. Upgrade when you need more.",
"pricingFinalCtaTitle": "Get started for free",
@@ -61,6 +66,7 @@
"teamCollaboration": "Team collaboration",
"teamCollaborationDescription": "Invite your team to manage polls together",
"thirtyDayPollRetention": "30 day poll retention",
+ "unlimitedOpenPolls": "Unlimited open polls",
"webhooks": "Webhooks",
"webhooksDescription": "Notify your own systems when polls and responses change. <a>Read the webhook docs</a>",
"whenPollInactive": "When does a poll become inactive?",
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx
index 6324f67a7..a20f18c13 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx
@@ -30,6 +30,10 @@ import { LinkBase } from "@/i18n/client/link";
import { getTranslation } from "@/i18n/server";
import { getAlternates } from "@/lib/alternates";
import { getMonthlyPollCount, getMonthlyVoterCount } from "@/lib/data";
+import {
+ FREE_OPEN_POLL_LIMIT,
+ isOpenPollLimitEnabled,
+} from "@/lib/open-poll-limit";
export default async function Page(props: {
params: Promise<{ locale: string }>;
@@ -146,12 +150,22 @@ export default async function Page(props: {
/>
</CompareTableFeature>
<CompareTableCell>
- <Trans
- t={t}
- ns="pricing"
- i18nKey="compareUnlimited"
- defaults="Unlimited"
- />
+ {isOpenPollLimitEnabled ? (
+ <Trans
+ t={t}
+ ns="home"
+ i18nKey="doodleComparisonPollsRallly"
+ defaults="Unlimited, up to {count} open at once"
+ values={{ count: FREE_OPEN_POLL_LIMIT }}
+ />
+ ) : (
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="compareUnlimited"
+ defaults="Unlimited"
+ />
+ )}
</CompareTableCell>
<CompareTableCell>
<Trans
diff --git a/apps/landing/src/app/[locale]/(main)/pricing/page.tsx b/apps/landing/src/app/[locale]/(main)/pricing/page.tsx
index 9590aacbf..c0af8677e 100644
--- a/apps/landing/src/app/[locale]/(main)/pricing/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/pricing/page.tsx
@@ -10,6 +10,7 @@ import {
ClockIcon,
CopyIcon,
EyeOffIcon,
+ ListChecksIcon,
MailPlusIcon,
PaletteIcon,
Settings2Icon,
@@ -56,6 +57,10 @@ import {
getPricing,
} from "@/lib/data";
import { linkToApp } from "@/lib/linkToApp";
+import {
+ FREE_OPEN_POLL_LIMIT,
+ isOpenPollLimitEnabled,
+} from "@/lib/open-poll-limit";
import {
PlanBenefit,
PlanBenefitName,
@@ -236,6 +241,19 @@ export default async function Page(props: {
/>
</PlanBenefitName>
</PlanBenefit>
+ {isOpenPollLimitEnabled ? (
+ <PlanBenefit icon={<ListChecksIcon />}>
+ <PlanBenefitName>
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="freeOpenPollLimit"
+ defaults="Up to {count} open polls"
+ values={{ count: FREE_OPEN_POLL_LIMIT }}
+ />
+ </PlanBenefitName>
+ </PlanBenefit>
+ ) : null}
<PlanBenefit icon={<ClockIcon />}>
<PlanBenefitName>
<Trans
@@ -315,6 +333,18 @@ export default async function Page(props: {
</Link>
</div>
<PlanBenefits className="sm:grid-cols-2 sm:gap-x-6">
+ {isOpenPollLimitEnabled ? (
+ <PlanBenefit icon={<ListChecksIcon />}>
+ <PlanBenefitName>
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="unlimitedOpenPolls"
+ defaults="Unlimited open polls"
+ />
+ </PlanBenefitName>
+ </PlanBenefit>
+ ) : null}
<PlanBenefit icon={<ClockIcon />}>
<PlanBenefitName>
<Trans
@@ -461,42 +491,74 @@ export default async function Page(props: {
defaults="Scheduling poll"
/>
</CompareTableSection>
- <tr>
- <CompareTableFeature>
- <CompareTableFeatureName>
+ {isOpenPollLimitEnabled ? (
+ <tr>
+ <CompareTableFeature>
+ <CompareTableFeatureName>
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="compareOpenPolls"
+ defaults="Open polls"
+ />
+ </CompareTableFeatureName>
+ <CompareTableFeatureDescription>
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="compareOpenPollsDescription"
+ defaults="Polls collecting votes at the same time"
+ />
+ </CompareTableFeatureDescription>
+ </CompareTableFeature>
+ <CompareTableCell>{FREE_OPEN_POLL_LIMIT}</CompareTableCell>
+ <CompareTableCell>
<Trans
t={t}
ns="pricing"
- i18nKey="comparePolls"
- defaults="Polls"
+ i18nKey="compareUnlimited"
+ defaults="Unlimited"
/>
- </CompareTableFeatureName>
- <CompareTableFeatureDescription>
+ </CompareTableCell>
+ </tr>
+ ) : (
+ <tr>
+ <CompareTableFeature>
+ <CompareTableFeatureName>
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="comparePolls"
+ defaults="Polls"
+ />
+ </CompareTableFeatureName>
+ <CompareTableFeatureDescription>
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="compareSchedulingPollsDescription"
+ defaults="Create polls to find the best time to meet"
+ />
+ </CompareTableFeatureDescription>
+ </CompareTableFeature>
+ <CompareTableCell>
<Trans
t={t}
ns="pricing"
- i18nKey="compareSchedulingPollsDescription"
- defaults="Create polls to find the best time to meet"
+ i18nKey="compareUnlimited"
+ defaults="Unlimited"
/>
- </CompareTableFeatureDescription>
- </CompareTableFeature>
- <CompareTableCell>
- <Trans
- t={t}
- ns="pricing"
- i18nKey="compareUnlimited"
- defaults="Unlimited"
- />
- </CompareTableCell>
- <CompareTableCell>
- <Trans
- t={t}
- ns="pricing"
- i18nKey="compareUnlimited"
- defaults="Unlimited"
- />
- </CompareTableCell>
- </tr>
+ </CompareTableCell>
+ <CompareTableCell>
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="compareUnlimited"
+ defaults="Unlimited"
+ />
+ </CompareTableCell>
+ </tr>
+ )}
<tr>
<CompareTableFeature>
<CompareTableFeatureName>
@@ -884,12 +946,22 @@ export default async function Page(props: {
/>
}
>
- <Trans
- t={t}
- ns="pricing"
- i18nKey="canUseFreeAnswer3"
- defaults="Yes. The free plan is not a trial. You can create as many polls as you like, invite as many participants as you like, and use it for as long as you like without paying or adding a card. Paid plans add extra features such as keeping polls indefinitely and custom branding, but you will never be asked to pay to keep using the basics."
- />
+ {isOpenPollLimitEnabled ? (
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="canUseFreeAnswerOpenPollLimit"
+ defaults="Yes. The free plan is not a trial. You can create as many polls as you like, with up to {count} open at a time, invite as many participants as you like, and use it for as long as you like without paying or adding a card. Paid plans add extra features such as unlimited open polls, keeping polls indefinitely and custom branding, but you will never be asked to pay to keep using the basics."
+ values={{ count: FREE_OPEN_POLL_LIMIT }}
+ />
+ ) : (
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="canUseFreeAnswer3"
+ defaults="Yes. The free plan is not a trial. You can create as many polls as you like, invite as many participants as you like, and use it for as long as you like without paying or adding a card. Paid plans add extra features such as keeping polls indefinitely and custom branding, but you will never be asked to pay to keep using the basics."
+ />
+ )}
</FaqItem>
<FaqItem
question={
@@ -901,12 +973,22 @@ export default async function Page(props: {
/>
}
>
- <Trans
- t={t}
- ns="pricing"
- i18nKey="pollLimitAnswer"
- defaults="No. There is no limit on the number of polls you can create or the number of people who can vote on them, on any plan. On the free plan, polls are deleted once all their dates have passed and there has been no activity for 30 days, and some features such as custom branding and advanced poll settings are only available on a paid plan. See the comparison table above for the full list."
- />
+ {isOpenPollLimitEnabled ? (
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="pollLimitAnswerOpenPollLimit"
+ defaults="There is no limit on the number of polls you can create or the number of people who can vote on them. On the free plan, up to {count} polls can be open and collecting votes at a time; finalize or close one to make room for another. Pro has no limit. On the free plan, polls are deleted once all their dates have passed and there has been no activity for 30 days, and some features such as custom branding and advanced poll settings are only available on a paid plan. See the comparison table above for the full list."
+ values={{ count: FREE_OPEN_POLL_LIMIT }}
+ />
+ ) : (
+ <Trans
+ t={t}
+ ns="pricing"
+ i18nKey="pollLimitAnswer"
+ defaults="No. There is no limit on the number of polls you can create or the number of people who can vote on them, on any plan. On the free plan, polls are deleted once all their dates have passed and there has been no activity for 30 days, and some features such as custom branding and advanced poll settings are only available on a paid plan. See the comparison table above for the full list."
+ />
+ )}
</FaqItem>
<FaqItem
question={
diff --git a/apps/landing/src/lib/open-poll-limit.ts b/apps/landing/src/lib/open-poll-limit.ts
new file mode 100644
index 000000000..64c182017
--- /dev/null
+++ b/apps/landing/src/lib/open-poll-limit.ts
@@ -0,0 +1,8 @@
+// The same switch the app enforces the limit with, so turning it off reverts
+// the copy that describes the limit too. Read at build time: the pages that
+// use it are prerendered, so a change needs a redeploy, as it does in the app.
+export const isOpenPollLimitEnabled =
+ process.env.OPEN_POLL_LIMIT_ENABLED === "true";
+
+// Mirrors FREE_OPEN_POLL_LIMIT in apps/web/src/features/billing/constants.ts
+export const FREE_OPEN_POLL_LIMIT = 3;
diff --git a/apps/landing/src/posts/is-doodle-still-free.md b/apps/landing/src/posts/is-doodle-still-free.md
index ad2e89ffe..99c937614 100644
--- a/apps/landing/src/posts/is-doodle-still-free.md
+++ b/apps/landing/src/posts/is-doodle-still-free.md
@@ -35,7 +35,7 @@ That's a legitimate business choice, and if your company schedules client meetin
That's the gap [Rallly](https://rallly.co) fills. It does one thing: you suggest some times, share a link, and everyone votes on what works. The things Doodle now charges for are free here:
-- **Unlimited polls.** Create as many as you need.
+- **Free scheduling.** Create a poll, collect votes and finalize the date at no cost.
- **No ads.** Not for you, not for your participants.
- **No account required.** Participants vote with just the link, and you can create a poll without signing up.
- **Unlimited participants.** No caps on how many people can vote.
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index 45c53d6a6..fb661b5a1 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -418,6 +418,8 @@
"forgotPasswordSubmitted": "Check your email",
"forgotPasswordSubmittedMessage": "If an account exists with this email address, we've sent a password reset link to your inbox. Please check your email and follow the link to reset your password.",
"forgotPasswordTitle": "Forgot password",
+ "freeOpenPollLimit": "Up to {count} open polls",
+ "freeOpenPollLimitDescription": "Finalize or close a poll to make room for another",
"general": "General",
"generalDescription": "Change the settings of your current space",
"generalSettings": "General settings",
@@ -1102,6 +1104,8 @@
"unconfirmedEventsEmptyStateTitle": "No unconfirmed events",
"undo": "Undo",
"unlicensed": "Unlicensed",
+ "unlimitedOpenPolls": "Unlimited open polls",
+ "unlimitedOpenPollsDescription": "Collect votes on as many polls as you need at once",
"unmuteNotifications": "Unmute notifications",
"unsubscribeInvalidLinkDescription": "The item it pointed to may have been deleted. You can manage all your email notifications from your <a>notification settings</a>.",
"unsubscribeInvalidTitle": "This link is no longer valid",
diff --git a/apps/web/src/features/billing/components/pay-wall-dialog.tsx b/apps/web/src/features/billing/components/pay-wall-dialog.tsx
index 8574e0375..2dd939b02 100644
--- a/apps/web/src/features/billing/components/pay-wall-dialog.tsx
+++ b/apps/web/src/features/billing/components/pay-wall-dialog.tsx
@@ -26,6 +26,7 @@ import {
CalendarSearchIcon,
ClockIcon,
EyeOffIcon,
+ ListChecksIcon,
MailPlusIcon,
PaletteIcon,
SparklesIcon,
@@ -40,9 +41,10 @@ import type { SpaceTier } from "@/features/space/schema";
import { spaceTierSchema } from "@/features/space/schema";
import { Trans, useTranslation } from "@/i18n/client";
import { useDateTimeConfig } from "@/lib/datetime/client";
+import { useFeatureFlag } from "@/lib/feature-flags/client";
import type { PayWallPricing, PayWallTrigger } from "../client";
import { setCurrencyCookie, usePayWallStore } from "../client";
-import { PLAN_NAMES } from "../constants";
+import { FREE_OPEN_POLL_LIMIT, PLAN_NAMES } from "../constants";
function KeyBenefits({ children }: { children?: React.ReactNode }) {
return <ul className="space-y-3">{children}</ul>;
@@ -111,6 +113,19 @@ function PlanRadioGroupItem({
}
const proBenefitsList = [
+ {
+ key: "unlimitedOpenPolls",
+ icon: <ListChecksIcon />,
+ title: (
+ <Trans i18nKey="unlimitedOpenPolls" defaults="Unlimited open polls" />
+ ),
+ description: (
+ <Trans
+ i18nKey="unlimitedOpenPollsDescription"
+ defaults="Collect votes on as many polls as you need at once"
+ />
+ ),
+ },
{
key: "customBranding",
icon: <PaletteIcon />,
@@ -189,15 +204,26 @@ const leadingBenefitByTrigger: Partial<Record<PayWallTrigger["from"], string>> =
"invite-dialog": "emailInvites",
"api-keys": "apiAccess",
"poll-footer": "removeAttribution",
+ "poll-limit": "unlimitedOpenPolls",
};
-// The benefit that triggered the pay wall leads the list.
-function getProBenefits(from: PayWallTrigger["from"] | undefined) {
+// The benefit that triggered the pay wall leads the list. Unlimited open
+// polls is only a benefit while the limit is on.
+function getProBenefits({
+ from,
+ isOpenPollLimitEnabled,
+}: {
+ from: PayWallTrigger["from"] | undefined;
+ isOpenPollLimitEnabled: boolean;
+}) {
+ const benefits = isOpenPollLimitEnabled
+ ? proBenefitsList
+ : proBenefitsList.filter((benefit) => benefit.key !== "unlimitedOpenPolls");
const leading = from ? leadingBenefitByTrigger[from] : undefined;
- if (!leading) return proBenefitsList;
+ if (!leading) return benefits;
return [
- ...proBenefitsList.filter((benefit) => benefit.key === leading),
- ...proBenefitsList.filter((benefit) => benefit.key !== leading),
+ ...benefits.filter((benefit) => benefit.key === leading),
+ ...benefits.filter((benefit) => benefit.key !== leading),
];
}
@@ -232,7 +258,11 @@ export function PayWallDialog({
const [selectedPlan, setSelectedPlan] = React.useState<SpaceTier>("pro");
const [isAnnual, setIsAnnual] = React.useState(true);
const trigger = usePayWallStore((state) => state.trigger);
- const proBenefits = getProBenefits(trigger?.from);
+ const isOpenPollLimitEnabled = useFeatureFlag("openPollLimit");
+ const proBenefits = getProBenefits({
+ from: trigger?.from,
+ isOpenPollLimitEnabled,
+ });
const { t } = useTranslation();
const { locale } = useDateTimeConfig();
const prices = pricing?.prices ?? fallbackPrices;
@@ -464,6 +494,24 @@ export function PayWallDialog({
/>
}
/>
+ {isOpenPollLimitEnabled ? (
+ <KeyBenefitsItem
+ icon={<ListChecksIcon />}
+ title={
+ <Trans
+ i18nKey="freeOpenPollLimit"
+ defaults="Up to {count} open polls"
+ values={{ count: FREE_OPEN_POLL_LIMIT }}
+ />
+ }
+ description={
+ <Trans
+ i18nKey="freeOpenPollLimitDescription"
+ defaults="Finalize or close a poll to make room for another"
+ />
+ }
+ />
+ ) : null}
<KeyBenefitsItem
icon={<TimerResetIcon />}
title={
diff --git a/apps/web/src/features/billing/constants.ts b/apps/web/src/features/billing/constants.ts
index 62db82d58..1970bd878 100644
--- a/apps/web/src/features/billing/constants.ts
+++ b/apps/web/src/features/billing/constants.ts
@@ -11,3 +11,7 @@ export { PLAN_NAMES } from "@rallly/billing/pricing";
export const BILLING_FLASH_KEY = "billing";
export const CANCELLATION_COMMENT_MAX_LENGTH = 500;
+
+// How many polls a free organizer can have open at once in a space. Pro has
+// no limit.
+export const FREE_OPEN_POLL_LIMIT = 3;
diff --git a/apps/web/src/features/poll/limit/constants.ts b/apps/web/src/features/poll/limit/constants.ts
index 8ca569ac2..0d40cee08 100644
--- a/apps/web/src/features/poll/limit/constants.ts
+++ b/apps/web/src/features/poll/limit/constants.ts
@@ -1,11 +1,14 @@
-import { isBillingEnabled } from "@/features/billing/constants";
+import {
+ FREE_OPEN_POLL_LIMIT,
+ isBillingEnabled,
+} from "@/features/billing/constants";
import type { OpenPollTier } from "./types";
// null is unlimited. Read by the server to refuse and by the client to
// explain, so the two can never disagree.
export const OPEN_POLL_LIMITS: Record<OpenPollTier, number | null> = {
guest: 1,
- hobby: 3,
+ hobby: FREE_OPEN_POLL_LIMIT,
pro: null,
};
diff --git a/turbo.json b/turbo.json
index cf78a729d..ba756d14e 100644
--- a/turbo.json
+++ b/turbo.json
@@ -96,6 +96,7 @@
"OIDC_NAME",
"OIDC_PICTURE_CLAIM_PATH",
"OPENAI_API_KEY",
+ "OPEN_POLL_LIMIT_ENABLED",
"PORT",
"RATE_LIMIT_ENABLED",
"QUICK_CREATE_ENABLED",