);
}
```
---
## Issue 2: Calculation Square Too Visible
**Problem:** Green rectangle shows calculation bounds - too distracting.
### Option A: Make It Subtle
**File:** Find where calculation bounds are drawn (probably in Map or Coverage component)
**Current (green bold line):**
```typescript
```
**Change to subtle dashed line:**
```typescript
```
### Option B: Hide It Entirely
**Add toggle:**
```typescript
// In settings store
showCalculationBounds: false, // Default hidden
// In Map component
{showCalculationBounds && (
)}
// In UI
```
### Option C: Auto-Hide After Calculation
```typescript
const [showBounds, setShowBounds] = useState(false);
// When calculation starts
setShowBounds(true);
// After calculation completes
setTimeout(() => setShowBounds(false), 3000); // Hide after 3s
{showBounds && }
```
### Option D: Progress Indicator Instead
Replace rectangle with corner markers:
```typescript
// Instead of full rectangle, show 4 corner circles
{calculationBounds && (
<>
>
)}
```
---
## Recommended Fix
**File:** `frontend/src/components/map/Map.tsx` (or wherever Rectangle is)
```typescript
// Find the calculation bounds Rectangle and replace with:
{calculationInProgress && (
)}
// Auto-hide after calculation completes:
useEffect(() => {
if (!calculationInProgress && calculationBounds) {
const timer = setTimeout(() => {
setCalculationBounds(null);
}, 2000);
return () => clearTimeout(timer);
}
}, [calculationInProgress]);
```
---
## Testing
### Zoom Gradient:
1. Calculate coverage at zoom 8
2. Note color at specific location (e.g., 3km from site)
3. Zoom to 10, 12, 14, 16
4. Color at same location should NOT change
5. Check console - maxIntensity should always be 0.75
### Calculation Square:
1. Click "Calculate Coverage"
2. Rectangle should be subtle (thin, dashed, gray)
3. OR auto-hide after 2-3 seconds
4. Should not distract from heatmap
---
## Quick Apply
**For Claude Code:**
```
Fix two remaining issues:
1. Heatmap zoom gradient:
- Ensure maxIntensity is CONSTANT 0.75 (not a formula)
- Remove ALL zoom-dependent parameters from HeatmapLayer
- Make radius/blur/max all fixed values
- Test: same location = same color at any zoom
2. Calculation bounds rectangle:
- Make it subtle: gray, thin (weight: 1), dashed, opacity: 0.3
- OR auto-hide 2 seconds after calculation completes
- Should not distract from coverage heatmap
Test gradient thoroughly at zoom levels 8, 10, 12, 14, 16.
```
---
## Build & Test
```bash
cd /opt/rfcp/frontend
npm run build
sudo systemctl reload caddy
# Open https://rfcp.eliah.one
# Test zoom gradient (critical!)
# Check calculation bounds visibility
```
---
Віддати на Claude Code ці 2 фікси? Після цього можна братись за Backend! 🚀