updates on the ai bot and the queries and the delivereis page
This commit is contained in:
@@ -108,6 +108,29 @@ export function ZoneProvider({ children }) {
|
||||
const currentHub = selectedZone;
|
||||
const targetHubId = String(currentHub.hubid);
|
||||
|
||||
// Rider matching: riders belong to the tenant fleet and serve all tenant kitchen hubs
|
||||
const isRiderItem =
|
||||
item.milerprofileid != null ||
|
||||
item.authname != null ||
|
||||
(item.userid != null && item.availabilitystatus != null);
|
||||
|
||||
if (isRiderItem) {
|
||||
if (isTenantUser) {
|
||||
return true;
|
||||
}
|
||||
if (item.applocationid != null && (String(item.applocationid) === targetHubId || String(item.applocationid) === String(currentHub.applocationid))) {
|
||||
return true;
|
||||
}
|
||||
if (item.hubid != null && String(item.hubid) === targetHubId) {
|
||||
return true;
|
||||
}
|
||||
const hubCity = String(currentHub.city || '').trim().toLowerCase();
|
||||
if (hubCity && String(item.city || '').trim().toLowerCase() === hubCity) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// 1. Direct hub/location id match
|
||||
const itemHubId =
|
||||
item.hubid ??
|
||||
|
||||
@@ -953,40 +953,50 @@ body.dai-docked .astryx-layout-content {
|
||||
}
|
||||
}
|
||||
/* --------------------------------------------------------------------------
|
||||
Write-action confirm card
|
||||
Write-action confirm card & buttons
|
||||
-------------------------------------------------------------------------- */
|
||||
.dai-root .dai-action {
|
||||
padding: 10px 11px;
|
||||
border: 1px solid var(--dai-border-strong);
|
||||
border-radius: 5px;
|
||||
background: var(--dai-surface-alt);
|
||||
padding: 12px 14px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 12px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.dai-root .dai-action-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 0 0 auto;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border-radius: 5px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 8px;
|
||||
color: #4f46e5;
|
||||
background: rgba(99, 102, 241, 0.1);
|
||||
}
|
||||
.dai-root .dai-action-summary {
|
||||
font-size: 13px;
|
||||
line-height: 1.35;
|
||||
font-weight: 550;
|
||||
line-height: 1.4;
|
||||
font-weight: 600;
|
||||
color: var(--dai-text);
|
||||
}
|
||||
.dai-root .dai-action-note {
|
||||
font-size: 12px;
|
||||
color: var(--dai-text-secondary);
|
||||
color: #64748b;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.dai-root .dai-ok {
|
||||
color: #047857;
|
||||
font-weight: 500;
|
||||
}
|
||||
.dai-root .dai-err {
|
||||
color: #b91c1c;
|
||||
font-weight: 500;
|
||||
}
|
||||
.dai-root .dai-action button {
|
||||
cursor: pointer;
|
||||
}
|
||||
/* --------------------------------------------------------------------------
|
||||
Overflow containment
|
||||
|
||||
Reference in New Issue
Block a user