Skip to content

add GitHub token authentication and UI for private repos#1

Open
tharaka911 wants to merge 1 commit intobddicken:mainfrom
tharaka911:private-repo
Open

add GitHub token authentication and UI for private repos#1
tharaka911 wants to merge 1 commit intobddicken:mainfrom
tharaka911:private-repo

Conversation

@tharaka911
Copy link

This pull request enhances the index.html file by introducing GitHub token authentication for accessing private repositories, improving error handling, and adjusting UI layout dimensions. The changes include new functionality for managing GitHub tokens, updates to the user interface, and modifications to the repository visualization dimensions.

GitHub Token Authentication:

  • Added functions to manage GitHub tokens (getGitHubToken, setGitHubToken, clearGitHubToken) using localStorage for persistence.
  • Integrated token-based authentication into the fetchGitHub function, allowing access to private repositories and handling authentication errors.
  • Enhanced error handling in fetchGitHub to provide user-friendly messages for common issues like invalid tokens, rate limits, and network errors.

User Interface Enhancements:

  • Added UI elements for GitHub token management, including input fields, save/clear buttons, and status messages. These elements are dynamically displayed based on user interaction. [1] [2]
  • Adjusted layout dimensions (#repo and #menu top positions and heights) to accommodate the new authentication section. [1] [2]

Repository Visualization Adjustments:

  • Updated the height calculation for the visualization area to reflect the increased menu height.

@vercel
Copy link

vercel bot commented Jul 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
repofiles ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2025 8:38am

@tharaka911
Copy link
Author

tharaka911 commented Jul 17, 2025

@bddicken I made a code change to visualize private repos too...
I made a pull request, if you think it’s cool and useful. Feel free to merge it...
Thank you 😊

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

Successfully merging this pull request may close these issues.

1 participant