[Build] Add advanced period filtering with date/week/month/year selectors
Published on December 8, 2025
## GitHub Update
**Repository:** [MKWcorp/sales-race-beautycenter](https://github.com/MKWcorp/sales-race-beautycenter)
**Author:** multimediadrw
**Date:** 12/8/2025, 10:33:29 AM
**Commit:** [`6b045cc`](https://github.com/MKWcorp/sales-race-beautycenter/commit/6b045cca6d9782dffd8a8b970e5603864c9679a0)
### Commit Message
Add advanced period filtering with date/week/month/year selectors
Features:
- Daily: Date picker for specific dates
- Weekly: Week 1-4 + Month + Year selectors
- Monthly: Month (Jan-Dec) + Year selectors
- Yearly: Year selector (2022-2025)
- Per-filter cache system with period params
- Loading state for stats during fetch
- Fixed API route dynamic rendering
- Timezone fix with getWIBDateStr()
Technical:
- useCallback for fetchData to fix React hook deps
- Dynamic date range calculation in API
- Week calculation based on first Monday of month
- Cache key includes period parameters
---
_This story was imported from historical commits._