Skip to content

feat: add dev settings float button with PCGL mode toggle - #463

Merged
SanjeevLakhwani merged 3 commits into
mainfrom
feat/dev-settings-float-button
Oct 2, 2026
Merged

SanjeevLakhwani merged 3 commits into
mainfrom
feat/dev-settings-float-button

Conversation

@SanjeevLakhwani

@SanjeevLakhwani SanjeevLakhwani commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor
  • Adds BENTO_PUBLIC_SHOW_DEV_SETTINGS env var (default false) to show a dev settings float button, so testing settings can be enabled on staging without the dev flag
  • First option toggles PCGL mode; the override is saved in localStorage (BENTO_DEV_SETTINGS) and the page reloads, since PCGL_MODE is read at module load
  • Overrides are ignored when the env var is off, so stale values can't affect other deployments
  • New options can be added via the DevSettings interface in config.ts and another FloatButton in the group
  • Button sits bottom-left, above the Next.js dev indicator

Requires bento-platform/bento#379 with the var set to true

Shown only when BENTO_PUBLIC_SHOW_DEV_SETTINGS is true, so it can be enabled
on staging without the dev flag. Overrides are stored in localStorage and
ignored when the flag is off.
@davidlougheed
davidlougheed self-requested a review September 29, 2026 20:33

@davidlougheed davidlougheed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@SanjeevLakhwani
SanjeevLakhwani merged commit 249db81 into main Oct 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants