asdf
This commit is contained in:
@@ -168,6 +168,17 @@ router.get('/', async (req, res, next) => {
|
|||||||
try {
|
try {
|
||||||
console.log('Nozzles API called for user:', req.user.id);
|
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(
|
const result = await pool.query(
|
||||||
`SELECT ue.id, ue.custom_name, ue.manufacturer, ue.model,
|
`SELECT ue.id, ue.custom_name, ue.manufacturer, ue.model,
|
||||||
ue.orifice_size, ue.spray_angle, ue.flow_rate_gpm,
|
ue.orifice_size, ue.spray_angle, ue.flow_rate_gpm,
|
||||||
|
|||||||
@@ -377,10 +377,10 @@ const PropertyMap = ({
|
|||||||
key={section.id}
|
key={section.id}
|
||||||
positions={coordinates}
|
positions={coordinates}
|
||||||
pathOptions={{
|
pathOptions={{
|
||||||
fillColor: isExternallySelected ? '#10b981' : getSectionColor(section),
|
fillColor: isExternallySelected ? '#10b981' : '#3b82f6',
|
||||||
fillOpacity: isSelected ? 0.7 : 0.4,
|
fillOpacity: isSelected ? 0.8 : 0.5,
|
||||||
color: isExternallySelected ? '#059669' : getSectionColor(section),
|
color: isExternallySelected ? '#059669' : '#2563eb',
|
||||||
weight: isSelected ? 4 : 2,
|
weight: isSelected ? 4 : 3,
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
}}
|
}}
|
||||||
eventHandlers={{
|
eventHandlers={{
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ const ApplicationPlanModal = ({ onClose, onSubmit }) => {
|
|||||||
<div className="relative">
|
<div className="relative">
|
||||||
<PropertyMap
|
<PropertyMap
|
||||||
center={[selectedPropertyDetails.latitude, selectedPropertyDetails.longitude]}
|
center={[selectedPropertyDetails.latitude, selectedPropertyDetails.longitude]}
|
||||||
zoom={18}
|
zoom={16}
|
||||||
property={selectedPropertyDetails}
|
property={selectedPropertyDetails}
|
||||||
sections={selectedPropertyDetails.sections || []}
|
sections={selectedPropertyDetails.sections || []}
|
||||||
editable={false}
|
editable={false}
|
||||||
|
|||||||
Reference in New Issue
Block a user