8000 PM-15375: show App review prompt. by ezimet-livefront · Pull Request #1207 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PM-15375: show App review prompt. #1207

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

Merged
merged 17 commits into from
Dec 17, 2024
Merged

Conversation

ezimet-livefront
Copy link
Collaborator
@ezimet-livefront ezimet-livefront commented Dec 13, 2024

🎟️ Tracking

PM-15375
PM-15377
PM-15415
PM-15531

📔 Objective

  • Added a feature flag to remotely enable or disable the app review prompt.
  • Added a debug feature flag to show a toast notification during debugging if the user is eligible for the app review prompt.
  • Implemented a 3-second delay before showing the app review prompt when the user is eligible.

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@@ -345,6 +346,20 @@ struct VaultListView: View {
.task(id: store.state.vaultFilterType) {
await store.perform(.streamVaultList)
}
.task(id: store.state.isEligibleForAppReview) {
if store.state.isEligibleForAppReview {
SKStoreReviewController.requestReview()
Copy link
Collaborator Author
@ezimet-livefront ezimet-livefront Dec 13, 2024

Choose a reason for hiding this comment

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

we can replace this with this new api, when we bump the version to iOS 16.

    @Environment(\.requestReview) var requestReview
    requestReview()

Copy link
Member

Choose a reason for hiding this comment

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

🤔 Is there a way we could use a #avaialble check here to use the controller vs the environment approach one? Because SKStoreReviewController has been deprecated in iOS 18.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this has been updated.

Copy link
Contributor
github-actions bot commented Dec 13, 2024

Logo
Checkmarx One – Scan Summary & Details62ca9e8f-81ba-4a7d-ad2b-65867e4afc5b

No New Or Fixed Issues Found

Copy link
codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 11 lines in your changes missing coverage. Please review.

Project coverage is 89.41%. Comparing base (361cc87) to head (89c1acc).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...hared/UI/Vault/Vault/VaultList/VaultListView.swift 52.38% 10 Missing ⚠️
.../UI/Vault/Vault/VaultList/VaultListProcessor.swift 97.22% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1207      +/-   ##
==========================================
- Coverage   89.42%   89.41%   -0.01%     
==========================================
  Files         692      692              
  Lines       43995    44059      +64     
==========================================
+ Hits        39343    39396      +53     
- Misses       4652     4663      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member
@fedemkr fedemkr left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@ezimet-livefront ezimet-livefront merged commit fcdc0ed into main Dec 17, 2024
9 checks passed
@ezimet-livefront ezimet-livefront deleted the PM-15375/review-prompt branch December 17, 2024 18:59
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.

2 participants
0