fix(settings): use one member avatar with profile photos everywhere - #8221
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 28 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
…name on email-only rows
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
Avatargainsname/srcprops (a discriminated union with composedchildren) —<Avatar size='xs' name={…} src={…} aria-hidden />renders the person's photo, or their initial on the neutral disc, and a photo that fails to load falls back to the initial; no app-level wrapperAvatarFallbacksizes its glyph to the enclosing avatar (CVA, via context), so no caller overrides the font size;size-*classes and the--bordertoken; empty names never produce an unlabelledrole="img", and the status dot followsaria-hiddenMemberAvatarand its duplicateOwnerAvatar(resource owner cells, owner filters), the 36pxgetUserColoravatar in the shared permissions member row (credential members, skill editors), the 32px colored avatar in the transfer-ownership dialog, and the 24px avatar in the credential-group people listuser.image(explicit and workspace-admin rows), skill editors pass the image the API already returned; the skills contract'suserImageis tightened tonullablesince both producers always set itaria-hidden— the name is always beside themType of Change
Testing
Avatarin a real DOM — a loaded photo renders, a failed photo falls back to the initial, labelling andaria-hidden, per-size glyph; credential members carry images for explicit and derived rowscheck:audits, docs-manifest, block registry green;/cleanuppasses appliedChecklist