Skip to content

Stats: Refactor various highlight cards into one component #72493

Open
@a8ck3n

Description

@a8ck3n

Currently have three different implementations of the highlight cards.

  1. https://github.com/Automattic/wp-calypso/tree/trunk/packages/components/src/highlight-cards
  2. https://github.com/Automattic/wp-calypso/tree/trunk/client/my-sites/stats/stats-email-top-row
  3. https://github.com/Automattic/wp-calypso/tree/trunk/client/my-sites/stats/wordads

The general format is icon, title, and a display value. It might make sense to have the first two be props and the third be presented by the caller (ie: <Card title='Clicks' icon='arrow'>{ /* child elements */ }</Card>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Components[Feature] StatsEverything related to our analytics product at /stats/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions