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

Remove self-contained GLTF/GLB asset #569

Merged
merged 3 commits into from
May 10, 2023
Merged

Remove self-contained GLTF/GLB asset #569

merged 3 commits into from
May 10, 2023

Conversation

nicoecheza
Copy link
Contributor

@nicoecheza nicoecheza commented May 5, 2023

closes decentraland/sdk#757

May-05-2023 13-21-56

🤖 Generated by Copilot at ddee27e

This pull request adds and updates several components and files in the @dcl/inspector package, mainly to improve the UI and functionality of the inspector tool. It introduces the react-modal and classnames modules as dependencies, and uses them to create a Modal component and to apply conditional styles to the Button and Block components. It also adds the ability to remove an asset from the project, and shows a warning modal if the asset is used by some components. It simplifies some code by using hooks and variables, and fixes some minor issues with the input validation and the context menu.

@nicoecheza nicoecheza force-pushed the feat/asset-removal branch from ddee27e to 021da35 Compare May 5, 2023 16:39
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 5, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: a7b467a
Status: ✅  Deploy successful!
Preview URL: https://f6f4fdf3.js-sdk-toolchain.pages.dev
Branch Preview URL: https://feat-asset-removal.js-sdk-toolchain.pages.dev

View logs

@nicoecheza nicoecheza force-pushed the feat/asset-removal branch from 021da35 to 0ebe674 Compare May 5, 2023 16:42
@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2023

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/asset-removal/dcl-sdk-7.1.10-4938082790.commit-3954539.tgz"
  • To test with npx init

    export SDK_COMMANDS="https://sdk-team-cdn.decentraland.org/@dcl/js-sdk-toolchain/branch/feat/asset-removal/dcl-sdk-commands-7.1.10-4938082790.commit-3954539.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/asset-removal/@dcl/inspector/dcl-inspector-7.1.10-4938082790.commit-3954539.tgz"
  • The /changerealm command to test test in-world

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

@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Patch coverage: 8.88% and project coverage change: -0.29 ⚠️

Comparison is base (17fae89) 71.88% compared to head (a7b467a) 71.60%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #569      +/-   ##
==========================================
- Coverage   71.88%   71.60%   -0.29%     
==========================================
  Files         245      247       +2     
  Lines        8416     8451      +35     
  Branches     1073     1075       +2     
==========================================
+ Hits         6050     6051       +1     
- Misses       2268     2300      +32     
- Partials       98      100       +2     
Impacted Files Coverage Δ
...kages/@dcl/inspector/src/components/Block/types.ts 0.00% <0.00%> (ø)
...ages/@dcl/inspector/src/components/Button/types.ts 0.00% <0.00%> (ø)
...kages/@dcl/inspector/src/components/Modal/index.ts 0.00% <0.00%> (ø)
...kages/@dcl/inspector/src/components/Modal/types.ts 0.00% <0.00%> (ø)
.../@dcl/inspector/src/hooks/catalog/useFileSystem.ts 0.00% <0.00%> (ø)
.../@dcl/inspector/src/hooks/sdk/useComponentInput.ts 0.00% <0.00%> (ø)
...l/inspector/src/lib/data-layer/host/rpc-methods.ts 70.31% <18.18%> (-5.12%) ⬇️
.../@dcl/inspector/src/lib/logic/in-memory-storage.ts 85.91% <50.00%> (ø)
...ector/src/components/ProjectAssetExplorer/utils.ts 33.33% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nicoecheza nicoecheza force-pushed the feat/asset-removal branch 3 times, most recently from 5b7584c to de9b436 Compare May 5, 2023 18:39
@nicoecheza nicoecheza marked this pull request as ready for review May 5, 2023 18:39
@nicoecheza nicoecheza force-pushed the feat/asset-removal branch 3 times, most recently from 970a1fe to 9e1f5ad Compare May 8, 2023 14:43
@nicoecheza nicoecheza force-pushed the feat/asset-removal branch from 9e1f5ad to 36d0e6b Compare May 10, 2023 13:42
@nicoecheza nicoecheza force-pushed the feat/asset-removal branch 2 times, most recently from ca99ea3 to 963cb8a Compare May 10, 2023 14:11
@nicoecheza nicoecheza enabled auto-merge (squash) May 10, 2023 14:14
@nicoecheza nicoecheza force-pushed the feat/asset-removal branch from 963cb8a to a7b467a Compare May 10, 2023 14:20
@nicoecheza nicoecheza merged commit a1c5020 into main May 10, 2023
@nicoecheza nicoecheza deleted the feat/asset-removal branch May 10, 2023 14:39
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.

Remove self-contained GLTF/GLB asset
2 participants