Show Insights and Subscribers stats tabs for all users#22722
Conversation
Show all three stats tabs (Traffic, Insights, Subscribers) for everyone by removing the BuildConfig.DEBUG gate. The NEW_STATS feature flag now defaults to true and controls access to the new stats screen itself via ListItemActionHandler, not the tab visibility. - Add defaultEnabled parameter to ExperimentalFeatures.Feature enum - Set NEW_STATS defaultEnabled to true - Propagate default through AppPrefs/AppPrefsWrapper - Always show all StatsTab entries in NewStatsScreen Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Generated by 🚫 Danger |
Keep only the NewStatsActivity change that always shows all tabs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
|
|
|
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #22722 +/- ##
=======================================
Coverage 37.34% 37.34%
=======================================
Files 2316 2316
Lines 123422 123421 -1
Branches 16723 16722 -1
=======================================
Hits 46093 46093
+ Misses 73627 73626 -1
Partials 3702 3702 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Claude finished @adalpari's task in 54s —— View job Code Review
The actual change in this PR is minimal and clean — a 4-line diff in // Before
val showTabs = BuildConfig.DEBUG
val tabs = if (showTabs) StatsTab.entries else listOf(StatsTab.TRAFFIC)
// After
val tabs = StatsTab.entriesOverall this is a good, focused change. A few observations: PR Description vs. Actual Changes The PR description mentions several changes that are no longer present (adding Readiness of Insights/Subscribers Tabs The previous
Looking at Test Coverage Codecov flags 0% patch coverage on the changed line. While a one-liner like No other concerns — the change itself is correct, the dead code ( |
|
@adalpari The changes look good, but as Claude noted, the PR description appears to be outdated. I'm happy to approve this once that's corrected. |
Good call. Done! |





Description
The Insights and Subscribers stats tabs were gated behind
BuildConfig.DEBUG, making them only visible in debug builds. This change removes that gate so all three tabs (Traffic, Insights, Subscribers) are always shown in the new stats screen for all users.Changes:
BuildConfig.DEBUGcheck inNewStatsActivity.ktStatsTabentries instead of restricting toStatsTab.TRAFFICin non-debug buildsTesting instructions
🤖 Generated with Claude Code