netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.16k stars 2.59k forks source link

autofocus on netbox search bar on dashboard page #12749

Closed ITJamie closed 3 weeks ago

ITJamie commented 1 year ago

NetBox version

v3.5.2

Feature type

New functionality

Proposed functionality

when netbox loads it would be great if the netbox search box had autofocus enabled on the dashboard page.

that way when a user loads the netbox default page url, they can instantly start searching for objects without having to tab to or click into the search box.

Use case

user accessability / ease of use adjustment

Database changes

No response

External dependencies

No response

PieterL75 commented 1 year ago

I once submitted the same FR https://github.com/netbox-community/netbox/issues/7839 and took a shot at the implementation. But having the focus there, is not very practical when being on an edit form, then de focus should be on the main field.. that logic was very hard to handle (for me at least)

ITJamie commented 1 year ago

I think it should only have the autofocus flag if it is on the dashboard page

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

abhi1693 commented 1 year ago

Instead of auto-focusing, we can add a way that when you hit / on your keyboard, the search comes into focus. This will avoid making too much logic of when it should or should not be in focus. You can test this feature via GitHub as well to get a taste of this. :)

PieterL75 commented 1 year ago

Now that sounds like an excellent idea ! can you submit the FR? I got a feeling that if your name is in the request, it is pickup up better by the maintainers

yash-pal1 commented 1 year ago

assign to me

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

github-actions[bot] commented 3 weeks ago

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.