Add a concept of verbose labels to actions.

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

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.
5c17c41509559075035f409b8a3e63fe00a0eda9
Description From Last Updated

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

maubinmaubin
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. 
      
chipx86
maubin
  1. Ship It!
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-7.1.x (29ce45f)