-
Notifications
You must be signed in to change notification settings - Fork 129
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
Add a new status: changes requested #1451
Conversation
…BLOGID constant available To view the new status in the frontend, you need to add the WPORG_TRANSLATE_BLOGID constant in the wp-config.php file with the value of the get_current_blog_id() function. E.g.: define( 'WPORG_TRANSLATE_BLOGID', 1 );
…lled Check if the 'gp_translation_helper_installed' filter returns true -> plugin installed.
…ble_changes_requested_status
… gp_enable_changes_requested_status is not enabled
…quested_status is not enabled
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.
I reviewed this from a code perspective and something about the underscore makes it seem off. Could we rename changes_requested
to something without underscore or hyphen. Maybe justchangesrequested
. Or changerequest
or reviewed
?
…es to requestchanges
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.
The JS error needs to be fixed because it breaks much of the GlotPress UI.
…gin when the gp-translation-helpers plugin is not installed. Props @akirk GlotPress#1451 (review)
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.
I've tested that the PR doesn't change the behavior of GlotPress unless I use it in combination with GlotPress/gp-translation-helpers#65, which is exactly what we want.
Buttons margins appear to have broken after GlotPress#1451 and are now misaligned. This adjusts them back to the pre-1451 state. Fixes GlotPress#1676.
Problem
This PR, with another one in the gp-translation-helpers plugin, adds a new status: changes requested.
Solution
GlotPress stores a new status (changes_requested) when:
Testing instructions
To test this PR, you have to use the related branch from gp-translation-helpers plugin and you have to reject some strings as validator (simple or bulk rejection), adding some feedback.
Screenshots or screencast
The new status in the main table:
The new status in a string:
Rejecting a string:
When a validator adds feedback (reason and/or comment), the "Reject" button becomes "Request changes", so the validator sets the string in this new status. A notification is sent to the translator.
Making a bulk reject:
When a validator adds feedback (reason and/or comment), the "Reject" button becomes "Request changes", so the validator sets the string in this new status. A notification is sent to the translator.
The new status in the filters: