diff --git a/Data/Server/WebUI/src/Access_Management/Github_API_Token.jsx b/Data/Server/WebUI/src/Access_Management/Github_API_Token.jsx index 7395977..de1c96b 100644 --- a/Data/Server/WebUI/src/Access_Management/Github_API_Token.jsx +++ b/Data/Server/WebUI/src/Access_Management/Github_API_Token.jsx @@ -120,7 +120,7 @@ export default function GithubAPIToken({ isAdmin = false }) { const verificationMessage = useMemo(() => { if (dirty) { - return { text: "Token has unsaved changes — save to verify.", color: "#f0c36d" }; + return { text: "Token has not been saved yet — Save to verify.", color: "#f0c36d" }; } const message = verification.message || ""; if (!message) { @@ -164,8 +164,38 @@ export default function GithubAPIToken({ isAdmin = false }) { Github API Token - Using a Github Personal Access Token increased the Github API rate limits from 60/hr to 5000/hr. + Using a Github "Personal Access Token" increases the Github API rate limits from 60/hr to 5,000/hr. This is important for production Borealis usage as it likes to hit its unauthenticated API limits sometimes despite my best efforts. +

Navigate to{' '} + + https://github.com/settings/tokens + {' '} + ❯ Personal Access Tokens ❯ Tokens (Classic) ❯ Generate New Token ❯ New Personal Access Token (Classic)
+ +

+ + Note:{' '} + + Borealis Automation Platform + + + + Scope:{' '} + + public_repo + + + + Expiration:{' '} + + No Expiration + + + + ) + }} + /> - {loading && ( + {(verificationMessage.text || (!dirty && verification.rateLimit)) && ( + + {verificationMessage.text && `${verificationMessage.text} `} + {!dirty && verification.rateLimit && `- Hourly Request Rate Limit: ${verification.rateLimit.toLocaleString()}`} + + )} + +{loading && ( {fetchError} )} - - - - Navigate to{' '} - - https://github.com/settings/tokens - {' '} - > Personal Access Tokens > Tokens (Classic) > Generate New Token > New Personal Access Token (Classic) - - - Note: Borealis Automation Platform - - - Scope:{' '} - - public_repo - - - - Expiration:{' '} - - No Expiration - - - - setInputValue(event.target.value)} - fullWidth - variant="outlined" - sx={fieldSx} - disabled={saving || loading} - InputProps={{ - endAdornment: ( - - - - ) - }} - /> - - {verificationMessage.text && ( - - {verificationMessage.text} - - )} - - {!dirty && verification.rateLimit && ( - - Authenticated GitHub rate limit: {verification.rateLimit.toLocaleString()} requests / hour - - )} );