Skip to content

feat: User Avatar and Org Logo#10700

Merged
sean-brydon merged 42 commits intomainfrom
feat/user-org-avatar
Sep 7, 2023
Merged

feat: User Avatar and Org Logo#10700
sean-brydon merged 42 commits intomainfrom
feat/user-org-avatar

Conversation

@joeauyeung
Copy link
Copy Markdown
Contributor

@joeauyeung joeauyeung commented Aug 10, 2023

What does this PR do?

This PR adds the organization logo to the user user avatars where the "lg" size was used.

-User onboarding step
CleanShot 2023-08-10 at 20 55 43@2x

  • User public page
CleanShot 2023-08-10 at 20 44 40@2x
  • User profile settings
CleanShot 2023-08-10 at 20 44 01@2x

Fixes # (issue)

Requirement/Documentation

  • If there is a requirement document, please, share it here.
  • If there is ab UI/UX design document, please, share it here.

Type of change

  • New feature (non-breaking change which adds functionality)

How should this be tested?

  • Create an org and add a member
  • Go to that memeber's public page. The organization logo should be displayed with the avatar
  • Go to the member's profile setting's page. The organization logo should be displayed with the avatar
  • Go to those two pages with a normal user. The avatar should render itself

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai ❌ Failed (Inspect) Sep 7, 2023 2:21pm
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 2:21pm
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 2:21pm
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 2:21pm
qa 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 2:21pm
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 2:21pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Sep 7, 2023 2:21pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 10, 2023

Thank you for following the naming conventions! 🙏

@alwaysmeticulous
Copy link
Copy Markdown

alwaysmeticulous Bot commented Aug 10, 2023

🤖 Meticulous spotted visual differences in 60 of 171 screens tested: view and approve differences detected.

Last updated for commit 95a92c4. This comment will update as new commits are pushed.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 10, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@deploysentinel
Copy link
Copy Markdown

deploysentinel Bot commented Aug 10, 2023

Current Playwright Test Results Summary

✅ 117 Passing - ⚠️ 1 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 09/07/2023 02:21:43pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 57aee32

Started: 09/07/2023 02:19:41pm UTC

⚠️ Flakes

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should be able to reschedule
Retry 1Initial Attempt
2.31% (7) 7 / 303 runs
failed over last 7 days
96.37% (292) 292 / 303 runs
flaked over last 7 days

View Detailed Build Results


@joeauyeung joeauyeung requested a review from a team August 11, 2023 00:45
@joeauyeung joeauyeung self-assigned this Aug 11, 2023
@joeauyeung joeauyeung added organizations area: organizations, orgs and removed core area: core, team members only labels Aug 11, 2023
@joeauyeung joeauyeung marked this pull request as ready for review August 11, 2023 00:45
size === "lg" ? "h-5 w-5" : "h-2 w-2"
)}>
<div className="flex h-full items-center justify-center p-[2px]">
{size === "lg" && <Check />}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Where are we handling this now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This wasn't being used anywhere in the app so removed for now. #10788

}

export function getUserOrgDomain(organization: RouterOutputs["viewer"]["me"]["organization"]): string {
const orgSlug = organization.slug ?? organization.metadata?.requestedSlug;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@hariombalhara would this satisfy this comment?
#10700 (comment)

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 28, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ alannnc
✅ joeauyeung
❌ crowdin-bot
You have signed the CLA already but the status is still pending? Let us recheck it.

@sean-brydon
Copy link
Copy Markdown
Member

CleanShot 2023-09-07 at 09 08 52
Overall LGTM - Noticed one weird case in /profile where the team logo is tiny. This can be handled in a follow up tho.

Nice job

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

Labels

core area: core, team members only Medium priority Created by Linear-GitHub Sync

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

10 participants