Repository navigation
Show changes made elsewhere in an open exercise's questions - #6484
Open
rtibblesbot wants to merge 4 commits into
Open
rtibblesbot wants to merge 4 commits into
rtibblesbot wants to merge 4 commits into
Conversation
- An open card keeps the author's version; closing it reloads from the current item unless the close reported a newer edit. - Inside a question card, TipTap reports only a changed document, so focusing the prompt and closing reports nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- `update` carries the edited question's id, a move, or an add's neighbours, so the parent writes only what the author changed. - Close the open question when it leaves the list. - Keep focus in the list when a question is removed or replaced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- `applyUpdate` writes the edited question, a move or an insert without comparing with the store, which can hold an older own value. - Moves and inserts renumber from the table's rows. - Completeness reads the exercise's rows, once per content node. - Deleting a missing question no longer decrements the count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The assessment item store reads the `contentnode,assessment_id` key the IndexedDB plugin sends, so updates and deletes made elsewhere reach it, and creates store no stray key property. - Updates apply the resulting row's values for the changed paths. - `ResourcePanel`'s preview cards keep focus when a question leaves. Fixes learningequality#6477 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rtibblesbot
force-pushed
the
issue-6477-e03bbf
branch
from
November 29, 2026 16:30
edcc0d9 to
680ab70
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
An open exercise's questions ignored changes from another tab, a collaborator or the background refresh. The next local edit wrote stale content back.
References
Fixes #6477. Related: #6340 — its reopen gap now covers only a question opened before the refresh lands.
Reviewer guidance
Suggested review: Full code review, then manual QA once the reviewer sets Needs QA.
Engineer review
useQuestionListFocus.js:38), whichupstream/unstablealready does after a remote add; a reviewer decides that, the three engineer items inhuman_review.md, and the test-shape suggestions onAssessmentTab.spec.js:26,:174,:335.channelEdit/vuex/contentNode/actions.js:407).channelEdit/vuex/assessmentItem/actions.js:82and:170).shared/views/QTIEditor/components/QTIItemEditor/index.vue:315).channelEdit/components/AssessmentTab/AssessmentTab.vue:21).Engineer evidence
Jest mocks
TipTapEditorand has no real second tab.complete: truebeside an invalid question; the next question edit corrects it.QA review
Manual QA steps
QA team: an exercise's questions now show changes from another tab. Two tabs that change one question are the main risk.
Requires: an exercise with 3 questions. Open its Edit details > QUESTIONS in tabs A and B.
Wait 2 seconds after an edit before you reload. A faster reload can lose the edit.
Captures (4)
One tab: keyboard delete
s2-reorder-duplicate-delete.webm
Two tabs
s4-tabA-close-after-tabB-later-save.webm
AI usage
Used Claude Code to trace the sync path, write the tests and the fix, and draft this description. Verified with the Jest suites for the touched modules and pre-commit.
🤖 Generated with Claude Code
Written by rtibblesbot, an LLM-based coding agent.
🟡 Waiting for feedback
WAITING · for reviewLast updated: 2026-11-29 16:32 UTC