99 Commits

Author SHA1 Message Date
ramram1515
09b094bea7 fix: resolve E2E and unit test failures across tenant isolation and location endpoints 2026-07-08 12:08:56 +08:00
ramram1515
3dcd100a55 Merge branch 'main' of https://gitea-qzlf.srv1050180.hstgr.cloud/admin/verde-web 2026-07-08 11:24:52 +08:00
ramram1515
9803f1921c Add LGU reassignment for trucks, fix user activation, update capacity labels 2026-07-08 11:24:51 +08:00
Developer
1d2bd27db1 feat: Add total barangay count in LGU management and fix barangay controller bugs 2026-07-08 11:15:48 +08:00
ramram1515
76b70d3aea Fix missing LGU/tenant relations and display in tables; Add LGU hierarchy tests 2026-07-07 12:03:24 +08:00
Developer
0379e3de0d feat: add unified MyStats endpoint for mobile worker profiles 2026-07-07 10:47:49 +08:00
Developer
aaa5058249 feat: update barangay management and dashboard roles
- Created dashboard-router to separate LGU and Super Admin landing pages
- Added Barangays and LGUs statistical cards to Super Admin dashboard
- Moved LGU Management to Areas group in sidebar and added API Docs link
- Removed geofence spatial validation (ST_Contains) for Barangay creation in both LGU and Super Admin controllers to allow flexible boundaries
2026-07-07 10:32:38 +08:00
Azure_0_
ee72cd7211 feat: segregate super admin and LGU admin workflows
- Created AdminBarangayController to strictly scope barangay management to LGU boundaries
- Created AdminTenantController for LGU admins to fetch their own tenant configurations
- Updated sidebar to expose Barangays to LGU admins under the Areas menu
- Updated frontend UI to hide the City selection dropdown from LGU admins and dynamically inject their city_municipality_id
- Handled form validation issues caused by hidden required fields
- Implemented LGU dashboard routes and views
- Enforced 2 free QR code allocations on resident signup
2026-07-07 00:36:04 +08:00
Developer
949d14a0e5 feat(admin): add receipt and qr codes download links to partner store retail sales history 2026-07-06 16:43:30 +08:00
ramram1515
f42bb7010c feat(store): backfill existing adjustments and use setAttribute for receipt_url serialization 2026-07-06 16:24:14 +08:00
ramram1515
b9f179ea19 feat(store): link retail sales to inventory adjustments and add View Receipt action to Store Portal Inventory Logs table 2026-07-06 16:20:09 +08:00
Developer
aa8fdaa5aa fix(scanner): add team_id to collection_logs for robust stats tracking
- Created a database migration to add `team_id` to `collection_logs`.
- Created a database migration to backfill `team_id` for past scans using `trip_id` and scanner's active team.
- Updated `ScanService` to lookup the scanner's active team and store the `team_id` directly on the `CollectionLog`.
- Modified the `CollectionTeam` model's `collectionLogs()` relation to be a direct `HasMany` using the new `team_id` instead of routing through `Trip`.
- Updated `AdminTeamReportController` to query metrics directly from `collection_logs.team_id`, ensuring all past and future scans (including those done without an active trip) correctly increment team stats and daily charts.
2026-07-06 16:00:01 +08:00
ramram1515
fbf512a5e3 feat(web): display LGU name alongside Barangay in all admin dropdown selection lists 2026-07-06 15:30:20 +08:00
ramram1515
a205ec7c43 feat(web): fix LGU edit validation and update drop-off point seeders and validation 2026-07-06 15:25:58 +08:00
ramram1515
90ff51542e Merge branch 'main' of https://gitea-qzlf.srv1050180.hstgr.cloud/admin/Verde-Web 2026-07-06 13:20:19 +08:00
ramram1515
8e4773cb11 feat(store): fix dashboard NaN/N/A, recent sales table and inventory references 2026-07-06 13:20:15 +08:00
Developer
6f5327bbcd feat: implement trip incident dashboard, drop-off geofence validation, and calendar updates
- **Trip Incidents**: Created the `AdminTripController@incidents` API endpoint, built the `incidents.blade.php` view, enabled the incidents sidebar link, and added test coverage (`TripIncidentDashboardTest.php`).
- **Drop-off Points (LGU Geofence)**: Added a Barangay (LGU) dropdown to the drop-off point form. Integrated `Turf.js` to render the LGU boundary polygon on Leaflet and restrict pin placement (clicks, drags, and address search) to within the selected boundary.
- **Trip Calendar**: Changed the shortcut for opening the Daily Digest from Ctrl+Click to Shift+Click on calendar dates.
- **API fixes**: Corrected the Barangay fetch endpoint to `/api/v1/geo/barangays` in the Drop-off points view.
2026-07-06 12:39:51 +08:00
ramram1515
514c42ba88 Merge branch 'main' of https://gitea-qzlf.srv1050180.hstgr.cloud/admin/Verde-Web 2026-07-06 11:30:40 +08:00
ramram1515
9bd7f47899 feat: add public LGU lookup routes, clear route cache, add E2E integration test 2026-07-06 11:30:39 +08:00
Azure
f45b016215 feat: Implement interactive Trip Calendar, auto-scheduling suggestions, dumpsite geofence bounds, and household head details editing 2026-07-06 11:14:31 +08:00
Azure
4d246ab07c feat: integrate dynamic geofence fetching, service area spatial boundaries, partner store profiles & editing with Leaflet maps, custom store portal icons, QR distribution charts with geographic/LGU filters, and optimize admin dashboards (Super Admin: Azure) 2026-07-04 18:36:38 +08:00
ramram1515
8d82674e8f fix: remove spatial data cache in MyLiveTrucksController and fix upcoming pickups logic 2026-07-03 17:00:27 +08:00
ramram1515
8e93b889ee feat: implement trip handover logic and tests 2026-07-03 15:54:26 +08:00
ramram1515
24665a9594 feat: Add handed_off trip status handling and fix trips dashboard 2026-07-03 14:22:13 +08:00
ramram1515
2b74bb4264 Implement WasteCollected push notification and fix empty collection history issue 2026-07-03 12:46:55 +08:00
ramram1515
780b6bc05f Merge branch 'main' of https://gitea-qzlf.srv1050180.hstgr.cloud/admin/Verde-Web 2026-07-03 11:54:42 +08:00
ramram1515
21874c0764 Fix store sales search and QR wallet receipt downloads 2026-07-03 11:54:40 +08:00
Developer
7f3357206f feat: implement fixed dashboard layout, custom geofencing shapes, and QC seeder
- UI: Refactored admin layout to a fixed 'App Shell' design with independent scrollbars for sidebar and content area.
- UI: Cleaned up sidebar partial structure to support nested scrolling.
- GEOFENCING: Added support for Circle and Rectangle tools in LGU configuration.
- GEOFENCING: Implemented high-precision (128-point) circle-to-polygon conversion for database storage.
- PAGINATION: Integrated standard Laravel pagination across Teams and Reports tables.
- PAGINATION: Added a global 'renderPagination' helper and 'Per Page' selector (25, 50, 100).
- DATA: Created QuezonCitySeeder with 142 official barangays and 3 months of historical collection/sales data.
- FIX: Corrected API total aggregations in reports to remain accurate during pagination.
- FIX: Resolved unique constraint and axis-order issues in spatial data seeders.
2026-07-03 11:19:08 +08:00
Developer
9123ffe099 Implement trip continuation and driver history 2026-07-02 17:12:28 +08:00
ramram1515
79e8ce2286 fix: improve 403 error message in StorePortalController and link demo stores to LGU 2026-07-02 15:43:15 +08:00
Developer
1ee4a049dc feat(trips): live mid-trip truck load input with Pusher broadcast
- Migration: add current_load_kg (nullable unsigned int) to trips table
- Trip model: add current_load_kg to fillable + integer cast
- New TruckLoadBroadcast event (ShouldBroadcastNow)
  - Channel: private admin.live
  - Event name: truck.load
  - Payload: trip_id, team_id, truck_id, current_load_kg, capacity_kg, is_full
- DriverTripController::updateLoad()
  - PATCH /api/v1/driver/trips/{trip}/update-load
  - Validates status is in_progress, saves current_load_kg, fires broadcast
- Route: PATCH driver/trips/{trip}/update-load registered
- CollectionTeamResource: truck_is_full uses current_load_kg (live estimate)
  with fallback to total_load_kg (authoritative dumpsite weight)
- TripResource: expose current_load_kg field
- Admin Teams card:
  - data-team-id attribute added to each card for Echo targeting
  - Load bar uses current_load_kg when available
  - Echo listener for truck.load event patches load bar + badge in real-time
  - truck-status-badge class added to Collecting/Truck Full spans
2026-07-02 15:01:44 +08:00
Developer
3beafa3ac2 feat(admin/trips): surface dumpsite release records in trip detail panel
- Eager-load dumpsiteReleases.dumpsite + dumpsiteReleases.releasedByDriver
  in AdminTripController::show()
- Add releases[] array to TripResource via whenLoaded('dumpsiteReleases')
  - Fields: weight_kg, released_at, dumpsite_name, driver_name,
    gate_pass_number, dumpsite_attendant, notes
- Admin Trips detail panel now shows a 'Dumpsite Releases' section
  below the timeline with per-release cards
- Load row updated to show release count e.g. '450 kg (2 releases)'
2026-07-02 15:01:23 +08:00
Developer
6b39cf645a fix: restore Endroid Builder::create() fix in StorePortalController 2026-07-02 13:57:40 +08:00
Developer
ba30a5fcdf fix: QrCode relation bug and Endroid create() error 2026-07-02 13:57:39 +08:00
Developer
d9495be0e0 feat: Implement segmented toggle for Resident/Household sales, Cash Only badge, and user_id in StoreSale 2026-07-02 13:57:39 +08:00
Developer
f517b77377 style: fix linting issues with Laravel Pint 2026-07-02 13:55:34 +08:00
Developer
c4cbdb42c7 feat(store): complete partner store overhaul with mapping, household search, financial analytics, and resident notification system 2026-07-02 13:55:08 +08:00
ramram1515
7ced07b323 feat: Relax barangay_id requirement for resident registration 2026-07-02 13:22:33 +08:00
ramram1515
ec6b9e61a3 feat: implement Live Truck Radar caching 2026-07-02 13:02:29 +08:00
Developer
a1470eb85e feat: implement team standby status, helper persistence, and store portal foundations 2026-07-02 12:03:50 +08:00
ramram1515
a9a1df93bd feat(driver): Add assigned truck details to profile screen 2026-07-02 11:44:31 +08:00
Developer
4a4b88ffe4 feat: partner store financial settlements, qr replacements, and tenant resolution fix 2026-07-01 16:38:49 +08:00
Developer
62bcf68bdb feat: add partner store analytics, history logs, and global SRP validation 2026-07-01 15:02:43 +08:00
Developer
cc4fd8ba17 feat: early dumping detour mode backend logic 2026-07-01 13:23:39 +08:00
Developer
70741a3c24 feat: live tracking setup and map parsing fixes 2026-07-01 13:04:51 +08:00
Developer
7a63d2c680 Merge branch 'main' of https://gitea-qzlf.srv1050180.hstgr.cloud/admin/Verde-Web 2026-06-30 16:10:43 +08:00
ramram1515
2467633b1b Config 2026-06-30 16:10:19 +08:00
Developer
d66d6e3396 fix: resolve tenant_id scoping issue on QR code batch generation 2026-06-30 15:59:03 +08:00
Developer
6c83d99fd7 Merge branch 'main' of https://gitea-qzlf.srv1050180.hstgr.cloud/admin/Verde-Web 2026-06-30 15:33:50 +08:00
Developer
5959f74746 chore: clean up 2026-06-30 15:32:01 +08:00