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

feat: Display dcl and ens worlds in worlds view #2933

Merged
merged 29 commits into from
Oct 4, 2023

Conversation

fzavalia
Copy link
Contributor

@fzavalia fzavalia commented Oct 2, 2023

Closes #2931
Closes #2913
Closes #2914

image image

@vercel
Copy link

vercel bot commented Oct 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 4:01am

@coveralls
Copy link

coveralls commented Oct 2, 2023

Pull Request Test Coverage Report for Build 6401348722

  • 39 of 58 (67.24%) changed or added relevant lines in 12 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 17.459%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/Modals/DeployModal/DeployToWorld_WorldsForEnsOwnersFeature/DeployToWorld.container.ts 0 1 0.0%
src/components/WorldListPage_WorldsForEnsOwnersFeature/WorldListPage.container.ts 0 1 0.0%
src/components/WorldListPage_WorldsForEnsOwnersFeature/WorldListPage.tsx 0 17 0.0%
Totals Coverage Status
Change from base Build 6397196656: 0.02%
Covered Lines: 3573
Relevant Lines: 16396

💛 - Coveralls

@@ -0,0 +1,3 @@
export const fromBytesToMegabytes = (bytes: number) => {
return bytes / 1000000
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@LautaroPetaccio LautaroPetaccio left a comment

Choose a reason for hiding this comment

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

The PR looks great! 👍 I've left a few comments to discuss / fix

@@ -601,7 +601,8 @@
"status_active": "Active",
"status_inactive": "Inactive",
"actions": "Actions",
"empty_url": "To activate this world you need to publish a scene"
"empty_url": "To activate this world you need to publish a scene",
"size": "Size mb"
Copy link
Contributor

Choose a reason for hiding this comment

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

What if we use the MB or Mb notation according to what they are?

Suggested change
"size": "Size mb"
"size": "Size MB"
Suggested change
"size": "Size mb"
"size": "Size Mb"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replaced all mb occurrences with Mb.

@@ -0,0 +1,3 @@
export const fromBytesToMegabytes = (bytes: number) => {
return bytes / 1000000
Copy link
Contributor

Choose a reason for hiding this comment

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

We should divide the bytes for 1024^2 here, would you mind changing it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if (!address) {
address = yield select(getAddress)
}
const address = action.payload.address ?? (yield call(getAddressOrWaitConnection))
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this required? If the wallet connected successfully, the state must be populated with the address.
What do you think about removing it and make action.payload.address required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed it as it is not necessary anymore given that the request is made when the wallet connects.

src/modules/ens/utils.spec.ts Outdated Show resolved Hide resolved
@@ -42,6 +42,11 @@ export const getExternalNamesForConnectedWallet = createSelector(getExternalName
return Object.values(externalNames).filter(externalName => isEqual(externalName.nftOwnerAddress, address))
})

export const getExternalNamesForWallet = (wallet: string) => (state: RootState) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind adding tests for this new selector?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added :D

fzavalia and others added 5 commits October 4, 2023 00:26
Co-authored-by: Lautaro Petaccio <1120791+LautaroPetaccio@users.noreply.github.com>
Signed-off-by: Fernando Zavalia <24811313+fzavalia@users.noreply.github.com>
Copy link
Contributor

@LautaroPetaccio LautaroPetaccio left a comment

Choose a reason for hiding this comment

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

Send it 🚀

@fzavalia fzavalia merged commit 5aa57f9 into master Oct 4, 2023
7 checks passed
@fzavalia fzavalia deleted the feat/dcl-and-ens-worlds-views branch October 4, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants