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: hide metrics #952

Merged
merged 2 commits into from
May 17, 2024
Merged

feat: hide metrics #952

merged 2 commits into from
May 17, 2024

Conversation

cazala
Copy link
Member

@cazala cazala commented May 16, 2024

This PR allows hiding the <Metrics /> panel using the UIClient via RPC.

await expect(client.toggleGroundGrid(false)).resolves.not.toThrow()
expect(store.dispatch).toHaveBeenCalledWith(toggleGroundGrid({ enabled: false }))
})
})
Copy link
Member Author

Choose a reason for hiding this comment

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

This test is not related to this PR, but we were missing a test case for the toggleGroundGrid method from a previous PR so I added it.

Copy link

cloudflare-workers-and-pages bot commented May 16, 2024

Deploying js-sdk-toolchain with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8e20373
Status: ✅  Deploy successful!
Preview URL: https://19de3955.js-sdk-toolchain.pages.dev
Branch Preview URL: https://feat-hide-metrics.js-sdk-toolchain.pages.dev

View logs

Copy link
Contributor

github-actions bot commented May 16, 2024

Test this pull request

  • The @dcl/sdk package can be tested in scenes by running

    npm install "https://sdk-team-cdn.decentraland.org/@dcl/js-sdk-toolchain/branch/feat/hide-metrics/dcl-sdk-7.4.22-9128409813.commit-d71a0b1.tgz"
  • To test with npx init

    export SDK_COMMANDS="https://sdk-team-cdn.decentraland.org/@dcl/js-sdk-toolchain/branch/feat/hide-metrics/dcl-sdk-commands-7.4.22-9128409813.commit-d71a0b1.tgz"
    npx $SDK_COMMANDS init
  • The @dcl/inspector package can be tested by visiting this url

    • Or by installing it via NPM
    npm install "https://sdk-team-cdn.decentraland.org/@dcl/js-sdk-toolchain/branch/feat/hide-metrics/@dcl/inspector/dcl-inspector-7.4.22-9128409813.commit-d71a0b1.tgz"
  • The /changerealm command to test test in-world

    /changerealm https://sdk-team-cdn.decentraland.org/ipfs/feat/hide-metrics-e2e
    
  • You can preview this build entering:
    https://playground.decentraland.org/?sdk-branch=feat/hide-metrics

@cazala cazala merged commit e3dda7a into main May 17, 2024
8 checks passed
@cazala cazala deleted the feat/hide-metrics branch May 17, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants