Expand the statistics page with richer data and visualizations.
Key files to modify:
server/src/stats.ts – Add new statistical queries (most popular restaurant, most ordered meals, most ordered pizzas, most active users)
client/src/pages/StatsPage.tsx – Add new charts/tables for the extended statistics
Approach:
Add server-side aggregation queries for:
Most popular restaurant (by number of selections)
Most popular meals (across all restaurants)
Most ordered pizzas (from Pizza day data)
Most active/frequent users
Trends over time (weekly/monthly)
Create appropriate API endpoints to serve this data
Add visualizations on the stats page (bar charts, pie charts, leaderboards)
Consider date range filtering for statistics
## Feature: Extended Statistics
**FeatureRequest enum:** `STATISTICS`
**Description:** Statistiky (nejoblíbenější podnik, nejpopulárnější jídla, nejobjednávanější pizzy, nejčastější uživatelé, ...)
### Implementation Notes
Expand the statistics page with richer data and visualizations.
**Key files to modify:**
- `server/src/stats.ts` – Add new statistical queries (most popular restaurant, most ordered meals, most ordered pizzas, most active users)
- `client/src/pages/StatsPage.tsx` – Add new charts/tables for the extended statistics
**Approach:**
1. Add server-side aggregation queries for:
- Most popular restaurant (by number of selections)
- Most popular meals (across all restaurants)
- Most ordered pizzas (from Pizza day data)
- Most active/frequent users
- Trends over time (weekly/monthly)
2. Create appropriate API endpoints to serve this data
3. Add visualizations on the stats page (bar charts, pie charts, leaderboards)
4. Consider date range filtering for statistics
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Feature: Extended Statistics
FeatureRequest enum:
STATISTICSDescription: Statistiky (nejoblíbenější podnik, nejpopulárnější jídla, nejobjednávanější pizzy, nejčastější uživatelé, ...)
Implementation Notes
Expand the statistics page with richer data and visualizations.
Key files to modify:
server/src/stats.ts– Add new statistical queries (most popular restaurant, most ordered meals, most ordered pizzas, most active users)client/src/pages/StatsPage.tsx– Add new charts/tables for the extended statisticsApproach: