Skip to content

Add a shareable portfolio performance card that generates an image summary for social sharing #881

Description

@Chucks1093

Summary

Users who want to share their portfolio performance on social media have no easy way to do so. A Share Performance button on the portfolio page that generates a styled image card with total value, PnL, and top holdings would enable organic social promotion.

Scope

  • Add a Share Performance button on the portfolio page PnL summary card
  • Use html2canvas or a similar library to render a styled snapshot of the PnL summary into a PNG
  • Include: wallet address (truncated), total value, unrealised PnL, top 3 holdings by value, and the AccessLayer logo
  • Open a modal with a preview of the image and a Download PNG button and a Copy Image button
  • Generate the image client-side without sending portfolio data to a third-party service

Acceptance Criteria

  • Image generated client-side with correct PnL and holdings data
  • Wallet address truncated correctly in the image
  • Download PNG triggers a file download
  • Copy Image copies the image to the clipboard
  • No portfolio data sent to external services during generation

ETA: 12 hours


Coordinate on Telegram

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions