Skip to content

refactor(inbox): rename flag to posthog-code-inbox-hidden with inverted logic#1860

Merged
joshsny merged 1 commit intoposthog-code/gate-inbox-behind-feature-flagfrom
joshsny/rename-inbox-flag-to-hidden-2bce
Apr 23, 2026
Merged

refactor(inbox): rename flag to posthog-code-inbox-hidden with inverted logic#1860
joshsny merged 1 commit intoposthog-code/gate-inbox-behind-feature-flagfrom
joshsny/rename-inbox-flag-to-hidden-2bce

Conversation

@joshsny
Copy link
Copy Markdown
Contributor

@joshsny joshsny commented Apr 23, 2026

Problem

The posthog-code-inbox flag requires being turned on to show the inbox, which means new users/teams see no inbox by default. We want the inbox visible by default and only hidden for specific teams or users when needed.

Changes

  • Renamed the feature flag from posthog-code-inbox to posthog-code-inbox-hidden
  • Inverted all boolean logic across 7 files so the inbox is shown by default and only hidden when the flag is enabled
  • Updated variable names from inboxEnabled to inboxHidden for clarity

Files changed:

  • SidebarMenu.tsx — sidebar inbox item + polling gated on !inboxHidden
  • MainLayout.tsx — inbox view render gated on !inboxHidden
  • GlobalEventHandlers.tsxmod+i hotkey enabled when !inboxHidden
  • KeyboardShortcutsSheet.tsx — inbox shortcut filtered when inboxHidden
  • SettingsDialog.tsx — signals settings entry filtered when inboxHidden
  • useOnboardingFlow.ts — signals onboarding step filtered when inboxHidden
  • WelcomeScreen.tsx — signals inbox feature bullet filtered when inboxHidden

Note: The corresponding PostHog feature flag needs to be renamed from posthog-code-inbox to posthog-code-inbox-hidden and kept at 0% rollout (off for everyone, so inbox is visible to all by default). Enable it only for specific users/teams you want to hide the inbox from.

How did you test this?

  • Verified all 7 references updated with grep — no remaining posthog-code-inbox (without -hidden) references
  • Typecheck passes (pre-existing errors in unrelated @posthog/platform modules only)
  • Biome lint passes cleanly

Slack Thread

Open in Web Open in Cursor 

…ed logic

Rename the feature flag from posthog-code-inbox (default off, enable to show)
to posthog-code-inbox-hidden (default off, enable to hide). This means the
inbox is visible by default and can be selectively hidden by turning the flag on.

All 7 consumer files updated with inverted boolean conditions.
@joshsny joshsny marked this pull request as ready for review April 23, 2026 12:24
@joshsny joshsny merged commit 1c0c895 into posthog-code/gate-inbox-behind-feature-flag Apr 23, 2026
10 checks passed
@joshsny joshsny deleted the joshsny/rename-inbox-flag-to-hidden-2bce branch April 23, 2026 12:24
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented Apr 23, 2026

Reviews (1): Last reviewed commit: "refactor(inbox): rename flag to posthog-..." | Re-trigger Greptile

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.

2 participants