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

Add a warning on linked external events from another scene #6563

Merged
merged 8 commits into from
May 20, 2024

Conversation

D8H
Copy link
Collaborator

@D8H D8H commented May 13, 2024

Changes

  • Remove scene and external events owned by other scenes from autocompletion
  • Add a warning on linked external events from another scene

image

@D8H D8H requested a review from 4ian as a code owner May 13, 2024 16:57
{this.isLinkedToWrongLayout(target) ? (
<span
className={classNames({
[instructionWarningParameter]: true,
Copy link
Owner

Choose a reason for hiding this comment

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

Would be surely worth to create a new css class for this - this is not really a parameter and we can see the icon is too small compared to the text.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added a CSS rule for an icon in an event link. As the warning class only affect the color and underlining, I guess we could rename instruction-warning-parameter to something like warning-parameter one day.

@4ian
Copy link
Owner

4ian commented May 14, 2024

I suggest we move this to a ℹ️ icon with "Ensure the scene has the same objects, behavior and variables as the one used in these events" as the copy.

@D8H D8H merged commit 80b68d3 into master May 20, 2024
6 checks passed
@D8H D8H deleted the event-link-warning branch May 20, 2024 12:22
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.

None yet

2 participants