fix: avatar/logo display diagnostics and upload error handling
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m31s

Add error logging to silent catch blocks in avatar/logo URL generation,
show user avatar on admin member detail page, and surface specific error
messages for upload failures (CORS/network issues) instead of generic errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 02:11:16 +01:00
parent 335c736219
commit 78334676d0
7 changed files with 63 additions and 35 deletions

View File

@@ -14,7 +14,8 @@ export async function getUserAvatarUrl(
const providerType = (profileImageProvider as StorageProviderType) || 's3'
const provider = createStorageProvider(providerType)
return await provider.getDownloadUrl(profileImageKey)
} catch {
} catch (error) {
console.error('[AvatarURL] Failed to generate URL for key:', profileImageKey, error)
return null
}
}