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

Update / restyle for Preferences > Payments #5494

Closed
bsclifton opened this issue Nov 8, 2016 · 20 comments
Closed

Update / restyle for Preferences > Payments #5494

bsclifton opened this issue Nov 8, 2016 · 20 comments

Comments

@bsclifton
Copy link
Member

bsclifton commented Nov 8, 2016

Starting off with a picture (courtesy of @bradleyrichter)
image

Style updates include:

  • sortableTable no longer hides it's style (should properly show the column headers)
  • re-connected styles for all widgets with master styles

New functionality:

  • "hide excluded sites" toggle
  • exclude button on the left (in addition to the existing right click one)
    (for blacklisting sites that you don't want to see regardless of their include/exclude state)
@bsclifton bsclifton added design A design change, especially one which needs input from the design team. feature/rewards labels Nov 8, 2016
@bsclifton bsclifton added this to the 0.12.10 release milestone Nov 8, 2016
@bsclifton bsclifton removed this from the 0.12.10 release milestone Nov 8, 2016
@srirambv
Copy link
Collaborator

srirambv commented Nov 8, 2016

Some how Thanks for helping support your favorite website! doesn't sound right.

Instead can it be Thanks for your help in supporting your favorite website!

@bsclifton @bradleyrichter Thoughts ?

@bradleyrichter
Copy link
Contributor

@srirambv How about the above string?

"Thanks for supporting your favorite websites!"

@srirambv
Copy link
Collaborator

srirambv commented Nov 8, 2016

Yes that sounds better 👍

@bsclifton
Copy link
Member Author

@bradleyrichter anything else needed before we can start this one?

@bradleyrichter
Copy link
Contributor

This is good to go until we add the ability to add an individual site.

@bsclifton bsclifton modified the milestones: 0.12.10 release , 0.12.11 Nov 9, 2016
@bradleyrichter
Copy link
Contributor

@mrose17 @jkup

This is the task I had mentioned today...

@jkup
Copy link
Contributor

jkup commented Nov 15, 2016

yep it's in 0.12.11!

@jkup
Copy link
Contributor

jkup commented Nov 26, 2016

@mrose17 Is there an endpoint in ledger-client for blacklisting a site?

@mrose17
Copy link
Member

mrose17 commented Nov 26, 2016

there is no concept of "black-listing". there is a concept of an exclusion list. there are two, each browser has a private exclusion list (right click on a site on about:preferences#payments and select "Never include this site". there is also a global exclusion list, that is under review.

@jkup
Copy link
Contributor

jkup commented Nov 26, 2016

@mrose17 Ok this ticket looks to be calling for a feature that doesn't exist then? + @bsclifton

@mrose17
Copy link
Member

mrose17 commented Nov 26, 2016

i think you should DM @bsclifton and @bradleyrichter to see what they are looking for...

@bradleyrichter
Copy link
Contributor

bradleyrichter commented Nov 26, 2016

The "blacklist" column on the left is simply a more-accessible shortcut to the already existing context-menu for "never include this site":

image

This function is used for sites in which a user does not want to ever pay, or perhaps even see in their list. One example would be for a site that we have not added to our global exclude list yet but the user spend time there daily.

Youtube Red might be a good example.

Or an offensive click-bait site that was visited using a shared computer and user-A prefers that user-B does not see that the site was visited.

@bsclifton
Copy link
Member Author

bsclifton commented Nov 27, 2016

@jkup this would be a new feature 😄 There is something similar (but it's not done yet) which you can check out in js/about/history.js. There, you'll see a quick "delete" button on each row (which is currently hidden). This is all using the sortableTable control

@jkup
Copy link
Contributor

jkup commented Nov 27, 2016

@bsclifton ah ok cool.. how should I implement this? Do we add some global state for blacklistedSites or something like that? And then just check against that when we display the ledger table?

@bsclifton
Copy link
Member Author

bsclifton commented Nov 27, 2016

@jkup I think showing the FontAwesome Ban icon on hover and then executing the same code that is executed when picking "Never include this site" would do the trick 😄 No new functionality needed per-se, since you can already right click one by one, but offering a button as the first column will make it very easy to process your list

@jkup
Copy link
Contributor

jkup commented Nov 27, 2016

Ohhhhhh ok ok ok ok got it!

@bradleyrichter
Copy link
Contributor

This "quick remove" column came from the original history makeover design.

Ideally we can use it there as well. It should work in a similar way to the the search engine prefs default column except that the hover state also shows the "no" symbol and clicking removes it from the list.

@bbondy bbondy modified the milestones: 0.13.1, 0.13.0 Dec 1, 2016
@luixxiul
Copy link
Contributor

luixxiul commented Dec 3, 2016

.titleBar and .walletBar are almost ready:

screenshot 2016-12-03 23 31 57

@bsclifton
Copy link
Member Author

Issue is resolved with #6101, which is ready for merge (after 0.13.0 ships). Milestone is already set and is correct.

@bsclifton
Copy link
Member Author

bsclifton commented Jan 11, 2017

Fixed with #6101 which was merged into branch 0.13.1-branch.

Test Plan:

  1. Open Brave
  2. Go to Preferences > Payments
  3. Toggle a site to not be included
  4. Toggle hide excluded sites and make sure that one disappears
  5. Make sure the general design looks like the mock in Update / restyle for Preferences > Payments #5494
  6. Make sure clicking the remove button for a site removes it from the list

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants