-
Notifications
You must be signed in to change notification settings - Fork 971
Conversation
Super pumped you did this great work but I have to bump to 0.13.3 because we're past frozen date, sorry about that. |
@bbondy No worries; with that added time, I'll do a bit of polishing. |
cool thanks, 0.13.3 freeze is Monday end of day, but historically we're bad about respecting the freeze dates :) |
@bbondy I'll have my changes in before then :) |
@bradleyrichter I put in some logic to center wider badges. Presently, this means anything wider than 20 pixels. Please feel free to polish up any of the styles. |
@jonathansampson Ok, I found a tiny size that is still legible at 72dpi. 5pt Arial padding: 1px/2px Your centering plan should work fine. When we apply this to the brave logo, we should use a dark grey BG color: |
@jonathansampson I don't recall seeing an issue for this (cc: @bradleyrichter) but we have an Asana issue captured for a similar badge on the Lion icon too (so that you know how many items blocked). Would you be able to work on that too? |
Badges? We don't need no stinkin' badges! |
++ as long as this meets @bradleyrichter's ui specs on all platforms |
Badges are happening! Didn't notice any for 1pass even though I had logins for the sites, but may be due to the signing thing for local runs vs builds. My only critique is that I find the value hard to read, but I do recognize that something is there. My only negative mark is that the pocket icon seems to have regressed. Will follow up in a moment with test run results from merging latest master. No merge conflicts detected. |
1179 tests passed, 39 pending, 6 failed. 👍 for merge pending review of pocket icon regression ^^ |
@alexwykoff I don't think 1pw has badges. I've never seen any on Chrome or Safari |
@alexwykoff are you sure the icon for Pocket regressed? When I run master on Windows (without this patch), I'm seeing that icon too. My guess is that the extension has a new icon (maybe Windows only?) It should be the same in Chrome on Windows cc: @srirambv |
@bsclifton I see it on preview 2 but only on x64 but not ia32 build. |
It seems to be only in Preview 2. Preview 1 has the same icon on both x64 & ia32. Problem with this icon is there is no visual confirmation if the page is saved or not. |
@jonathansampson could you squash this up and add some testing steps? @alexwykoff has already reviewed, I can check it out too and if 👍 we can merge 0.13.6 |
Rebased and squashed; @NejcZdovc, I added you as a review for when you have time 😄 @jonathansampson would you be able to edit the original post here to provide a test plan? Looks like we'll want to manually install Honey and then do something which causes updates to happen. More info is appreciated 😄 |
@bsclifton I can edit, and add a test plan. What relevance is the update action? To test this, we'd want to install an extension, and confirm that the browser action icon is one from the |
@jonathansampson sorry- I just meant update as in something that causes the numbers to show inside the icon (like in your screenshot at the top, LastPass has the number 27 in it). I guess that is a good test- just pick LastPass as the default password manager and add some passwords 😄 |
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.
Please use aphrodite and not less
className={cx({ | ||
extensionButton: true | ||
})} | ||
inlineStyles={{ |
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 switch to aphrodite
render () { | ||
return <div | ||
ref='badge' | ||
className='browserActionBadge' |
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 use aphrodite
less/navigationBar.less
Outdated
@@ -511,11 +511,37 @@ | |||
flex-direction: row; | |||
margin-left: 3px; | |||
|
|||
.browserActionButton { |
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.
No more less 😃
@jonathansampson we can help you with the Aphrodite refactor (in fact, @cezaraugusto had put together a really sweet guide which you might find helpful 😄 ) In the meantime, I'll move this to 0.13.7 😄 |
@bsclifton @jonathansampson yeah I can help you with it, not a problem |
@bsclifton Sorry for the Testing Plan confusion. Half-way through this thread became about a Pocket icon regression. That threw me off. Test Plan is now added. Essentially, call the two primary APIs from a LastPass extension resource. When enabled, LastPass opens up a chrome-extension: resource for the purposes of creating an account, or logging in. This page will suffice (as far as access/privileges go) to update the LastPass badge with color and text. Working on Aphrodite changes now. |
d11a1ee
to
cc8d9ef
Compare
@NejcZdovc Moved to Aphrodite (as much as I could). There are a couple of places where we don't know the value of the style property until runtime. Let me know if there's anything that could be further improved. |
@NejcZdovc @bridiver @bradleyrichter Can I get a fresh review? :) |
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.
LGTM
const styles = StyleSheet.create({ | ||
browserActionBadge: { | ||
color: 'white', | ||
bordeRadius: '2px', |
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.
Typo: bordeRadius
-> borderRadius
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.
Done.
|
||
const styles = StyleSheet.create({ | ||
browserActionBadge: { | ||
color: 'white', |
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.
Please use hex #FFF
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.
Done.
can we get some tests for this? Preferably with a mock extension that is only enabled for testing |
- Centers wide badges - Migrate to Aphrodite - Use Hex Colors
e52306f
to
cec76c4
Compare
@bridiver I believe that's doable. |
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.
Great job on this! 😄 It hasn't been re-reviewed since @NejcZdovc had given the feedback (which you then implemented). I followed the test steps and verified this works / looks good. ++++!
git rebase -i
to squash commits (if needed).Fixes #5366
Fixes #5367
Test Plan:
chrome.browserAction.setBadgeText({text:"27"})
chrome.browserAction.setBadgeBackgroundColor({color:'#FF0000'})