Admin dashboard improvements & expanded event tracking coverage#955
Draft
Admin dashboard improvements & expanded event tracking coverage#955
Conversation
… option - KPI cards now show range totals instead of just today's numbers, so they update when switching between 1d/7d/14d/30d - Added 1d (today) date range option - Dates display in local timezone instead of UTC - Context strip shows today's numbers when viewing multi-day ranges - Top Endpoints header shows 'today' label for 1d range - Trend indicators hidden for 1d range (no yesterday data) feat(analytics): add event tracking for 12 additional apps Added analytics constants and wired tracking for: - Finder: file open/rename/delete, folder create, trash empty - TextEdit: file save, file open - Control Panels: theme change, wallpaper change - Photo Booth: capture, export - Minesweeper: game start/win/lose - Paint: file save, file export - Videos: video play - Stickies: note create/delete - Calendar: event create/delete - Contacts: contact create/delete - Soundboard: sound play Also added constants (not yet wired) for: - Karaoke: session start, track add - Synth: preset save/load - Winamp: track play Co-authored-by: Ryo Lu <me@ryo.lu>
|
The preview deployment for ryos-dev is ready. 🟢 Open Preview | Open Build Logs | Open Application Logs Last updated at: 2026-03-14 16:33:15 CET |
Co-authored-by: Ryo Lu <me@ryo.lu>
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.
Admin Dashboard Improvements
KPI Cards Show Range Totals
1d (Today) Option
1dbutton to the date range selector for a quick "today only" viewLocal Time Dates
formatDateLabelto parse YYYY-MM-DD as local midnight, avoiding off-by-one date display for users in negative UTC offsetsContext Strip
Event Tracking Coverage
New Analytics Constants
Added event tracking constants for 12 additional apps in
src/utils/analytics.ts:Wired Tracking (13 files)
All new constants are wired into their respective hook/component files using the existing
track()from@vercel/analytics.Testing
bun run buildpassesbun run test:unit— 89 tests pass, 0 failures