updates on the ui changes and the bot changes

This commit is contained in:
2026-08-20 13:12:56 +05:30
parent e1cc874218
commit ce32465a6f
12 changed files with 567 additions and 25 deletions

View File

@@ -799,7 +799,23 @@ const Deliveries = () => {
Status
</Text>
),
cell: ({ getValue }) => <StatusBadge status={getValue()} />
// The badge explains itself when the value did not come from the
// booking. Without this an operator comparing the table against
// GET /admin/bookings sees "Active" next to
// `"status": "Converted_To_Consignment"` and reasonably assumes the
// page is wrong — it isn't; the booking simply stops moving at pickup.
cell: ({ getValue, row }) =>
row.original.statusfromconsignment ? (
<Tooltip
content={`From consignment #${row.original.consignmentid} (${row.original.consignmentstatus}). The booking itself stays at Converted_To_Consignment once it has been picked up.`}
>
<span>
<StatusBadge status={getValue()} />
</span>
</Tooltip>
) : (
<StatusBadge status={getValue()} />
)
},
{
id: 'tenant',