Skip to content
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
@zeucapua

Description

@zeucapua

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
shapes at 24-05-09 21 16 43

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions