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

feat(premium): offline premium upsell #490

Merged
merged 16 commits into from
Mar 21, 2023
Merged

feat(premium): offline premium upsell #490

merged 16 commits into from
Mar 21, 2023

Conversation

timc-mozilla
Copy link
Contributor

@timc-mozilla timc-mozilla commented Mar 13, 2023

Summary

  • Offline premium upsell

References

Implementation Details

  • Added offline premium upsell screen

Test Steps

  • as an offline user, go to settings
  • click "Go Premium"
  • should see normal upsell screen
  • go back to settings
  • go offline
  • click "Go Premium"
  • should see modified upsell with bottom notification

PR Checklist:

  • Added Unit / UI tests
  • Self Review (review, clean up, documentation, run tests)
  • Basic Self QA

Screenshots

image

@timc-mozilla timc-mozilla requested a review from a team as a code owner March 13, 2023 21:12
@pocket-ci
Copy link
Contributor

pocket-ci commented Mar 14, 2023

Messages
📖 No SwiftLint violations! 🎉
📖 Project coverage: 82.48%
📖 Edited 8 files
📖 Created 0 files

PocketKit: Coverage: 82.48

File Coverage
SettingsView.swift 82.68%
MainViewModel.swift 80.34%
AccountViewModel.swift 54.33%
PremiumUpgradeViewModel.swift 84.72%
PremiumUpgradeView.swift 88.73%
Strings.swift 100.0%

Generated by 🚫 Danger Swift against a1f5c3f

Copy link
Collaborator

@Gio2018 Gio2018 left a comment

Choose a reason for hiding this comment

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

Hey @timc-mozilla , as shared on Slack, I am still seeing the regular premium upgrade view after going offline, is this expected?

@Gio2018 Gio2018 self-requested a review March 16, 2023 20:57
Copy link
Collaborator

@Gio2018 Gio2018 left a comment

Choose a reason for hiding this comment

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

Awesome @timc-mozilla !! Approving this, we just need to follow up on updating the screen when connection status changes while still viewing the screen, but we can totally follow up with another PR!

ZStack(alignment: .topTrailing) {
if viewModel.annualName.isEmpty {
PremiumUpgradeButton(isYearly: true)
if !viewModel.isOffline {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The online view could potentially be extracted into its own view for more readability, but it's nothing blocking and we can address it in a separate PR

@timc-mozilla timc-mozilla merged commit 216f6ea into develop Mar 21, 2023
@timc-mozilla timc-mozilla deleted the IN-1207 branch March 21, 2023 19:36
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.

3 participants