fix: Prettier formatting and SVG accessibility
Some checks are pending
CI / Build (${{ matrix.os }}) (macos-latest) (push) Blocked by required conditions
Build and Release / Create Release (push) Successful in 0s
CI / Test (${{ matrix.os }}) (ubuntu-latest) (push) Successful in 1m0s
CI / Lint (push) Successful in 1m6s
CI / Test (${{ matrix.os }}) (windows-latest) (push) Successful in 8h2m52s
Build and Release / Build Linux (${{ matrix.arch }}) (x64) (push) Successful in 4m39s
Build and Release / Build Windows (${{ matrix.arch }}) (arm64) (push) Successful in 9h3m43s
CI / Test (${{ matrix.os }}) (macos-latest) (push) Successful in 1m24s
Build and Release / Build Windows (${{ matrix.arch }}) (x64) (push) Successful in 8h4m15s
CI / Build (${{ matrix.os }}) (windows-latest) (push) Successful in 9h2m0s
CI / Build (${{ matrix.os }}) (ubuntu-latest) (push) Successful in 1m20s
Build and Release / Build macOS (${{ matrix.arch }}) (arm64) (push) Successful in 6m38s
Build and Release / Build macOS (${{ matrix.arch }}) (x64) (push) Successful in 13m43s

- Fix Prettier formatting in trampoline-credential-helper.ts and build.ts
- Add aria-hidden to GitCaddy icon SVG for accessibility compliance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-10 08:18:23 -05:00
parent 17d025eb16
commit a95b847550
3 changed files with 23 additions and 7 deletions

View File

@@ -233,7 +233,11 @@ export const createCredentialHelperTrampolineHandler: (
const { trampolineToken: token } = command
const input = parseCredential(command.stdin)
info(`credential helper: command=${firstParameter}, endpoint=${getCredentialUrl(input)}`)
info(
`credential helper: command=${firstParameter}, endpoint=${getCredentialUrl(
input
)}`
)
if (__DEV__) {
debug(
@@ -268,11 +272,15 @@ export const createCredentialHelperTrampolineHandler: (
if (matchingAccount && matchingAccount.login !== cachedUsername) {
log.warn(
`[credential-helper] Username mismatch detected! ` +
`Cached credential has username '${cachedUsername}' but your GitCaddy account is '${matchingAccount.login}'. ` +
`Please clear cached credentials for ${credUrl.origin} from Windows Credential Manager.`
`Cached credential has username '${cachedUsername}' but your GitCaddy account is '${matchingAccount.login}'. ` +
`Please clear cached credentials for ${credUrl.origin} from Windows Credential Manager.`
)
// Notify the UI about this issue
ui.notifyCredentialMismatch(cachedUsername, matchingAccount.login, credUrl.origin)
ui.notifyCredentialMismatch(
cachedUsername,
matchingAccount.login,
credUrl.origin
)
}
}
await eraseCredential(input, store, token)

View File

@@ -16,6 +16,7 @@ export class GitCaddyIcon extends React.Component<IGitCaddyIconProps> {
height="16"
viewBox="0 0 1200 1200"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
>
<path
fill="currentColor"

View File

@@ -358,12 +358,19 @@ function copyDependencies() {
process.platform === 'win32' ? '.exe' : ''
}`
const credHelperSource = path.resolve(trampolineSource, desktopCredentialHelperTrampolineFile)
const credHelperSource = path.resolve(
trampolineSource,
desktopCredentialHelperTrampolineFile
)
const credHelperDest = path.resolve(gitCoreDir, desktopCredentialHelperFile)
if (!existsSync(credHelperSource)) {
console.error(`ERROR: Credential helper binary not found at: ${credHelperSource}`)
console.error('The desktop-trampoline package may not have built correctly.')
console.error(
`ERROR: Credential helper binary not found at: ${credHelperSource}`
)
console.error(
'The desktop-trampoline package may not have built correctly.'
)
console.error('Contents of build/Release:')
try {
const files = readdirSync(trampolineSource)