Repository navigation
Overdue inbound dashboard card (spec-driven UI feature) - #7
matthewguerra-cog wants to merge 3 commits into
Conversation
Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
…bound card Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
…arams Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
Runtime UI test — "Overdue inbound" dashboard card ✅Tested locally at commit Seed data on Central Warehouse (NYC): Card renders with correct columns, rows, sort, and pluralization
Row click → stock movement page✅ Clicking the Empty state (Boston Warehouse) + Warehouse Management section✅ Boston Warehouse: card present with all 3 headers, zero rows, no error/retry card, no console errors. API sanity — GET /api/dashboard/overdueInbound?locationId=…{"data":{"number":"Shipment","name":"Origin","value":"Days late","body":[
{"number":"OVD-A","name":"Toyota USA","value":"5 days","link":"/openboxes/stockMovement/show/seed-ship-late5"},
{"number":"OVD-B","name":"Amazon.com","value":"1 day","link":"/openboxes/stockMovement/show/seed-ship-late1"}]},"link":null}✅ Missing/unknown
Recording preview (full recording attached in the Devin session): |
✨ Description of Change
Link to GitHub issue or Jira ticket: spec at
docs/demo/ui-spec-prompt.mdonspec-driven-developmentDescription:
Adds an "Overdue inbound" card to the warehouse dashboard, backed by the existing
GET /api/shipments/exceptions/overduedata path (ShipmentExceptionService.getOverdueInboundShipments) — no new backend query, no schema change.IndicatorDataService.getOverdueInbound(location): cached indicator (@Cacheable dashboardCache, like the sibling widgets) that calls the existing service with fixed defaults (minDaysLate=1,sort=daysLate desc, 10 rows) and maps rows to the dashboardtablewire shape:GraphData(Table("Shipment", "Origin", "Days late", [TableData(shipmentNumber, origin.name, "1 day"/"N days", link -> /stockMovement/show/<id>)]))DashboardApiController.getOverdueInbound: thin action taking onlylocationId(400 when missing/unknown), rendering the indicator as JSON/api/dashboard/overdueInboundopenboxes.dashboardConfig(graphType = "table", modeled ondiscrepancy) and added to every dashboard section that includesdelayedShipmentsreact.dashboard.overdueInbound.title.label/.info.labelNo frontend changes needed —
GraphCardalready rendersgraphType "table"viaTableCard, so the card participates in drag-to-reorder and per-user layout persistence like every other widget.📷 Screenshots & Recordings (optional)
UI test recording to follow.
Devin-Org: engineering
Link to Devin session: https://app.devin.ai/sessions/c143e35b65c14c1390e288061142674f
Requested by: @matthewguerra-cog
Devin Review
9874b9b