Components
Arrival row
One predicted arrival in a stop sheet: route icon, destination, the time as a word or minutes with the clock time under it, and a chevron that expands the upcoming-stops timeline.
Contract: components/arrival-row.yaml. States are drawn live by transit.js.
Loading the contract…
iOS app specification
The app's rendering of this component, from the v3 spec.
Arrival card
One train or bus. Tap to expand into the upcoming-stops card, headed by the vehicle.
| Layout | 40 icon column · destination · right-aligned time · chevron |
|---|---|
| Semantics | Button with expanded state; label reads route, destination and time |
| Time | Body; Due 700 Good; Delayed 700 Warn; clock in Caption below |
| Source | Live tracked arrivals have no visible badge. Scheduled arrivals show only a Muted clock glyph immediately before the primary time; schedule faults show an exclamation glyph in the same place. VoiceOver appends Live tracked, Scheduled or Schedule data issue. |
| Expanded | The Upcoming-stops card, the same component as the vehicle sheet’s. Its top row is the vehicle circle at the top of the line, Run #412 in the regular stop style, and an expand button that pushes the vehicle’s sheet. The chevron turns to ^. Every stop row, this stop’s included, keeps its time |
| Timeline | Rows 44. A 16pt slot in the route color (the line color for trains, Brand for buses), drawn above the row dividers, coming straight out of the vehicle circle with no gap and ending in a rounded cap around the last stop. Stops are 8pt Paper dots inside the slot, with no border. The current stop is a white circle the size of the vehicle circle (28) with a 2 Always Ink edge, in both appearances; the vehicle circle takes the same edge |
Variants
One row; no variants. The time word comes from the data: minutes, Due, Delayed, Departed, or "--" when unknown. source is live (no glyph), scheduled (a Muted clock) or fault (an exclamation). expanded opens the upcoming-stops card; stale marks a time that may be out of date. Nothing else exists.
// Do
<ArrivalRow route="Brn" destination="Kimball" minutes={4} clock="5:44 PM" source="live"
expanded={open} onToggle={() => setOpen(!open)}>{timeline}</ArrivalRow>
// Don't: dim a stale row; pass stale
<View style={{ opacity: 0.5 }}><ArrivalRow route="Pink" destination="54th/Cermak" minutes={9} /></View>