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

Refactor FXIOS-10855 #23671 Reenable rating prompt with different rules #24253

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

lmarceau
Copy link
Contributor

@lmarceau lmarceau commented Jan 20, 2025

📜 Tickets

Jira ticket
Github issue

💡 Description

  • Moved default browser user default to DefaultBrowserUtil, much cleaner than having this under the RatingPromptManager
  • Change logic of rating prompt to latest requirements discussed in Document and the task description. This implies we remove the CumulativeDaysOfUseCounter code.
  • Call the rating prompt on init of BVC so we show it on the start of the application
  • Remove rating prompt from dependency container as its not needed there anymore
Rating prompt screenshot

Simulator Screenshot - iPhone 16 Pro Max - 2025-01-20 at 15 52 33

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@lmarceau lmarceau requested a review from a team as a code owner January 20, 2025 20:46
@lmarceau lmarceau changed the title Refactor FXIOS-10855 #23671 rating prompt Refactor FXIOS-10855 #23671 Reenable rating prompt with different rules Jan 20, 2025
- Change logic of rating prompt, remove cumulative days of use counter
- Call rating prompt on init of BVC
- Remove rating prompt from dependency container
@lmarceau lmarceau force-pushed the lm/FXIOS-10855-#23671-rating-prompt branch from aa21c29 to 955ba88 Compare January 21, 2025 15:13
@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Jan 21, 2025

Warnings
⚠️ Pull Request size seems relatively large. If this Pull Request contains multiple changes, please split each into separate PR will helps faster, easier review. Consider using epic branches for work that would affect main.
Messages
📖 Project coverage: 34.08%
📖 Edited 10 files
📖 Created 0 files

Client.app: Coverage: 32.33

File Coverage
BrowserViewController.swift 3.53% ⚠️
GleanPlumbContextProvider.swift 100.0%
AppDelegate.swift 0.0% ⚠️
RouteBuilder.swift 88.8%
DefaultBrowserUtil.swift 88.06%
DependencyHelper.swift 0.0% ⚠️
RatingPromptManager.swift 97.58%

Generated by 🚫 Danger Swift against b4c6f84

@lmarceau lmarceau merged commit f1074ee into main Jan 21, 2025
10 checks passed
@lmarceau lmarceau deleted the lm/FXIOS-10855-#23671-rating-prompt branch January 21, 2025 19:27
@lmarceau
Copy link
Contributor Author

@Mergifyio backport release/v135

Copy link
Contributor

mergify bot commented Jan 21, 2025

backport release/v135

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jan 21, 2025
…es (#24253)

* - Moved default browser user default to default browser util
- Change logic of rating prompt, remove cumulative days of use counter
- Call rating prompt on init of BVC
- Remove rating prompt from dependency container

* Fix tests

* Use time interval instead of calendar

(cherry picked from commit f1074ee)

# Conflicts:
#	firefox-ios/Client/Application/AppDelegate.swift
clarmso pushed a commit that referenced this pull request Jan 22, 2025
…es (#24253)

* - Moved default browser user default to default browser util
- Change logic of rating prompt, remove cumulative days of use counter
- Call rating prompt on init of BVC
- Remove rating prompt from dependency container

* Fix tests

* Use time interval instead of calendar
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