Improvement #30585
openImprovement #29635: Code Review, Upgrade and changes in Prompt of Email Boat
Feature: Implement End-to-End Refundable Flight Filtering and Display
100%
Description
This task covers the integration of the "Refundable" search parameter across the entire pipeline, from AI extraction to the final HTML display.
The goal is to allow users to explicitly request refundable or non-refundable flights, ensuring the pipeline filters the results correctly and displays the corresponding price on the quote card.
Updated by Sachin Suresh 5 months ago
- Status changed from Assigned to In Progress
Updated by Sachin Suresh 5 months ago
- Status changed from In Progress to Fixed not Tested
- % Done changed from 0 to 100
The Advanced Refundable Fare Selection logic has been implemented and successfully verified.
Verification Details:
Logic Check: Updated renderTripCard in htmlGenerator.js to intelligently search trip.AdditionalFares based on the standardizedParams.Refundable flag.
Pricing Check: Confirmed that when the prompt contains "refundable flights," the displayed price (KWD XXX.XXX) on the card matches the Total field of one of the IsRefundable: true objects within the trip's AdditionalFares.
Badge Check: Confirmed the correct "Refundable" badge is displayed alongside the selected fare price.
Integration: Confirmed that for non-refundable requests, the system correctly defaults back to showing the overall cheapest price from the AdditionalFares list.