Skip to content

[ENHANCEMENT] [MER-5047] [MER-5048] make audio-only popup play on click; stop dummy meaning pre-empting translation#291

Merged
rgachuhi merged 4 commits intomasterfrom
MER-5047-5048-popup-fixes
Oct 27, 2025
Merged

[ENHANCEMENT] [MER-5047] [MER-5048] make audio-only popup play on click; stop dummy meaning pre-empting translation#291
rgachuhi merged 4 commits intomasterfrom
MER-5047-5048-popup-fixes

Conversation

@andersweinstein
Copy link
Contributor

@andersweinstein andersweinstein commented Oct 24, 2025

This fixes two issues for migrating popups of particular relevance to language courses:

  • If a popup contains only audio, instructors want it to require deliberate click to play. Default of hover causes audio to play on every mouseover which is undesired.

  • Also fixes an issue where a popup containing a "translation" element was not getting its content migrated. This happened in a case where the legacy "extra' element also contained a meaning element containing a dummy empty paragraph. Migration expects to find popup content in either "meaning" or "translation" (they both have same effect, the only difference is semantic tagging). It looks for a meaning first, so inclusion of a dummy empty paragraph here was pre-empting the content in the translation element. While this can be fixed in the sourceby deleting the dummy meaning, this PR enhances migration tool to ignore meaning in this case, so no source change is required.

This PR also adjusts use of an existing utility predicate now renamed emptyOrDummyContent which apparently was not being called correctly when processing optional common prologue content in question pools. (Pool prologue content is included so rarely, this error apparently was never noticed).

@andersweinstein andersweinstein changed the title [ENHANCEMENT] [MER-5047] [MER-5048] make audio-only play on click; stop dummy meaning pre-empting translation [ENHANCEMENT] [MER-5047] [MER-5048] make audio-only popup play on click; stop dummy meaning pre-empting translation Oct 25, 2025
@rgachuhi rgachuhi merged commit 2a7cb6a into master Oct 27, 2025
2 checks passed
@rgachuhi rgachuhi deleted the MER-5047-5048-popup-fixes branch October 27, 2025 14:44
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