Skip to content
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

NFTs: Use Unknown Collection instead of first NFT name #18388

Merged
merged 4 commits into from
Mar 31, 2023
Merged

Conversation

darkwing
Copy link
Contributor

Explanation

Instead of using the first NFT in the collection as the collection name, when no name is available, we should use "Unknown collection"

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@darkwing darkwing requested a review from a team as a code owner March 30, 2023 19:59
@darkwing darkwing requested a review from chloeYue March 30, 2023 19:59
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

ui/hooks/useNftsCollections.js Outdated Show resolved Hide resolved
@@ -34,7 +34,7 @@ export default function NftsTab({ onAddNFT }) {
const dispatch = useDispatch();

const { nftsLoading, collections, previouslyOwnedCollection } =
useNftsCollections();
useNftsCollections(t('nftsPreviouslyOwned'), t('unknownCollection'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we have a translation for 'nftsPreviouslyOwned'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, that should've been in initial commit.

@darkwing darkwing requested a review from danjm March 30, 2023 20:48
danjm
danjm previously approved these changes Mar 30, 2023
Copy link
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@metamaskbot
Copy link
Collaborator

Builds ready [405fc8f]
Page Load Metrics (1713 ± 47 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint97150122136
domContentLoaded1580188016949244
load1580192017139947
domInteractive1580188016949244
Bundle size diffs
  • background: 0 bytes
  • ui: 134 bytes
  • common: 0 bytes

@codecov
Copy link

codecov bot commented Mar 31, 2023

Codecov Report

Merging #18388 (405fc8f) into develop (50d8740) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop   #18388   +/-   ##
========================================
  Coverage    64.66%   64.67%           
========================================
  Files          925      925           
  Lines        35535    35538    +3     
  Branches      9130     9130           
========================================
+ Hits         22978    22981    +3     
  Misses       12557    12557           
Impacted Files Coverage Δ
ui/hooks/useNftsCollections.js 95.12% <100.00%> (+0.39%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@danjm danjm merged commit e895ff3 into develop Mar 31, 2023
@danjm danjm deleted the fix-nft-unkown branch March 31, 2023 09:11
@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Collection name for ERC1155 displays incorrect value
6 participants