-
Notifications
You must be signed in to change notification settings - Fork 892
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
Web3 settings section #16290
Web3 settings section #16290
Conversation
54c7c0f
to
04cc607
Compare
|
A Storybook has been deployed to preview UI for the latest push |
04cc607
to
d71c32f
Compare
A Storybook has been deployed to preview UI for the latest push |
d71c32f
to
5ed2124
Compare
A Storybook has been deployed to preview UI for the latest push |
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.
Nicely done. Please check for the icon removal before merge.
let last = basicPageEl.insertAdjacentElement('afterbegin', | ||
sectionGetStarted) | ||
// Move Appearance item | ||
const sectionAppearance = getSectionElement(actualTemplate.content, 'appearance') | ||
sectionGetStarted.insertAdjacentElement('afterend', sectionAppearance) | ||
const sectionAppearance = getSectionElement(actualTemplate.content, | ||
'appearance') | ||
last = last.insertAdjacentElement('afterend', sectionAppearance) | ||
// Insert New Tab | ||
sectionAppearance.insertAdjacentElement('afterend', sectionNewTab) | ||
last = last.insertAdjacentElement('afterend', sectionNewTab) | ||
// Insert shields | ||
sectionNewTab.insertAdjacentElement('afterend', sectionShields) | ||
// Insert Rewards and Social Blocking | ||
if (isBraveRewardsSupported) { | ||
sectionShields.insertAdjacentElement('afterend', sectionRewards) | ||
sectionRewards.insertAdjacentElement('afterend', sectionSocialBlocking) | ||
} else { | ||
sectionShields.insertAdjacentElement('afterend', sectionSocialBlocking) | ||
last = last.insertAdjacentElement('afterend', sectionShields) | ||
// Insert Rewards | ||
if (sectionRewards) { | ||
last = last.insertAdjacentElement('afterend', sectionRewards) | ||
} | ||
// Insert Social Blocking | ||
last = last.insertAdjacentElement('afterend', sectionSocialBlocking) | ||
// Move privacy section to after social blocking | ||
const sectionPrivacy = getSectionElement(actualTemplate.content, 'privacy') | ||
sectionSocialBlocking.insertAdjacentElement('afterend', sectionPrivacy) | ||
last = last.insertAdjacentElement('afterend', sectionPrivacy) | ||
// Insert sync | ||
sectionPrivacy.insertAdjacentElement('afterend', sectionSync) | ||
last = last.insertAdjacentElement('afterend', sectionSync) | ||
// Move search | ||
const sectionSearch = getSectionElement(actualTemplate.content, 'search') | ||
sectionSync.insertAdjacentElement('afterend', sectionSearch) | ||
last = last.insertAdjacentElement('afterend', sectionSearch) | ||
// Insert extensions | ||
sectionSearch.insertAdjacentElement('afterend', sectionExtensions) | ||
// Insert Wallet and IPFS | ||
if (isBraveWalletAllowed) { | ||
sectionExtensions.insertAdjacentElement('afterend', sectionWallet) | ||
sectionWallet.insertAdjacentElement('afterend', sectionIPFS) | ||
} else { | ||
sectionExtensions.insertAdjacentElement('afterend', sectionIPFS) | ||
last = last.insertAdjacentElement('afterend', sectionExtensions) | ||
// Insert Wallet | ||
if (sectionWallet) { |
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 is a nice improvement
const ipfsEl = createMenuElement( | ||
loadTimeData.getString('braveIPFS'), | ||
'/ipfs', | ||
'brave_settings:ipfs', |
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.
I think this means we should remove the ipfs icon from brave_settings unless we show it anywhere else?
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.
5ed2124
to
46486a1
Compare
A Storybook has been deployed to preview UI for the latest push |
Resolves brave/brave-browser#14516
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
wikinpm run lint
,npm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Wallet networks
should workIpfs peers
andIpns keys
should workbrave_i0H11W9s7D.mp4