-
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
New Tab Page: Move from brave-ui to brave-core #2857
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🤦♀ I need to rebase this to include #2762 |
…e tab page closes #129
- generally updated terminology to more consistently refer to windows instead of tabs - updated Tor communication on the private window to instruct users how to access a tor protected window through the file menu - updated to communication to omit speaking about DDG as if it is enabled by default (because it isn't right?)
- new copy - updated some padding on modals - small opacity and styling tweaks - typography styling updates - temporarily removed DDG learn more links until appropriate knowledgebase articles can be written - followed the breakpoint pattern for qwant as the content was overlapping eachother at 490px - added a Qwant with Tor option
- updated copy for Qwant Tor
-text string updates
- wrongly removed after 15582bb879cc7fef3bfce674841e6d4b6a3f013a
- styling related to NTP updates still linked to Brave UI
- removed the Styled Period designation from the clock component - uploaded 4 new background images (only one is registering but the others are there for when randomization is implemented) - uploaded correct icons as components and put them in the right places - general padding and margin updates - general typography and coloring updates - some responsive styling and breakpoint updates - moved tiles to left instead of right of screen
…ggle-background-img" This reverts commit dbc5cda1cc182fca4813b129176a629c37d8d679, reversing changes made to 0139aa32246af6d4e4ec0daea79945966dd79999.
Revert "Merge pull request #490 from brave/revert-485" This reverts commit 82b3e981040b2ba89743108e6701f5fa24ce3b52, reversing changes made to b0ec08cd4ed2a20401d058062f1c238fb9a67813.
…r large stats and margins
…ponsive on smaller screens
petemill
force-pushed
the
brave-ui-ntp
branch
2 times, most recently
from
July 6, 2019 00:01
93094ce
to
2553ed7
Compare
Rebase complete, review appreciated |
Prerequisite to New Tab Page storybook, which uses .webp background images
Fix component and storybook import paths Convert existing brave-core containers to use component import paths import paths, instead of brave-ui
Jenkins and Travis now both passed. Test plan is included and Issues created / updated. Ready for review ASAP please. |
cezaraugusto
approved these changes
Jul 8, 2019
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.
9 tasks
This was referenced Jul 8, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix brave/brave-browser#2518 (add storybook to brave-core)
Partially address brave/brave-browser#2335 (umbrella)
Fix brave/brave-browser#5178
This moves all New Tab Page specific UI and Storybook code from brave-ui. It includes all the history from brave-ui where the NTP files were modified.
Sets up at brave-core specific Storybook at
npm run storybook
The steps I performed
Will be useful for moving the other brave-ui features to brave-core
Reduce brave-ui to necessary folders:
Do a project search...
Find (regex):
from '[^\.].*'
In:
brave/components/brave_new_tab_ui/{components,stories}/**/*.{ts,tsx}
Then
npm install --save
any that aren't already in brave-coreDo a project find / replace
Find (regex):
'(\.\.\/)+(theme|components)'
In:
brave/components/brave_new_tab_ui/components/**/*.{ts,tsx}
Replace with:
'brave-ui/$2
Do a project find / replace
Find (regex):
'(\.\.\/)+src([^']*)'
In:
brave/components/brave_new_tab_ui/stories/**/*.{ts,tsx}
Replace with:
'brave-ui$2'
Do a project find
Find (regex):
brave-ui(/src)?/features/newTab
In:
brave/components/brave_new_tab_ui/{components,containers,stories}/*/*.{ts,tsx}
Replace with:
../../components
Then repeat adding an extra
/*
and an extra../
for as many folder depths until we think we have them all :-)Fix any errors, in NTP case:
* Removed muli.css and poppins.css import (now inserted automatically)
* Fixed inconsistent assets/img path and file naming compared to brave-core
(In NTP case: assets/img paths)
Do a project find / replace
Find (regex):
'Feature Components/New Tab'
In:
brave/components/brave_new_tab_ui/stories/**/*.{ts,tsx}
Replace with:
'New Tab'
Test Plan:
NTP works
NTP is coming from brave-core not brave-ui
components/brave_new_tab_ui/components/[something]
Storybook works
npm run storybook
components/brave_new_tab_ui/components/[something]
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Reviewer Checklist:
After-merge Checklist:
changes has landed on.