-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve topsite tiles in NTP #7859
Conversation
c7ec590
to
365270a
Compare
365270a
to
898ef54
Compare
cdd09cb
to
d5c1998
Compare
674eb7f
to
74fa4ce
Compare
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.
Awesome work here! I'm sure this ended up being more JavaScript than you had expected 😄
Everything I saw looks great - would be good to solve the concern by @petemill RE: dark mode (so that it happens automatically, detected in media query). Thanks for following up on all the feedback @karenkliu had too - the text under the icons is a beautiful touch
I found that it's switched to favorites mode but edited item is not visible in favorites mode. checking. => Fixed
|
f34c943
to
60320aa
Compare
@karenkliu @petemill PTAL again. |
#include "url/gurl.h" | ||
|
||
std::string GetValidURLStringForTopSite(const std::string& url) { | ||
return GURL(url).is_valid() ? url : "https://" + url; |
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 check is incomplete. You should re-verify that the url is valid after appending https
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.
Added verification after fixing url here. If fixed url is not valid, that item will not be added/modified with passed url.
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.
deps/chromium_src ok
@simonhong did an amazing job fixing everything outlined in #7859 (review). The only thing we should do in a follow up is clean up top sites hover area to fix the the 'Add site' tile flicker. It sounds like it's a wrapping area issue that needs some refactoring. |
@karenkliu Add button flickering is a little bit improved. Only flicked when hovered over menu button. |
5a80c8c
to
068cbb3
Compare
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.
Thanks for addressing a lot of the feedback, this continues to work great. Still a couple of things, including an important accessibility issue, that we can fix in follow-up. We can keep a list here, if possible. Also is there any chance of squashing some of the commits - 40 seems a lot and many of them seem to be fixes that can be amended.
* Adjust max topsite tiles number to 12 * Can add/edit topsites from NTP * Can toggle favorites and frecency mode from NTP customization option fix brave/brave-browser#7493
Merged because only |
Is this released? I have the latest version and I don't have this yet. Perhaps not yet rolled out....... |
@Vantiveman This is available in nightly ( |
Hi Simon,
Thank you. How do I subscribe or download nightlies?
From: Simon Hong <notifications@github.com>
Sent: 03 March 2021 06:42
To: brave/brave-core <brave-core@noreply.github.com>
Cc: Vantiveman <awilson@clara.net>; Mention <mention@noreply.github.com>
Subject: Re: [brave/brave-core] Improve topsite tiles in NTP (#7859)
@Vantiveman <https://github.com/Vantiveman> This is available in nightly (1.23.x) now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#7859 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AK4UOK3TFP53KC732L5CWKLTBXK3XANCNFSM4XIPTOHQ> . <https://github.com/notifications/beacon/AK4UOK4GHQQF2LLZHWPNOETTBXK3XA5CNFSM4XIPTOH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF4HH2UQ.gif>
|
@Vantiveman Yes, https://brave.com/download-nightly/ is for you :) |
@MamaCoop452 I assume you're using brave stable channel. If so, this fix will be available for you when |
fix brave/brave-browser#7493
fix brave/brave-browser#13881
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed).Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on.
Test Plan:
In frequency mode, max tile number is 6 and add tile button is not displayed.
In favorites mode, 12 tiles are visible at most and add tile button is only visible when hover to top site tiles.
In favorites mode, add tile button is always visible if there is no tile.
Edit menu on tile always have two items - edit and delete.
When tile is edited or added, current mode is changed to favorites.
Full spec available at https://github.com/brave/internal/issues/754