Review Composer: Base Foundation Restructuring
Review Request #10210 — Created Oct. 9, 2018 and updated
In this commit, the references to ReviewDialog
in the codebase were renamed to ReviewComposer.
The exceptions to this are the ReviewDialog references
that have to do with extensions. There were slight
format changes made to the header and footer. The
icon for the ShipIt checkbox was added but there is
some CSS that needs to be added in to make the toggling
between checked/unchecked icons to work. The comments
also still need to be restructured.
I ran the Javascript Unit tests. The 6 test failures are the same as the ones in the master branch so the changes seems to have not broken anything.
Description | From | Last Updated |
---|---|---|
I see you've made changes to the visual style, so can you add a screenshot or screenshots showing these changes? |
brennie | |
Your description mentions this a WIP commit |
bolariinwa | |
I noticed in the screenshot the edit icon (pencil) wasn't to the far right as shown in the design document. … |
bolariinwa | |
Regarding testing done, I think you could run the unit tests for the review dialog to make sure everything still … |
bolariinwa | |
You can remove the bit about the tests on master failing from your testing done. |
brennie | |
Class names should be kebab-case e.g. ship-it-checkbox-area. |
brennie | |
This is needlessly specific. .ship-it-checkbox would be fine. The more specific a selector is, the more specific a selector that … |
brennie | |
We can restructure this as: .ship-it-checkbox { display: none; &:not(:checked) ~ .rb-icon-admin-enabled { // ... } &:checked ~ .rb-icon-admin-enabled { … |
brennie | |
Why this change? Isn't this the label for the body top editor? If this is correct, gettext('') will always be … |
brennie | |
Undo this. |
brennie | |
Why this change? |
brennie | |
I don't know that this is the right text for this. |
brennie | |
You should add a semicolon here |
bolariinwa | |
You should add a semicolon here |
bolariinwa | |
Can this float: right style be added to the stylesheet? |
shoven | |
In this section you have about four <label> elements for one input (for="id_shipit). While it is technically possible to have … |
shoven |
- Change Summary:
-
Removed old experimental JS functions.
- Commit:
-
aabfc47a79a638d6ab3f66820d82e29b7c8d6bef278bb55ad4a8425818bf1f47f738fd2d0de91cda
- Diff:
-
Revision 2 (+82 -79)
Checks run (2 succeeded)
- Change Summary:
-
Added fixes to the Ship It Checkbox. Improved Comment Interface.
- Commit:
-
278bb55ad4a8425818bf1f47f738fd2d0de91cdab5c5429f1a0dbaafc93d4848e8fe6a6dfad1a6cc
- Diff:
-
Revision 3 (+118 -85)
Checks run (2 succeeded)
-
-
I see you've made changes to the visual style, so can you add a screenshot or screenshots showing these changes?
-
-
This is needlessly specific.
.ship-it-checkbox
would be fine.The more specific a selector is, the more specific a selector that would override it must be, which can lead to unmaintainable CSS.
-
We can restructure this as:
.ship-it-checkbox { display: none; &:not(:checked) ~ .rb-icon-admin-enabled { // ... } &:checked ~ .rb-icon-admin-enabled { // ... } &:checked ~ .rb-icon-admin-disabled { // ... } }
-
Why this change? Isn't this the label for the body top editor?
If this is correct,
gettext('')
will always be''
. -
-
-
- Change Summary:
-
Fixed the issue with the 'Ship It' checkbox not properly displaying on screen.
- Commit:
-
b5c5429f1a0dbaafc93d4848e8fe6a6dfad1a6cc4c6093af37e0649aee288e7114beeeb40ceb20c1
- Diff:
-
Revision 4 (+124 -84)
Checks run (2 succeeded)
-
-
-
In this section you have about four
<label>
elements for one input (for="id_shipit
). While it is technically possible to have multiple labels for one form element, there are some accessibility concerns with this as many assistive technologies, like screenreaders, don't know how to handle them.I'm not sure what the best approach is in this particular case so you might need to do some playing so you only have one
for=
for the one input. (There's an example here that could be helpful: https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/How_to_structure_an_HTML_form#Multiple_labels)
-
-
-
Regarding testing done, I think you could run the unit tests for the review dialog to make sure everything still works fine. There were also variable name changes in the test files so it will be good to see that the tests still run properly.
If you feel like your changes do not need a unit test, you could just state what you manually tested and how it works fine.
- Description:
-
~ In this WIP commit, the references to ReviewDialog
~ In this commit, the references to ReviewDialog
in the codebase were renamed to ReviewComposer. The exceptions to this are the ReviewDialog references that have to do with extensions. There were slight format changes made to the header and footer. The icon for the ShipIt checkbox was added but there is some CSS that needs to be added in to make the toggling between checked/unchecked icons to work. The comments also still need to be restructured.
- Commit:
-
4c6093af37e0649aee288e7114beeeb40ceb20c180ef65c643d714ee5e7f4041e3a4aea9295037e4
- Diff:
-
Revision 5 (+124 -84)
Checks run (2 succeeded)
- Commit:
-
80ef65c643d714ee5e7f4041e3a4aea9295037e41a14108867856f10be59d9618942e97bbcaf7fc1
- Diff:
-
Revision 6 (+124 -84)
Checks run (2 succeeded)
- Commit:
-
1a14108867856f10be59d9618942e97bbcaf7fc158a829f068f753f0f7950ef8cb26176a7d46ea18
- Diff:
-
Revision 7 (+124 -84)
Checks run (2 succeeded)
- Commit:
-
58a829f068f753f0f7950ef8cb26176a7d46ea18e1476b7d3c89d721b5e50e01720e4ecd43a00a62
- Diff:
-
Revision 8 (+124 -83)