Skip to content

Conversation

contagon
Copy link
Contributor

@contagon contagon commented May 1, 2025

Description

This PR adds a "quickbar" chip that emulates the search button found in the top right of the UI. It can additionally be set to search by entity, device, or command (identical to the e, d, and c hotkeys).

Related Issue

This PR fixes or closes issue: fixes #1012

Motivation and Context

As mentioned in the issue, many users (myself included) prefer to hide the top navigation bar for more of a minimalist UI, but this removes the search functionality. This chip restores the functionality (and enhances it a smidge by giving more search options). It does this by simply sending a KeyboardEvent with the relevant hotkey button press. If there's a more robust way to trigger the quickbar, please let me know and I'd be happy to tweak this.

I also wanted to implement an "Edit Dashboard" chip, but couldn't find a good way to trigger that button.

How Has This Been Tested

I tested this in the dev setup described in the README, as well as running it on my instance for a few months now. I additionally added it to the chips-view.yaml as a simple test that things work.

I'm far from a typescript export, but I don't believe this should cause any issues with existing code.

Types of changes

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 🌎 Translation (addition or update a translation)
  • ⚙️ Tech (code style improvement, performance improvement or dependencies bump)
  • 📚 Documentation (fix or addition in the documentation)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have tested the change locally.
  • I followed the steps if I add a new language .

I believe my code follows the code style of this project, but as typescript isn't my primary language I could be mistaken. I'd be happy to change anything you'd recommend!

Copy link
Owner

@piitaya piitaya left a comment

Choose a reason for hiding this comment

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

I like it ! Thank you for the contribution !

@piitaya piitaya merged commit 789eb00 into piitaya:main Jul 18, 2025
@piitaya piitaya added the enhancement New feature or request label Jul 22, 2025
@jhemak
Copy link

jhemak commented Jul 25, 2025

@contagon - this is a great enhancement. Thank you! Would you consider adding support for icon_color?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Chips for "Search" and "Edit Dashboard"
3 participants