Skip to content

feat: add review card - #2645

Merged
hellofanny merged 18 commits into
feat/reviews-and-ratingsfrom
feat/add-review-card
Feb 20, 2025
Merged

hellofanny merged 18 commits into
feat/reviews-and-ratingsfrom
feat/add-review-card

Conversation

@artursantiago

@artursantiago artursantiago commented Jan 28, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

  • This pull request adds the new molecule ReviewCard component.

How does it work?

  • The ReviewCard will display the following information:

    • User's name
    • Verified user (boolean)
    • Review date
    • Review title and text
    • "Read more" and "Read less" options
    • Tooltip (displayed only for verified users when hovering over the verified icon next to the name)
  • The card must be responsive and rearrange itself for both desktop and mobile/tablet views.

  • Compose components were utilized to create the ReviewAuthor and ReviewDate components.

  • This component will be used in the listing of reviews for a product in the new Reviews and Ratings section.

How to test it?

Starters Deploy Preview

Preview

References

JIRA TASK: SFS-2071

Figma

image

image

@artursantiago artursantiago added enhancement New feature or request depends on Depends on another PR - Please mention the PR labels Jan 28, 2025
@artursantiago artursantiago self-assigned this Jan 28, 2025
@vercel

vercel Bot commented Jan 28, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
faststore-site ✅ Ready (Inspect) Visit Preview Jan 29, 2025 8:04pm

@codesandbox-ci

codesandbox-ci Bot commented Jan 28, 2025 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@artursantiago
artursantiago changed the base branch from main to feat/reviews-and-ratings January 29, 2025 23:51
@artursantiago
artursantiago marked this pull request as ready for review January 30, 2025 17:42
@artursantiago
artursantiago requested a review from a team as a code owner January 30, 2025 17:42
@artursantiago
artursantiago requested review from emersonlaurentino and lariciamota and removed request for a team January 30, 2025 17:42
@Guilera
Guilera force-pushed the feat/add-review-card branch from dd30d02 to 0c98a82 Compare February 14, 2025 14:22
@artursantiago
artursantiago force-pushed the feat/add-review-card branch 5 times, most recently from f465188 to ae89b57 Compare February 14, 2025 17:28
@Guilera
Guilera force-pushed the feat/reviews-and-ratings branch from 9c2cebb to 736e0f8 Compare February 18, 2025 19:49
@artursantiago
artursantiago force-pushed the feat/add-review-card branch 2 times, most recently from c6e17e0 to 5fc7054 Compare February 18, 2025 19:55
@vtex vtex deleted a comment from semgrep-code-vtex-org Bot Feb 19, 2025
@vtex vtex deleted a comment from semgrep-code-vtex-org Bot Feb 19, 2025

@hellofanny hellofanny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Well done! 🚀

Since I was testing this new component also using the sb, I opened a PR so we can add it here. 😉

@hellofanny
hellofanny merged commit 5b1d946 into feat/reviews-and-ratings Feb 20, 2025
@hellofanny
hellofanny deleted the feat/add-review-card branch February 20, 2025 13:41
pedromtec added a commit that referenced this pull request Mar 11, 2025
## What's the purpose of this pull request?

- This pull request adds the new molecule ReviewCard component. 

## How does it work?

- The ReviewCard will display the following information:

  - User's name
  - Verified user (boolean)
  - Review date
  - Review title and text
  - "Read more" and "Read less" options
- Tooltip (displayed only for verified users when hovering over the
verified icon next to the name)
 
- The card must be **responsive** and rearrange itself for both desktop
and mobile/tablet views.
- Compose components were utilized to create the **ReviewAuthor** and
**ReviewDate** components.
- This component will be used in the listing of reviews for a product in
the new **Reviews and Ratings** section.

## How to test it?

<!--- Describe the steps with bullet points. Is there any external link
that can be used to better test it or an example? --->

### Starters Deploy Preview


[Preview](https://starter-git-feat-add-review-card-custom-section-vtex.vercel.app/review-and-ratings-playground)

<!--- Add a link to a deploy preview from `starter.store` with this
branch being used. --->

<!--- Tip: You can get an installable version of this branch from the
CodeSandbox generated when this PR is created. --->

## References

[JIRA TASK: SFS-2071](https://vtex-dev.atlassian.net/browse/SFS-2071)


[Figma](https://www.figma.com/design/YXU6IX2htN2yg7udpCumZv/Reviews-%26-Ratings?node-id=131-64429&t=0rv1XYm6XsgBeDwA-4)


![image](https://github.com/user-attachments/assets/3cbab6a6-7d9a-424b-96e5-91605bd26a17)


![image](https://github.com/user-attachments/assets/3c0b4c03-c19f-415e-a277-ad35c148f1eb)

---------

Co-authored-by: Fanny Chien <[email protected]>
Co-authored-by: Pedro Soares <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

depends on Depends on another PR - Please mention the PR enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants