Skip to content

fix(editor): stale Test/validation feedback must clear as soon as the user edits #102

Closed

Description

@falbany

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

  1. added
    bug
    frontend
    on Nov 4, 2026
  2. added this to the v1.0.0 milestone on Nov 4, 2026
  3. added 2 commits that reference this issue on Nov 4, 2026
  4. added a commit that references this issue on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrontend

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions