Skip to content

feat: 4088 add z-index support for ui elements #1127

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

Merged
merged 16 commits into from
Jun 13, 2025

Conversation

AlejandroAlvarezMelucciDCL
Copy link
Contributor

@AlejandroAlvarezMelucciDCL AlejandroAlvarezMelucciDCL commented Jun 5, 2025

Addresses the SDK implementation for issue decentraland/unity-explorer#4088

Related PRs:
Protocol: decentraland/protocol#266
E@: decentraland/unity-explorer#4366

Copy link

cloudflare-workers-and-pages bot commented Jun 5, 2025

Deploying js-sdk-toolchain with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5532b58
Status: ✅  Deploy successful!
Preview URL: https://1572b33a.js-sdk-toolchain.pages.dev
Branch Preview URL: https://feat-4088-z-index-for-ui.js-sdk-toolchain.pages.dev

View logs

Copy link
Contributor

github-actions bot commented Jun 5, 2025

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/4088-z-index-for-ui/dcl-sdk-7.8.11-15638589216.commit-1a160c8.tgz"
  • To test with npx init

    export SDK_COMMANDS="https://sdk-team-cdn.decentraland.org/@dcl/js-sdk-toolchain/branch/feat/4088-z-index-for-ui/dcl-sdk-commands-7.8.11-15638589216.commit-1a160c8.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/4088-z-index-for-ui/@dcl/inspector/dcl-inspector-7.8.11-15638589216.commit-1a160c8.tgz"
  • The /changerealm command to test test in-world

    /changerealm https://sdk-team-cdn.decentraland.org/ipfs/feat/4088-z-index-for-ui-e2e
    
  • You can preview this build entering:
    https://playground.decentraland.org/?sdk-branch=feat/4088-z-index-for-ui

Copy link
Contributor

github-actions bot commented Jun 5, 2025

⚠️ Local Dependencies Detected

This PR contains package dependencies that use local paths (file:) or non-allowed URLs (http:, https:, git:).
These must be published and referenced properly before merging.

Not allowed dependencies:

- Dependency @dcl/protocol is not pointing to a published version: https://sdk-team-cdn.decentraland.org/@dcl/protocol/branch//dcl-protocol-1.0.0-15509488195.commit-6001334.tgz

Review the workflow logs for more details.

Note: This comment is automatically updated when the PR is updated.

@AlejandroAlvarezMelucciDCL AlejandroAlvarezMelucciDCL changed the title chore: 4088 z-index for ui feat: 4088 add z-index support for ui elements Jun 6, 2025
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.96%. Comparing base (b281f0c) to head (ca77e0d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1127      +/-   ##
==========================================
+ Coverage   62.33%   71.96%   +9.62%     
==========================================
  Files         618      159     -459     
  Lines       20645     5358   -15287     
  Branches     2518      977    -1541     
==========================================
- Hits        12870     3856    -9014     
+ Misses       7338     1370    -5968     
+ Partials      437      132     -305     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AlejandroAlvarezMelucciDCL AlejandroAlvarezMelucciDCL marked this pull request as ready for review June 12, 2025 02:22
@AlejandroAlvarezMelucciDCL AlejandroAlvarezMelucciDCL merged commit cdf6a90 into main Jun 13, 2025
25 checks passed
@AlejandroAlvarezMelucciDCL AlejandroAlvarezMelucciDCL deleted the feat/4088-z-index-for-ui branch June 13, 2025 16:58
AlejandroAlvarezMelucciDCL added a commit that referenced this pull request Jun 13, 2025
* fix play video not updaing src property (#1129)

* add default emotes (#1132)

* feat: 4088 add z-index support for ui elements (#1127)

* Updated protocol pointers to dev branch

* Added zIndex to the react-ecs component and test

(cherry picked from commit 7ea5cfd)

* Added opacity property to ui elements

* Fixed tests

* Updated protocol

* Updated snapshots

* Removed redundant definitions. Added test coverage

* Adjusted the default value in test

* ui transform  test wip

* Added more tests. Refactored parseUiTransform utility function to properly handle the new properties

* Deep clean and snapshot

* Removed redundant tests, removed redundant defaults definitions.

* Updated snapshots

* Updated default value for opacity and updated snapshots

* Updated protocol and snapshots

---------

Co-authored-by: Gon Pombo <[email protected]>
kuruk-mm added a commit that referenced this pull request Jun 19, 2025
* update left/right click button behaviour on renderer (#1078)

* update left/right click button behaviour on renderer

* remove gizmo right click button

* fixed review comments

* remove desktop client (OLD) option (#1083)

* select "Scene" in tree on startup (#1082)

* update left/right click button behaviour on renderer

* select 'Scene' in tree on startup

* add refresh button for Assets (#1085)

* support border in uitransforms (#1084)

* support border in uitransforms

* fix build

* change protocol to experimental

* use main protocol

* fix snapshots test

* fix tests

* fix coverage

* update protocol

* export useEffect & useState (#1089)

* export useEffect & useState

* fix tests

* fix: Animation weight value (#1090)

* fix: Animation weight value

* fix: Animation weight and speed default value

* revert .vscode/settings.json

* lint

* update .crdt

* fix models removal when using filters (#1088)

* add video player to syncEntities (#1097)

* add skip-auth-screen & landscape-terrain-enabled options for preview (#1096)

* chore: Add check local packages action (#1092)

* chore: Update asset-packs package

* fix: Allow dev package

* chore: Move check no local packages to a GHAction

* chore: Update asset-packs package

* fix: Convert TS file to CJS

* fix: GHAction comment id

* chore: Move local dependencies check to ci pipeline

* fix: debug downloaded files

* chore: Enhance message

* chore: simplify comment dependencies logic

* chore: Generate comment.md to properly show in the PR

* fix: string comment

* fix: error detection

* fix: check exit code

* fix: catch exit code

* chore: Update @dcl/asset-packs

* remove AudioSource component from not sync list (#1099)

* add entity highlight when selected (#1103)

* fix: Handle components schemas errors (#1098)

* fix: Basic view TweenComponent to better handle empty entities

* fix: Sync external changes

* feat: Add Default Basic View Field

* fix: Add SyncComponents to Smart Items when using the AdminTools (#1100)

* chore: Update @dcl/asset-packs package

* fix: Update createEnumEntityId

* feat: Add new util addSyncComponentsToEntities to add the Synccomponent and Network component to multiple entities

* fix: Tests

* chore: Update @dcl/asset-packs package

* fix: Remove components for actions that doesn't create components on the fly

* fix: Add a validation to avoid include Tween and Transform in the SyncComponent at the same time

* chore: Update @dcl/asset-packs

* update @dcl/[email protected] (#1106)

* feat: add type safe entity names file (#1107)

* feat: add type safe entity names file

* fix build:

* simplify enum types

* update tests

* fix bad merge issue with onChange

* feat: change shortcut for rotating camera (#1110)

Co-authored-by: Alejandra Levy <[email protected]>

* fix Texture being flipped vertically (#1111)

* add video screen (#1105)

* add video screen

* update asset-packs package

* update ui

* update asset-packs

* update asset-packs

* fix ui styles

* fix volume and losing focus

* update assert-packs

* bump asset-packs

* feat: add search param to actions dropdown (#1113)

* feat: add search param to actions dropdown
* feat: add searchable in Trigger Action and Trigger Basic View

* feat: show selected entity first on dropdown (#1112)

* feat: show selected entity first on dropdown

* feat: remove unused import and reorder import

* Update packages/@dcl/inspector/src/components/ui/EntityField/EntityField.tsx

Co-authored-by: Gabriel Díaz <[email protected]>
Signed-off-by: Alejandra Levy <[email protected]>

* feat: update method

---------

Signed-off-by: Alejandra Levy <[email protected]>
Co-authored-by: Gabriel Díaz <[email protected]>

* Support jpg textures (#1114)

* feat: support jpg & jpge textures

* feat: support jpg and jpeg for all images inputs

* feat: update validation for textures

* feat: Update regez to support .jpg and .jpge extensions

* feat: fix lint issues

* feat: add validation on input change

* feat: change regex to pass tests

* feat: update validation on component

* feat: add error message for invalid URL and stop validating empty field

* feat: update message

* Update global value on Audio Source component (#1119)

* feat: update global value & validate source input only where there's a value

* feat: remove debugger

* Support global prop on play sound action (#1120)

* feat: support global prop on play sound action

* feat: update pacjkage json

* feat: update package json and fix issues

* feat: install asset packs version

* feat: update asset pack version

* feat: install asset packs version on inspector

* feat: remove asset packs from root package.json

* feat: update package-lock

* fix enter scene callback not being fired if there is no onLeaveCb (#1124)

* fix enter scene callback not being fired if there is no onLeaveCb

* fix tests and update asset-packs

* feat: cursor position info (#1123)

* Updated protocol and added test for the new PrimaryPointerInfo component

* Lint-fix pass

* fix play video not updaing src property (#1129)

* add default emotes (#1132)

* feat: 4088 add z-index support for ui elements (#1127)

* Updated protocol pointers to dev branch

* Added zIndex to the react-ecs component and test

(cherry picked from commit 7ea5cfd)

* Added opacity property to ui elements

* Fixed tests

* Updated protocol

* Updated snapshots

* Removed redundant definitions. Added test coverage

* Adjusted the default value in test

* ui transform  test wip

* Added more tests. Refactored parseUiTransform utility function to properly handle the new properties

* Deep clean and snapshot

* Removed redundant tests, removed redundant defaults definitions.

* Updated snapshots

* Updated default value for opacity and updated snapshots

* feat: Update asset packs package (#1135)

* update protocol from protocol-squad branch
add "make update-protocol-squad"

* fixes and update crdt snapshots

* reduce coverage to 90% for protocol-squad branch

* update protocol (add setUiFocus)

---------

Signed-off-by: Alejandra Levy <[email protected]>
Co-authored-by: Nicolas Echezarreta <[email protected]>
Co-authored-by: Gon Pombo <[email protected]>
Co-authored-by: Gabriel Díaz <[email protected]>
Co-authored-by: Alejandra Levy <[email protected]>
Co-authored-by: Alejandra Levy <[email protected]>
Co-authored-by: Alejandro Alvarez Melucci <[email protected]>
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