Update manage booking

This commit is contained in:
Roba Boru
2026-07-07 21:19:04 +03:00
parent 2ef1f8561e
commit bf3fa746eb
4 changed files with 349 additions and 195 deletions

View File

@@ -285,7 +285,11 @@ export class NotificationsService {
const ref = booking?.bookingRef ?? payload.booking.bookingRef;
const amount = this.formatAmount(booking ?? payload.booking);
const currency = (booking ?? payload.booking).displayCurrency ?? 'ETB';
const ticketUrl = `${process.env.PORTAL_URL ?? 'http://localhost:5174'}/booking/confirmation?ref=${ref}`;
// /booking/confirmation only reads from the in-session booking store, so it's a dead
// link once opened outside that session (a different device, or later on the same
// one) — exactly the case an SMS/email link is for. /booking/detail fetches the
// booking fresh from the API by ref, so it works standalone.
const ticketUrl = `${process.env.PORTAL_URL ?? 'http://localhost:5174'}/booking/detail?ref=${ref}`;
// IN_APP — always created.
await this.createInAppNotification(