From e4c4301a7b7647b317485867ea79dbd15cb91cf6 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Tue, 24 Feb 2026 18:12:30 +0300 Subject: [PATCH] Add dirty check to all remaining editor modals Subclass Modal with snapshotValues() for: value source editor, audio source editor, add device, profile editor, capture template, stream editor, and PP template modals. Close/cancel now triggers discard confirmation when form has unsaved changes. Document the convention in CLAUDE.md. Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 29 ++++++ .../static/js/features/audio-sources.js | 22 ++++- .../static/js/features/device-discovery.js | 28 +++++- .../static/js/features/profiles.js | 21 +++- .../static/js/features/streams.js | 97 +++++++++++++++---- .../static/js/features/value-sources.js | 36 ++++++- 6 files changed, 201 insertions(+), 32 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index d3dfe7e..5138644 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -120,6 +120,35 @@ Add hint text to both `en.json` and `ru.json` locale files using a `.hint` suffi Do **not** add placeholder options like `-- Select something --`. Populate the `