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 possibility to display message in the preview when an in-app tutorial is running #7379

Merged
merged 6 commits into from
Feb 10, 2025

Conversation

AlexandreSi
Copy link
Collaborator

@AlexandreSi AlexandreSi commented Feb 6, 2025

image

@AlexandreSi AlexandreSi requested a review from 4ian as a code owner February 6, 2025 16:33
@@ -0,0 +1,185 @@
const redHeroImage =
Copy link
Owner

Choose a reason for hiding this comment

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

Put this into the namespace, otherwise the esbuild transpilation will create this as a global variable.

(we're sadly not using modules)

</div>
</div>
);
if (_container) domElementContainer.appendChild(_container);
Copy link
Owner

Choose a reason for hiding this comment

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

it can't be null/undefined here, no?

Copy link
Owner

@4ian 4ian left a comment

Choose a reason for hiding this comment

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

Overall lgtm!

@AlexandreSi AlexandreSi enabled auto-merge (squash) February 10, 2025 09:50
Comment on lines +181 to +182
// @ts-ignore - TS doesn't acknowledge the assignation above that excludes
// the possibility that _container can be null.
Copy link
Owner

Choose a reason for hiding this comment

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

You could try:

const container = (<div ...)
domElementContainer.appendChild(_container = container)

not sure if better, but at least avoids a ts-ignore

@AlexandreSi AlexandreSi merged commit 90cdc87 into master Feb 10, 2025
5 of 6 checks passed
@AlexandreSi AlexandreSi deleted the in-app-tutorial-in-game branch February 10, 2025 10:00
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