fix: re-render schedule table after copy-to-course (#154) - #159
Merged
Conversation
Add app.ui.renderScheduleTable() call after closeHandler(true) in the copy-inline handler (Interaction.js.html L531). Without this, copied courses appear in scheduleData but the table UI only re-renders the original cell — target cells remain stale until undo/redo or manual refresh triggers a full re-render. All 1164 tests pass. Fixes #154 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Agend-Agent: cb-team-impl Agend-Task: t-20260624124258900803-40473-42 Agend-Branch: fix/154-copy-course-render Agend-Issued-At: 2026-06-24T12:43:32.937355+00:00
Owner
Author
✅ VERIFIEDReviewed HEAD: Files Reviewed (1)
Fast Path Checklist
Evidence
|
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.
What
Fix #154: 「複製到」(copy-to) course operation updates
scheduleDatabut doesn't re-render the schedule table, so copied courses only appear after undo/redo or page refresh.Root Cause
In
Interaction.js.htmlL524-530, the copy-inline handler callscloseHandler(true)which only re-renders the original cell. Target cells where courses were copied to remain stale.Fix
Add
app.ui.renderScheduleTable()aftercloseHandler(true)to trigger a full table re-render showing all copied courses.closeHandler(true); +app.ui.renderScheduleTable(); // Fix #154: re-render to show copied coursesChanged Files (1)
Interaction.js.html(+1 line)Verification
npm test: 1164 tests passed (37 files) ✅Fixes #154