From 72e6149320ee72d7424bf3176a87914813085fc2 Mon Sep 17 00:00:00 2001 From: gnezim Date: Thu, 23 Apr 2026 14:59:13 +0300 Subject: [PATCH] Restore Schedule inline-expand to match Angular (revert TIRREDESIGN-4 forward-ship) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Schedule row had been switched to navigate-on-click in commit a26adad as a forward-looking implementation of TIRREDESIGN-4. Angular on the live test stand still uses inline-expand (verified 2026-04-23 on flights.test.aeroflot.ru — clicking a row toggles .flight-list-item.selected and renders schedule-search-result-flight- body / connecting-flight-body inline). React must not lead Angular — restore the inline-expand wiring so both stays in lockstep. Drops the schedule-specific branch in FlightList that disabled expandable and wired onClick to navigate. The expand-via-onFlightClick- or-renderExpandedBody rule applies uniformly to Board and Schedule rows again, exactly like before commit a26adad. --- src/ui/flights/FlightList.tsx | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/ui/flights/FlightList.tsx b/src/ui/flights/FlightList.tsx index d4a7a2b5..61a64198 100644 --- a/src/ui/flights/FlightList.tsx +++ b/src/ui/flights/FlightList.tsx @@ -116,22 +116,19 @@ export const FlightList: FC = ({ onFlightClick(flight), - // When expandable is off we need a row-level onClick to - // trigger navigation — rowClickable in FlightCard depends - // on `expandable || Boolean(onClick)`. - ...(direction === "schedule" - ? { onClick: () => onFlightClick(flight) } - : {}), - } + ? { onViewDetails: () => onFlightClick(flight) } : {})} {...(renderExpandedBody ? { renderExpandedBody } : {})} {...(renderActions ? { renderActions } : {})}