Extension: add Today's Arrivals list to popup, pushable independent of a NewBook booking page
Adds GET /api/staff/arrivals (NewBook bookings_list, same list_type: 'staying' pattern room-planner/hvac/maintenance already use) and a popup section that lists each arrival with its own Push button, falling back to a per-row device picker on busy/offline/no-default — a second route to the same push flow, separate from the content-script's injected NewBook page buttons.
This commit is contained in:
parent
d7fbdce04d
commit
ebf9875ca8
4 changed files with 239 additions and 3 deletions
|
|
@ -63,3 +63,37 @@ a.settings-link { display: block; margin-top: 12px; font-size: 12px; color: #7b4
|
|||
padding: 2px 8px; border-radius: 999px; cursor: pointer;
|
||||
}
|
||||
.reset-btn:disabled { opacity: 0.5; cursor: default; }
|
||||
|
||||
.arrival-list {
|
||||
list-style: none; margin: 0 0 12px; padding: 0;
|
||||
max-height: 220px; overflow-y: auto;
|
||||
}
|
||||
.arrival-row {
|
||||
display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
|
||||
padding: 6px 0; font-size: 12px; border-bottom: 1px solid #e4e8ee;
|
||||
}
|
||||
.arrival-row:last-child { border-bottom: none; }
|
||||
.arrival-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
||||
.arrival-name { color: #1a1a2e; font-weight: 600; }
|
||||
.arrival-site { color: #64748b; font-size: 11px; }
|
||||
.arrival-done {
|
||||
font-size: 10px; padding: 1px 6px; border-radius: 999px;
|
||||
background: #dcfce7; color: #166534;
|
||||
}
|
||||
.push-btn {
|
||||
border: none; background: #c9a84c; color: #1a1a2e; font-size: 11px; font-weight: 700;
|
||||
padding: 3px 10px; border-radius: 999px; cursor: pointer;
|
||||
}
|
||||
.push-btn:disabled { opacity: 0.5; cursor: default; }
|
||||
.arrival-msg { flex-basis: 100%; font-size: 11px; }
|
||||
.arrival-picker {
|
||||
flex-basis: 100%; display: flex; gap: 6px; margin-top: 4px;
|
||||
}
|
||||
.arrival-picker select {
|
||||
flex: 1; margin-bottom: 0; padding: 4px; font-size: 12px;
|
||||
}
|
||||
.send-small {
|
||||
border: none; background: #c9a84c; color: #1a1a2e; font-size: 11px; font-weight: 700;
|
||||
padding: 4px 10px; border-radius: 6px; cursor: pointer;
|
||||
}
|
||||
.send-small:disabled { opacity: 0.5; cursor: default; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue