ui: Storybook story for RecordForm baseline and dirty #92
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #51 (PR #90).
RecordFormgained abaselineprop and adirtymodel (v-model:dirty, also exposed on the instance), but Storybook has no story for either. The RecordForm AUDIT says stories cover its other behaviours, so this is the one gap.Proposal: a story under the existing RecordForm stories that binds
baseline, shows thedirtystate (a badge or text bound tov-model:dirty), and resets the baseline on submit so the flow is visible. Optionally a second story that pairs it withuseUnsavedChangesand anAlertDialog, if the Storybook router setup allows a route-leave; otherwise thebeforeunloadhalf only, without a play function.