Skip to content

[PLAYER-103] refacto default turn icon and tooltip#179

Merged
jparez merged 3 commits into
epic/player-93-97-101from
dev/player-103-refacto-default-turn-icon-and-tooltip
Apr 8, 2026
Merged

[PLAYER-103] refacto default turn icon and tooltip#179
jparez merged 3 commits into
epic/player-93-97-101from
dev/player-103-refacto-default-turn-icon-and-tooltip

Conversation

@jparez
Copy link
Copy Markdown
Contributor

@jparez jparez commented Apr 1, 2026

Description

refacto default turn icon and tooltip

Tested on a PaaS device (injected the built .js and .css files).

without connectionFailedURL option :
image

with connectionFailedURL option :

image

@jparez jparez marked this pull request as draft April 1, 2026 09:35
@jparez jparez marked this pull request as ready for review April 1, 2026 13:39
@jparez jparez requested review from pgivel April 1, 2026 13:40
@jparez jparez force-pushed the dev/player-103-refacto-default-turn-icon-and-tooltip branch 2 times, most recently from d88e69e to f2108bb Compare April 2, 2026 06:57
Copy link
Copy Markdown
Contributor

@pgivel pgivel left a comment

Choose a reason for hiding this comment

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

small comment, LGTM otherwise

Comment thread src/plugins/util/TooltipManager.js Outdated
*/
setTooltip(element, text, position, classes = null) {
setTooltip(element, text, position, classes = null, isHTML = false) {
// isHTML is used to display HTML content in the tooltip. It should be used with caution, especially if the text content is user-generated (translation, ...).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This comment feels a bit redundant with the docstring right above

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

True, but I'm not sure developers will read the JSDoc, especially with a clearly named param. I prefer to keep the warning, but i can merge the 'beware' from the jsdoc into this sentence and clean up the jsdoc. Let me know what you think

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

as you wish, I don't have a strong opinion on this :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

After reflection, I prefer to keep both. Currently, the JSDoc isn't very useful because objects are marked as 'any', but I'd like to add TypeScript to the project later. In that case, JSDoc will be very helpful. This way, we’ll have a visual indicator (like an alert emoji) on hover, as well as the warning inside the function code for future updates.

@jparez jparez force-pushed the dev/player-103-refacto-default-turn-icon-and-tooltip branch from f2108bb to 781e0d7 Compare April 7, 2026 12:27
@jparez jparez force-pushed the dev/player-103-refacto-default-turn-icon-and-tooltip branch from 781e0d7 to 0b18ae5 Compare April 8, 2026 07:16
@jparez jparez merged commit bc05fa1 into epic/player-93-97-101 Apr 8, 2026
1 check passed
@jparez jparez deleted the dev/player-103-refacto-default-turn-icon-and-tooltip branch April 8, 2026 07:35
jparez added a commit that referenced this pull request Apr 29, 2026
…t-turn-icon-and-tooltip

[PLAYER-103] refacto default turn icon and tooltip
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