-
Notifications
You must be signed in to change notification settings - Fork 2
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
UI: Add ability to un-accept per story #82
Conversation
AP-3626 Add "unaccept" button
Allow resetting an accepted test back to "pending". As discussed below, the button does not deal with batching. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @ndelangen
I suspect that there are scenarios where there's a newer build coming in where "Approve" and "Unapprove" need to be disabled. @tmeasday
Yes, I think it's part of this ticket @ndelangen https://linear.app/chromaui/issue/AP-3633/show-snapshot-outdated-header-as-soon-as-we-have-a-new-snapshot-for.
If you are interested in tackling it, it would be simply when nextBuild.id !== storyBuild?.id
@ndelangen I've updated this to hide the review button according to @tmeasday's suggestion. |
@ghengeveld or @tmeasday did either of you see that I'm blocked here? The "How to test" section states where things break. |
It did work for me, it just took a while for the UI to update. I created a ticket for that here. Could you try again and see if you get the same effect? |
Yes, I see that too, it took about 5 second for me. |
What I did:
SnapshotComparison
-component I added an button that is shown when the status isAPPROVED
How to test
I tried this and it did not work! I need help figuring out why!
Open questions:
I suspect that there are scenarios where there's a newer build coming in where "Approve" and "Unapprove" need to be disabled. @tmeasday
📦 Published PR as canary version:
0.0.59--canary.82.de5dbe0.0
✨ Test out this PR locally via:
npm install @chromaui/addon-visual-tests@0.0.59--canary.82.de5dbe0.0 # or yarn add @chromaui/addon-visual-tests@0.0.59--canary.82.de5dbe0.0