fix(journeys-admin): show analytics date range dropdown without filter button (NES-1434) - #9432
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughThe analytics overlay now uses one derived enabled state for analytics queries, the switch, and date-range controls. The date-range selector appears directly when analytics are enabled. Tests now validate this behavior without the former filter-button interaction. ChangesAnalytics overlay
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized change makes the analytics date-range dropdown appear immediately when the overlay is enabled and removes an unrelated filter control; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit cd5cc54
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
|
The latest updates on your projects.
|
…r button (NES-1434) Show the date-range dropdown as soon as the Analytics Overlay is switched on, removing the unrelated filter icon and the extra Filter button click. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
77700db to
75d8349
Compare
…ted-icon-excess-spacing-near-filter
…ted-icon-excess-spacing-near-filter
…nalytics-overlay-unrelated-icon-excess-spacing-near-filter # Conflicts: # apps/journeys-admin/src/components/Editor/Slider/JourneyFlow/AnalyticsOverlaySwitch/AnalyticsOverlaySwitch.spec.tsx
…ted-icon-excess-spacing-near-filter
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
What & why
Resolves NES-1434.
On the Analytics Overlay toolbar, switching analytics on showed an unrelated three-line filter icon and a separate Filter button that had to be clicked to reveal the date-range dropdown. The icon looked disconnected and the spacing between it and the label was too wide.
This removes the icon and the Filter button entirely and shows the date-range dropdown (defaulting to All time) as soon as the overlay is switched on — one less click to filter.
Changes
AnalyticsOverlaySwitch.tsx— drop the standaloneFilterIcon, theFilterbutton, and the now-unusedshowFilterstate; renderAnalyticsOverlayDateRangeSelectdirectly when analytics is enabled.AnalyticsOverlaySwitch.spec.tsx— update the two tests that clicked the Filter button to expect the dropdown to appear immediately.Analytics data loading is unchanged — the query was already gated on the switch + a valid date range, never on the Filter button.
Testing
npx vitest run --config apps/journeys-admin/vitest.config.mts AnalyticsOverlaySwitch.spec.tsx— 4/4 pass.Summary by CodeRabbit
New Features
Bug Fixes