Skip to content

Open-source status page, incident response and uptime monitoring

slack for paid plan (#1876)

Thibault Le Ouay5eff55ace83c
diff --git a/apps/dashboard/src/app/(dashboard)/settings/integrations/page.tsx b/apps/dashboard/src/app/(dashboard)/settings/integrations/page.tsx
index 1f0614ef3..acb080660 100644
--- a/apps/dashboard/src/app/(dashboard)/settings/integrations/page.tsx
+++ b/apps/dashboard/src/app/(dashboard)/settings/integrations/page.tsx
@@ -41,7 +41,7 @@ export default function Page() {
</SectionDescription>
</SectionHeader>
<FormCardGroup>
- {workspace?.plan !== "free" ? (
+ {workspace?.limits["slack-agent"] ? (
<SlackIntegrationCard
integration={
slackIntegration
diff --git a/apps/web/next-env.d.ts b/apps/web/next-env.d.ts
index 9edff1c7c..c4b7818fb 100644
--- a/apps/web/next-env.d.ts
+++ b/apps/web/next-env.d.ts
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
-import "./.next/types/routes.d.ts";
+import "./.next/dev/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
diff --git a/apps/web/src/content/pages/unrelated/pricing.mdx b/apps/web/src/content/pages/unrelated/pricing.mdx
index ae9fb639f..7f045d804 100644
--- a/apps/web/src/content/pages/unrelated/pricing.mdx
+++ b/apps/web/src/content/pages/unrelated/pricing.mdx
@@ -26,6 +26,7 @@ category: "company"
| Toggle numbers visibility | + | + | + |
| Subscribers | | + | + |
| Custom domain | | + | + |
+| Slack Agent | | + | + |
| White Label | | $300/mo. | $300/mo. |
| **Audience** | | | |
| Password Protection | | + | + |
diff --git a/packages/db/src/schema/plan/config.ts b/packages/db/src/schema/plan/config.ts
index 8f8dd5fa1..5b9b70ef5 100644
--- a/packages/db/src/schema/plan/config.ts
+++ b/packages/db/src/schema/plan/config.ts
@@ -61,6 +61,7 @@ export const allPlans: Record<WorkspacePlan, PlanConfig> = {
"audit-log": false,
regions: [...FREE_FLY_REGIONS],
"private-locations": false,
+ "slack-agent": false,
},
},
starter: {
@@ -135,6 +136,7 @@ export const allPlans: Record<WorkspacePlan, PlanConfig> = {
"audit-log": false,
regions: [...AVAILABLE_REGIONS],
"private-locations": false,
+ "slack-agent": false,
},
},
team: {
@@ -209,6 +211,7 @@ export const allPlans: Record<WorkspacePlan, PlanConfig> = {
"audit-log": true,
regions: [...AVAILABLE_REGIONS],
"private-locations": true,
+ "slack-agent": false,
},
},
};
diff --git a/packages/db/src/schema/plan/schema.ts b/packages/db/src/schema/plan/schema.ts
index 483b2eafc..d0d2ec4ff 100644
--- a/packages/db/src/schema/plan/schema.ts
+++ b/packages/db/src/schema/plan/schema.ts
@@ -53,6 +53,11 @@ export const limitsSchema = z.object({
*/
members: z.literal("Unlimited").or(z.number()).prefault(1),
"audit-log": z.boolean().prefault(false),
+
+ /**
+ * Other limits
+ */
+ "slack-agent": z.boolean().prefault(false),
});
export type Limits = z.infer<typeof limitsSchema>;