fix: hide recipe variations button when locked instead of disabled+lock-badge (v0.78.1)

Was the one gated feature still shown as a clickable disabled button with a small lock icon overlay, opening an upgrade dialog on click. Every other gated feature (pairings, nutrition estimate, markdown export) hides entirely instead — brought this one in line and removed the now-dead locked/UpgradeDialog code from VariationsButton.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Arnaud
2026-07-24 12:58:04 +02:00
parent 355ba944ad
commit 0319b796ae
8 changed files with 40 additions and 43 deletions
@@ -48,7 +48,7 @@ export function FeatureFlagsForm({
<div>
<h2 className="font-semibold text-lg">Feature Toggles</h2>
<p className="text-sm text-muted-foreground mt-1">
Disable a feature for a tier to hide it for that tier&apos;s users (most features hide entirely; a few show a locked/upgrade state instead see each feature&apos;s actual behavior in the app).
Disable a feature for a tier to hide it entirely for that tier&apos;s users.
</p>
</div>