feat: overview page comparing metrics and events across websites - #4514
Draft
CorCvusRamboChen wants to merge 1 commit into
Draft
CorCvusRamboChen wants to merge 1 commit into
CorCvusRamboChen wants to merge 1 commit into
Conversation
|
@RamboChenUnimelb is attempting to deploy a commit to the Umami Software Team on Vercel. A member of the Team first needs to authorize it. |
Adds an Overview page (sidebar entry next to Websites) that shows several websites on one chart and one totals table: multi-select of the websites the user can view, a metric select covering Views, Visitors and any custom event name found in the data, a chart-type toggle (stacked bars, lines, stacked area), and the standard date filter including "All time" across the selected sites. Backend is a single endpoint, GET /api/websites/overview, that composes the existing getPageviewStats / getSessionStats / getEventStats / getWebsiteDateRange per website and is gated by canViewBatchWebsites, the same pattern as /api/websites/charts. No migrations, no new dependencies, no new i18n keys (reuses label.overview / label.chart); works on Prisma and ClickHouse alike.
CorCvusRamboChen
force-pushed
the
overview-websites
branch
from
September 5, 2026 06:26
39c4921 to
197cedc
Compare
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.
Refs #4513
What
Adds an Overview page that puts several websites on one chart and one table, so an instance that
hosts a family of related sites can answer "which site grew?" without opening each website page.
src/app/(main)/overview/— page + client component: website multi-select (defaults to everywebsite the user can view), metric select (Views / Visitors / any custom event name found in the
data), the standard
DateFilterwith an "All time" option, aBarChartwith a chart-type toggle(stacked bars / lines / stacked area, one colour per website), and a totals table (views,
visitors, one column per event name) with a column picker in the page header that is remembered
per browser.
src/app/api/websites/overview/route.ts—GET /api/websites/overview?ids=&startAt=&endAt=&unit=&timezone=.Composes the existing
getPageviewStats,getSessionStats,getEventStatsandgetWebsiteDateRangeper website; authorisation viacanViewBatchWebsites, mirroring/api/websites/charts. Forbidden or unknown ids are dropped, not rejected.SideNav.tsx/MobileNav.tsx— one entry each, reusing the existinglabel.overview,label.chartandlabel.fieldskeys.Why
Dashboard and Boards give one widget per website: independent charts with independent axes and no
stacking or totals, and no way to switch all of them to the same custom event. The Websites list's
sparkline is fixed to visitors over seven days. Comparing sites day by day currently means opening
each website in its own tab. See the linked issue for the full use case.
Open questions
/api/websites/charts; fine, or should it page?Notes for review
@umami/react-zenandChart.js.idsis capped at 20 like/api/websites/charts.needs configuring per instance.
pnpm buildandpnpm lintpass; the tree has been type-checked withtsc --noEmit.Screenshots
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.