Skip to content

Improve the UI Search settings#553

Merged
michaelhoehn merged 2 commits into
developfrom
BHoM_UI-#497-ImprovedSearchSettings
Jun 15, 2026
Merged

Improve the UI Search settings#553
michaelhoehn merged 2 commits into
developfrom
BHoM_UI-#497-ImprovedSearchSettings

Conversation

@adecler

@adecler adecler commented Jun 11, 2026

Copy link
Copy Markdown
Member

NOTE: Related to

Issues addressed by this PR

Closes #497

This fixes the issue highlighted in #497, that search item were excluded just because the word for an excluded toolkit was appearing somewhere in their textual representation. This PR fixes that by looking specifically at the part of the namespace that relates to the toolkit when excluding search items.

This PR also fixes a series of other issues discovered when working on this PR:

  • The search setting file was re-opened every time a search was happening. This was highly inefficient so the filtering now happens a single time at start when loading the search item from the AssemblyContent file.
  • This also fixed the fact that only the global menu was filtering out the excluded toolkits. Components menus were still showing the excluded toolkits.
  • The search settings had their own UI window. This is different from any other settings in the BHoM since all other settings can be created using classic BHoM component. So I have removed the whole UI project but kept the bespoke access of the component from the ribbon to avoid confusion. This creates duplication with the fact that the settings can also be created from the CreateObject component but it is more user-friendly. We could also consider in the future to repurpose that component to create any settings so it makes sense to keep it for now.

Test files

  • Just create a search setting using this script:
image
  • You can check that the file was correctly created by looking at C:\ProgramData\BHoM\Settings\BH.oM.UI.SearchSettings.json
  • You can then restart the UI (close Rhino) and check that the toolkits are now excluded from the search menus. Make sure to test both the global menu and the component menus.

Changelog

Additional comments

@adecler

adecler commented Jun 11, 2026

Copy link
Copy Markdown
Member Author

@BHoMBot check required

@bhombot-ci

bhombot-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

@adecler to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

@michaelhoehn michaelhoehn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested and approved. Happy with the functionality.

@bhombot-ci

bhombot-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

Please be advised that the check with reference 80862813320 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 1183 additional annotations waiting, made up of 1183 errors and 0 warnings.

@bhombot-ci

bhombot-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

@adecler just to let you know, I have provided a check-installer result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @adecler on Grasshopper_UI

@michaelhoehn

Copy link
Copy Markdown
Contributor

@BHoMBot check core

@bhombot-ci

bhombot-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

@michaelhoehn to confirm, the following actions are now queued:

  • check core

@michaelhoehn

michaelhoehn commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

@BHoMBot check installer

@bhombot-ci

bhombot-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

@michaelhoehn to confirm, the following actions are now queued:

  • check installer

2 similar comments
@bhombot-ci

bhombot-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

@michaelhoehn to confirm, the following actions are now queued:

  • check installer

@bhombot-ci

bhombot-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

@michaelhoehn to confirm, the following actions are now queued:

  • check installer

@michaelhoehn

michaelhoehn commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

@BHoMBot check serialisation

@bhombot-ci

bhombot-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

@michaelhoehn to confirm, the following actions are now queued:

  • check serialisation

@michaelhoehn

Copy link
Copy Markdown
Contributor

@BHoMBot check versioning

@bhombot-ci

bhombot-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

@michaelhoehn to confirm, the following actions are now queued:

  • check versioning

@bhombot-ci

bhombot-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown

@michaelhoehn to confirm, the following actions are now queued:

  • check serialisation

There are 3 requests in the queue ahead of you.

@bhombot-ci

bhombot-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown

The check serialisation has already been run previously and recorded as a successful check. This check has not been run again at this time.

@adecler

adecler commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

@BHoMBot check versioning

@bhombot-ci

bhombot-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown

@adecler to confirm, the following actions are now queued:

  • check versioning

There are 48 requests in the queue ahead of you.

@bhombot-ci

bhombot-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown

@adecler just to let you know, I have provided a check-installer result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @adecler on Grasshopper_UI

@adecler

adecler commented Jun 14, 2026

Copy link
Copy Markdown
Member Author

@BHoMBot check versioning

@bhombot-ci

bhombot-ci Bot commented Jun 14, 2026

Copy link
Copy Markdown

@adecler to confirm, the following actions are now queued:

  • check versioning

There are 46 requests in the queue ahead of you.

@bhombot-ci

bhombot-ci Bot commented Jun 14, 2026

Copy link
Copy Markdown

@adecler to confirm, the following actions are now queued:

  • check versioning

There are 45 requests in the queue ahead of you.

@bhombot-ci

bhombot-ci Bot commented Jun 14, 2026

Copy link
Copy Markdown

@adecler just to let you know, I have provided a check-installer result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @adecler on Versioning_Toolkit

@bhombot-ci

bhombot-ci Bot commented Jun 15, 2026

Copy link
Copy Markdown

@adecler just to let you know, I have provided a check-ready-to-merge result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @michaelhoehn on Versioning_Toolkit

@michaelhoehn michaelhoehn merged commit d9bdcda into develop Jun 15, 2026
10 checks passed
@michaelhoehn michaelhoehn deleted the BHoM_UI-#497-ImprovedSearchSettings branch June 15, 2026 17:26
@BHoMBot BHoMBot mentioned this pull request Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Error or unexpected behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Global search setting filters to broadly

2 participants