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 | |
---|---|
Description | From | Last Updated |
---|---|---|
We should probably change all of the ’ apostrophes to the ' ones that we normally use. And any “ … |
![]() |
|
Here we say review banner but in the "Ship It!" tip we say Review menu. We should standardize on one … |
![]() |
|
Lets take out the word "providing" on this line to shorten the sentence a bit. |
![]() |
|
What's this addressing? Do other icons need it? Since we reuse this offset in &__close, can we add a constant … |
|
|
Will this tip show up outside of the review dialog? Should we give it a name that gives it context … |
|
|
Let's pull out the full manual URL to a variable, so that localized strings don't hard-code any parts of this … |
|
|
We may want to add role="button" to help screen readers know this is an action and not something that'll take … |
|
|
This needs to preventDefault() and stopPropagation(). |
|
|
This is the inverse of the hide action. Maybe generalize this into a _toggleTips() and have both the event and … |
|
|
Not sure how the <p> and <span> relate here. The <p> is self-closing, but the <span> indents. |
|
|
Can you add a Structure: to this and also include this in the main element's Structure:? |
|
|
This should still have a Structure, even if it's a simple standalone already shown elsewhere. All parts of all CSS … |
|
Summary: |
|
|||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||||||||||||||||||||
Testing Done: |
|
|||||||||||||||||||||||||||||||||||||||||||||
Commits: |
|
|||||||||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+236 -26) |
|||||||||||||||||||||||||||||||||||||||||||||
Added Files: |
Checks run (2 succeeded)

-
-
reviewboard/static/rb/js/reviews/views/reviewDialogView.ts (Diff revision 2) 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.
-
reviewboard/static/rb/js/reviews/views/reviewDialogView.ts (Diff revision 2) Here we say
review banner
but in the "Ship It!" tip we sayReview menu
. We should standardize on one (probablyReview menu
). -
reviewboard/static/rb/js/reviews/views/reviewDialogView.ts (Diff revision 2) Lets take out the word "providing" on this line to shorten the sentence a bit.
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+234 -26) |
Checks run (2 succeeded)
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 4 (+234 -26) |
Checks run (2 succeeded)
-
These tips are great!
Change overall looks great, too. A few fairly small things.
-
reviewboard/static/rb/css/ui/alert.less (Diff revision 4) 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? -
reviewboard/static/rb/js/common/models/userSessionModel.ts (Diff revision 4) 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?
-
reviewboard/static/rb/js/reviews/views/reviewDialogView.ts (Diff revision 4) Let's pull out the full manual URL to a variable, so that localized strings don't hard-code any parts of this URL.
-
reviewboard/static/rb/js/reviews/views/reviewDialogView.ts (Diff revision 4) We may want to add
role="button"
to help screen readers know this is an action and not something that'll take them elsewhere. -
reviewboard/static/rb/js/reviews/views/reviewDialogView.ts (Diff revision 4) This needs to
preventDefault()
andstopPropagation()
. -
reviewboard/static/rb/js/reviews/views/reviewDialogView.ts (Diff revision 4) 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: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 5 (+228 -28) |
Checks run (2 succeeded)
-
One small docs thing.
-
reviewboard/static/rb/css/ui/alert.less (Diff revision 5) Can you add a
Structure:
to this and also include this in the main element'sStructure:
?
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 6 (+230 -28) |
Checks run (2 succeeded)
-
-
reviewboard/static/rb/css/ui/alert.less (Diff revisions 5 - 6) Not sure how the
<p>
and<span>
relate here. The<p>
is self-closing, but the<span>
indents.
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 7 (+230 -28) |
Checks run (2 succeeded)
-
-
reviewboard/static/rb/css/ui/alert.less (Diff revision 7) This should still have a
Structure
, even if it's a simple standalone already shown elsewhere. All parts of all CSS components should have this.
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 8 (+244 -28) |
Checks run (2 succeeded)
Commits: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 9 (+262 -28) |