components icon indicating copy to clipboard operation
components copied to clipboard

[GitHub] Add pagination in API call for version badges

Open Diaan opened this issue 1 year ago • 0 comments

Right now the API call we do to get a list of all the latest versions of our component has a page size of 100. This will probably be enough, but in case we get a lot more packages* this might mean that components that are further down the list don't get a badge on the component detail page. In website/src/_data/version.cjs we will need to do the /orgs/sl-design-system/packages multiple times. Either until it returns an empty result, or maybe there is a way to find out how many packages we have so we can calculate how many packages we have.

  • = themes and utilities are also packages, so this is added to the list of packages, meaning the scenario of reaching more than a 100 packages isn't that unrealistic.

Discuss stories during refinement

Diaan avatar Apr 10 '24 09:04 Diaan