mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 06:51:13 -05:00
Refactor: Implement comprehensive ride field integration
This commit is contained in:
@@ -180,7 +180,7 @@ export default function Rides() {
|
||||
}
|
||||
}
|
||||
|
||||
// Track material filter
|
||||
// Track material filter (array field)
|
||||
if (filters.trackMaterials.length > 0) {
|
||||
if (!ride.track_material || ride.track_material.length === 0 ||
|
||||
!ride.track_material.some(material => filters.trackMaterials.includes(material))) {
|
||||
@@ -188,6 +188,22 @@ export default function Rides() {
|
||||
}
|
||||
}
|
||||
|
||||
// Support material filter (array field)
|
||||
if (filters.supportMaterials.length > 0) {
|
||||
if (!ride.support_material || ride.support_material.length === 0 ||
|
||||
!ride.support_material.some(material => filters.supportMaterials.includes(material))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Propulsion method filter (array field)
|
||||
if (filters.propulsionMethods.length > 0) {
|
||||
if (!ride.propulsion_method || ride.propulsion_method.length === 0 ||
|
||||
!ride.propulsion_method.some(method => filters.propulsionMethods.includes(method))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Speed filter
|
||||
if (filters.minSpeed > 0 || filters.maxSpeed < 200) {
|
||||
const speed = ride.max_speed_kmh || 0;
|
||||
|
||||
Reference in New Issue
Block a user