feat: Add date range event dashboard charts 🤖 #1161
Open
mrjbj wants to merge 1 commit intoHiEventsDev:developfrom
Open
feat: Add date range event dashboard charts 🤖 #1161mrjbj wants to merge 1 commit intoHiEventsDev:developfrom
mrjbj wants to merge 1 commit intoHiEventsDev:developfrom
Conversation
Replace hardcoded 7-day lookback with a SegmentedControl (Week/Month/Quarter/Event) anchored to the event's start date. Defaults to "Event" for ended/archived events and "Month" for live/upcoming events. The "Event" preset spans the full lifecycle including early sales and late refunds, stopping at max(event_end, last_transaction) rather than extending to today for ended events. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
What changes I've made
Added date range selector buttons to event dashboard charts with four presets: Week, Month, Quarter, and Event. Event is based upon start and end date of event so archived and ended events don't show flat lines at 0 as they age and time goes by.
Backend:
Frontend:
Why I've made these changes
The dashboard charts previously used a hardcoded 7-day lookback from the current date, which meant ended events showed empty charts and the date range had no relation to the event's actual timeline. This change anchors chart ranges to the event lifecycle:
How I've tested these changes
Checklist