Add action renderers for sidebars.
Review Request #14716 — Created Nov. 29, 2025 and updated
This introduces two new renderers used for sidebars: One for groups
(which recurses into subgroups), and one for items.The renderers fit into the existing
rb-c-sidebarstyling. This has
been updated to support subgroups in the sidebar, which appear with a
bold (but not uppercase) header and nested items.This in preparation for action registration for admin sidebar items,
which will allow extensions to augment the sidebar.
Unit tests pass.
Tested with an upcoming change converting the admin UI to the sidebar.
| Summary | ID |
|---|---|
| ec50a6d498b8261721eb1bdcb873e6de54420672 |
| Description | From | Last Updated |
|---|---|---|
|
Can we add a test to verify that this URL matching works as expected? |
|
|
|
Can we prefix these with _ to mark them as internal? Otherwise future linting will complain about missing docstrings. (and/or … |
|
|
|
group_action.html defines this as already including {{action_attrs}}. From the unit tests it seems like this starts out empty, but it … |
|
|
|
This should be aria-labelledby (no second hyphen) |
|
-
-
-
Can we prefix these with
_to mark them as internal? Otherwise future linting will complain about missing docstrings.(and/or we could add docstrings)
-
group_action.html defines this as already including
{{action_attrs}}. From the unit tests it seems like this starts out empty, but it seems like if anything is actually in there, by including both{{block.super}}and{{action_attrs}}, we'd get duplicate attributes (we actually might already withid=, andassertHTMLEqual's parsing is masking it). -