Repository navigation
Keep QTI content an edit doesn't touch - #6486
Open
rtibblesbot wants to merge 2 commits into
Open
rtibblesbot wants to merge 2 commits into
rtibblesbot wants to merge 2 commits into
Conversation
rtibblesbot
force-pushed
the
issue-6309-cc75e3
branch
from
November 30, 2026 02:45
abf3b75 to
5a158b6
Compare
rtibblesbot
marked this pull request as ready for review
November 30, 2026 03:05
rtibblesbot
force-pushed
the
issue-6309-cc75e3
branch
from
November 30, 2026 03:13
5a158b6 to
72bb374
Compare
- Math nodes keep stored MathML in a `mathml` attribute and restore it on save - An editor whose content matches what it loaded reports the loaded value - An image's size is saved only by the author's insert, replacement or resize - Add `schemaKeepsContent` to check whether TipTap's schema keeps a field's markup - Code blocks keep their newlines when content loads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Interactions keep the attributes their builder doesn't write - Formulas stored as MathML are saved as MathML - Text entry answers are read one per mapping entry - An unedited card saves nothing, numeric items included - Items the editor can't keep intact open read-only Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rtibblesbot
force-pushed
the
issue-6309-cc75e3
branch
from
November 30, 2026 07:12
72bb374 to
2fa6a55
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
validateQtiItemagree on it.References
Fixes #6309. Related: #6327, #6349.
Reviewer guidance
Suggested review: Full code review, then manual QA once the reviewer sets Needs QA.
Engineer review
identifier(e.g.fixed="false") should lock the item, as the branch does (inlineChoice/Descriptor.js:63), and whether a resize made before an image loads may savewidthalone when the image loads while its hint is minimized (ImageNodeView.vue:151).Engineer evidence
Saving drops unmodeled attributes on interaction children.
Unrelated edits regenerate imported presentation settings.
Unrelated edits regenerate imported scoring settings.
Unrelated edits can merge Text Entry keys that differ only in outer whitespace.
The first unrelated edit canonicalizes a parseable localized numeric answer.
Replacing an image with one stored dimension before its preview loads leaves Perseus without a size.
Redoing a resize before intrinsic dimensions are readable can leave Perseus without a size.
Saving an unchanged Edit image dialog can add
permanentsrcwhen the caret is outside the image.Decide whether
<b>,<i>, or an inline image should lock a converted question (contentcuration/contentcuration/frontend/shared/views/QTIEditor/validateItem.js:237).Decide how #6349's parser should handle preserved annotated MathML (
contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/extensions/Math.js:32).Decide whether image insertion or replacement must obtain dimensions before the preview loads (
contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/composables/useImageHandling.js:65).Open risks:
<span data-latex>, which publishes empty until the related PR merges.<math>asdata-latexspans, where this branch keeps MathML; whichever merges second rebasesMath.jsand the math fixtures.<b>/<i>and inline images open read-only, since TipTap writes them back changed; should they stay editable?QA review
Manual QA steps
QA team: an edit keeps question content it does not change. Look most at formulas and images.
Requires: the development sample data. Open "Published Channel" > "Topic 1" > "Sample Exercise" > "QUESTIONS".
Look out for:
Captures (10)
Insert, resize, replace and undo an image
image-resize-replace-undo.webm
Edit a formula in a question prompt
s2-formula-enter-edit-save-cancel.webm
AI usage
Claude Code planned, implemented and self-reviewed the change. Verified with the full Jest suite, pre-commit, and probes in headless Chromium.
Written by rtibblesbot, an LLM-based coding agent.
🟡 Waiting for feedback
WAITING · for reviewLast updated: 2026-11-30 07:18 UTC