daytonaio / daytona

The Open Source Dev Environment Manager.
https://daytona.io
Apache License 2.0
8.07k stars 769 forks source link

Profile List Inconsistency #977

Open ivan-burazin opened 2 weeks ago

ivan-burazin commented 2 weeks ago

Describe the bug If you hit daytona profile list and have one profile you have table view, which is correct. But if you have multiple you get list view which is incorrect, or at least inconsist.

To Reproduce daytona profile list with one profile and then with two

Expected behavior daytona profile list output is always in table view

Screenshots

Screenshot 2024-08-27 at 23 57 08

Desktop (please complete the following information):

idagelic commented 2 weeks ago

When there is not enough terminal width to display all the necessary columns, the TUI defaults to a "profile info" view which doesn't have a table to make sure no content gets cut off.

In your case, the new API URL was the reason the table would have been to wide to display.

Tpuljak commented 2 weeks ago

Labeled this for discussion since this logic is applied to all table views. We should decide the best and most consistent approach while keep UX in mind.