Fix the header above reviews/replies and make it a new component.
Review Request #14971 — Created March 26, 2026 and updated
The work on user badges regressed some of the display of the header area
at the top of reviews and in comments. This wasn't helped by the fact
that this is some of the oldest CSS in the codebases, and it's a huge
rats nest. Fixing this meant fixing it in multiple places and then
dealing with overrides.Instead of making the situation worse, this change introduces a new
rb-c-discussion-headercomponent that can be used in each of these
areas. It's responsible for showing the author information or title, the
timestamp, and an optional avatar and "new updates" icon.This can also be put in compact mode, which places the timestamp below
the name. Replies enable this and avatars, whereas the review headers do
not.A Storybook story has been added to help document and maintain this
component.
Tested this in mobile and desktop modes on all review request entry
boxes and in replies (published, existing draft, and new draft).Tested in light and dark modes.
All Python and JavaScript unit tests pass.
| Summary | ID |
|---|---|
| 79e8306c69a17df48ad9aa58c737e23f8c5ce1d1 |
| Description | From | Last Updated |
|---|---|---|
|
Looks like reviewboard/static/rb/js/reviewRequestPage/views/tests/baseStatusUpdatesEntryViewTests.es6.js also needs to be updated for this change. |
|
|
|
Typo: area-label -> aria-label |
|
|
|
header-details and summary are no longer used at all in templates/reviews/entries/base.html (and I don't see it elsewhere in the codebase). … |
|
|
|
__title is a grid child, so this property does nothing. |
|
|
|
Do we not need to pass timestamp in the way that we were doing before? |
|
|
|
Now that this is fully removed, I see that it's removing the responsive rules that switched to vertical stacking. Can … |
|
- Change Summary:
-
- Removed unused styles.
area-label->aria-label.
- Commits:
-
Summary ID 10542b882656cc7f9ffee23b3a4f9ad239290d8f 79e8306c69a17df48ad9aa58c737e23f8c5ce1d1 - Diff:
-
Revision 2 (+842 -194)