Hagernesh
14b6219c9d
chore(warehouse): comprehensive demo seeder — populate every queue coherently
...
WarehouseDemoSeeder creates one coherent WH-DEMO-* dataset so every tab shows data:
- Export Receive (3 PAID export bookings, no inventory)
- Export Ready To Load (3 READY_FOR_LOADING + PASSED)
- Export Loaded/Dispatch (2 LOADED)
- Import Arrive (1 ARRIVED Djibouti→Ethiopia train, 3 IN_TRANSIT bookings)
- Import Unloaded (3 UNLOADED)
- Import Dispatch (3 READY_FOR_PICKUP + PASSED)
Idempotent (sentinel WH-DEMO-RCV-1); dedicated refs so it never collides with SEED-* data.
Verified: all queues populated, dashboard shows 19 items across all 7 statuses.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-21 15:06:50 +00:00
Hagernesh
41d21edae5
feat(warehouse): Batch 10 — import post-inspection actions (pickup / last-mile / store / dispatch)
...
- READY_FOR_PICKUP transitions now → DELIVERED (customer pickup) OR DISPATCHED (dispatch out) OR
STORED (operator-chosen storage) — pickup and dispatch kept separate. No auto-storage.
- GET /warehouse-inventory/import/pickup-ready-queue: READY_FOR_PICKUP import items (shared query
with the unloaded queue, route-derived import filter)
- WarehouseInventoryTable: PICKUP_READY rows now show explicit Store + Dispatch buttons alongside
the customer-pickup (release/deliver) next action; reuses the existing advance() dispatcher
- Import → Dispatch Queue tab renders pickup-ready items via InventoryWorkbench (all existing
actions + modals intact) with Last Mile shown only when door delivery was requested
- Verified: pickup-ready item → Store → STORED; → Dispatch → DISPATCHED
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-21 14:38:23 +00:00
Hagernesh
040ba6d495
feat(warehouse): Batch 9 — Import Unloaded Queue + bulk destination inspection
...
- bulkMarkInspected: UNLOADED added to eligible statuses; IMPORT passed items now advance to
READY_FOR_PICKUP (pickup ready) instead of READY_FOR_LOADING (export unchanged)
- GET /warehouse-inventory/import/unloaded-queue: UNLOADED import items with the inspection-screen
columns (booking, customer, arrival, container, cargo type, weight, train schedule, inspection
status, pickup option, last-mile, current status); route-derived import filter
- Dedicated ImportUnloadedQueueTab replaces the Batch 8 workbench reuse: full spec columns,
Select All / Unselect All / selected count / Mark Selected as Inspected, plus per-row
Inspect / Report (InspectionReportModal) for damage / image / weight-loss detail
- Verified: import item UNLOADED → bulk inspect → READY_FOR_PICKUP (PASSED), drops out of queue
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-21 14:15:22 +00:00
Hagernesh
8b28a7c430
feat(warehouse): Batch 8 — Import Auto Unload Arrived Bookings (→ UNLOADED)
...
- New UNLOADED inventory status (train-arrival landing state) + transitions + unloaded_at column
(idempotent migration 1791000000003) + INVENTORY_UNLOADED activity type
- POST /warehouse-inventory/import/auto-unload-arrived-bookings { scheduleId }: validates ARRIVED
IMPORT train, unloads all eligible assigned bookings (IN_TRANSIT/ARRIVED_AT_*) into UNLOADED,
records unloadedAt + activity. Does NOT store and does NOT inspect. Reuses allocation + inventory
plumbing. Returns { unloadedCount, skippedCount, failedCount, results }.
- Arrive Queue "Auto Unload Arrived Bookings" button now calls the new endpoint (was per-booking loop)
- Import → Unloaded Queue tab: lists UNLOADED items via InventoryWorkbench (existing actions preserved:
Inspect/Store/Move/History) + a Last Mile action shown ONLY when booking requested door delivery
- Batch8TestDataSeeder: sets seed import train bookings to IN_TRANSIT (unload-eligible)
- Verified: auto-unload → 1 UNLOADED (unloadedAt set, not stored, not inspected); ineligible skipped;
idempotent re-run skips already-unloaded
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-21 12:57:29 +00:00
Hagernesh
35c3341baf
feat(warehouse): Batch 7 — Import Arrive Queue (arrived import trains, read-only)
...
- SchedulingReadFacade: importArriveQueue() + importTrainDetail() — read-only SELECTs only,
direction derived from origin/destination station countries (route-based), so EXPORT/DOMESTIC
trains are excluded. Per-train booking/container/cargo counts.
- GET /warehouse-inventory/import/arrive-queue + /import/trains/:scheduleId/items
- Import tab restructured into sub-tabs: Arrive Queue (implemented) / Unloaded Queue /
Dispatch Queue (placeholders for next batch)
- ImportArriveQueueTab: train table (schedule id, train #, route, origin, destination, arrival,
bookings/containers/cargoes, status) with Open (expandable assigned-items detail) + Auto Unload
(reuses existing per-booking unload endpoint over the train's bookings)
- Batch7TestDataSeeder: 1 arrived IMPORT train (SEED-IMP-001) + 1 arrived EXPORT train
(SEED-EXP-001, proves exclusion); idempotent
- Train schedule service logic untouched (facade is SELECT-only)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-21 11:15:31 +00:00
Hagernesh
a8bc5b19de
feat(warehouse): fetch all PAID bookings in one call, classified IMPORT/EXPORT by route
...
- eligibleBookings(direction?) now returns all import+export bookings when direction omitted
(DOMESTIC excluded); per-direction filter preserved for backward compatibility
- GET /warehouse-inventory/eligible-bookings (no query) returns the combined set
- Frontend: single shared useEligibleBookings() query; both Receive tabs filter client-side
by route-derived direction, so only one HTTP request fires
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-20 20:15:26 +00:00
Hagernesh
0ab508e377
feat(warehouse): Batch 6 — Export Loaded queue + Dispatch Queue with bulk dispatch
...
- GET /warehouse-inventory/loaded-export: EXPORT+LOADED items (route-derived direction)
- POST /warehouse-inventory/bulk-dispatch-export: reuses existing dispatch() transition
(LOADED → DISPATCHED, capacity freed, movement/activity logged); skips non-LOADED/non-EXPORT
- Extracted shared exportInventoryByStatus() helper (readyToLoadExport now delegates to it)
- Frontend LoadedExportTab serves both Loaded (read-only) and Dispatch Queue (dispatchable)
sub-tabs with Dispatch / Dispatch Selected / Dispatch All + per-row Dispatch
- Replaces "Loaded" and "Dispatch Queue — coming in the next batch" placeholders
- Train/schedule flow (DISPATCHED → IN_TRANSIT) unchanged
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-20 20:04:18 +00:00
Hagernesh
43ba3c790b
feat(warehouse): Batch 5 seed — 3 EXPORT READY_FOR_LOADING+PASSED inventory items
...
Creates SEED-B5-EXP-001/002/003 bookings (ADDIS_ABABA→DJIBOUTI, PAID, BULK)
with warehouse inventory at READY_FOR_LOADING + inspectionStatus PASSED so the
Ready To Load tab has visible rows. Idempotent on guard reference check.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-20 19:45:07 +00:00
Hagernesh
806fc4a8ca
feat(warehouse): Batch 5 — Export Ready To Load queue + Auto Load Ready Items
...
- GET /warehouse-inventory/ready-to-load-export: EXPORT+PASSED+READY_FOR_LOADING items
with booking details (customer, container, cargo type, route, inspection status)
- Direction filtering via deriveTradeDirection (route-based, not stored field)
- Frontend ReadyToLoadTab: full table (checkbox, booking ref/id, customer, container,
cargo type, weight, route, inspection status, current status) with selection
- Auto Load Ready Items button reuses existing POST /load-passed-export endpoint
- Replaces "Ready To Load — coming in the next batch" placeholder in Export sub-tabs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-20 18:03:11 +00:00
Hagernesh
50c6381341
feat(warehouse): Batch 3+4 — export receive-selected label + bulk-mark-inspected workflow
...
- BulkReceiveModal: Receive Selected shows "received at facility" for EXPORT
- Export inspection: POST /warehouse-inventory/bulk-mark-inspected reuses WarehouseInspectionService.create
- EXPORT items advance to READY_FOR_LOADING after inspection PASSED
- InventoryWorkbench: selection state + "Mark Selected as Inspected" bulk button
- WarehouseInventoryTable: optional Checkbox column for bulk selection
- Route-based direction in eligibleBookings, bulkReceive, getBookingDirection
- New BulkInspectDto; service + controller wired
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-20 17:52:01 +00:00
Hagernesh
b7a831b063
feat(warehouse): route-based receive direction + Export Receive Queue (Batch 2)
...
- Direction derived from route via existing deriveTradeDirection (eligible-bookings,
bulk receive guard, getBookingDirection) instead of stored trade_direction
- Export tab sub-tabs (Receive Queue + Ready-to-Load/Loaded/Dispatch placeholders)
- Receive Queue: full column set + per-row Receive; eligible-bookings adds customerId
- create/update warehouse: map DB errors to 400; dashboard: distinct per-status colors
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 10:26:50 +00:00
Hagernesh
0005b2edb3
feat(warehouse): Receive Import/Export tabs with bulk receive + load-passed-export
...
- Backend: GET eligible-bookings?direction, POST receive-bulk, POST load-passed-export
(reuse autoUnload/autoLoad patterns; no train-schedule/wagon logic changed)
- Frontend: ReceiveInventoryModal split into Import/Export tabs with eligible PAID
bookings table, select-all/bulk receive, and Load Passed Export Items button
- Single-booking receive and all existing inventory row actions preserved
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 08:29:59 +00:00
Hagernesh
d7352ba4e8
fix(warehouse): import TableColumn in allocation/fee migration
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 12:25:18 +00:00
Hagernesh
e40318c847
Dashboard enhancement
2026-06-19 11:29:05 +00:00
Hagernesh
f32d3d76e3
fix(warehouse): resolve migration timestamp collisions for Batch 5/6
...
- Rename 1790000000000/1 (collided with CreateWarehouseModule / WarehouseBatch2)
to 1791000000000/1 so they sort after the existing warehouse migrations
- Make Batch 5 migration idempotent (createTable ifNotExists + ADD COLUMN IF NOT EXISTS)
so it is safe whether or not it already ran
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-19 11:29:05 +00:00
natib21
398bc9330e
fix migration
2026-06-18 09:11:10 +00:00
Hagernesh
be12a9d496
fee invoice frontend
2026-06-18 00:12:59 +00:00
Hagernesh
3860d17304
demurrage invoices
2026-06-18 00:05:50 +00:00
Hagernesh
33b74a5da9
demurrage invoices
2026-06-18 00:04:07 +00:00
Hagernesh
01aec12ee9
feat(warehouse): Batch 5 — config-driven allocation + storage/demurrage fee rules
...
- Allocation rules engine: cargo/container/trade criteria -> deterministic yard/warehouse/zone by code; wired into auto-unload (fallback to default)
- Storage/demurrage fee rules: configurable freeDays + ratePerDay; most-specific match; fee preview per inventory item
- Inventory demurrage timestamps: inspectionStartedAt, inspectionCompletedAt, readyForPickupAt, releaseDate, gateClearedAt
- Migration 1790000000000 (allocation_rules + fee_rules tables + inventory date columns)
- Frontend: Allocation & Fees config page, automatic Fee Preview modal, plumbing/hooks
- No invoice/payment (Batch 6)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-17 23:53:04 +00:00
Hagernesh
270e39edd6
fix: post-merge cleanup after freight/develop merge
...
- Remove orphaned container publish route (service method dropped on develop)
- turbo.json concurrency as string "12" (parse + 11 persistent-task limit)
- database.config: synchronize false (migrations only; fixes weight_limit_rules boot crash)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-17 23:04:48 +00:00
Hagernesh
8db8bb1808
automation of loading and unloading
2026-06-17 22:33:51 +00:00
Hagernesh
89d651693b
automation of loading and unloading
2026-06-17 22:33:06 +00:00
Hagernesh
ff79657018
automation
2026-06-17 22:16:01 +00:00
Hagernesh
5a6e1ef363
automation
2026-06-17 22:01:47 +00:00
Hagernesh
5b8cb16c1a
automation
2026-06-17 22:00:53 +00:00
Hagernesh
1db1467ea1
automated loading and unloading
2026-06-17 21:45:22 +00:00
Hagernesh
f528b75737
Warehouse
2026-06-17 12:44:57 +00:00
Nathnael Wondisha
c256784b17
Merge pull request #199 from Tria-plc/dev
...
Syning develop from dev
2026-06-17 15:03:12 +03:00
Yonas Tewabe
2a9729304f
Update .gitignore
2026-06-17 14:54:11 +03:00
Yonas Tewabe
1ad1999b2f
Update tailwind.config.js
2026-06-17 14:53:45 +03:00
Yonas Tewabe
3e618c8f71
Update tailwind.config.js
2026-06-17 14:52:59 +03:00
Yonas Tewabe
999a58011c
Update deploy.yml
2026-06-17 04:00:10 -07:00
Nathnael Wondisha
52f0fd7e62
Merge pull request #198 from Tria-plc/freight/fix/hot-fixes
...
Freight/fix/hot fixes
2026-06-17 13:43:58 +03:00
ghost2023
a4a58d264a
fix
2026-06-17 13:43:35 +03:00
ghost2023
dcb2de7631
fix: settings page
2026-06-17 13:34:23 +03:00
ghost2023
2a0f16241b
fix: improve the setting onboarding flow
2026-06-17 13:17:09 +03:00
ghost2023
e007b28285
fix: type errors
2026-06-17 13:16:06 +03:00
Sennay
b6cbfd2c1f
Force recreate containers during deployment
...
Added --force-recreate option to docker compose command.
2026-06-17 12:59:06 +03:00
Sennay
f4d7b5c87b
Update Docker build command in deploy.yml
...
Remove the --no-cache option from the Docker build command.
2026-06-17 12:44:54 +03:00
Sennay
d348be5879
Remove rabbitmq dependency conditions
...
Removed 'depends_on' condition for rabbitmq service in both passenger and payment APIs.
2026-06-17 12:40:16 +03:00
Yonas Tewabe
12574768de
Update docker-compose.yaml
2026-06-17 12:38:01 +03:00
Yonas Tewabe
b2f1cec37e
Remove concurrency settings from deploy.yml
...
Removed concurrency settings from the deploy workflow.
2026-06-17 12:25:33 +03:00
Abubeker Yasin
4ba91400d6
Merge pull request #196 from Tria-plc/feat/payment-microservice
...
fix: ( telebirr ) fix webhook return types
2026-06-17 12:12:34 +03:00
Abubeker Yasin
1b6bc47026
fix: ( telebirr ) fix webhook return types
2026-06-17 12:04:00 +03:00
Nathnael Wondisha
cae2848db7
Merge pull request #195 from Tria-plc/freight/feat/portal-fixes
...
Freight/feat/portal fixes
2026-06-17 11:02:33 +03:00
Nathnael
8b7dcdb897
fixes
2026-06-17 08:00:58 +00:00
Nathnael
24f314150c
fix
2026-06-17 08:00:58 +00:00
Nathnael
c59e100e5e
style: ui fix in scheduling
2026-06-17 08:00:58 +00:00
Nathnael Wondisha
585d86b8af
Merge pull request #194 from Tria-plc/freight/develop
...
Freight/develop
2026-06-17 10:19:59 +03:00