Files
flights_web/tests/fixtures/api/board-by-flight.json
T
gnezim ad8367c203 Refine Angular parity: titles, airline header, labels
Search page:
- Title and breadcrumb now read the station dictionaries and render the
  human-friendly route heading (e.g. 'Маршрут: Шереметьево - Пулково')
  for route/departure/arrival/flight search URLs, mirroring Angular.

Details page:
- Main H1 becomes 'Информация о рейсе: SU 6805, Москва - Санкт-Петербург'
  (carrier + flight number + origin/destination cities), not a bare
  flight number.
- Add 'Детали рейса' section header above the accordion to match
  Angular's flight-details-wrapper layout.
- Promote the airline block in BoardDetailsHeader: drop the legacy
  OperatorLogo copy with broken asset paths and hand off to the shared
  <OperatorLogo> under src/ui/flights. Render it with the
  'авиакомпания' caption beside the enlarged flight number.
- Replace hardcoded English 'Leg' / 'Total flying time' / 'Aircraft:'
  with i18n keys, added to all nine locale files.

Test harness:
- Add vi.mock for useDictionaries in the three suites that render
  OnlineBoardSearchPage (the new heading helper calls the hook and
  crashed without ApiClientProvider). 1256 tests passing.
2026-04-17 23:48:06 +03:00

132 lines
3.7 KiB
JSON

{
"data": {
"routes": [
{
"routeType": "Direct",
"operatingBy": {
"scheduled": "FV"
},
"status": "Cancelled",
"id": "290cbb03-669f-48fa-b113-091e212e5a1a",
"flightId": {
"dateLT": "2026-04-17",
"carrier": "SU",
"flightNumber": "6951",
"suffix": "",
"date": "2026-04-16"
},
"flyingTime": "01:25:00",
"leg": {
"departure": {
"scheduled": {
"city": "Москва",
"airport": "Шереметьево",
"countryCode": "RU",
"cityCode": "MOW",
"airportCode": "SVO"
},
"latest": {
"city": "Москва",
"airport": "Шереметьево",
"countryCode": "RU",
"cityCode": "MOW",
"airportCode": "SVO"
},
"terminal": "B",
"times": {
"scheduledDeparture": {
"utc": "2026-04-16T21:30:00Z",
"local": "2026-04-17T00:30:00+03:00",
"dayChange": {
"value": 0,
"title": ""
},
"localTime": "00:30",
"tzOffset": 180.0
},
"estimatedBlockOff": {
"utc": "2026-04-16T21:30:00Z",
"local": "2026-04-17T00:30:00+03:00",
"dayChange": {
"value": 0,
"title": ""
},
"localTime": "00:30",
"tzOffset": 180.0
}
}
},
"arrival": {
"scheduled": {
"city": "Санкт-Петербург",
"airport": "Пулково",
"countryCode": "RU",
"cityCode": "LED",
"airportCode": "LED"
},
"latest": {
"city": "Санкт-Петербург",
"airport": "Пулково",
"countryCode": "RU",
"cityCode": "LED",
"airportCode": "LED"
},
"terminal": "1",
"times": {
"scheduledArrival": {
"utc": "2026-04-16T22:55:00Z",
"local": "2026-04-17T01:55:00+03:00",
"dayChange": {
"value": 0,
"title": ""
},
"localTime": "01:55",
"tzOffset": 180.0
},
"estimatedBlockOn": {
"utc": "2026-04-16T22:55:00Z",
"local": "2026-04-17T01:55:00+03:00",
"dayChange": {
"value": 0,
"title": ""
},
"localTime": "01:55",
"tzOffset": 180.0
}
}
},
"flags": {
"checkinAvailable": false,
"purchaseAvailable": false,
"statusAvailable": true,
"routeChanged": false,
"returnToAirport": false
},
"updated": "2026-04-09T07:09:20Z",
"status": "Cancelled",
"operatingBy": {
"scheduled": "FV"
},
"transition": {},
"flyingTime": "01:25:00",
"equipment": {
"serviceType": {
"code": "J"
},
"aircraft": {
"scheduled": {
"type": "SU9",
"title": "Sukhoi SuperJet 100"
},
"actualType": {
"type": "SU9",
"title": "Sukhoi SuperJet 100"
}
}
}
}
}
],
"partners": []
}
}