Problem: Currently, our dashboard requires a Personal Access Token (PAT) to view GitHub activity. This creates a barrier for new users who want to quickly track a public repository without going through GitHub's developer settings.
Proposed Solution:
- Optional PAT: Make the PAT input field optional in the layout.
- Unauthenticated Fetch: When a repository URL is entered, attempt to fetch data using a standard GET request to https://github.com{owner}/{repo} without an authorization header.
- Fallback/Rate Limit Handling:If the request succeeds, render the tracking data immediately.
- If the request fails due to a 403 (Rate Limit Exceeded), then prompt the user to provide a PAT.If the repository is private, show a specific message: "Private repository detected. Please input PAT".
Problem: Currently, our dashboard requires a Personal Access Token (PAT) to view GitHub activity. This creates a barrier for new users who want to quickly track a public repository without going through GitHub's developer settings.
Proposed Solution: