feat(analytics): add daily activation rollups - #183
Merged
JSONbored merged 1 commit intoJun 1, 2026
Conversation
oktofeesh1
marked this pull request as ready for review
June 1, 2026 11:30
oktofeesh1
force-pushed
the
codex/analytics-daily-rollups
branch
3 times, most recently
from
June 1, 2026 18:28
6b111ad to
fb1366d
Compare
Adds UTC-day product usage rollups with activation funnels, incomplete/stale status tracking, scheduled and internal job entrypoints, and operator dashboard/API exposure. Closes JSONbored#137. Validation: - npm run test:ci - Codex Security diff scan: no findings
oktofeesh1
force-pushed
the
codex/analytics-daily-rollups
branch
from
June 1, 2026 18:39
fb1366d to
616973b
Compare
JSONbored
approved these changes
Jun 1, 2026
JSONbored
left a comment
Owner
There was a problem hiding this comment.
@oktofeesh1 This is ready from my side. The daily activation rollup work is now green and merge-clean against current main.
A few notes:
- The migration, repository methods, queue scheduling, API route coverage, and UI analytics wiring are included.
- The rollup behavior has direct unit and integration coverage.
- This should land before dependent analytics/reporting branches that build on daily usage aggregates.
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.
Summary
What changed
product_usage_daily_rollupsstorage and typed rollup records/status./v1/app/analytics/daily-rollupsand queued/immediate internal rollup job endpoints.Why
Closes #137.
This gives downstream adoption/reporting work a stable aggregate layer instead of forcing dashboards and reports to re-scan raw product events.
Validation
npm run test -- test/unit/product-usage.test.ts test/unit/queue.test.ts test/integration/api.test.ts test/integration/routes-errors.test.ts test/unit/index.test.tsnpm run typechecknpm run test:coveragenpm run ui:lintnpm run test:ciNotes