AlexsLemonade / refinebio-web

Refinebio Web
https://staging.web.refine.bio
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Update SearchCard-related components to accept the entire data structure #363

Closed nozomione closed 2 weeks ago

nozomione commented 1 month ago

Context

In PR #322, the SearchCardAction component was refactored to accept the entire data structure (i.e., experiment) for the GA4 custom event. Additionally, the parent components rendering SearchCardAction were updated to align with this change (see commit at fc602f7).

Problem or idea

The other SearchCard-related components need to be updated to follow the new pattern of accepting the entire data structure to maintain consistency.

The following components need to be updated:

Solution or next step

  1. Refactor the SearchCard-related components to accept and handle the entire data structure (i.e., experiment):
    • SearchCardHeader
    • SearchCardMeta
    • SearchCardBody
    • SearchCardFooter
  2. Update the parent components as needed:
    • SearchCard
    • Experiment