Description
Implement UI toggle to switch between daily and overall ranking views on the same page, improving UX by avoiding navigation between separate pages.
Context
Currently, users need to navigate to /ranking for overall view and /ranking/[dayId] for daily view. This feature adds a toggle component to switch views seamlessly.
Related to #35 (Overall ranking page implementation)
Tasks
Implementation Suggestions
- Use daisyUI tabs component for toggle UI
- Consider using URL search params:
/ranking?view=overall vs /ranking?view=daily&day=1
- Alternative: Keep separate routes but add navigation tabs at the top
- Client component for toggle, Server Component for data fetching
Acceptance Criteria
Design Notes
- Position: Below page title, above ranking list
- Style: Match existing daisyUI theme (neutral/primary colors)
- Labels: "Diario" / "General" or "Día X" / "Overall"
Priority: Medium (UX enhancement)
Phase: Post-MVP / Phase 2.3 Enhancement
Description
Implement UI toggle to switch between daily and overall ranking views on the same page, improving UX by avoiding navigation between separate pages.
Context
Currently, users need to navigate to
/rankingfor overall view and/ranking/[dayId]for daily view. This feature adds a toggle component to switch views seamlessly.Related to #35 (Overall ranking page implementation)
Tasks
/rankingpage to support both viewsImplementation Suggestions
/ranking?view=overallvs/ranking?view=daily&day=1Acceptance Criteria
Design Notes
Priority: Medium (UX enhancement)
Phase: Post-MVP / Phase 2.3 Enhancement