Skip to content

Hovercards: Add claim gravatar to the error status#190

Merged
wellyshen merged 4 commits intotrunkfrom
update/hovercard-error-status
Apr 18, 2025
Merged

Hovercards: Add claim gravatar to the error status#190
wellyshen merged 4 commits intotrunkfrom
update/hovercard-error-status

Conversation

@wellyshen
Copy link
Contributor

@wellyshen wellyshen commented Apr 18, 2025

Related to #191

Proposed Changes

  • Add a new additionalMessage option to the createHovercardError method
  • Add the claim Gravatar message with the new option

Testing Instructions

  • Check out this PR
  • cd web/packages/hovercards && npm run build:watch
  • In a new terminal, run npm run start
  • Hover over the invalid Gravatar user, and you will see the claim Gravatar message:
截圖 2025-04-18 下午3 56 13

@wellyshen wellyshen self-assigned this Apr 18, 2025
@github-actions
Copy link

github-actions bot commented Apr 18, 2025

Size Change: +1.37 kB (+2.22%)

Total Size: 63 kB

Filename Size Change
dist/index.esm.js 9.22 kB +206 B (+2.29%)
dist/index.js 9.36 kB +205 B (+2.24%)
dist/index.mjs 9.22 kB +206 B (+2.29%)
dist/index.react.js 11.5 kB +249 B (+2.22%)
dist/index.react.mjs 11.4 kB +247 B (+2.21%)
dist/index.react.umd.js 6.67 kB +127 B (+1.94%)
dist/index.umd.js 5.71 kB +129 B (+2.31%)

compressed-size-action

@wellyshen wellyshen requested a review from a team April 18, 2025 08:06
? `
<i class="gravatar-hovercard__error-message gravatar-hovercard__error-message--claim-gravatar">
${ __t( this._i18n, 'Is this you?' ) }
<a href="http://gravatar.com/signup" target="_blank">${ __t( this._i18n, 'Claim your free profile.' ) }</a>
Copy link
Member

Choose a reason for hiding this comment

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

Let's add something that we can use to track these clicks. utm_source?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jom Good point, I have added it, thanks!

@wellyshen wellyshen requested a review from jom April 18, 2025 11:11
@wellyshen wellyshen merged commit a501195 into trunk Apr 18, 2025
2 checks passed
@wellyshen wellyshen deleted the update/hovercard-error-status branch April 18, 2025 12:44
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

Comments