-
Notifications
You must be signed in to change notification settings - Fork 896
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
Deprecate local node support and ipfs scheme #23808
Deprecate local node support and ipfs scheme #23808
Conversation
3265207
to
d6468fe
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
ad4df82
to
6c92fe8
Compare
A Storybook has been deployed to preview UI for the latest push |
10e5ba4
to
7807d26
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
"//brave/components/json/rs:rust_lib", | ||
"//brave/components/resources:strings_grit", | ||
"//brave/components/services/brave_wallet/public/cpp/utils", | ||
"//brave/components/services/brave_wallet/public/mojom", | ||
"//chrome/browser:browser", |
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.
components must not depend on chrome
<message name="IDS_BRAVE_WALLET_NFT_DETAIL_IMAGE_ADDRESS" desc="NFT detail image address category">Image URL</message> | ||
<message name="IDS_BRAVE_WALLET_NFT_DETAILS_PINNING_IN_PROGRESS" desc="NFT detail pinning in progress">In progress</message> | ||
<message name="IDS_BRAVE_WALLET_NFT_DETAILS_PINNING_SUCCESSFUL" desc="NFT detail pinning successful">Pinned</message> | ||
<message name="IDS_BRAVE_WALLET_NFT_DETAILS_PINNING_FAILED" desc="NFT detail pinning failed">Failed</message> | ||
<message name="IDS_BRAVE_WALLET_NFT_DETAILS_OVERVIEW" desc="NFT detail overview">Overview</message> |
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.
There is still lots of WALLET_NFT_PINNING strings. Should we also clear them?
constexpr char kBraveIpfsFeatureMigrated[] = "brave.ipfs"; | ||
constexpr char kBraveIpfsCompanionMigrated[] = "brave.ipfs_companion_enabled"; | ||
constexpr char kPinnedNFTAssetsMigrated[] = "brave.wallet.user_pin_data"; | ||
constexpr char kAutoPinEnabledMigrated[] = "brave.wallet.auto_pin_enabled"; | ||
|
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.
Let's clear there only wallet prefs.
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.
Also please add a comment with deprecation date (06/2024?) so we can remove them completely from code after a year
@@ -62,7 +62,6 @@ inline constexpr char kAdControlType[] = "brave.ad_default"; | |||
inline constexpr char kGoogleLoginControlType[] = "brave.google_login_default"; | |||
inline constexpr char kWebTorrentEnabled[] = "brave.webtorrent_enabled"; | |||
inline constexpr char kHangoutsEnabled[] = "brave.hangouts_enabled"; | |||
inline constexpr char kIPFSCompanionEnabled[] = "brave.ipfs_companion_enabled"; |
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.
Should be cleared with all other ipfs prefs I think
return token.logo.startsWith('ipfs://') | ||
? (await this.getIpfsGatewayTranslatedNftUrl(token.logo)) || '' | ||
: `chrome://erc-token-images/${token.logo}` | ||
return `chrome://erc-token-images/${token.logo}` |
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.
getTokenLogo
no longer needs to be async
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.
how that would work if token.logo
still starts with 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.
Don't need thiese styles anymore?
@@ -47,31 +35,12 @@ interface Props { | |||
export const LocalIpfsNodeScreen = (props: Props) => { |
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.
Remove this file also?
route.includes(WalletRoutes.Swap) || | ||
route.includes(WalletRoutes.Send) || | ||
route.includes(WalletRoutes.LocalIpfsNode) | ||
if (isPanel) { |
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.
why Swap and Send appear here?
539c662
to
bf9c57d
Compare
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
A Storybook has been deployed to preview UI for the latest push |
cb5e312
to
3476084
Compare
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
Signed-off-by: Vadym Struts <[email protected]>
b2f567a
to
8dd42ab
Compare
A Storybook has been deployed to preview UI for the latest push |
"chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc": [ | ||
"CHROME_BROWSER_WEB_APPLICATIONS_COMMANDS_CLEAR_BROWSING_DATA_COMMAND_H_", | ||
"CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_PROVIDER_H_", | ||
"CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_UTILS_H_", | ||
], |
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.
Was this particular change intentional? I don't see how it's relevant to this PR, but I could definitely be missing something. Asking because check_chromium_src.py
is now failing with the following messages:
Override chromium_src\chrome\browser\browsing_data\chrome_browsing_data_remover_delegate.cc
defines symbol CHROME_BROWSER_WEB_APPLICATIONS_COMMANDS_CLEAR_BROWSING_DATA_COMMAND_H_ but the symbol could not be found in
C:\work\brave-browser\src\chrome\browser\browsing_data\chrome_browsing_data_remover_delegate.cc
and is not used internally in the override.
-------------------------
[Error] chromium_src:
Override chromium_src\chrome\browser\browsing_data\chrome_browsing_data_remover_delegate.cc
defines symbol CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_PROVIDER_H_ but the symbol could not be found in
C:\work\brave-browser\src\chrome\browser\browsing_data\chrome_browsing_data_remover_delegate.cc
and is not used internally in the override.
-------------------------
[Error] chromium_src:
Override chromium_src\chrome\browser\browsing_data\chrome_browsing_data_remover_delegate.cc
defines symbol CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_UTILS_H_ but the symbol could not be found in
C:\work\brave-browser\src\chrome\browser\browsing_data\chrome_browsing_data_remover_delegate.cc
and is not used internally in the override.
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.
yes it was mistake, returned it back with PR: #24624
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.
No worries, thank you for fixing!
Can I install this feature separately? https://github.com/brave/brave-browser/wiki/IPFS-Features#import-and-sharing |
Resolves brave/brave-browser#37735
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 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:
iOS IPFS Deprecation Test Plan:
...
Ask
Proceed using an SNS server
Resolve SNS Domain Names
is now set toEnabled
Ask
abd go back to home pageDisable
Resolve SNS Domain Names
is now set toDisabled
Proceed using infura server
Proceed with offchain lookup
Resolve ENS Domain Names
andAllow ENS Offchain Lookup
are now set toEnable
Ask
and go back home pageDisable
Resolve ENS Domain Names
toEnabled
in Settings/Web3Disable
Proceed using infura server
Resolve Unstoppable Domains Domain Names