Add a concept of verbose labels to actions.

Review Request #14642 — Created Oct. 18, 2025 and updated

Information

Review Board
release-7.1.x

Reviewers

A verbose label is a longer version of a label that can be used for
display purposes (such as in the Review menu) and for ARIA labels. By
separating these concepts, an action can have one representation in a
place like the Review menu and another in a place like the Quick Access
area without having to have two separate registered actions.

It's set up just like labels on the Python classes and JavaScript
model, and is opted into by action views.

The detailed menu template (used for the Review menu) prioritizes the
verbose label over the standard label. Standard menus and buttons use it
exclusively for ARIA labels.

Unit tests pass.

Tested that the Review menu had the correct labels and that buttons had
the correct ARIA labels.

Summary ID
Add a concept of verbose labels to actions.
A verbose label is a longer version of a label that can be used for display purposes (such as in the Review menu) and for ARIA labels. By separating these concepts, an action can have one representation in a place like the Review menu and another in a place like the Quick Access area without having to have two separate registered actions. It's set up just like labels on the Python classes and JavaScript model, and is opted into by action views. The detailed menu template (used for the Review menu) prioritizes the verbose label over the standard label. Standard menus and buttons use it exclusively for ARIA labels.
6e5dbf76668ceb6156511bf26771846ff11785f6
Description From Last Updated

Why not get rid of the if and do aria-label="{{verbose_label|default:label}}"> here?

maubinmaubin
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
maubin
  1. 
      
  2. reviewboard/templates/actions/button_action.html (Diff revision 1)
     
     
     
     
    Show all issues

    Why not get rid of the if and do aria-label="{{verbose_label|default:label}}"> here?

  3.