Commit
Add trending and exclusive sample packs feature with API and UI integration
Commit details
Commit notes
- Introduced new boolean fields `is_trending` and `is_exclusive` in the `sample_packs` table to support trending and exclusive sample packs. - Implemented API endpoints for fetching trending (`GET /api/v1/market/trending`) and exclusive (`GET /api/v1/market/exclusive`) sample packs, including query parameter support for limiting results. - Updated the `SamplePack` model and related request/response structures to include the new fields. - Enhanced the frontend to integrate trending and exclusive packs, including new hooks and UI indicators (🔥 for trending, ⭐ for exclusive) in the sample pack selection dropdown. - Added comprehensive tests for the new functionality, ensuring correct behavior for both endpoints and handling of empty results. - Created a migration script to add sample data for testing purposes, ensuring backward compatibility with existing packs. - Updated the `SampleManagementProvider` to combine static and dynamic packs, preventing duplicates and improving user experience.
- Files changed
- 9
- Lines added
- +726
- Lines removed
- −18