Skip to content

Add submenuItems support to HeaderBar#5068

Merged
demiankatz merged 5 commits intovufind-org:devfrom
aleksip:add-submenuitems-support-to-headerbar
Feb 16, 2026
Merged

Add submenuItems support to HeaderBar#5068
demiankatz merged 5 commits intovufind-org:devfrom
aleksip:add-submenuitems-support-to-headerbar

Conversation

@aleksip
Copy link
Contributor

@aleksip aleksip commented Feb 12, 2026

Follow-up to #5040

@aleksip aleksip requested a review from demiankatz February 12, 2026 12:28
Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @aleksip! See below for some first-round suggestions.

@aleksip aleksip requested a review from demiankatz February 13, 2026 12:45
Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks for the improvements, @aleksip -- just one last question about config naming.

# - routeParams: parameters for dynamic routes
# - url: target url, alternative to route - required unless route or template
# is set
# - name: name of an item, used as a CSS class for the menu item's <li> tag
Copy link
Member

Choose a reason for hiding this comment

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

Any reason not to call this class or className rather than name if that's its only purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just to align with AccountMenu and AdminMenu, which use it for a similar purpose. Happy to rename if you would prefer class or className.

Copy link
Member

Choose a reason for hiding this comment

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

I agree that consistency is desirable. Unfortunately, it looks like we already have some inconsistency in AccountMenu, where we have a top-level class property and then use name in the lower levels. I guess we're stuck with "name" though, since it has been like this for years and we can't change it without breaking back-compatibility and creating more work to update config files. I'm sorry that I didn't notice this earlier! I just don't like "name" because it has a specific technical meaning in HTML, and that makes the current use as a class feel confusing to me.

Let me know if you have any further thoughts/preferences. I'll merge this as-is unless you have any further thoughts on how to improve it.

At very least, though, we should update the other .yaml configs so that all the comments on the name setting are consistent. I'll leave it up to you whether to do that here or as a follow-up.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated the other configs. It looks like the key is used for several things in AccountMenu so maybe it could be thought of as a multi-purpose key, as long as the documentation is kept up to date.

Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @aleksip, all looks reasonable to me now!

@demiankatz demiankatz added this to the 11.1 milestone Feb 16, 2026
@demiankatz demiankatz merged commit e191c60 into vufind-org:dev Feb 16, 2026
6 checks passed
@demiankatz demiankatz deleted the add-submenuitems-support-to-headerbar branch February 16, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments