Show transit vehicle facts, motion and a fleet breakdown in Context

A transit vehicle picked on the map now finds its record in Context (the
click carries the feed and vehicle key), so the card shows its operator,
place, route, report age and the operator's last reported state in plain
words. The layer card breaks transit in view down by motion (moving,
stopped, waiting for an update, no recent fix), mode, operator, last
reported state and crowding where the feed has it; vehicle-position feeds
carry no timetable, so early or late is not shown. Rows in the in-view
list carry a motion icon.
This commit is contained in:
Manjunath Paparaju authored and Sameh Khamis committed 2026-11-16 14:58:53 -08:00
1 parent 5c580cbd4a
commit 0fe6fd2bb8
6 files changed
+159 -5

No files matched your search

+19 -1
View File
@@ -464,6 +464,23 @@
white-space: nowrap;
}
/* A moving item's state on its row: green moving, amber stopped, grey
while its feed has nothing new. */
.view-context__row-motion {
flex: none;
margin-right: 6px;
color: rgba(199, 214, 222, 0.5);
font-size: 14px;
}
.view-context__row-motion[data-motion='moving'] {
color: #5dff9f;
}
.view-context__row-motion[data-motion='stopped'] {
color: #ffb86b;
}
.view-context__row-meta {
flex: none;
color: rgba(199, 214, 222, 0.55);
@@ -1144,7 +1161,8 @@
border-radius: 8px;
}
.cctv-preview__frame img {
.cctv-preview__frame img,
.cctv-preview__live {
width: 100%;
height: 100%;
object-fit: cover;