Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder Contributor Data Missing When API Not Configured #189

Open
Sharma-Ji-21 opened this issue Feb 12, 2025 · 3 comments
Open

Placeholder Contributor Data Missing When API Not Configured #189

Sharma-Ji-21 opened this issue Feb 12, 2025 · 3 comments

Comments

@Sharma-Ji-21
Copy link

Describe the bug
When the API key is not set in the ENV file, the contributors page displays “No contributors found matching the search criteria.” However, earlier, it used to show some hardcoded placeholder data, allowing users to see sample contributors.
This change affects usability because new users might find an empty state confusing. It would be helpful to restore the default placeholder data in case the API is not set.

To Reproduce

  1. Remove or do not set the API key in the ENV file.
  2. Start the application and navigate to the Contributors page.
  3. Observe that no contributors are displayed, and the message “No contributors found matching the search criteria” appears instead.

Expected behavior
If the API is not configured, the page should still display some default/hardcoded contributor data to improve UX.

Screenshots
Image

Previously, this was the output
Image

Desktop (please complete the following information):

  • OS: iOS
  • Browser: chrome

Reintroduce the default/hardcoded contributor data when the API key is missing.

@Sharma-Ji-21
Copy link
Author

@rajutkarsh07 i want to solve this bug could u pls assign this to me

@rajutkarsh07
Copy link
Collaborator

what's the error you are getting?

@Sharma-Ji-21
Copy link
Author

I am not getting any error in the terminal, but when I run the site without setting the API key in the ENV file (which contains the GitHub API token), the Contributors page shows ‘No contributors found matching the search criteria.’ Previously, it used to display hardcoded placeholder data, which helped new users understand the layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants