Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh existing specs #81

Open
nathanacurtis opened this issue Jun 1, 2023 · 3 comments
Open

Refresh existing specs #81

nathanacurtis opened this issue Jun 1, 2023 · 3 comments
Labels
Customer request Enhancement Enhances existing feature

Comments

@nathanacurtis
Copy link
Member

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
Copy link

Is this getting any traction? This would be amazing.

@nathanacurtis
Copy link
Member Author

@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
Copy link
Member Author

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?"

@nathanacurtis nathanacurtis changed the title Refresh already-existing specs Refresh existing specs Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer request Enhancement Enhances existing feature
Projects
Status: No status
Development

No branches or pull requests

2 participants