Allow users to request a premium feature trial by sgiehl · Pull Request #22139 · matomo-org/matomo · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to request a premium feature trial #22139

Merged
merged 28 commits into from
Apr 29, 2024
Merged

Allow users to request a premium feature trial #22139

merged 28 commits into from
Apr 29, 2024

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Apr 20, 2024

Description:

Non super users will now be allowed to request the trial of a premium feature.
When a request is sent all super users will receive an email. In addition a notification will be displayed to every super user.

Every request by default has an expiration time of 27 days. This can be configured using config flag plugin_trial_request_expiration_in_days. If no superuser installs the plugin, no user can request a plugin trial again for the same plugin until the previous request expired.
Setting the config flag to -1 will completely disable plugin trial requests.

Notifications for super users can be dismissed. When this is done they won't be shown again for this specific super user. Other super users will still see it until they dismiss it. Dismissing notifications won't impact expiration time. So even if every super user dismisses the notification a new request will first be possible when the request expired.

Review

@sgiehl sgiehl added this to the 5.1.0 milestone Apr 20, 2024
@sgiehl sgiehl force-pushed the dev-17986 branch 3 times, most recently from d5e94a0 to 8998da8 Compare April 22, 2024 07:58
@sgiehl sgiehl requested a review from a team April 22, 2024 09:17
@sgiehl sgiehl added 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 c: Premium plugins For bugs and features related to premium plugins. labels Apr 22, 2024
@sgiehl sgiehl force-pushed the dev-17986 branch 4 times, most recently from 13c23f5 to c780fd7 Compare April 25, 2024 13:48
sgiehl and others added 6 commits April 26, 2024 11:13
@sgiehl sgiehl merged commit 075845c into 5.x-dev Apr 29, 2024
20 of 25 checks passed
@sgiehl sgiehl deleted the dev-17986 branch April 29, 2024 08:35
valentinab25 pushed a commit to valentinab25/matomo that referenced this pull request Jan 27, 2025
* Allow users to request a trial for a premium plugin

* Update expected screenshots

* Implement plugin trial notification

* Change button if trial was already requested

* use correct notification message

* restructure code

* use DI in API

* fix possible problem with non alphanum userlogins

* code cleanup & tests

* Add UI tests for dismissable notification

* Disable trial requests when config set to -1

* disallow trial requests for super users again

* Automatically cancel/remove a plugin trial request when the plugin is installed

* test debug

* Properly clean up trial request confirmation state on close

* Use plugin display name for all trial related frontend dialogs/notifications

* use plugin display name in email

* Allow trial request from plugin details modal

* store plugin display name for notifications

* Use more resilient action/event state passing

* Update expected screenshots

* Build vue components

* don't sanitize api parameters for requestTrial

* Ensure plugin name in email is escaped

* Fix tests

* Implement hash param to trigger new plugin overlay (matomo-org#22167)

* Implement hash param to trigger new plugin overlay

* Update plugins/Marketplace/vue/src/PluginList/PluginList.vue

---------

Co-authored-by: Marc Neudert <marc@innocraft.com>

* Build vue files

* Update trial request notification plugin display name expectations

---------

Co-authored-by: Marc Neudert <marc@innocraft.com>
Co-authored-by: mneudert <mneudert@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Premium plugins For bugs and features related to premium 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants