From 05a50710bd9e3370eada483c564db830a42e401d Mon Sep 17 00:00:00 2001 From: Kristina <7614497+khjrtbrg@users.noreply.github.com> Date: Tue, 28 Oct 2025 15:39:11 +0100 Subject: [PATCH] [web] display Stripe invoice line items on preview change page (#29280) GitOrigin-RevId: 267586a33f19f6931e2eb76b33fdf569aa07b4d3 --- .../app/src/Features/Subscription/PaymentProviderEntities.js | 2 +- .../components/preview-subscription-change/root.tsx | 1 + services/web/types/subscription/subscription-change-preview.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/app/src/Features/Subscription/PaymentProviderEntities.js b/services/web/app/src/Features/Subscription/PaymentProviderEntities.js index 7d1d7a2226..9485eb0656 100644 --- a/services/web/app/src/Features/Subscription/PaymentProviderEntities.js +++ b/services/web/app/src/Features/Subscription/PaymentProviderEntities.js @@ -13,7 +13,7 @@ * @property {number} subtotal * @property {number} discount * @property {number} tax - * @property {boolean} isAiAssist + * @property {boolean} [isAiAssist] */ const OError = require('@overleaf/o-error') diff --git a/services/web/frontend/js/features/subscription/components/preview-subscription-change/root.tsx b/services/web/frontend/js/features/subscription/components/preview-subscription-change/root.tsx index 7ebcfc301e..c54d10c9a6 100644 --- a/services/web/frontend/js/features/subscription/components/preview-subscription-change/root.tsx +++ b/services/web/frontend/js/features/subscription/components/preview-subscription-change/root.tsx @@ -39,6 +39,7 @@ function PreviewSubscriptionChange() { (item, index, arr) => { if (!item.isAiAssist) return true + // TODO: this can be removed when all subscriptions are using Stripe const isCanceledByAnotherItem = arr.some( (otherItem, otherIndex) => otherIndex !== index && diff --git a/services/web/types/subscription/subscription-change-preview.ts b/services/web/types/subscription/subscription-change-preview.ts index 4821b650e7..c6fd717370 100644 --- a/services/web/types/subscription/subscription-change-preview.ts +++ b/services/web/types/subscription/subscription-change-preview.ts @@ -9,7 +9,7 @@ export type ImmediateCharge = { subtotal: number discount: number tax: number - isAiAssist: boolean + isAiAssist?: boolean }[] }