Revert "Revert "Adding More Ai Quota Tiers"" (#32433)

* Revert "Revert "Adding More Ai Quota Tiers (#32128)" (#32431)"

This reverts commit f0ea19b418da6096c84b42024aea643807347649.

* fix: dont block workbench from users who have access via WF

* fix: simplify workbench access rules and ensure wf premium users can use workbench

GitOrigin-RevId: 7927248eadd906d7f802d55fa5c6bc7df162b141
This commit is contained in:
Jimmy Domagala-Tang
2026-03-27 09:05:21 +00:00
committed by Copybot
parent c94d649879
commit 72b7524094
14 changed files with 76 additions and 23 deletions
@@ -962,8 +962,12 @@ const _ProjectController = {
symbolPaletteAvailable: Features.hasFeature('symbol-palette'),
userRestrictions: Array.from(req.userRestrictions || []),
showAiFeatures,
onAiFreeTrial:
fullFeatureSet?.aiUsageQuota === Settings.aiFeatures?.freeTrialQuota,
// default to free tier if they dont have a quota
hasAiFreeTier:
fullFeatureSet?.aiUsageQuota === Settings.aiFeatures?.freeQuota ||
!fullFeatureSet?.aiUsageQuota,
hasUnlimitedAi:
fullFeatureSet?.aiUsageQuota === Settings.aiFeatures?.unlimitedQuota,
detachRole,
metadata: { viewport: false },
showUpgradePrompt,