Repository navigation
feat: add review modal form - #2705
Merged
artursantiago merged 21 commits intoMar 24, 2025
Merged
Conversation
|
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
force-pushed
the
feat/add-review-modal-form
branch
2 times, most recently
from
February 27, 2025 18:58
4094797 to
b0bbabc
Compare
artursantiago
marked this pull request as ready for review
February 27, 2025 19:19
artursantiago
requested review from
eduardoformiga and
hellofanny
and removed request for
a team
February 27, 2025 19:19
artursantiago
force-pushed
the
feat/add-review-modal-form
branch
2 times, most recently
from
March 12, 2025 17:14
f086d3d to
ea69a95
Compare
…il inside the packages/core
artursantiago
force-pushed
the
feat/add-review-modal-form
branch
from
March 14, 2025 15:41
ea69a95 to
637acd2
Compare
lucasfp13
reviewed
Mar 20, 2025
lucasfp13
left a comment
Contributor
There was a problem hiding this comment.
Raised some discussions, I'm open to talk about them 🤝
hellofanny
reviewed
Mar 24, 2025
| // Handle special scrolling for certain fields | ||
| if ( | ||
| firstInvalidField === 'privacyPolicy' || | ||
| firstInvalidField === 'rating' |
Contributor
There was a problem hiding this comment.
question: out of curiosity when is this scenario? 🤔
Contributor
Author
There was a problem hiding this comment.
In these cases, focusing on the field (when the user doesn't fill the field and click submit)doesn't trigger the native scrolling behavior, so I'm handling it with JavaScript.
hellofanny
approved these changes
Mar 24, 2025
lucasfp13
approved these changes
Mar 24, 2025
Contributor
|
I've created a task to address the TextFieldAre issue. |
artursantiago
added a commit
that referenced
this pull request
Mar 28, 2025
>⚠️ THIS PR DEPENDS ON:⚠️ > - #2705 > - #2713 ## What's the purpose of this pull request? This PR adds the `ReviewList` with its listing functionality, loading state, filters, and sorting. ## How it works? - By default, the list will display 6 reviews. If more reviews are available, a "Load More" button will appear. Clicking it will load 6 additional reviews at a time. - If there are no reviews for the product, a message will be displayed along with a button to open the ReviewModal. - If a filter is applied but no reviews match the selected criteria, a different message will appear with a button to reset the filters. ## How to test it? - Test scenarios where reviews exist and where they do not. - Test cases with more than 6 reviews and fewer than 6 reviews. - Apply filters that result in no matching reviews. - Verify that sorting works correctly. ### Starters Deploy Preview <!--- Add a link to a deploy preview from `starter.store` with this branch being used. ---> [Preview](https://starter-git-feat-review-list-vtex.vercel.app/) ## References [JIRA SFS-2072](https://vtex-dev.atlassian.net/browse/SFS-2072) [Figma](https://www.figma.com/design/YXU6IX2htN2yg7udpCumZv/Reviews-%26-Ratings?node-id=130-32955&t=5KOdS0Qx4MBzhrNq-4) [FEATURE BRANCH](#2676)     --------- Co-authored-by: Fanny Chien <[email protected]>
matheusps
pushed a commit
that referenced
this pull request
Oct 30, 2025
## What's the purpose of this pull request? This PR fixes a visual bug in the TextareaField component where long text would appear underneath the floating label during scroll, making it difficult to read. The issue was identified during the review of [PR #2705](#2705 (review)). Additionally, comprehensive Storybook documentation was added to showcase all TextareaField variations and use cases. https://github.com/user-attachments/assets/a86cd4df-e286-40f4-82b0-271a8bc66a26 ## How it works? **Bug Fix:** - Added `--fs-textarea-field-label-background-color` CSS variable to `packages/ui/src/components/molecules/TextareaField/styles.scss` - Set default value to neutral-0 (white) to prevent text from showing through the label - When the textarea content is long and the user scrolls, the label now has an opaque background, preventing text overlap ## How to test it? **Test the scroll bug fix:** From the project root: ```bash pnpm --filter "@faststore/storybook" dev ``` Or navigate to the storybook package: ```bash cd packages/storybook pnpm dev ``` Then: 1. Open http://localhost:6006 in your browser 2. Navigate to **"TextareaField"** → **"LargeText"** story 3. Scroll inside the textarea content 4. Verify that the text no longer appears underneath the label ## References - **Related Issue:** [PR #2705 - TextareaField label overlap issue identified](#2705 (review)) - **Task:** [SFS-2385 ](https://vtex-dev.atlassian.net/browse/SFS-2385)
thiagopereira-vtex
pushed a commit
that referenced
this pull request
Jan 8, 2026
This PR fixes a visual bug in the TextareaField component where long text would appear underneath the floating label during scroll, making it difficult to read. The issue was identified during the review of [PR Additionally, comprehensive Storybook documentation was added to showcase all TextareaField variations and use cases. https://github.com/user-attachments/assets/a86cd4df-e286-40f4-82b0-271a8bc66a26 **Bug Fix:** - Added `--fs-textarea-field-label-background-color` CSS variable to `packages/ui/src/components/molecules/TextareaField/styles.scss` - Set default value to neutral-0 (white) to prevent text from showing through the label - When the textarea content is long and the user scrolls, the label now has an opaque background, preventing text overlap **Test the scroll bug fix:** From the project root: ```bash pnpm --filter "@faststore/storybook" dev ``` Or navigate to the storybook package: ```bash cd packages/storybook pnpm dev ``` Then: 1. Open http://localhost:6006 in your browser 2. Navigate to **"TextareaField"** → **"LargeText"** story 3. Scroll inside the textarea content 4. Verify that the text no longer appears underneath the label - **Related Issue:** [PR #2705 - TextareaField label overlap issue identified](#2705 (review)) - **Task:** [SFS-2385 ](https://vtex-dev.atlassian.net/browse/SFS-2385)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What's the purpose of this pull request?
This PR implements the "Add Review" form functionality within the core package.
Note
I also made some adjustments to global components (Rating, Textarea, CheckboxField, InputField). I've included them in this PR for efficiency, but can move them to separate PRs targeting main if preferred.
How it works?
Review Modal Form:
Adjust AddReviewModal.tsx in the core package with form handling, validation, success states, and error management
Integrated
Add new cms configuration in
sections.jsonGraphQL Integration:
Global Component Enhancements:
How to test it?
Starters Deploy Preview
Preview
References
FEATURE BRANCH
Figma
SFS-2082
SFS-2169