Skip to content

Conversation

@mhgbrown
Copy link
Collaborator

@mhgbrown mhgbrown commented Dec 22, 2025

This Pull Request refactors the account and ENS resolution logic to be more modular and introduces social share images for User Profiles.

🚀 Features

  • Profile Share Images: Implemented dynamic Open Graph share images for User Profiles (reachable via /api/share-images/profile/[address]).
  • ENS Avatar Support:
    • Added ENS avatar resolution to the server-side ENS utility.
    • Updated IdentityBadge to accept a server-provided avatarSrc, enabling avatars in static share images.
    • Profile share images display the user's ENS avatar if available.

♻️ Refactoring

  • Account Resolution: Extracted account ID resolution logic into a reusable resolveAccountIdToAddress utility. This centralizes the handling of Addresses, ENS names, and Account IDs (including driver-specific logic).
  • ENS Resolution: Consolidated ENS fetching logic into resolveEnsProfile in $lib/stores/ens. This prevents code duplication between the Profile Page and the Share Image route.

🐛 Fixes

  • Pluralization: Fixed label pluralization in share images (e.g., correctly displays "1 Supporter" instead of "1 Supporters", and similarly for project dependencies).
  • Error Handling: Improved error handling for driver-account types in the share image route, providing specific 404 messages when a Project or Drip List ID is passed to the Profile route.

@mhgbrown mhgbrown linked an issue Dec 22, 2025 that may be closed by this pull request
@mhgbrown mhgbrown changed the base branch from main to wave December 22, 2025 13:45
@railway-app
Copy link

railway-app bot commented Dec 22, 2025

🚅 Deployed to the app-pr-1798 environment in Drips App

Service Status Web Updated (UTC)
App ✅ Success (View Logs) Web Dec 22, 2025 at 3:47 pm

@mhgbrown mhgbrown changed the title Mhgbrown/835 add profile social share image 2 835 add profile social share image Dec 22, 2025
@railway-app railway-app bot temporarily deployed to Drips App / app-pr-1798 December 22, 2025 13:49 Destroyed
@railway-app railway-app bot temporarily deployed to Drips App / app-pr-1798 December 22, 2025 14:11 Destroyed
@railway-app railway-app bot temporarily deployed to Drips App / app-pr-1798 December 22, 2025 14:15 Destroyed
@railway-app railway-app bot temporarily deployed to Drips App / app-pr-1798 December 22, 2025 14:57 Destroyed
@railway-app railway-app bot temporarily deployed to Drips App / app-pr-1798 December 22, 2025 15:15 Destroyed
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.

add profile social share image

2 participants