You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(editor): stale Test/validation feedback must clear as soon as the user edits #102
Follow-up to the YAML config editor (#95), identified in the post-implementation review.
Problem
Run Test (or trigger a save error): a status banner + validation issue list appear above the editor. The user then edits the configuration — but the stale banner/issues stay on screen, even though they no longer describe the current document. The user must mentally re-validate: any feedback that survives the edit that invalidated it is wrong feedback.
Proposed solution
In the existing EditorView.updateListener in ConfigEditorModal.tsx (currently only tracking dirty state inside if (update.docChanged)), also clear the feedback state on every document change:
setStatus(null); setIssues([]);
A subsequent action (Test, Save, Apply) re-populates them through the normal dispatch paths. No server change.
Acceptance criteria
Any keystroke, paste, undo/redo or Revert/New that changes the document wipes the banner and issue list.
Results never outlive the edit that invalidated them.
The banner reappears on the next explicit action or live-validation cycle (follow-up issue).
Dirty tracking keeps working exactly as today (no behavior change there).
Tests
ConfigEditorModal.test.tsx: Test → error banner shown; type into the editor → banner and issue list cleared; run Test again → shown anew.
Activity
Merge pull request #108 from falbany/fix/editor-clear-and-live-valida…
fix(Web): repair ConfigEditorModal.test.tsx merge corruption, rebuild…
Merge pull request #110 from falbany/feat/yaml-config-editor