Page MenuHomePhabricator

Controls: add a "reset" button
Closed, ResolvedPublic

Description

It would be nice to be able to reset configurable props and slots back to their default values in the Controls panel. We could consider an icon-only button with the refresh icon for this.

Event Timeline

Additionally, this reset button should reset the internal state of the component. For example, the Message component (when the type is "notice") is dismissable, and once it's been dismissed you can't get it back.

Additionally, this reset button should reset the internal state of the component. For example, the Message component (when the type is "notice") is dismissable, and once it's been dismissed you can't get it back.

That should be possible with :key - just change the key for the element when trying to reset

Change 769843 had a related patch set uploaded (by DannyS712; author: DannyS712):

[design/codex@main] docs, Wrapper: add a "reset" button

https://gerrit.wikimedia.org/r/769843

DannyS712 changed the task status from Open to In Progress.Mar 11 2022, 6:41 PM
DannyS712 moved this task from Codex Adoption to Infrastructure on the Codex board.

Change 769843 merged by jenkins-bot:

[design/codex@main] docs, Wrapper: add a "reset" button

https://gerrit.wikimedia.org/r/769843