Skip to content

feat(juce): show endless trials without a countdown - #42

Merged
TobbenTM merged 2 commits into
mainfrom
endless-trials
Oct 13, 2026
Merged

TobbenTM merged 2 commits into
mainfrom
endless-trials

Conversation

@TobbenTM

@TobbenTM TobbenTM commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Moonbase products can now offer trials that never expire, and such a trial's token carries no exp. The core SDK already accepted that (expires_at is empty and nothing expires it), but the JUCE module's trial screen read the missing expiry as zero days: "TRIAL · 0 DAYS LEFT", "0 of 14 days remaining" and an empty progress bar on a trial that was still running.

ActivationController::trialIsEndless() says when the loaded trial has no end date. The trial screen then shows a plain "TRIAL" badge, says "Your trial has no time limit", and drops the progress bar and the space it took. The ended screen (a vendor can still end an endless trial, which the API reports as expired) leaves out the "N-day" length for a trial that had none, and says the trial "has ended" when there is no end date to name; before, that case read "Your trial of Solstice. Unlock the full version…". trialLengthDays and the JUCE module guide note that an endless trial ignores it.

Two controller tests cover an endless trial staying unlocked through a license-watch tick with no countdown, and one the vendor ends going to the Expired screen. Two new snapshots, 06d-trial-endless and 06e-trial-endless-ended, will show up as new in Argos. The JUCE suite passes on macOS (107 tests) and the module headers are in sync.

This also fixes the Windows CI failure on main in file_license_store readers never catch the license half-written. On Windows, std::filesystem::rename keeps the renamed license open with delete access for a moment after it lands, and std::ifstream doesn't share delete access. So a reader that opened the license right then got a sharing violation, and load_local_license threw storage_error. Opening the license now uses the same short Windows retry the rename already used, pulled out into one helper; other platforms still try once.

Moonbase products can now offer trials that never expire, whose tokens carry no
exp. The core SDK already accepted them, but the JUCE module's trial screen read
the missing expiry as zero days: "TRIAL · 0 DAYS LEFT", "0 of 14 days remaining"
and an empty progress bar on a trial that was still running.

ActivationController gains trialIsEndless(). The trial screen then shows a plain
"TRIAL" badge, says the trial has no time limit and drops the bar. The ended
screen leaves out the "N-day" length for a trial that had none, and says the
trial "has ended" when there is no end date to name, instead of a sentence
without a verb.
@argos-ci

argos-ci Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Approved by Tobias Lønnerød Madsen 2 added Oct 13, 2026, 7:05 AM

std::filesystem::rename on Windows keeps the renamed license open with
DELETE access for a moment after it lands, and std::ifstream does not share
delete access, so a reader opening the license in that window got a sharing
violation and load_local_license threw storage_error. The torn-write test
caught this on the Windows runner.

Reading now goes through the same short retry the rename already used on
Windows, pulled out into one helper. Elsewhere it still tries once.
@TobbenTM
TobbenTM merged commit a664cda into main Oct 13, 2026
22 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 13, 2026
# [4.10.0](v4.9.2...v4.10.0) (2026-10-13)

### Features

* **juce:** show endless trials without a countdown ([#42](#42)) ([a664cda](a664cda))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.10.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant