Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

[WIP] Fix #2981: Increase App Virality #3161

Closed
wants to merge 45 commits into from

Conversation

soner-yuksel
Copy link
Contributor

@soner-yuksel soner-yuksel commented Dec 23, 2020

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:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()

Test Plan:

  • Press Brave Shields on Top Bar
  • Checkout the changes on blocked row
  • Press the share button and checkout the share type screen with row types

Screenshots:

101842591-65501b00-3b16-11eb-94ed-9c31d3fc053b

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • release-notes/(include|exclude)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue is assigned to a milestone (should happen at merge time).

@soner-yuksel soner-yuksel added the blocked: needs info Needs further information before work can commence label Dec 23, 2020
@soner-yuksel soner-yuksel added this to the 1.23 milestone Dec 23, 2020
@soner-yuksel soner-yuksel self-assigned this Dec 23, 2020
@soner-yuksel soner-yuksel linked an issue Dec 23, 2020 that may be closed by this pull request
Copy link
Contributor

@iccub iccub left a 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

}
}

var nextTier: BenchmarkTrackerCountTier? {
Copy link
Contributor

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)

Copy link
Contributor Author

@soner-yuksel soner-yuksel Jan 8, 2021

Choose a reason for hiding this comment

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

Tests are added 1e20931

@iccub
Copy link
Contributor

iccub commented Jan 4, 2021

I did not notice that this pull request is based on another opened PR, few of my comments might be not applicable then

Copy link
Collaborator

@kylehickinson kylehickinson left a 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
Copy link
Collaborator

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

Copy link
Contributor Author

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

@soner-yuksel soner-yuksel force-pushed the educational-product-notification branch from 01f4b5f to ff510f9 Compare January 6, 2021 18:05
@soner-yuksel soner-yuksel force-pushed the app-virality-increase branch 2 times, most recently from 75d6ddf to 8661b2d Compare January 8, 2021 19:56
Comment on lines +213 to +225

override func accessibilityElementCount() -> Int {
return 1
}

override func accessibilityElement(at index: Int) -> Any? {
switch index {
case 0:
return titleLabel
default:
return nil
}
}
Copy link
Collaborator

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

Copy link
Contributor Author

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.

@kylehickinson kylehickinson changed the title Fix#2081: Increase App Virality Fix #2981: Increase App Virality Jan 11, 2021
@soner-yuksel soner-yuksel force-pushed the educational-product-notification branch from caa6200 to 5b915db Compare January 11, 2021 19:15
@soner-yuksel soner-yuksel force-pushed the app-virality-increase branch from de862fe to f21b9d2 Compare January 11, 2021 19:16
@kylehickinson kylehickinson removed this from the 1.23 milestone Jan 11, 2021
@soner-yuksel soner-yuksel force-pushed the app-virality-increase branch from f21b9d2 to 4f900c4 Compare January 11, 2021 20:30
@soner-yuksel soner-yuksel force-pushed the educational-product-notification branch from 0a570de to 93f7322 Compare January 12, 2021 22:15
@soner-yuksel soner-yuksel force-pushed the app-virality-increase branch from 4f900c4 to ef576b0 Compare January 12, 2021 22:33
Base automatically changed from educational-product-notification to development January 14, 2021 18:53
@soner-yuksel soner-yuksel force-pushed the app-virality-increase branch from f2ddf51 to c7f1b23 Compare January 14, 2021 23:10
@soner-yuksel soner-yuksel changed the title Fix #2981: Increase App Virality [WIP} Fix #2981: Increase App Virality Jan 15, 2021
@soner-yuksel soner-yuksel changed the title [WIP} Fix #2981: Increase App Virality [WIP] Fix #2981: Increase App Virality Jan 15, 2021
@soner-yuksel soner-yuksel marked this pull request as draft January 15, 2021 00:12
@soner-yuksel
Copy link
Contributor Author

Closing this PR in order to Open a new PR with UI/feature spec changes

@soner-yuksel soner-yuksel deleted the app-virality-increase branch April 6, 2021 14:05
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
blocked: needs info Needs further information before work can commence
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase App Virality
4 participants