-
Notifications
You must be signed in to change notification settings - Fork 37
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
Behavioral toast updates #1063
Behavioral toast updates #1063
Conversation
let settings = getSettingsFromConfig() | ||
|
||
resetDismissStreakIfNeeded(dismissStreakResetDays: settings.dismissStreakResetDays) | ||
// TODO: Uncomment before merging -> this is just for review builds so it is easier to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just for the purpose of Ship review so it is easier to test the feature but should be removed before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! One small thing to consider.
} | ||
|
||
func isLessThan48HoursAgo() -> Bool { | ||
self > Date().addingTimeInterval(-48 * 60 * 60) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically isLessThan(daysAgo: 2)
could be used as a backing implementation here. But that's just a nitpick.
Task/Issue URL: iOS PR: duckduckgo/iOS#3552 macOS PR: duckduckgo/macos-browser#3523 **Description**: We’re introducing a behavioral toast on macOS, which required moving logic from the iOS client into BSK. Some of this logic has been updated—specifically, we now only support an event for 3 consecutive refreshes, whereas previously, we had multiple events.
Task/Issue URL:
iOS PR: duckduckgo/iOS#3552
macOS PR: duckduckgo/macos-browser#3523
What kind of version bump will this require?: Major
Description:
We’re introducing a behavioral toast on macOS, which required moving logic from the iOS client into BSK. Some of this logic has been updated—specifically, we now only support an event for 3 consecutive refreshes, whereas previously, we had multiple events.
Steps to test this PR:
Internal references:
Software Engineering Expectations
Technical Design Template