]> git.kaiwu.me - haproxy.git/commit
DEV: patchbot: gray the save button when there is nothing to save
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Jul 2026 16:55:56 +0000 (18:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Jul 2026 12:45:32 +0000 (14:45 +0200)
commitf583269db92fea01d52e2094fbafa49f8a981ae7
tree9955750c22214c63ef599c902e427cf25c010e1a
parenta6906d799f5cd0698368d39cc323a21e17adff09
DEV: patchbot: gray the save button when there is nothing to save

The "Save changes" button used to remain active all the time, giving no
hint about whether anything was pending. It is now disabled whenever
nothing differs from the reference: no verdict change, no non-empty
note addition, no note edition differing from its base. It gets
re-evaluated after every action which may change that (verdict clicks,
typing in a note input, opening/cancelling a box, updates and saves),
bailing out at the first pending change so the common case stays cheap.

As a side effect, the button lighting up right after a reload confirms
at a glance that the browser restored unsaved local edits.
dev/patchbot/scripts/post-ai.sh