Skip to content

Convert the pagination components to Composition API + TS

Closes #1093 (closed)

This includes changes to other components since this entypescriptenment allows stricter type checks downstream, replacing any with the type of actual paginated results. Notably:

  • I updated the search store to transform results: null returned by the API into results: [], as this is much easier to handle in the store than in the components. This has no impact on actual functionality because we already handle the case where we would get results: null well.
  • I also updated a getter in the navigation store because it was easier there and had little impact.
  • In Auth/Profile/Groups.vue, TS detected an edge case where Membership.id can be null because it understood each result is a GroupMembership and not just any, so I had to update a v-for.

Merge request reports

Loading