Skip to content

Conversation

mneudert
Copy link
Member

@mneudert mneudert commented Apr 9, 2024

Description:

If a Matomo instance has no license key, and the user is a super user, the "start free trial" CTA will currently show an informational dialog how to obtain a license manually.

This PR changes that dialog to allow direct creation of a new marketplace account from within an instance. After the account was created, the new license key will automatically be added to the instance, and then the requested free trial will be started.

In addition to this new workflow, the visuals of the existing "wait while we start your free trial" loading modal have been update to match the "create an account and start your free trial" modal.

Uses DEV-17921
Refs DEV-17920
Refs DEV-17922

Review

@michalkleiner
Copy link
Contributor

@mneudert when an invalid email is added, the value in the error message has escaped quotes showing as words. Screenshot added to JIRA.

@mneudert mneudert force-pushed the dev-17922 branch 5 times, most recently from 054a827 to b4a4c23 Compare April 10, 2024 17:50
@mneudert mneudert marked this pull request as ready for review April 10, 2024 17:53
@mneudert mneudert added this to the 5.1.0 milestone Apr 10, 2024
@mneudert mneudert added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. c: Marketplace For issues that affect the Matomo Plugin Marketplace where you can download plugins. Needs Review PRs that need a code review labels Apr 10, 2024
@mneudert mneudert requested a review from a team April 10, 2024 17:54
Copy link
Contributor

@michalkleiner michalkleiner left a comment

Choose a reason for hiding this comment

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

Nice work bringing this together @mneudert!

Just a minor thing, otherwise looks ok to me. Would still appreciate one more review @caddoo / @sgiehl.

} as unknown as ModalOptions;

if (immediateTransition) {
modalOptions.inDuration = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

The previous construction with the ternary operator was breaking the onOpenEnd callback causing it to never be called for the undefined value, so it's best if the config option is not set at all when not needed.

@michalkleiner michalkleiner requested a review from a team April 11, 2024 05:58
@michalkleiner
Copy link
Contributor

michalkleiner commented Apr 11, 2024

@mneudert I've added a small tweak to focus the email field when the modal is open and also allow submitting it by Enter key. Have updated the UI test screenshots accordingly.

@caddoo caddoo merged commit 2684771 into 5.x-dev Apr 15, 2024
@caddoo caddoo deleted the dev-17922 branch April 15, 2024 07:48
@mneudert mneudert mentioned this pull request May 6, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Marketplace For issues that affect the Matomo Plugin Marketplace where you can download plugins. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Needs Review PRs that need a code review
Development

Successfully merging this pull request may close these issues.

4 participants