Skip to content

ECTO-2519 - improve IAP checkout subscription change UI#137

Open
Jannik (qysp) wants to merge 1 commit intoevaluation/ECTO-2555from
refactoring/ECTO-2519
Open

ECTO-2519 - improve IAP checkout subscription change UI#137
Jannik (qysp) wants to merge 1 commit intoevaluation/ECTO-2555from
refactoring/ECTO-2519

Conversation

@qysp
Copy link
Collaborator

@qysp Jannik (qysp) commented Mar 20, 2026

It kinda builds up on the previous ticket (ECTO-2555).
Once the other PR is merged, this should go into the trunk as well. Until then this won't get merged.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the in-app-purchase checkout subscription change UI by refining displayed plan details (names, durations, hints) and tightening up related typing/i18n.

Changes:

  • Introduces a shared InAppPurchaseVariant type and aligns cart/subscription-change typing (including nextBookingDate as string).
  • Updates the subscription change component UI/computed props (plan names, durations, prorated price handling, upgrade vs downgrade hint text).
  • Adjusts i18n snippets (duration labels, separate upgrade/downgrade hints, variant labels) and improves currency formatting in checkout overview options.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Resources/app/administration/src/module/sw-in-app-purchases/types/index.ts Adds InAppPurchaseVariant and updates related type fields (variant typing, nextBookingDate).
src/Resources/app/administration/src/module/sw-in-app-purchases/snippet/en.json Updates duration wording and adds separate upgrade/downgrade hints + variant labels.
src/Resources/app/administration/src/module/sw-in-app-purchases/snippet/de.json Same as EN, with German wording updates.
src/Resources/app/administration/src/module/sw-in-app-purchases/component/sw-in-app-purchase-checkout-subscription-change/sw-in-app-purchase-checkout-subscription-change.spec.js Expands/updates unit tests for new computed props and hint behavior.
src/Resources/app/administration/src/module/sw-in-app-purchases/component/sw-in-app-purchase-checkout-subscription-change/sw-in-app-purchase-checkout-subscription-change.scss Adds truncation/layout styling for plan names and fixes selector typo.
src/Resources/app/administration/src/module/sw-in-app-purchases/component/sw-in-app-purchase-checkout-subscription-change/sw-in-app-purchase-checkout-subscription-change.html.twig Updates markup to show plan names, conditional durations, conditional hint, and uses new computed props.
src/Resources/app/administration/src/module/sw-in-app-purchases/component/sw-in-app-purchase-checkout-subscription-change/index.ts Refactors computed logic (durations, hint text, prorated logic, year formatting).
src/Resources/app/administration/src/module/sw-in-app-purchases/component/sw-in-app-purchase-checkout-overview/index.ts Uses currency filter + duration translation to build more user-friendly purchase option labels.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@qysp Jannik (qysp) force-pushed the refactoring/ECTO-2519 branch from b8f939c to cf3972b Compare March 20, 2026 10:11
@qysp Jannik (qysp) force-pushed the refactoring/ECTO-2519 branch from cf3972b to 977d5a6 Compare March 20, 2026 10:21
@qysp Jannik (qysp) marked this pull request as ready for review March 20, 2026 10:30
@qysp Jannik (qysp) requested review from a team and Kai Gossel (kaigossel) March 20, 2026 10:31
@cyl3x
Copy link
Contributor

Michel (cyl3x) commented Mar 20, 2026

This probably should be backported to 6.6.x as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants