wp-api-console
wp-api-console copied to clipboard
Add/refresh data
Please ignore the oldest commits, I've messed up the rebase and ended up doing a merge into this branch 😂
Changes proposed in this Pull Request
- The parameter description when using the query builder was outside of the screen when trying the get information from the body parameters. See screenshot Before/After
BEFORE | AFTER |
---|---|
![]() |
![]() |
- Added a refresh button, useful when we want to retry an old request, with all the body parameters/url parameters we used.
UPDATE:
I've improved the loading state, now the refreshing row is shown up as loading until it receives data:
Test plan
Test 1
- Checkout this branch and build it locally
- Click on the search input field and wait to see the full list of parameters (as per in the first two images in this PR)
- Look for a POST method with body parameters
- Hover over the parameters
- Assert that the tooltip is always visible
Test 2
- Checkout this branch and build it locally
- Do a few valid and different requests.
- Click on the refresh icons.
- Assert that the response time is updated.
- EXTRA: if you are running an instance of WordPress locally, modify the code to make it fail (As per in the first gif)
- Click on the refresh icons.
- Assert that the call fails.