-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store: Add the ability to reply to product reviews. #18377
Conversation
const hasCommentText = commentText.trim().length > 0; | ||
|
||
// Only show the scrollbar if the textarea content exceeds the max height | ||
const hasScrollbar = textareaHeight === TEXTAREA_MAX_HEIGHT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want exactly equal here, or maybe >=
?
export function announceCreateFailure( { dispatch } ) { | ||
dispatch( | ||
errorNotice( | ||
translate( "Your reply couldn't be posted." ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually we do single quoted strings with escaped interior single quotes, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably needs a tweak in send hit box. A couple other suggestions. Tests pass. Pre-approving.
…omparison on text area height, and make the submit box padding a bit wider to make it easier to hit.
This PR adds the ability to reply to product reviews. The UI and behavior here matches normal comments management (see #17047 as well). It also adjusts the reply view to be sorted oldest -> newest like a thread.
Closes #17047. Closes #17046.
To Test:
npm run test-client client/extensions/woocommerce/state
and make sure all tests pass.http://calypso.localhost:3000/store/reviews/:site
and find a review.