fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.15k stars 432 forks source link

Add page numbers to Hosts view for easier navigation #24036

Open ddribeiro opened 3 days ago

ddribeiro commented 3 days ago

Slack thread: https://fleetdm.slack.com/archives/C072L58U878/p1732120524992249

Problem

Fleet users can view attributes for many hosts at once in the table view on the /hosts page. This table view is limited to showing 50 hosts at a time. Fleet admins can navigate pages by clicking the Next/Previous buttons at the bottom of the page. However, for environments with hundreds or thousands of hosts, clicking Next/Previous to page through hosts can take a while.

What have you tried?

customer-cisneros wanted to search for VMs to transfer to a dedicated VM team in the UI. They tried to search for multiple hosts or UUIDs in the search field to filter the hosts they wanted to transfer. Since that isn't possible, they needed to navigate through the pages on the Hosts table. They looked for a way to jump to a specific page in the UI, but only found the Next/Previous buttons and had to click Next 7+ times to get to the page they were looking for.

Potential solutions

In addition to the Next/Previous buttons at the bottom of the hosts table, it would be helpful to allow Fleet users to jump to a specific page.

What is the expected workflow as a result of your proposal?

A Fleet admin might want to use the Fleet UI to identify all devices that are VMs and transfer them to a "Virtual Machines" team. They would log into their Fleet server, navigate to the Hosts tab, and view All hosts. They would sort the hosts table by "Hardware model," which would group all VM "hardware" together in the hosts list. Since they get sorted alphabetically, the Fleet admin would be able to estimate what page the desired hardware would be on and jump to it. Once the hosts are identified, they could be selected and transferred to a new team. Today, the admin would need to click "Next" multiple (possibly 10+ in environments with thousands of hosts) times to get to the desired page.