Add support for 'title:' in the .panel bundle.yaml#2702
Add support for 'title:' in the .panel bundle.yaml#2702jmcouffin merged 2 commits intopyrevitlabs:developfrom
Conversation
|
Unable to perform a code review. You have run out of credits 😔 |
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the "title:" property in .panel bundle.yaml files, allowing developers to specify custom titles for panels.
- Replaces usage of panel.name with panel.ui_title when creating ribbon panels
- Updates panel UI creation to leverage the new title attribute
Comments suppressed due to low confidence (1)
pyrevitlib/pyrevit/loader/uimaker.py:572
- Ensure that panel.ui_title is always defined for all panel instances, or consider providing a fallback to panel.name to maintain compatibility with existing panel configurations.
parent_ui_tab.create_ribbon_panel(panel.ui_title, update_if_exists=True)
|
📦 New work-in-progress (wip) builds are available for 5.1.0.25162+1125-wip |
|
📦 New work-in-progress (wip) builds are available for 5.1.0.25162+1306-wip |
|
📦 New work-in-progress (wip) builds are available for 5.1.0.25162+2030-wip |
|
📦 New work-in-progress (wip) builds are available for 5.1.0.25164+0700-wip |
|
📦 New work-in-progress (wip) builds are available for 5.1.0.25164+1347-wip |
|
📦 New work-in-progress (wip) builds are available for 5.1.0.25164+1420-wip |
|
📦 New work-in-progress (wip) builds are available for 5.1.0.25164+1830-wip |
|
📦 New work-in-progress (wip) builds are available for 5.1.0.25171+0757-wip |
|
📦 New work-in-progress (wip) builds are available for 5.2.0.25181+1313-wip |
|
📦 New public release are available for 5.2.0.25181+1425 |
Add support for 'title:' in the .panel bundle.yaml
Description
This pull request adds support for the
title:property in.panelbundle.yaml files. Allows developers to specify custom titles for panels directly in the bundle configuration, providing more flexibility in panel naming and organization.Checklist
Before submitting your pull request, ensure the following requirements are met:
pipenv run black {source_file_or_directory}Note: formatting with Black changed a lot more than the two lines I changed, so did not commit the formatting
Additional Notes
This feature enables better customization of panel display names without requiring changes to folder structure or panel bundle names. The
title:property works similarly to existing bundle.yaml configurations for other UI elements.