diff --git a/backend/src/routes/nozzles.js b/backend/src/routes/nozzles.js index 060834d..5a34bbc 100644 --- a/backend/src/routes/nozzles.js +++ b/backend/src/routes/nozzles.js @@ -168,6 +168,17 @@ router.get('/', async (req, res, next) => { try { console.log('Nozzles API called for user:', req.user.id); + // Debug: Check all user equipment + const allEquipment = await pool.query( + `SELECT ue.id, ue.custom_name, ec.name as category_name, et.name as type_name + FROM user_equipment ue + JOIN equipment_types et ON ue.equipment_type_id = et.id + JOIN equipment_categories ec ON et.category_id = ec.id + WHERE ue.user_id = $1`, + [req.user.id] + ); + console.log('All user equipment:', allEquipment.rows); + const result = await pool.query( `SELECT ue.id, ue.custom_name, ue.manufacturer, ue.model, ue.orifice_size, ue.spray_angle, ue.flow_rate_gpm, diff --git a/frontend/src/components/Maps/PropertyMap.js b/frontend/src/components/Maps/PropertyMap.js index b222db5..82f9295 100644 --- a/frontend/src/components/Maps/PropertyMap.js +++ b/frontend/src/components/Maps/PropertyMap.js @@ -377,10 +377,10 @@ const PropertyMap = ({ key={section.id} positions={coordinates} pathOptions={{ - fillColor: isExternallySelected ? '#10b981' : getSectionColor(section), - fillOpacity: isSelected ? 0.7 : 0.4, - color: isExternallySelected ? '#059669' : getSectionColor(section), - weight: isSelected ? 4 : 2, + fillColor: isExternallySelected ? '#10b981' : '#3b82f6', + fillOpacity: isSelected ? 0.8 : 0.5, + color: isExternallySelected ? '#059669' : '#2563eb', + weight: isSelected ? 4 : 3, opacity: 1, }} eventHandlers={{ diff --git a/frontend/src/pages/Applications/Applications.js b/frontend/src/pages/Applications/Applications.js index 4360aea..401a0fe 100644 --- a/frontend/src/pages/Applications/Applications.js +++ b/frontend/src/pages/Applications/Applications.js @@ -352,7 +352,7 @@ const ApplicationPlanModal = ({ onClose, onSubmit }) => {