oxidecomputer / console

Oxide Web Console
https://console-preview.oxide.computer
Mozilla Public License 2.0
140 stars 11 forks source link

Jump To modal only allows jumping to first 25 projects #2572

Open sudomateo opened 2 days ago

sudomateo commented 2 days ago

In the Oxide Console pressing Ctrl + k (Linux/Windows) or Cmd + k (macOS) opens the Jump To modal which allows operators to quickly perform actions such as jumping to a project or silo.

If an operator has more than 25 projects in their silo then they will only be able to jump to one of the first 25 projects in lexicographical order. For example, if a silo has 50 projects named foo01 to foo50 then they can only jump to projects foo01 to foo25.

An operator should be able to jump to any project within their silo via the Jump To modal.

A naive fix would be to bump the PAGE_SIZE constant since that is used in the ProjectsPage component but that would just move the problem to a larger number.

https://github.com/oxidecomputer/console/blob/67033a32a37ce0f7b4a19468bf97c2ab97183716/app/table/QueryTable.tsx#L62

https://github.com/oxidecomputer/console/blob/67033a32a37ce0f7b4a19468bf97c2ab97183716/app/pages/ProjectsPage.tsx#L65-L67

david-crespo commented 2 days ago

2567 makes this marginally better in that the ones in the menu will at least be the ones on the current page when you change pages, instead of always being the first page. #2029 is what would make the full list searchable.