Skip to content

fix(confirm): remove hardcoded "access continues until" notice#27

Merged
lucasksoares merged 1 commit into
mainfrom
fix/remove-access-continues-notice
Jul 1, 2026
Merged

fix(confirm): remove hardcoded "access continues until" notice#27
lucasksoares merged 1 commit into
mainfrom
fix/remove-access-continues-notice

Conversation

@lucasksoares

@lucasksoares lucasksoares commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Why

Retention team feedback (Motley Fool): the "Your access continues until {date}." line on the confirm step must go. It rendered whenever the subscription had a currentPeriod.end, with no awareness of the cancel mode — so it showed even under "cancel immediate", where there is no continued access, and couldn't be turned off via config.

Change

  • Remove the ck-period-end notice (plus the now-unused formatPeriodEnd(...) call and import) from DefaultConfirm.
  • Update the test to assert the line no longer renders.

formatPeriodEnd, the periodEndNotice classNames key, and the .ck-period-end CSS are left in place to keep the change non-breaking.

Verification

  • vitest run — 169 passed / 8 skipped
  • biome check — clean

@lucasksoares lucasksoares requested a review from robert-moore July 1, 2026 18:11
The confirm step always rendered "Your access continues until {date}."
whenever the subscription had a current period, with no awareness of the
merchant's cancel mode. For merchants using immediate cancellation there
is no continued access, so the sentence was incorrect and could not be
turned off via config.

Removes the notice from DefaultConfirm and updates the test to assert it
no longer renders. The formatPeriodEnd helper and periodEndNotice
classNames key are left in place to avoid a breaking API change.
@lucasksoares lucasksoares force-pushed the fix/remove-access-continues-notice branch from 3c89b73 to b31e1ba Compare July 1, 2026 18:27
@lucasksoares lucasksoares marked this pull request as ready for review July 1, 2026 18:55
@lucasksoares lucasksoares merged commit e79d669 into main Jul 1, 2026
1 check passed
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.

2 participants