-
Notifications
You must be signed in to change notification settings - Fork 889
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
refactor ntp to use brave-ui #1339
Conversation
this allow us to have a better view of the front-end architecture and split interests between files
@@ -73,7 +73,7 @@ export const getGridSites = (state: NewTab.State, checkBookmarkInfo?: boolean) = | |||
gridSites.forEach((gridSite: NewTab.Site) => { | |||
gridSite.letter = getLetterFromSite(gridSite) | |||
gridSite.thumb = `chrome://thumb/${gridSite.url}` | |||
gridSite.favicon = `chrome://favicon/size/48@1x/${gridSite.url}` | |||
gridSite.favicon = `chrome://favicon/size/64@1x/${gridSite.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.
What happens here if a 64 pixel version isn't available?
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.
actually nm - just tried it out; it upscales it 😄
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.
Comments left with behavior found during testing. I also updated the milestone for PR + issue and then added test plan to issue (pointing back here)
b1206e5
to
f6b4029
Compare
@bsclifton thanks. there was a missing locale for the close button which was addressed. the logic for topsites didn't change so not introduced in this pr. in general top sites will be reworked fully in a new pr |
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.
Approving since behaviors noted were already present (and may already be captured in issues). Missing locale issue was fixed 😄
@cezaraugusto can you please create a PR to uplift this into 0.60.x? I'm getting a fair amount of merge conflicts when doing a cherry-pick |
follow-up of #1339 ref brave/brave-ui@5bafe81
refactor ntp to use brave-ui
Changes in this pull-request:
Test Plan 1 - change default new tab and private new tab structure
Test Plan 2 - refactor new tab page to use brave-ui
close brave/brave-browser#633
All interactions in new tab top sites should work
Background should change upon browser refresh
Background should load even without internet connection
Links in footer should go to their own links
Test Plan 3 - remove leftover files from ntp
Test Plan 4 - adapt favicon size to 64px to match tile icon size
This is a tentative to make favicons look better without much success, but since favicon image wrapper has 64px I thought to be a good idea to have the same size fetched by Brave
Test Plan 5 - normalize styles using emptykit.css
This bumps the latest
sha
version of brave-ui from @rossmoody and includes only style updates.emptykit.css
is a css normalizer used across our pages but not in new tab, which I included.