# Flight day

Boarding countdown, gate and flight on travel day. The countdown ticks on the phone; your agent changes the widget at each stage (before boarding, in the air, landed).

**Sizes:** small (boarding countdown), medium (gate on the left, countdown on the right), large (everything)
**Freshness:** the countdown is live on the phone; your agent updates gate changes and each stage
**Gotcha:** write every time with the airport's offset. A time without one is read as UTC.

## Before boarding

```json
{
  "slug": "flight-day",
  "title": "SV 123",
  "subtitle": "JED to DXB",
  "symbol": "airplane",
  "accent": "#0A84FF",
  "blocks": [
    { "type": "countdown", "label": "Boarding", "to": "2027-01-15T14:30:00+03:00", "from": "2027-01-15T11:30:00+03:00" },
    { "type": "metric", "label": "Gate", "value": "D14", "change": "T1" },
    { "type": "text", "style": "title", "text": "Jeddah to Dubai" },
    { "type": "text", "style": "caption", "text": "Departs 15:00, lands 17:45 Dubai time" }
  ],
  "sizes": { "small": [0], "large": [2, 0, 1, 3] },
  "lock": { "circular": 0, "inline": "Gate D14, board 14:30" }
}
```

Medium has no `sizes`: the gate sits in the left column and the countdown with its filling bar on the right. The round Lock Screen widget shows the countdown as a filling ring. Use the real flight's date and times; a past boarding time would just say "Now".

## In the air

Same four blocks in the same order, so `sizes` and `lock` still fit:

```json
{
  "slug": "flight-day",
  "title": "SV 123",
  "subtitle": "In the air",
  "blocks": [
    { "type": "countdown", "label": "Lands", "to": "2027-01-15T17:45:00+04:00", "from": "2027-01-15T15:00:00+03:00" },
    { "type": "metric", "label": "Seat", "value": "32A" },
    { "type": "text", "style": "title", "text": "Jeddah to Dubai" },
    { "type": "text", "style": "caption", "text": "Lands 17:45 Dubai time" }
  ],
  "sizes": { "small": [0], "large": [2, 0, 1, 3] },
  "lock": { "circular": 0, "inline": "Lands 17:45" }
}
```

## Landed

```json
{
  "slug": "flight-day",
  "title": "SV 123",
  "subtitle": "Landed",
  "blocks": [
    { "type": "text", "style": "title", "text": "Landed" },
    { "type": "metric", "label": "Bags", "value": "Belt 4" },
    { "type": "text", "text": "Welcome to Dubai." },
    { "type": "text", "style": "caption", "text": "Your phone switched to Dubai time." }
  ],
  "sizes": { "small": [0], "large": [0, 1, 2, 3] },
  "lock": { "circular": 1, "inline": "Bags: belt 4" }
}
```

Delete the widget the next day, or turn it into the trip itinerary.

## Where the data comes from

The phone doesn't know about flights. Gate, delays and baggage come from the airline's or a flight-status service you can reach (a job only works if that service is a public https JSON URL with no key in a header). Without one, ask the user to forward the details or paste the boarding pass text.
