# NGBVD Final UI Tweaks Notes

This focused patch addresses the requested small UI and behaviour fixes after the stabilization reset.

## Included fixes

1. Contact page scroll reduction
- Reduced hero spacing, card heights, form input heights and textarea height.
- Kept the improved icon/contact-card layout.

2. District map drill-down restored/improved
- Keeps the OpenStreetMap number markers.
- Adds a right-side detail panel.
- Clicking a district number updates the detail panel with district summary information from the existing map data payload.

3. Dashboard trend/donut chart loading
- Moves `dashboard.charts` into the layout script stack so Morris/Raphael/jQuery are loaded before the chart script runs.
- Adds safer Morris rendering for Trends and Number of Incidents.

4. Roles UI polish
- Reworks `/roles/list` into a two-column role configuration screen.
- Adds module cards, permission cards, select-all, clear-all, and select-module controls.

5. Profiled cases actions
- Restores both Preview and Edit actions on `/dataentry/list`.
- Preview opens in a modal and Edit opens the editable case form.

## After applying
Run:

```powershell
composer dump-autoload
php artisan optimize:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
php artisan cache:clear
```

Test:
- `/index/contact`
- `/index/district`
- `/dashboard`
- `/roles/list`
- `/dataentry/list`
