-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimized MetricsBar & Fixed Mobile Layout #3258
base: dev
Are you sure you want to change the base?
Conversation
@TanerKp is attempting to deploy a commit to the umami-software Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR consolidates metrics bar functionality and improves mobile responsiveness across the website's analytics pages through a new WebsiteMetrics wrapper component.
- Added new
/src/app/(main)/websites/[websiteId]/WebsiteMetrics.tsx
component that handles shared metrics functionality like date filtering, comparison mode, and sticky positioning - Implemented responsive grid layout in
WebsiteMetrics.module.css
that switches from 2:1 ratio on desktop to single column on mobile (<1200px) - Simplified
EventsMetricsBar
andSessionsMetricsBar
by removing redundant layout code and date filter functionality - Wrapped existing metrics bars with
WebsiteMetrics
component across pages for consistent mobile-friendly layout - Removed unused props from
WebsiteMetricsBar
component that were moved toWebsiteMetrics
💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!
10 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hey 👋🏼
I refactored
{route}MetricsBar
and created a newWebsiteMetrics
component to remove redundant code and improve maintainability. Most importantly, I fixed the mobile UI layout.Before:

After:
