Skip to content

The Trial status sheet names the upgrade's price for a pack owner (#968) - #970

Merged
Skeyelab merged 1 commit into
mainfrom
agent3/trial-notice-upgrade
Oct 27, 2026
Merged

Skeyelab merged 1 commit into
mainfrom
agent3/trial-notice-upgrade

Conversation

@Skeyelab

Copy link
Copy Markdown
Member

Fixes #968.

For a pack owner, the Trial status sheet's notice line now reads "The upgrade to Pro is a one-time purchase of , shared with your family. Nothing is charged when the Trial ends." It matches the upgrade button below it (#967). TrialStatusNotice gets upgrade: Bool = false, and the sheet passes the price of the product it offers. Until that product loads, the price line is left out, as before. Everyone without a bought pack reads exactly what they read before.

"Shared with your family" holds for the upgrade: CONTEXT.md's #705 notes and the StoreKit config (familyShareable: true) say so. Family Sharing has to be turned on when the product is created in App Store Connect (#857).

Tests (RecordingTests/TrialTests)

  • statusNoticeForAPackOwner: red first, with the flag added but unused: ✘ ... TrialTests.swift:96:9: Expectation failed: text.contains("The upgrade to Pro is a one-time purchase of $12.00"). The second expectation in that first run was wrongly written: the upgrade line contains "Pro is a one-time purchase of", so it could never pass. It now checks that no line starts with "Pro is".
  • statusNotice has an added check that the default line still starts with "Pro is a one-time purchase of $19.99". It passed on its first run.

Full ./scripts/verify.sh passed: package tests, macOS build and AppTests, iOS Simulator build, 151s. After a test-only check and a comment rewrap, the package tests and VERIFY_QUICK=1 passed again.

Not checked or left out

  • Only tests, not a device. PackAvailability is Debug only.
  • The pre-Trial TrialDisclosure (the App Review 3.1.1 text in TrialSheet) still names the full Pro price to a pack owner. It's the same mismatch, but it is review copy, so it's left for its own issue.

Since #967 the sheet's button offers a pack owner the upgrade, but the
notice above it still read "Pro is a one-time purchase of <full price>".
TrialStatusNotice takes an upgrade flag, and the sheet passes the
offered product's price, so the line reads "The upgrade to Pro is a
one-time purchase of <upgrade price>". Everyone else reads what they
read before.

Assisted-by: Claude Code:claude-opus-5-5
@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Skeyelab
Skeyelab merged commit 43356d9 into main Oct 27, 2026
11 checks 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.

The Trial status sheet tells a pack owner Pro costs the full price, above the upgrade button

1 participant