scheduling an update when an instance is unlocked#833
Conversation
|
Coverage Impact This PR will not change total coverage. Modified Files with Diff Coverage (1)
🛟 Help
|
There was a problem hiding this comment.
Pull request overview
This PR addresses Issue #810 by ensuring the Component Viewer schedules a refresh/update when a previously locked SCVD root instance is unlocked, so the GUI can catch up after being held.
Changes:
- Renames/extends the update-reason type (
fifoUpdateReason→UpdateReason) and adds a new reason for unlocking. - Triggers
schedulePendingUpdate('unlockingInstance')when an instance transitions from locked → unlocked. - Adds unit tests verifying update scheduling behavior on lock vs unlock.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/views/component-viewer/component-viewer-main.ts |
Adds unlockingInstance update reason and schedules an update when unlocking an instance. |
src/views/component-viewer/test/unit/component-viewer-main.test.ts |
Updates types and adds tests for unlock-triggered scheduling behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jreineckearm
left a comment
There was a problem hiding this comment.
LGTM, works nicely.

Fixes
Changes
Screenshots
Checklist