asdf
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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={{
|
||||
|
||||
@@ -352,7 +352,7 @@ const ApplicationPlanModal = ({ onClose, onSubmit }) => {
|
||||
<div className="relative">
|
||||
<PropertyMap
|
||||
center={[selectedPropertyDetails.latitude, selectedPropertyDetails.longitude]}
|
||||
zoom={18}
|
||||
zoom={16}
|
||||
property={selectedPropertyDetails}
|
||||
sections={selectedPropertyDetails.sections || []}
|
||||
editable={false}
|
||||
|
||||
Reference in New Issue
Block a user