@@ -706,7 +738,9 @@ function FeaturesSection({
Feature
Status
- Upgrade
+ {showSelfServe ? (
+ Upgrade
+ ) : null}
@@ -714,16 +748,19 @@ function FeaturesSection({
feature={features.hasStagingEnvironment}
upgradeType={stagingUpgradeType}
billingPath={billingPath}
+ showSelfServe={showSelfServe}
/>
@@ -735,10 +772,12 @@ function FeatureRow({
feature,
upgradeType,
billingPath,
+ showSelfServe,
}: {
feature: FeatureInfo;
upgradeType: "view-plans" | "contact-us" | "none";
billingPath: string;
+ showSelfServe: boolean;
}) {
const displayValue = () => {
if (feature.name === "Included compute" && typeof feature.value === "number") {
@@ -795,7 +834,7 @@ function FeatureRow({
{displayValue()}
-
{renderUpgrade()}
+ {showSelfServe ?
{renderUpgrade()} : null}
);
}
diff --git a/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.schedules/route.tsx b/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.schedules/route.tsx
index b3181eefa36..3301e630c02 100644
--- a/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.schedules/route.tsx
+++ b/apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.schedules/route.tsx
@@ -49,6 +49,7 @@ import {
scheduleTypeName,
} from "~/components/runs/v3/ScheduleType";
import { useEnvironment } from "~/hooks/useEnvironment";
+import { useShowSelfServe } from "~/hooks/useShowSelfServe";
import { useOrganization } from "~/hooks/useOrganizations";
import { usePathName } from "~/hooks/usePathName";
import { useProject } from "~/hooks/useProject";
@@ -117,6 +118,7 @@ export default function Page() {
const pathName = usePathName();
const plan = useCurrentPlan();
+ const showSelfServe = useShowSelfServe();
const requiresUpgrade =
plan?.v3Subscription?.plan &&
limits.used >= plan.v3Subscription.plan.limits.schedules.number &&
@@ -194,7 +196,7 @@ export default function Page() {
You've used {limits.used}/{limits.limit} of your schedules.
- {canUpgrade ? (
+ {showSelfServe && canUpgrade ? (
Request more
+
}
- defaultValue="help"
+ defaultValue={showSelfServe ? "help" : "enterprise"}
/>
)}
@@ -215,7 +221,9 @@ export default function Page() {
) : (
)}
- {canUpgrade ? (
+ {showSelfServe && canUpgrade ? (
) : (
Request more}
- defaultValue="help"
+ button={
+
+ }
+ defaultValue={showSelfServe ? "help" : "enterprise"}
/>
)}
@@ -423,7 +435,12 @@ function SchedulesTable({
const selectedActionClass = isSelected ? "text-text-bright" : undefined;
return (