Skip to content

Refactor Contributors page to use `useConnection` + Apollo

Warren Gifford requested to merge mihir/contributors-use-connection into main

Created by: plibither8

This PR refactors the Repository Contributors page to use the useConnection hook and explicitly render the <Connection*> components, rather than the FilteredConnection component.

Moreover, it introduces a potential fix for the after bug that by changing the variable name to shortAfter instead.

Test plan

  • Manually tested using sg start as it includes backend changes.
  • Integration test has mocked data updated as per what Apollo would expect. (includes __typename).

App preview:

Merge request reports

Loading