Skip to content

fix: ContributorsSection hardcodes GitHub repo URL & ignores prefers-reduced-motion #113

Description

@Mkalbani

File: src/components/ContributorsSection.tsx

Problem

  • The fetch URL https://api.github.com/repos/nnennaokoye/quest-frontend/contributors is hardcoded — fails for forks, mirrors, or org renames.
  • The auto-scroll loop runs at setInterval(..., 20) for every user, which is hostile for users with vestibular disorders and burns CPU on long sessions.

Expected

  • Read the repo from import.meta.env.VITE_CONTRIBUTORS_REPO (e.g. owner/repo) with the current URL as default fallback.
  • Wrap the auto-scroll in a check for window.matchMedia('(prefers-reduced-motion: reduce)').matches; if true, skip auto-scroll.
  • Pause auto-scroll on focus/hover inside the carousel (not just mouse hover) for keyboard users.

Acceptance

  • Forks can configure their own repo via env var.
  • Reduced-motion users see no auto-scroll.
  • Manual scroll/wheel/keyboard interactions are not fought by the interval.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions