-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix(ZNTA-2313): update admin rejection panel #672
Conversation
Codecov Report
@@ Coverage Diff @@
## master #672 +/- ##
============================================
+ Coverage 35.24% 35.25% +<.01%
Complexity 5813 5813
============================================
Files 1586 1587 +1
Lines 62761 62768 +7
Branches 7297 7298 +1
============================================
+ Hits 22123 22130 +7
Misses 38688 38688
Partials 1950 1950
Continue to review full report at Codecov.
|
Reviewed 1 of 3 files at r1, 2 of 2 files at r2. Comments from Reviewable |
Not directly related:
|
The "editable toggle" I believe actually referred to the use of the option in the editor - in that it means text in the rejection field will be appended to the criteria reason. If not editable, then that text will be ignored.
No indication of save success
500 Server error on attempting to delete a used criteria (!?)
No field max sizing, 500 server error on too much text
No title/tooltip for 'Delete criteria'
TextArea can be resized beyond the parent container, resulting in clipped buttons. Should just be a TextField anyhow.
Can save a criteria without text
The parentheses seem unnecessary, it could just be eg Translation Errors: terminology, mistranslated, etc
Not sure if it matters at all, but the design is dissimilar to the "centred column" of the other admin pages
Deletion confirmation?
Not directly related: The amount of text that can be entered causes the dropdown in the editor to extend well past the page
Empty text still shows in the dropdown
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
…d examples for successful save of criteria and for confirming deletion of criteria)
Review status: 8 of 10 files reviewed at latest revision, 1 unresolved discussion. server/zanata-frontend/src/app/editor/components/RejectTranslationModal/RejectTranslationModalNoCrit.js, line 6 at r9 (raw file): Previously, efloden (Earl Floden) wrote…
Done. Comments from Reviewable |
Reviewed 1 of 1 files at r10, 1 of 1 files at r11. Comments from Reviewable |
const commentToggle = isAdminMode ? ( | ||
<FormGroup controlId='formInlineEditable'> | ||
<ControlLabel>Editable</ControlLabel><br /> | ||
const editableToggle = isAdminMode ? ( |
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.
eslint error: editableToggle is defined but not used
Review status: 5 of 9 files reviewed at latest revision, 1 unresolved discussion. server/zanata-frontend/src/app/components/RejectionsForm/index.js, line 125 at r12 (raw file): Previously, djansen-redhat (Damian Jansen) wrote…
Done. Comments from Reviewable |
@kathryngo
|
Reviewed 2 of 4 files at r12, 1 of 2 files at r13, 2 of 2 files at r14. Comments from Reviewable |
@spathare21 at this present moment the Operation Failed notice can stay. We can consider a fix later. |
@djansen-redhat agreed |
@djansen-redhat ready to verify? |
@djansen-redhat ok thanks then verifying it again if anything is missing |
will merge after full func. tests are run |
This reverts commit 7d5cabf.
Reviewed 1 of 2 files at r15. Comments from Reviewable |
JIRA issue URL: https://zanata.atlassian.net/browse/ZNTA-2313
Removed the accordion with the text input rows. This is kind of confusing since these can't be used as a starting point without copying the text so the examples have been included as text under the description.
The toggle editable button is removed as it isn't necessary. If admins want to change the criteria they can just edit it, and if they aren't happy with their changes they shouldn't save them.
Also fixed padding and spacing in the rows and added breadcrumbs as requested.
QA
Please test the functionality of the admin Reject Criteria page in frontend
Initial page
Add first criteria
Add second criteria
Modal - criteria added
Modal - no criteria added
Checklist
See Zanata Development Guidelines more for information.
This template can be updated in .github/PULL_REQUEST_TEMPLATE.md
This change is