Commit Graph
2 Commits
Author SHA1 Message Date
Yichen Jiang 5d3f392cd3 refactor(client-ui-plugin-config): stage card edits behind an explicit save
Controls committed on blur, which turned leaving a field into a durable,
revision-fenced document write the user could neither preview nor undo, and
silently discarded a draft the field did not accept.

A card's form now owns the staged text every control renders, and Save is the
only point where drafts become writes. Reset stages the composed default the
same way; an invalid draft blocks the save with its reason instead of being
dropped; Discard drops the drafts; a collapsed card marks that it holds some.
The Host stays the only authority on whether a value was accepted, so the save
reads the section back and keeps the drafts of a save that did not land.
2026-08-10 22:51:12 +08:00
Yichen Jiang 114af09aae test(web): cover the plugin configuration section end to end
Three scenarios over the real wire: the cards this deployment's exposed
namespaces produce, one field edited down to the settings document with the
override badge that layering produces, and the reset that clears it back to
the composed default.

Every other settings golden gains the same nav entry and nothing else.
2026-08-10 19:42:43 +08:00