You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add PATCH champs/:stable_id/revert_prefill route and controller action.
Restores the prefilled original value via turbo_stream re-render.
Guarded by ensure_ownership_or_invitation! and ensure_dossier_can_be_updated.
Add revert button visible when user modifies a prefilled champ.
Uses DSFR tertiary button style, triggers turbo_stream PATCH
to revert_prefill action. Integrated in editable_champ_component after InputStatusMessage.
End-to-end tests verifying:
- Revert button appears when prefilled value is modified
- Revert button does not appear when value is unchanged
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments