Merge pull request #678 from Tria-plc/alpha

Update arrival time to terminal text
This commit is contained in:
Eyob T.
2026-07-14 16:12:28 +03:00
committed by GitHub
4 changed files with 4 additions and 12 deletions

View File

@@ -727,7 +727,7 @@ export default function ConfirmationPage() {
</div>
<div className="p-4 bg-green-50 dark:bg-green-900/30 border border-green-200 dark:border-green-800 rounded-lg">
<p className="text-sm text-green-800 dark:text-green-300">
Please arrive at the station at least 30 minutes before
Please arrive at the station at least 2 hours before
departure.
</p>
</div>

View File

@@ -1927,9 +1927,6 @@ export default function SeatsPage() {
? allCoachSeats?.find((s: any) => s.id === assignedSeatId)
: null;
const seatLabel = assignedSeat ? buildSeatLabel(assignedSeat) : "";
const seatFare = assignedSeat
? (getSeatFare(assignedSeat) ?? (isPackageBooking ? packageTierPriceMinor ?? null : null))
: isPackageBooking && assignedSeatId ? (packageTierPriceMinor ?? null) : null;
const isActive = i === activePassengerIndex;
const isClickable = i <= maxSelectableIndex;
return (
@@ -1979,11 +1976,6 @@ export default function SeatsPage() {
>
{assignedSeat ? `Seat ${seatLabel}` : "Not Assigned"}
</span>
{assignedSeat && seatFare != null && (
<span className="text-[11px] text-gray-500 dark:text-gray-400">
ETB {(seatFare / 100 * (isPackageBooking ? 2 : 1)).toFixed(2)}
</span>
)}
</div>
</button>
);

View File

@@ -174,7 +174,7 @@ export default function HowToGuidePage() {
</p>
<div className="bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 p-4 rounded-lg">
<p className="text-sm text-green-800 dark:text-green-300">
📱 Show the QR code at the gate for easy check-in. Arrive at least 30 minutes before departure.
📱 Show the QR code at the gate for easy check-in. Arrive at least 2 hours before departure.
</p>
</div>
</div>
@@ -225,7 +225,7 @@ export default function HowToGuidePage() {
<div>
<h3 className="font-semibold text-gray-900 dark:text-gray-100 mb-2">What should I bring on the day of travel?</h3>
<p className="text-sm text-gray-600 dark:text-gray-400">
Bring your ticket (digital or printed), valid ID/passport, and arrive 30 minutes before departure.
Bring your ticket (digital or printed), valid ID/passport, and arrive 2 hours before departure.
</p>
</div>
</div>

View File

@@ -374,7 +374,7 @@ function drawInstructions(doc: jsPDF, y: number, margin: number, pageWidth: numb
doc.text('BEFORE YOU TRAVEL', margin + padX, y + 6, { charSpace: 0.3 });
doc.setFont('helvetica', 'normal'); doc.setFontSize(8);
doc.text('Present this voucher (printed or on your phone) at the terminal for boarding.', margin + padX, y + 11);
doc.text('Please arrive at least 30 minutes before scheduled departure.', margin + padX, y + 15);
doc.text('Please arrive at least 2 hours before scheduled departure.', margin + padX, y + 15);
return y + cardH + 4;
}