Hide premium-tier UI behind VITE_SHOW_PREMIUM flag#3
Merged
Conversation
Public-launch v1: lead with the open-source SQL canvas, defer Pro plan, Desktop download, MCP, and sign-in/account to later phases. One master flag controls all of it. Defaults to off; set to true to surface the premium UI again. Underlying logic (isPro checks, autofix, WS sync) is untouched — just unreachable without sign-in. When off: - LandingPage: hides Pro section, Desktop section, Pro/Desktop FAQs, and Pro/MCP mentions in JSON-LD + meta description - MenuBar: hides "Connect via MCP...", Share menu item, Pro badge, sign-in dropdown, user/account dropdown - SettingsPanel: hides Hex remover section - SqlBox: hides the wand (cast-a-spell) button - Router: /account and /oauth/consent redirect to /app (/auth/callback stays open — BigQuery OAuth reuses it) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VITE_SHOW_PREMIUM) controls all of it. Defaults tofalse; flip totrueto re-surface premium UI. Granular flags can be split out later if a staged re-introduction is needed.isProchecks, autofix, WS sync) is untouched — just unreachable without sign-in.What gets hidden when off
/accountand/oauth/consentredirect to/app./auth/callbackis intentionally NOT blocked — BigQuery OAuth reuses it.Test plan
VITE_SHOW_PREMIUM=false: landing page shows only the OSS sections (Hero, What You Get, Supported Databases, FAQ, What's New)VITE_SHOW_PREMIUM=false: in-app menu bar has no sign-in, no Pro badge, no MCP entry, no Share item; settings panel has no Hex remover; SQL box has no wandVITE_SHOW_PREMIUM=false: visiting/accountor/oauth/consentredirects to/appVITE_SHOW_PREMIUM=false: BigQuery OAuth round-trip still works (uses/auth/callback)VITE_SHOW_PREMIUM=true: everything renders as before this PR🤖 Generated with Claude Code