DirectedEdges / specs-plugin

34 stars 0 forks source link

Refresh existing specs #81

Open nathanacurtis opened 1 year ago

nathanacurtis commented 1 year ago

Problem

After a user has continued to work on a component after generating specs, the specs get out of date.

The plugin does not detect those changes, nor will it automatically replace/alter specs that have been produced (since users may have made changes themselves that the plugin is unaware of).

Solution

Enable the user to "Refresh" a spec by clicking a Refresh button for that item within the specs list's action item group.

image

austinstudio commented 10 months ago

Is this getting any traction? This would be amazing.

nathanacurtis commented 10 months ago

@austinstudio Feedback (not recorded here) from a few users and other collaborators suggest a few things:

  1. In the intended depicted form, to refresh a spec at this level is risks being destructive (replace existing with brand new generated spec) by replacing portions of specs the user had since customized
  2. What users really want is to "refresh only the portions of spec that correspond to how the component has changed, and leave other portions of the spec untouched", which is far too complicated and unrealistic for me to develop.
  3. Users also wanted refreshing buttons at a more granular level, such as "Refresh Layout and Spacing only" or "Refresh only the showTitle boolean property spec." That requires the plugin UI to be considerably extended.

How do you respond to 1, 2 and 3?

nathanacurtis commented 3 months ago

Feedback from Brie S in Slack: "For us, the run-spec again thing would be ideal, because we dont always run the exact same configuration and being able to just update whats there would be awesome. what about spitting out at the bottom of the spec what was turned on/off, to make it easier for folks to do the rerun without having to guess? kindof a self serve/audit?"