Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Calendly in Contacts if available #158

Merged
merged 4 commits into from
Feb 6, 2025
Merged

Conversation

jcheringer
Copy link
Contributor

Proposed Changes

For parity with the public profiles, this PR adjusts the hovercards to show Calendly in the Contact drawer when available.

image

Testing Instructions

  • Checkout this branch
  • Build and run the playground
  • Play with the playground data to check if Calendly is shown when applicable

@jcheringer jcheringer requested a review from a team February 5, 2025 20:19
@jcheringer jcheringer self-assigned this Feb 5, 2025
Copy link

github-actions bot commented Feb 5, 2025

Size Change: +340 B (+0.85%)

Total Size: 40.6 kB

Filename Size Change
dist/index.esm.js 8.82 kB +78 B (+0.89%)
dist/index.js 8.96 kB +80 B (+0.9%)
dist/index.react.js 11 kB +78 B (+0.72%)
dist/index.react.umd.js 6.38 kB +54 B (+0.85%)
dist/index.umd.js 5.45 kB +50 B (+0.93%)

compressed-size-action

@@ -292,6 +293,11 @@ export default class Hovercards {
const hovercard = dc.createElement( 'div' );
hovercard.className = `gravatar-hovercard${ additionalClass ? ` ${ additionalClass }` : '' }`;

const calendly = verifiedAccounts.find( ( l ) => l.type === 'calendly' && ! l.isHidden );
Copy link
Contributor

@wellyshen wellyshen Feb 6, 2025

Choose a reason for hiding this comment

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

What does l mean? Should we use a (means "account") instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jcheringer jcheringer requested a review from wellyshen February 6, 2025 13:49
@jcheringer jcheringer merged commit 452892c into trunk Feb 6, 2025
2 checks passed
@jcheringer jcheringer deleted the update/handle-calendly branch February 6, 2025 20:53
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.

2 participants