Upstream: dependency upgrade & category card rework
Some minor upstream changes that implemented showing document count on category cards. We already have this in our fork so this merge is simply performed to resolve conflicts and clean up discrepancies between forks so future merges are clean.
Contains the following upstream changes:
- Vite upgrade
- Add document count to category card, fix bugs introduced by it