Skip to content

Add configuration for custom backend navigation sections - #1593

Merged
zonky2 merged 3 commits into
release/2.5from
feature/backend-sections-config
Sep 1, 2026
Merged

Add configuration for custom backend navigation sections#1593
zonky2 merged 3 commits into
release/2.5from
feature/backend-sections-config

Conversation

@zonky2

@zonky2 zonky2 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Description

  • metamodels.be_sections config for declaring custom backend navigation groups (name/tooltip locale maps, icon, position via add.before/add.after, initial collapsed state) instead of a hand-rolled MenuEvent listener
  • MetaModels' own group icon now uses MM blue; custom sections fall back to the grey default icon when none is configured or the file can't be found

Closes #1519

Custom backend groups previously required a hand-rolled MenuEvent
listener plus a manually delivered SVG icon (see the cookbook). They
can now be declared under metamodels.be_sections in config.yaml,
specifying translated name/tooltip, an icon path, position relative
to an existing navigation entry and initial collapsed state.

Closes #1519
…be_sections icons

Add mm_group_icon_blue.svg (same shape as the existing grey icon, MM
blue #009dd1) and use it for the "MetaModels" navigation group. Custom
be_sections now fall back to the grey icon when no icon is configured
or the configured file cannot be found on disk, instead of rendering
without one.
Fixes a Psalm ClassMustBeFinal failure in CI: a new class that is not
part of the public API and never extended must be final.
@zonky2
zonky2 merged commit eed502e into release/2.5 Sep 1, 2026
4 checks passed
@zonky2
zonky2 deleted the feature/backend-sections-config branch September 1, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant