bcgov / api-services-portal

API Services Portal provides a multi-tenant frontend integrating API Gateway and Authorization services from Kong CE and Keycloak.
https://api.gov.bc.ca
Apache License 2.0
22 stars 7 forks source link

Namespace to Gateway - Gateways list and details are slow to load elements #1140

Open rustyjux opened 3 months ago

rustyjux commented 3 months ago

API Services Portal Issue

User Story

As a API provider on the Portal,
I want page elements to consistently load quickly AND use appropriately sized skeletons during loading
so that I don't need to wait or end up clicking the wrong element when the page jumps.

Slow loads include:

It's possible the slower loads are limited to dev/test, but regardless, appropriately sized skeletons would improve UX when page loads.

Test Case

ENV

TESTCASE

Open the page (/list or /details)

EXPECTED

ACTUAL

timng-bcgov commented 3 months ago

I couldn't find the logic for the skeletons in the codebase. Would you like to discuss what the skeletons should look like? I can make some quick mockups if it would be helpful.

rustyjux commented 3 months ago

<Skeleton> is used throughout the Portal for loading elements and can be seen e.g. on the /detail page: image In that case, it just needs resizing in the props. It comes straight from Chakra - https://v1.chakra-ui.com/docs/components/feedback/skeleton

timng-bcgov commented 3 months ago

Thanks, with regard to sizing and to avoid layout shift, I was thinking of using separate Skeletons. Something like this:

image

Elson9 commented 1 month ago

Priority: improving UX for our services