Skip to content

enhancement: Add 'Try Again' button to Home Page comparison error state #266

Closed

Description

@O2sa

When a developer comparison fails (due to network timeout, GitHub rate limits, or transient connection issues), src/features/comparison/components/home-page-client.tsx displays an error card showing t("error.comparisonFailed") and generalError. However, there is no action button inside the error card to retry the comparison.

Motivation

Country leaderboard error cards have a dedicated Try again button (leaderboard.error.retry). Adding a corresponding retry button to the comparison error card allows users to recover with 1 click without needing to interact with the input fields again.

Tasks

  • In src/features/comparison/components/home-page-client.tsx, add a <Button> inside the error card container.
  • Clicking the button triggers handleCompare(username1, username2, { selectedLanguages }).
  • Use t("leaderboard.error.retry") or add t("error.retry") to locales.

Files to Check

  • src/features/comparison/components/home-page-client.tsx
  • src/locales/en.json & src/locales/ar.json

Tip

🚀 Want to contribute?
Comment assign me to be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨

Activity

  1. Sukumar5705 commented on Oct 24, 2026

    @Sukumar5705
    Contributor

    assign me

  2. github-actions commented on Oct 24, 2026

    @github-actions

    🎉 Issue assigned to @Sukumar5705! Happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions