Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Doorhanger list view updates #64

Merged
merged 27 commits into from
Feb 4, 2019
Merged

Doorhanger list view updates #64

merged 27 commits into from
Feb 4, 2019

Conversation

meandavejustice
Copy link
Contributor

@meandavejustice meandavejustice commented Jan 22, 2019

Fixes #12

Screenshots or Videos

list-button-hover
info-hover
default-list
filtered
list-hover

To Do

  • Add banner with filtered item count in search view (waiting till sync work is done so I have access to data in component)

jaredhirsch and others added 17 commits January 9, 2019 09:49
When webdriver opens the extension page, the browser.experiments.logins
API is not present. When I open the extension page myself, via going to
about:debugging, and doing
  browser.tabs.create({
    url: browser.extension.getURL(
           "/test/integration/test-pages/logins-api.html")
  }),
the test page seems just fine. Maybe webdriver needs some magic powers?
* The webextensions framework auto-inserts 'null' default values for any
specified keys that are missing, causing updates to break
LoginManager.modifyLogin() type checking. Filter out those null values.

* Create a coding convention to make clearer which things are vanilla JS
objects with login fields, which are nsILoginInfo objects, and which are
nsIPropertyBags used to modifyLogin.
Initial minimal logins API connection to datastore
@ghost ghost assigned meandavejustice Jan 23, 2019
@jaredhirsch
Copy link
Contributor

@meandavejustice looks like this needs a rebase and a few linter fixes

Copy link
Contributor

@jaredhirsch jaredhirsch left a comment

Choose a reason for hiding this comment

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

OK, taking a first pass:

Doorhanger default list view (spec)

WIP on the left, spec on the right:

screen shot 2019-01-23 at 3 22 00 pm

This looks pretty good! Some visual stuff that looks off:

  • The blue underscore shouldn't be there, but for accessibility, we need some other kind of focus indicator (maybe this is elsewhere in the spec, but if not, darkening the search icon when focused could work). outline: none on the input field should remove the default highlight behavior
  • The height and width of the doorhanger, individual items, and the 'recently used entries' element all differ from the spec
  • Not sure if we're just using default fonts on each platform, but even if we are, the weights are pretty different (?)
  • 'Manage Lockbox' text color is off

Filtered view (spec)

WIP on the left, spec on the right:

screen shot 2019-01-23 at 3 19 54 pm

  • Search and 'X' icons look different than spec
  • Text should change from 'recently used' to 'N entry/entries found'

Hovered filtered view (spec)

WIP on the left, spec on the right:

screen shot 2019-01-23 at 3 27 49 pm

  • 'info' icon not shown on hover
  • hover color seems off vs. spec

Entry Detail view (spec)

Again, WIP on the left, spec on the right:

screen shot 2019-01-23 at 3 07 36 pm

Lot of work left to do here.


Go ahead and take another swing and re-request review when you'd like another pass

Copy link

@nickbrandt nickbrandt left a comment

Choose a reason for hiding this comment

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

Sorry for the delay in getting this reviewed, had some errors to resolve yesterday before I could get the build working.

This is looking good! @6a68 already beat me to most of the visual things I noticed, but I've included some additions below. There are also a couple items that we just recently updated and have gotten into Zeplin, apologies for adding work on those items.

Entry List - Default View
entry list

  • For focus state, let's go with what @6a68 mentioned and have the color of the Search icon darker (current color in design, Grey 60), and when not focused, Gray 40.
  • As mentioned previously, height, width of doorhanger as well as other elements are a bit off from spec
  • Bottom button has been updated based on some research findings on other FF doorhangers with a gray action button at the bottom. (spec has been updated)
  • Bottom button has been updated to "Open Lockbox" instead of "Manage Lockbox"
  • Instruction text (Recently used entries. Select...) area background and text color has been updated due to conflicts with the entry item hover state (spec updated)
  • Search placeholder text style seems off
  • This has been updated to always show the info button on list items (not just on hover)

Entry List - Searching / Filtered
searching

  • As mentioned, icon is different and text needs changed to reflect # of matches

Entry List Item - Hover
entry - hover

  • not currently showing the info button
  • info button color change
  • as mentioned, entry background is a bit off
  • when hovering over info button, background is shown (ghost button)

Bottom button - Hover
button - hover

  • wasn't previously defined, but button now has darker state for when hovering

dark mode

I also noticed that if you have your device in dark mode (and FF inherits that), we get a dark border on the doorhanger. Do we have any control over this?


I don't believe that the entry details is part of this PR, so not including comments regarding that. Let me know if that is not the case though

I also updated the issue this is attached to, to include links to all of these screens so you don't have to hunt them down in Zeplin. Sorry for not having that in there originally

@meandavejustice
Copy link
Contributor Author

meandavejustice commented Jan 28, 2019

@nickbrandt Thanks for the review

I noticed the info icon downloaded from zeplin looks bad for some reason
firefox_giewoz0af8

@meandavejustice
Copy link
Contributor Author

@nickbrandt @6a68 I believe all of your comments have now been addressed, I updated the pr description with screenshots also

@nickbrandt
Copy link

nickbrandt commented Jan 29, 2019

@meandavejustice this is looking really close, thanks for addressing those items. Just noticing a few remaining things, identified below:

Entry List - Default

default

  • Doorhanger background: #F2F2F4 (custom)
  • Placeholder text: Gray 50
  • Info icons/buttons: 16px padding from right side
  • Info button: 32px width/height
  • Header/Search height: 50px

Entry List - Filtered/Searching

filtered

  • Search Text should be Grey 90
  • When only 1 entry in results, text needs to read “1 entry found” (vs “entries”)
  • Results text area should be similar to default state (background, font weight/color)
  • Clear button: 16px padding from right side

Entry List - Hover States

hover

  • Can we darken info icon to Gray 50 on hover of entry list item

Entry List - Full View

screen shot 2019-01-29 at 11 24 03 am

Because the entry list items are tied to what you see in the full view, we are now seeing the info icons/buttons there as well. We actually don't need them there, can we update this for those to only be visible in the doorhanger?

Thanks!

@nickbrandt
Copy link

@meandavejustice I'll try and look into the Info icon, it appears pretty close on my Mac, but does look a bit pixelated on your screenshot

@jaredhirsch
Copy link
Contributor

@meandavejustice Hey, when this is ready, remove the 'WIP' from the title, and re-request a review. Would be cool to fix the "merge master into branch" git noise, too.

Copy link
Contributor

@linuxwolf linuxwolf left a comment

Choose a reason for hiding this comment

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

The line numbers reported with test failures are bogus, and we've struggled to get those good while not exploding the file size. Inline I've highlighted where the failures are occurring, and what might be a reasonable fix.

@@ -74,6 +74,7 @@ export default function ItemSummary({className, id, title, username, verbose,
$length={trimmedUsername.length}>
<div data-name="subtitle" className={styles.subtitle}>no uSERNAMe</div>
</Localized>
<div className={styles.info}></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

This inadvertently causes a breakage in test/unit/list/components/item-summary-test.js because more than one element matches div > div.

I think the most expedient way to fix htis is to change the merge classNames test to explicitly set an item id and then use it as data-item-id when find()ing the item.

src/list/popup/components/item-list-panel.js Show resolved Hide resolved
src/list/popup/components/item-list-panel.js Outdated Show resolved Hide resolved
@meandavejustice meandavejustice changed the title WIP Doorhanger list view updates Doorhanger list view updates Jan 30, 2019
@meandavejustice meandavejustice dismissed stale reviews from linuxwolf, nickbrandt, and jaredhirsch January 31, 2019 01:39

Fixed up tests, and added test for new icon hide/show logic

Copy link

@nickbrandt nickbrandt left a comment

Choose a reason for hiding this comment

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

@meandavejustice this looks great! Just 1 small change I noticed still, as well as an additional item I had missed previously. After those are fixed we are good to go from a design standpoint. Thanks for all your work on this!

Filtered / Searching
filtered

  • Search entered text needs updated to Gray 90 (#0C0C0D)

General Doorhanger
caret

  • The header (on both search and in entry details) is white, while the caret at the top of the doorhanger is the color of the doorhanger background. Can we update the caret to be white instead?

Thank you!

@nickbrandt
Copy link

@meandavejustice I couldn't find anything wrong with the info icon we were exporting through Sketch, so I went ahead and downloaded it from the Photon site, and updated it to be the same color/sizing we were using (attached below). Let me know if this works out any better. It may be just some issue with exporting through Sketch and how that is getting translated (though that would be strange as other icons are working this way), but if you still have issues perhaps just try using the one straight from the Photon site and through CSS update the color/size. Let me know how it turns out!

icon-info.svg.zip

@ghost ghost assigned lmorchard Feb 1, 2019
@meandavejustice
Copy link
Contributor Author

Thanks @nickbrandt just pushed an update, your version of the info icon took care of it on my end.

@nickbrandt
Copy link

nickbrandt commented Feb 4, 2019

@meandavejustice the caret looks good as well as the updated info icon 👍

Still seeing #737373 for the Search text. Looks like perhaps the empty state text got updated instead?

screen shot 2019-02-04 at 9 30 48 am
screen shot 2019-02-04 at 9 31 04 am
screen shot 2019-02-04 at 9 31 34 am

@meandavejustice
Copy link
Contributor Author

meandavejustice commented Feb 4, 2019

@nickbrandt Sorry, it should be actually correct now!

@nickbrandt
Copy link

@meandavejustice no worries, looks good now. Thanks!

screen shot 2019-02-04 at 10 12 03 am

Copy link
Contributor

@linuxwolf linuxwolf left a comment

Choose a reason for hiding this comment

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

r+

Code wise this looks great; thanks @meandavejustice ! I'll let @nickbrandt take another glance to be sure visuals match.

@meandavejustice meandavejustice merged commit e26cdfc into mozilla-lockwise:master Feb 4, 2019
@ghost ghost removed the in progress label Feb 4, 2019
@meandavejustice meandavejustice deleted the 12-doorhanger-styles branch February 4, 2019 21:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants