Add action renderers for sidebars.
Review Request #14716 — Created Nov. 28, 2025 and submitted
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 |
|---|---|
| 4c82f5afa2bae7451bc42ddc64462ed237cfe814 |
| 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). -
- Change Summary:
-
- Added a unit test to confirm the URL matching for active sidebar items.
- Prefixed the internal test classes with
_. - Fixed the
aria-labelledby(it was being namedaria-labelled-by).
- Commits:
-
Summary ID ec50a6d498b8261721eb1bdcb873e6de54420672 4c82f5afa2bae7451bc42ddc64462ed237cfe814 - Diff:
-
Revision 2 (+956 -10)