Commit Graph

133 Commits

Author SHA1 Message Date
Super Admin
a2cf8c2c75 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 2026-07-04 18:30:46 +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
8bd3c9a7fc Fix GoldenPathTest route and team creation 2026-07-03 12:49:24 +08:00
ramram1515
2b74bb4264 Implement WasteCollected push notification and fix empty collection history issue 2026-07-03 12:46:55 +08:00
ramram1515
db82d076b5 Fix geometry SRID 4326 error in QuezonCitySeeder 2026-07-03 12:24:53 +08:00
Developer
7dccb503c0 fix(seeder): hardcode detailed QC boundary to persist across database refreshes 2026-07-03 12:17:06 +08:00
ramram1515
cbe074cfb4 Fix PDF print URL using batch_number instead of id for route model binding 2026-07-03 12:16:41 +08:00
ramram1515
f4d8a1f963 Fix StoreSale factory in DevelopmentSeeder to include commission_centavos 2026-07-03 12:02:43 +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
0916341b6b feat: expand Quezon City seeder with full organizational structure
- Users: Added 2 Residents, 3 Drivers, 3 Scanners, and 4 Helpers with 'password1' credentials.
- Teams: Created 'QC Team Alpha' and 'QC Team Bravo' with assigned drivers, scanners, and helpers.
- Assets: Added 2 dedicated Trucks (QC-TRK-001/002) for collection teams.
- Business: Created 2 additional Partner Stores with owners and spatial coordinates.
- Fix: Ensured 'assigned_from' is populated for team members to meet DB constraints.
- Data: Maintained 3-month historical collection statistics for all 142 barangays.
2026-07-03 11:37:55 +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
7689ecda5e fix: trip_number collision and household schema mapping in development seeder 2026-07-02 16:06:44 +08:00
ramram1515
df9f97b78a fix: household schema mapping in development seeder 2026-07-02 16:05:57 +08:00
ramram1515
b8495c6bde fix: resident profile verification fields in seeder 2026-07-02 16:05:08 +08:00
ramram1515
190fe2486e feat: scale development seeder to 3 LGUs and 10x staff/residents per requested scenario 2026-07-02 16:03:39 +08:00
ramram1515
d65bc67eba feat: add global super admin to development seeder 2026-07-02 15:56:38 +08:00
ramram1515
42fa16affc fix: correct trip column names in development seeder 2026-07-02 15:54:02 +08:00
ramram1515
ddd61b9da8 feat: add dynamic and historical trips to development seeder 2026-07-02 15:53:00 +08:00
ramram1515
84a5a31567 feat: expand development seeder to multi-LGU with multiple stores and users 2026-07-02 15:50:50 +08:00
ramram1515
3bd4823036 feat: consolidate development seeder with single admin and default password1 2026-07-02 15:46:39 +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
ramram1515
464a18806b fix: resolve window.Verde.getToken race condition and refactor store pages to use apiFetch 2026-07-02 15:38:14 +08:00
ramram1515
34a276a70a fix: add /store root redirect to /store/dashboard 2026-07-02 15:33:35 +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
f5d520181e feat(admin/teams): add truck operational status badge
- Add truck_is_full computed field to CollectionTeamResource
  - true when current trip load >= truck capacity_kg
  - true when trip status is at_dumpsite (driver rerouted to dumpsite)
  - uses whenLoaded() guard, safe when currentTrip not eager-loaded

- Rework teams card badge layout (Admin UI)
  - H row: remove misleading 'Not Full' for standby teams; show Full/Incomplete for active only
  - Truck Load row: always rendered with 4 context-aware states
    - IDLE (standby teams)
    - READY (active, no current trip)
    - COLLECTING (active trip, under capacity)
    - TRUCK FULL (at capacity or at dumpsite)
2026-07-02 14:23:02 +08:00
ramram1515
255a41766b Merge branch 'main' of https://gitea-qzlf.srv1050180.hstgr.cloud/admin/Verde-Web
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2026-07-02 14:19:59 +08:00
ramram1515
4e6610ba3e added a draw polygon LGU 2026-07-02 14:16:51 +08:00
Developer
6b39cf645a fix: restore Endroid Builder::create() fix in StorePortalController 2026-07-02 13:57:40 +08:00
Developer
968f4467bf test: Implement comprehensive E2E Golden Path Integration Test 2026-07-02 13:57:40 +08:00
Developer
8e3577c9d1 remove tmp test 2026-07-02 13:57:39 +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
7745a57e84 style: apply additional linting fixes across the codebase 2026-07-02 13:56:02 +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
647af45b99 Fix PartnerStoreSettlementTest and QrCode replacement 2026-07-02 13:47:49 +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
29bf7a714b chore: add public downloads to gitignore 2026-07-01 13:47:44 +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