This repository was archived by the owner on Mar 12, 2025. It is now read-only.
This repository was archived by the owner on Mar 12, 2025. It is now read-only.
Feature: refactor Contributors
grid view #3363
Open
Description
Suggested solution
The Contributors
component used in /explore
, /workspaces/<id>/contributor-insights
, and the upcoming /s/<org>/<repo>/contributors
page has two views, "list" and "grid". The "grid" view is 3 components deep, with redundant hook calling. "List" (aka table) view will be refactored in another issue.
Needed for #3342
Visualized below:
- Orange: components that call hooks
- Light Red: functions that wrap a hook
- Blue: hook (using
useSWR
to fetch the API) - Yellow: Component snippet (doesn't call hooks and has their own file)
- Note: these components aren't used outside of the
Contributors
component scope
- Note: these components aren't used outside of the
