Website selector dropdown only shows 10 sites
Describe the Bug
The website selector dropdown (top-left corner of the dashboard) only displays 10 websites. If you have more than 10, the rest simply don't show up — you have to know about the search field and type part of the name to find them.
The culprit is a hardcoded pageSize: 10 in src/components/input/WebsiteSelect.tsx (line 30):
const { data, isLoading } = useUserWebsitesQuery(
{ userId: user?.id, teamId },
{ search, pageSize: 10, includeTeams },
);
I run 12 websites and only noticed two were missing when a colleague asked why they couldn't switch to one of them. Not a great experience.
Bumping the value to something like 100 (or removing the cap entirely since the list already has maxHeight: 400px with scroll) would fix this. Happy to open a PR if that works for you.
Expected behavior
All websites owned by the user should appear in the dropdown, regardless of count.
Database
PostgreSQL
Umami version
v3.0.3 (also confirmed on current master — still hardcoded)
Browser
Firefox / Chrome
Deployment
Docker (self-hosted)
hey!
https://github.com/umami-software/umami/pull/4129 =-)
This issue is stale because it has been open for 60 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.