Skip to content

Add support for 'title:' in the .panel bundle.yaml#2702

Merged
jmcouffin merged 2 commits intopyrevitlabs:developfrom
OnePowerUser88:develop
Jun 11, 2025
Merged

Add support for 'title:' in the .panel bundle.yaml#2702
jmcouffin merged 2 commits intopyrevitlabs:developfrom
OnePowerUser88:develop

Conversation

@OnePowerUser88
Copy link
Copy Markdown
Contributor

@OnePowerUser88 OnePowerUser88 commented Jun 11, 2025

Add support for 'title:' in the .panel bundle.yaml

Description

This pull request adds support for the title: property in .panel bundle.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:

  • Code follows the PEP 8 style guide.
  • Code has been formatted with Black using the command:
    pipenv run black {source_file_or_directory}
  • Changes are tested and verified to work as expected.

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.


@devloai
Copy link
Copy Markdown
Contributor

devloai bot commented Jun 11, 2025

Unable to perform a code review. You have run out of credits 😔
You can buy additional credits from the subscription page.

@jmcouffin jmcouffin requested a review from Copilot June 11, 2025 11:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@jmcouffin jmcouffin added the Bundles Issues related to the pyRevit bundles [subsystem] label Jun 11, 2025
@jmcouffin jmcouffin merged commit 67ddeea into pyrevitlabs:develop Jun 11, 2025
@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25162+1125-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25162+1306-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25162+2030-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25164+0700-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25164+1347-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25164+1420-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25164+1830-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.1.0.25171+0757-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 5.2.0.25181+1313-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New public release are available for 5.2.0.25181+1425

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bundles Issues related to the pyRevit bundles [subsystem]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants