wp-api-console icon indicating copy to clipboard operation
wp-api-console copied to clipboard

Add/refresh data

Open AllTerrainDeveloper opened this issue 2 years ago • 0 comments

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

  1. 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
image image
  1. Added a refresh button, useful when we want to retry an old request, with all the body parameters/url parameters we used.

developer console new feature

UPDATE: I've improved the loading state, now the refreshing row is shown up as loading until it receives data: update wordpress developer console loading

Test plan

Test 1

  1. Checkout this branch and build it locally
  2. 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)
  3. Look for a POST method with body parameters
  4. Hover over the parameters
  5. Assert that the tooltip is always visible

Test 2

  1. Checkout this branch and build it locally
  2. Do a few valid and different requests.
  3. Click on the refresh icons.
  4. Assert that the response time is updated.
  5. EXTRA: if you are running an instance of WordPress locally, modify the code to make it fail (As per in the first gif)
  6. Click on the refresh icons.
  7. Assert that the call fails.

AllTerrainDeveloper avatar Apr 09 '22 10:04 AllTerrainDeveloper