[x] Default: The button is ready to be clicked with the Vibinex refresh symbol, and the tooltip text "Process this PR".
[ ] Highlighted: If the pull request has not been processed even once before, change the styling of the button to highlight it more.
[x] On Click: As soon as the user clicks the button, it should become disabled and the text should change to "Triggering..."
[ ] Processing: Once the trigger is successful, the button should still be disabled, but the color should change to a shade of green and the text should change to "Processing...".
[ ] Done: Once the hunks table row for the pull request has a last_modified_at timestamp greater than the time of the click, we can change the text of the button to "Done!". Then we can either refresh the page or just trigger the UI update function again. The button should change back to the "Default" state once the UI is updated.
Current behaviour:
The button only shows in the default mode (there is no highlighting to indicate that the PR hasn't been processed before)
After pressing the button, the only feedback the user gets is whether or not the API call was completed successfully. There is no feedback on whether or not the processing of the pull request on Vibinex was completed successfully.
Expected behaviour
These are the states that the button should show:
Current behaviour: