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

Fix/aut 3923/textreader image figure support #606

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

olga-kulish
Copy link
Contributor

@olga-kulish olga-kulish commented Nov 8, 2024

Related to https://oat-sa.atlassian.net/browse/AUT-3923

Changes

  1. mediaAlignment/helper
    In TextReader PCI, parent.contentModel && parent.contentModel === 'inlineStatic' didn't pass because parent.contentModel was undefined. Because widget.refresh didn't run, something wasn't updated, and image align reverted to Inline.
    It seemed fine to always call widget.refresh instead of active/sleep/active for other cases (A-block, ChoiceInteraction choice), not only for Prompt. Only for prompts of MathEntry/Likert PCI, there was now "QTI XML compilation error" when there was <figure> in the prompt (figure wasn't allowed before, for same reason as in TextReader PCI), but it was solved by another change in Fix/aut 3923/textreader image figure support extension-tao-itemqti#2613
    This code was added in fix/AUT-2673/inline-figure-img #528, and refresh was added at the last moment.

  2. FigureStateActive
    Image Caption textarea in Authoring side panel: it was completely collapsed for newly added images. Add some min-height to it. Image Caption textarea appears after you wrap inline image.

Test

On unit05. Related PRs:

Copy link

github-actions bot commented Nov 8, 2024

Version

Target Version 3.8.1
Last version 3.8.0

There are 0 BREAKING CHANGE, 0 feature, 2 fixes

Copy link

github-actions bot commented Nov 8, 2024

Coverage Report

Totals Coverage
Statements: 77.09% ( 14348 / 18613 )
Methods: 80.41% ( 1814 / 2256 )
Lines: 81.59% ( 8589 / 10527 )
Branches: 67.67% ( 3945 / 5830 )

StandWithUkraine

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.

1 participant