Skip to content

Commit cd4c9e8

Browse files
feat(wallet): Implement NFT management v2 (Uplift to 1.59.x) (#20297)
* feat(wallet): Implement NFT management v2 (#20204) * Added group selector * WIP * Design implement + strings * Format * Fix storybook * implement feedback * Update components/brave_wallet/browser/brave_wallet_constants.h Co-authored-by: Josh Leonard <[email protected]> * Move account lookup to the component * Fix string spelling --------- Co-authored-by: Josh Leonard <[email protected]> * Fix API slice errors * Fix storybook --------- Co-authored-by: Josh Leonard <[email protected]>
1 parent e0f257d commit cd4c9e8

File tree

29 files changed

+1169
-294
lines changed

29 files changed

+1169
-294
lines changed

components/brave_wallet/browser/brave_wallet_constants.h

+13
Original file line numberDiff line numberDiff line change
@@ -1296,8 +1296,21 @@ constexpr webui::LocalizedString kLocalizedStrings[] = {
12961296
{"braveNftsTabHide", IDS_BRAVE_WALLET_NFTS_TAB_HIDE},
12971297
{"braveNftsTabUnhide", IDS_BRAVE_WALLET_NFTS_TAB_UNHIDE},
12981298
{"braveNftsTabEdit", IDS_BRAVE_WALLET_NFTS_TAB_EDIT},
1299+
{"braveWalletNftUnspam", IDS_BRAVE_WALLET_NFT_UNSPAM},
1300+
{"braveWalletNftJunk", IDS_BRAVE_WALLET_NFT_JUNK},
1301+
{"braveWalletRemoveNftModalHeader",
1302+
IDS_BRAVE_WALLET_REMOVE_NFT_MODAL_HEADER},
1303+
{"braveWalletRemoveNftModalDescription",
1304+
IDS_BRAVE_WALLET_REMOVE_NFT_MODAL_DESCRIPTION},
1305+
{"braveWalletRemoveNftModalCancel",
1306+
IDS_BRAVE_WALLET_REMOVE_NFT_MODAL_CANCEL},
1307+
{"braveWalletRemoveNftModalConfirm",
1308+
IDS_BRAVE_WALLET_REMOVE_NFT_MODAL_CONFIRM},
1309+
{"braveWalletNftMoveToSpam", IDS_BRAVE_WALLET_NFT_MOVE_TO_SPAM},
12991310
{"braveNftsTab", IDS_BRAVE_WALLET_NFTS_TAB},
13001311
{"braveNftsTabHidden", IDS_BRAVE_WALLET_NFTS_TAB_HIDDEN},
1312+
{"braveNftsTabCollected", IDS_BRAVE_WALLET_NFTS_TAB_COLLECTED},
1313+
{"braveNftsTabRemove", IDS_BRAVE_WALLET_NFTS_TAB_REMOVE},
13011314
{"braveWalletImportNftModalTitle", IDS_BRAVE_WALLET_IMPORT_NFT_MODAL_TITLE},
13021315
{"braveWalletEditNftModalTitle", IDS_BRAVE_WALLET_EDIT_NFT_MODAL_TITLE},
13031316
{"braveWalletEnableNftAutoDiscoveryModalHeader",

components/brave_wallet_ui/common/slices/api-base.slice.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,14 @@ export function createWalletApiBase () {
4444
'BraveRewards-RewardsBalance',
4545
'BraveRewards-ExternalWallet',
4646
'NFTPinningStatus',
47+
'NFTSPinningStatus',
4748
'AutoPinEnabled',
4849
'OnRampAssets',
4950
'OffRampAssets',
5051
'CoingeckoId',
51-
'TokenSuggestionRequests'
52+
'TokenSuggestionRequests',
53+
'SimpleHashSpamNFTs',
54+
'LocalIPFSNodeStatus'
5255
],
5356
endpoints: ({ mutation, query }) => ({})
5457
})

components/brave_wallet_ui/common/slices/api.slice.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -2885,6 +2885,7 @@ export const {
28852885
useGetRewardsEnabledQuery,
28862886
useGetSelectedAccountIdQuery,
28872887
useGetSelectedChainQuery,
2888+
useGetSimpleHashSpamNftsQuery,
28882889
useGetSolanaEstimatedFeeQuery,
28892890
useGetSolanaTransactionSimulationQuery,
28902891
useGetSwapSupportedNetworkIdsQuery,
@@ -2947,11 +2948,13 @@ export const {
29472948
useSpeedupTransactionMutation,
29482949
useTransactionStatusChangedMutation,
29492950
useUnapprovedTxUpdatedMutation,
2951+
useUpdateNftSpamStatusMutation,
2952+
useUpdateNftsPinningStatusMutation,
29502953
useUpdateUnapprovedTransactionGasFieldsMutation,
29512954
useUpdateUnapprovedTransactionNonceMutation,
29522955
useUpdateUnapprovedTransactionSpendAllowanceMutation,
29532956
useUpdateUserAssetVisibleMutation,
2954-
useUpdateUserTokenMutation,
2957+
useUpdateUserTokenMutation
29552958
} = walletApi
29562959

29572960
// Derived Data Queries

0 commit comments

Comments
 (0)