Make a bunch of improvements to the tips in the review dialog.
Review Request #13192 — Created Aug. 8, 2023 and submitted
This change makes a bunch of improvements to the new tips feature in the
review dialog:
- Adds a hide button to allow people to hide the tips. While it's
probably good for new users, experienced users likely won't want it
cluttering up their screen. The preference for this is stored in a
cookie - Moves the tips box to the top of the review dialog.
- Changes it so the tips box is always visible, even when there's review
content. - Adds new content to the tips list (thanks Michelle!).
- Toggled the tips view back and forth.
- Checked that the tips view shows up in the right place.
- Verified that the initial tips view visibility respects the stored
preference. - Ran unit tests.
- Ran js-tests.
Summary | ID |
---|---|
d6eaa6f1eb0337739d051a3e68a0a4a1489f5407 |
Description | From | Last Updated |
---|---|---|
We should probably change all of the ’ apostrophes to the ' ones that we normally use. And any “ … |
maubin | |
Here we say review banner but in the "Ship It!" tip we say Review menu. We should standardize on one … |
maubin | |
Lets take out the word "providing" on this line to shorten the sentence a bit. |
maubin | |
What's this addressing? Do other icons need it? Since we reuse this offset in &__close, can we add a constant … |
chipx86 | |
Will this tip show up outside of the review dialog? Should we give it a name that gives it context … |
chipx86 | |
Let's pull out the full manual URL to a variable, so that localized strings don't hard-code any parts of this … |
chipx86 | |
We may want to add role="button" to help screen readers know this is an action and not something that'll take … |
chipx86 | |
This needs to preventDefault() and stopPropagation(). |
chipx86 | |
This is the inverse of the hide action. Maybe generalize this into a _toggleTips() and have both the event and … |
chipx86 | |
Not sure how the <p> and <span> relate here. The <p> is self-closing, but the <span> indents. |
chipx86 | |
Can you add a Structure: to this and also include this in the main element's Structure:? |
chipx86 | |
This should still have a Structure, even if it's a simple standalone already shown elsewhere. All parts of all CSS … |
chipx86 |
- Summary:
-
Make review dialog tips hide-able.Make a bunch of improvements to the tips in the review dialog.
- Description:
-
~ The new tips alert on the review dialog is intended to make things
~ easier for first-time users, but might be annoying for people who have ~ This change makes a bunch of improvements to the new tips feature in the
~ review dialog: - been using Review Board forever. It's already pretty unobtrusive, - because it only shows up when the review dialog is empty, but it's still - visual noise that people might not want to have. ~ This change adds a toggle that lets users hide it. The preference for
~ that is stored in a cookie, much the same way as the extra whitespace ~ for diffs. ~ - Adds a hide button to allow people to hide the tips. While it's
probably good for new users, experienced users likely won't want it
cluttering up their screen. The preference for this is stored in a
cookie
~ - Moves the tips box to the top of the review dialog.
~ - Changes it so the tips box is always visible, even when there's review
content.
+ - Adds new content to the tips list (thanks Michelle!).
- Adds a hide button to allow people to hide the tips. While it's
- Testing Done:
-
- Toggled the tips view back and forth.
~ - Verified that nothing appears when there's content in the review.
~ - Ran unit tests.
~ - Ran js-tests.
~ - Checked that the tips view shows up in the right place.
~ - Verified that the initial tips view visibility respects the stored
preference.
~ - Ran unit tests.
+ - Ran js-tests.
- Commits:
-
Summary ID 992315c431adcfdb81985f933726313a27930438 5d725dabc3350f4920efe9008147e86a930aa55d - Diff:
-
Revision 2 (+236 -26)
- Added Files:
Checks run (2 succeeded)
-
-
We should probably change all of the ’ apostrophes to the ' ones that we normally use. And any “ quotes to ". I'm guessing the other ones showed up just from copying text from Slack.
-
Here we say
review banner
but in the "Ship It!" tip we sayReview menu
. We should standardize on one (probablyReview menu
). -
- Commits:
-
Summary ID 5d725dabc3350f4920efe9008147e86a930aa55d 65406cd4f041d24651972bdab77a59f2b4a7722d
Checks run (2 succeeded)
- Commits:
-
Summary ID 65406cd4f041d24651972bdab77a59f2b4a7722d 4e9deaaed3f9da5cee75fa84f2b8171beff4df09
Checks run (2 succeeded)
-
These tips are great!
Change overall looks great, too. A few fairly small things.
-
What's this addressing? Do other icons need it?
Since we reuse this offset in
&__close
, can we add a constant or combine those two rules? -
Will this tip show up outside of the review dialog? Should we give it a name that gives it context for the review dialog, in case we want to add tips to the review request page or something down the road?
-
Let's pull out the full manual URL to a variable, so that localized strings don't hard-code any parts of this URL.
-
We may want to add
role="button"
to help screen readers know this is an action and not something that'll take them elsewhere. -
-
This is the inverse of the
hide
action. Maybe generalize this into a_toggleTips()
and have both the event and anevents
entry for this tie into that?
- Commits:
-
Summary ID 4e9deaaed3f9da5cee75fa84f2b8171beff4df09 c1ca063f2cd582833e64ba1c3ef2a6107e9375a4
Checks run (2 succeeded)
- Commits:
-
Summary ID c1ca063f2cd582833e64ba1c3ef2a6107e9375a4 ff162f929a04f9e4c0de330634da8dc10fd4ba52
Checks run (2 succeeded)
- Commits:
-
Summary ID ff162f929a04f9e4c0de330634da8dc10fd4ba52 33cb0d2d961d7e7d2e5d84cb4d6a5aab0750726e
Checks run (2 succeeded)
- Commits:
-
Summary ID 33cb0d2d961d7e7d2e5d84cb4d6a5aab0750726e 375fcf151a456654b8b7f3ecdd7cb759782d14fe