-
Notifications
You must be signed in to change notification settings - Fork 448
[WIP] Fix #2981: Increase App Virality #3161
Conversation
b529218
to
f8dd684
Compare
f8dd684
to
8576926
Compare
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.
Code looks super clean, left few questions and code style feedback, will run the code and leave more feedback later,
this PR would be good to be reviewed by @kylehickinson as well as he's worked on the revamped shields panel
Client/Frontend/Browser/BrowserViewController/BrowserViewController+ProductNotification.swift
Outdated
Show resolved
Hide resolved
Client/Frontend/Browser/BrowserViewController/BrowserViewController+ProductNotification.swift
Outdated
Show resolved
Hide resolved
} | ||
} | ||
|
||
var nextTier: BenchmarkTrackerCountTier? { |
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 could get a unit test, to check next value and last value(all tiers passed)
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.
Tests are added 1e20931
I did not notice that this pull request is based on another opened PR, few of my comments might be not applicable then |
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.
Really great UI code :) A couple of nits here and there. One thing you may need to look out for, in addition to review comments, is iOS 12 theming (make sure it works correctly) and accessibility/VoiceOver support.
benchmarkNotificationPresented = false | ||
|
||
dismiss(animated: true) { | ||
// TODO: Share with Email |
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.
Are we waiting on product/design decision on sharing implementations? Perhaps may want to switch to WIP/Draft PR
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.
Yes this is waiting for product/design to finish final sharing part.
I added information in the description about it and marked it as Blocked
01f4b5f
to
ff510f9
Compare
75d6ddf
to
8661b2d
Compare
|
||
override func accessibilityElementCount() -> Int { | ||
return 1 | ||
} | ||
|
||
override func accessibilityElement(at index: Int) -> Any? { | ||
switch index { | ||
case 0: | ||
return titleLabel | ||
default: | ||
return nil | ||
} | ||
} |
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.
How come this is needed? I've never needed this personally to setup a count + element
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.
The view has a container view and inside there are some elements. So what I wanted to achieve here is use title label text as accessibilityElement regardless of what has been added inside and will be added later.
caa6200
to
5b915db
Compare
de862fe
to
f21b9d2
Compare
f21b9d2
to
4f900c4
Compare
0a570de
to
93f7322
Compare
4f900c4
to
ef576b0
Compare
…om Title of Description
f2ddf51
to
c7f1b23
Compare
Closing this PR in order to Open a new PR with UI/feature spec changes |
This Pull Request is implementing the changes on Brave Shields to promote sharing (Increase App Virality)
The implementation currently adding all App Virality features like creating the tracker tier and changes to educational onboarding and changes to the Brave shield screen
Steps to add:
Actual Sharing Part (WIP on design side)
Summary of Changes
This pull request fixes #2981
Submitter Checklist:
NSLocalizableString()
Test Plan:
Screenshots:
Reviewer Checklist:
QA/(Yes|No)
release-notes/(include|exclude)
bug
/enhancement