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

Improve UI/UX of bookmark popup #4726

Merged
merged 1 commit into from
Oct 18, 2016
Merged

Improve UI/UX of bookmark popup #4726

merged 1 commit into from
Oct 18, 2016

Conversation

jkup
Copy link
Contributor

@jkup jkup commented Oct 13, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Fix #2894, #4854, #4864 and #3282 via @rohanthacker's changes!

Auditors @bsclifton @bradleyrichter

Test Plan:

Make sure of a few things:

  • Bookmark is automatically created when you click the orange star
  • Bookmark doorhanger aligns with orange star
  • View all bookmarks page takes you to about:bookmarks

@jkup jkup added the design A design change, especially one which needs input from the design team. label Oct 13, 2016
@jkup jkup added this to the 0.12.6dev milestone Oct 13, 2016
@jkup jkup force-pushed the bookmark-popup branch 3 times, most recently from 5d794c8 to 877bf71 Compare October 13, 2016 02:16
@jkup jkup changed the title WiP Improve UI/UX of bookmark popup Improve UI/UX of bookmark popup Oct 13, 2016
@bsclifton bsclifton self-assigned this Oct 13, 2016
@bsclifton
Copy link
Member

bsclifton commented Oct 14, 2016

Checking it out right now, already noticed a few things (doh)

Launching w/ an empty tab, the icon is off

screen shot 2016-10-13 at 10 56 01 pm

After you visit a site though, it fixes itself and looks OK. However, the star icon (when a site is favorited) moves up and down when you have the magic titlebar feature on and show/hide the URL bar.

Overlay

When you click it to trigger a bookmark, I can tell it's trying to put an overlay there, but it's in the wrong area. I ran into a similar issue when doing the titlebar (but mine was in main.js, where your overlay appears to be in addEditBookmark). Here's a pic:
screen shot 2016-10-13 at 10 56 20 pm

This has a side effect of the modal not being dismissible by mouse click ☹️ In my situation, I was able to resolve it by moving the overlay in the DOM to a place where it worked

Style matching

Looking at the pic above and comparing to the mockup in #2894, I notice:

  • the styles around the drop down and the input field don't seem to match
  • the star is Brave orange as opposed to yellow
  • the vertical spacing between the orange section title ("Bookmark added") and the first field's title ("Title") needs to be increased a bit
  • the new default button style (grey button) looks great! 😄
  • the original mockup had a X in the top right to dismiss, not sure if that's needed

@bsclifton
Copy link
Member

@jkup notes left 😄 hopefully, I didn't do something wrong when testing (I grabbed latest from your branch bookmark-popup). Please let me know and I can retest

@bradleyrichter when you click the star when it's already bookmarked, the title still says "Bookmark added". If the site is bookmarked already and you click that, should we even show a title at all?

@jkup
Copy link
Contributor Author

jkup commented Oct 17, 2016

Wanted to run these fixes by you:

@bsclifton I don't think this technically needs to be a dialog anymore right? I think it can just be a div with some similar behaviors. I just removed the dialog class which fixes that shadow issue but I may be overlooking something.

@bbondy the positioning bug that @bsclifton found is because we are pushing an empty browserButton which has a width and a height but no content. Can I just return null here? https://github.com/brave/browser-laptop/pull/4726/files#diff-b9cf7ede0a812496eace3679483c2c40R129

@bbondy
Copy link
Member

bbondy commented Oct 18, 2016

yes null is fine

@bradleyrichter
Copy link
Contributor

bradleyrichter commented Oct 18, 2016

wow. a breath of fresh UI air!

some initial problems I found:

1 - needs to Close on click-outside.
2 - pressing the star while open also closes (same as click-outside)
3 - with door hanger closed, clicking a marked star opens the hanger with "edit bookmark" as the title (not "bookmark added")
4 - ideally, the URL is stored in whatever state the URL is in when the hanger closes, not when it opens. This allows the user to actually edit the URL in the URL box to modify the bookmark info.
5 - the open hanger prevents the user from moving the browser window. It should close and allow dragging.

For styling issues, we can work on it in person.

@bsclifton
Copy link
Member

Looking really good! 😄 All the same things Brad said above... plus the empty button issue you already mentioned (on about pages, including new tab)

@bradleyrichter the "View all bookmarks" seems a little hard to read, gray on gray.

@bradleyrichter
Copy link
Contributor

no worries. We'll shine er' up on Thursday...

(spec image:)

image

@bsclifton
Copy link
Member

I think this should also fix:
#2347

@bsclifton
Copy link
Member

Tested on Mac and also Windows 10. Looks and works good- great job 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
design A design change, especially one which needs input from the design team. QA/checked-Linux QA/checked-macOS QA/checked-Win64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants