-
Notifications
You must be signed in to change notification settings - Fork 136
Implemented Brave Rewards Ads feedback loop #465
Conversation
e780d16
to
e2432bf
Compare
package/package.json
Outdated
@@ -2,7 +2,7 @@ | |||
"name": "brave-ui", | |||
"main": "index.js", | |||
"sideEffects": false, | |||
"version": "0.38.0", | |||
"version": "0.34.4", |
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.
We shouldn't need to make updates to this file anymore (unless we are doing an NPM publish)
Was this inadvertent or did react-storybook-addon-chapters
need that bump?
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.
inadvertent for both
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.
Removed.
this.getAdContent(row.adContent, i) | ||
), | ||
customStyle: { | ||
width: '70% !important', |
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.
I know we have these inline styles in the tableContribute
component, but could we offload these to styled components? Let me know if there was some other limitation
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.
Offloaded. In fact, only the td was effective.
9c8ee28
to
82218a7
Compare
2ceaee4
to
f45234d
Compare
7550820
to
12f9bde
Compare
cc @jenn-rhim |
12f9bde
to
2a456d2
Compare
60fd667
to
c702096
Compare
id?: string | ||
isMobile?: boolean | ||
adsPerHour?: number | ||
adsPerDay?: number |
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.
let's improve naming on this one. This one is used to display Ads you've received in the past 7 days
. Maybe totalDays
?
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.
adsPerDay is correct which matches bat-native-ads and is the amount of ads per day. Unless @emerick this is not the same?
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 one is not the same
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.
{getLocale('adsHistoryTitle')} | ||
</StyledAdsHistoryTitle> | ||
<StyledSubTitleText> | ||
{getLocale('adsHistorySubTitle')} |
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 one needs to accept variable as currently is fixed to 7 Days
. We need to pass in totalDays
{getLocale('adsCurrentlyViewing')} | ||
</StyledAdsInfoText> | ||
<StyledAdsPerHourText> | ||
{(adsPerHour || '0') + (adsPerHour !== 1 ? getLocale('adsPerHourPlural') : getLocale('adsPerHourSingular'))} |
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 will not work for all languages. In Slovenian we have special variation for double as well
brandUrl: string | ||
brandDisplayUrl: string | ||
likeAction: number | ||
adAction: 'click' | 'dismiss' | 'view' | 'landed' |
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.
let's export this as it could be useful for client when doing checks
@emerick please check my previous comments about theme color and fonts. Thank you |
@NejcZdovc Think I addressed all of the open feedback items, please take a look when you have a moment. Thanks! |
52fa96a
to
f81c208
Compare
Implemented Brave Rewards Ads feedback loop
Partial for brave/brave-browser#4047
Changes
Implemented Ads feedback loop
Test plan
Link / storybook path to visual changes
Integration
Does this contain changes to src/components or src/
Does this contain changes to src/features for brave-core?