Skip to content

improvement(ui): reuse avatars for owners and members - #8079

Open
BillLeoutsakosvl346 wants to merge 2 commits into
codex/emcn-consolidationfrom
codex/control-fix-member-avatars
Open

BillLeoutsakosvl346 wants to merge 2 commits into
codex/emcn-consolidationfrom
codex/control-fix-member-avatars

Conversation

@BillLeoutsakosvl346

@BillLeoutsakosvl346 BillLeoutsakosvl346 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Use the existing Avatar family for owner and member photos, initials and failed-image fallback.
  • Give the existing xs size 8px initials centrally. Preserve the 14px footprint, image alt/referrer behavior, other sizes and explicit fallback overrides.

Type of Change

  • Refactor / maintainability improvement

Testing

  • Full workspace type checks, lint, repository audits (including import and API validation), generators and docs checks pass.
  • Complete EMCN test suite and relevant existing consumer suites pass.
  • Before/after browser fixtures cover light/dark styling, narrow layouts and the affected interaction patterns. Fixtures are isolated controls, not full authenticated product flows.
  • No landing-page changes or audit tooling included.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Sep 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 21, 2026 1:10am UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; the prior coverage concern is resolved and no actionable new failures remain.

Summary

This PR consolidates owner and member avatar rendering onto the shared EMCN Avatar components while preserving the existing 14px footprint, initials, image metadata, and failed-image fallback behavior.

  • Propagates Avatar size through context so xs fallbacks use 8px initials.
  • Preserves caller-provided fallback text-size overrides through class composition.
  • Adds focused coverage for xs, default, and explicitly overridden fallback sizing.
  • The previously reported test-coverage concern is resolved by the added component test.

Reviews (2) · Last reviewed commit: "fix(ui): cover avatar fallback size comp..."

Comment thread packages/emcn/src/components/avatar/avatar.tsx

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@greptile

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant