InvokeAI/invokeai/frontend/web/src/services/api/endpoints
Mary Hipp Rogers 25ce505628
exposed field loading state (#5704)
* remove thunk for receivedOpenApiSchema and use RTK query instead. add loading state for exposed fields

* clean up

* ignore any

* fix(ui): do not log on canceled openapi.json queries

- Rely on RTK Query for the `loadSchema` query by providing a custom `jsonReplacer` in our `dynamicBaseQuery`, so we don't need to manage error state.
- Detect when the query was canceled and do not log the error message in those situations.

* feat(ui): `utilitiesApi.endpoints.loadSchema` -> `appInfoApi.endpoints.getOpenAPISchema`

- Utilities is for server actions, move this to `appInfo` bc it fits better there.
- Rename to match convention for HTTP GET queries.
- Fix inverted logic in the `matchRejected` listener (typo'd this)

---------

Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
2024-02-12 18:48:32 -05:00
..
appInfo.ts exposed field loading state (#5704) 2024-02-12 18:48:32 -05:00
boards.ts chore(ui): format 2024-01-28 19:57:53 +11:00
images.ts chore(ui): format 2024-01-28 19:57:53 +11:00
models.ts chore(ui): format 2024-01-28 19:57:53 +11:00
queue.ts chore(ui): format 2024-01-28 19:57:53 +11:00
utilities.ts feat(ui): optimize reconnect queries 2024-01-11 12:51:15 +11:00
workflows.ts chore(ui): format 2024-01-28 19:57:53 +11:00