AnkiHubSoftware / ankihub_addon

1 stars 0 forks source link

[BUILD-474] Create a upsell dialog on chatbot in the addon #994

Closed augdiebold closed 3 months ago

augdiebold commented 3 months ago

Related issues

BUILD-474

Proposed changes

Show up a dialog for users who does not have access to chatbot feature to redirect them to the plans page on webapp.

How to reproduce

User with no access

  1. Select any user with a plan lower than Premium
  2. Check if the user is not in trial period (user.is_trialing)
  3. Go to the addon
  4. Select the ANKING deck
  5. Click on the robot icon
  6. An upsell dialog should appear
  7. Click upgrade
  8. Check if you were redirected to the plans page

User with access

  1. Select any user with a Premium plan
  2. Do the same process above
  3. The upsell dialog should not appear and the user should be able to use the chatbot

Screenshots and videos

image (12)

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 55.55556% with 4 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@1f9da00). Learn more about missing BASE report.

Files Patch % Lines
ankihub/gui/reviewer.py 50.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #994 +/- ## ======================================= Coverage ? 87.78% ======================================= Files ? 67 Lines ? 6829 Branches ? 0 ======================================= Hits ? 5995 Misses ? 834 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.