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 Apr 23, 2026
Conversation
…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.
1c0c895
into
posthog-code/gate-inbox-behind-feature-flag
10 checks passed
|
Reviews (1): Last reviewed commit: "refactor(inbox): rename flag to posthog-..." | Re-trigger Greptile |
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.
Problem
The
posthog-code-inboxflag 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
posthog-code-inboxtoposthog-code-inbox-hiddeninboxEnabledtoinboxHiddenfor clarityFiles changed:
SidebarMenu.tsx— sidebar inbox item + polling gated on!inboxHiddenMainLayout.tsx— inbox view render gated on!inboxHiddenGlobalEventHandlers.tsx—mod+ihotkey enabled when!inboxHiddenKeyboardShortcutsSheet.tsx— inbox shortcut filtered wheninboxHiddenSettingsDialog.tsx— signals settings entry filtered wheninboxHiddenuseOnboardingFlow.ts— signals onboarding step filtered wheninboxHiddenWelcomeScreen.tsx— signals inbox feature bullet filtered wheninboxHiddenNote: The corresponding PostHog feature flag needs to be renamed from
posthog-code-inboxtoposthog-code-inbox-hiddenand 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?
grep— no remainingposthog-code-inbox(without-hidden) references@posthog/platformmodules only)Slack Thread