Add status on github invite #36
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds GitHub organization invite status tracking and display to the onboarding status web app. The main changes include a new API endpoint to check GitHub invite/member status for a list of users, updates to the participant data fetching logic to include this status, and UI enhancements to display GitHub status badges in the participant table and CSV export.
Backend/API changes:
github-status/route.tsthat checks if each GitHub handle is a member, has a pending invite, or has not been invited to the organization, using the GitHub CLI. It includes caching to reduce rate limits and handles CLI authentication errors gracefully.Frontend/data integration:
page.tsxto call the new GitHub status API after loading participants, merging the returned status into each participant's data. This ensures each participant now has agithub_statusfield. [1] [2]fetchDatafunction to useuseCallbackfor better dependency management and to avoid unnecessary re-fetches. [1] [2] [3]UI/UX enhancements:
member,pending,not_invited, or unknown) in the participant table, using color-coded icons and labels.These changes provide better visibility into each participant's GitHub onboarding state, improving the admin experience.