tower-cli icon indicating copy to clipboard operation
tower-cli copied to clipboard

Improve TableList to wrap in multiple lines long values

Open jordeu opened this issue 4 years ago • 3 comments

Long fields make the table to seem broken:

$ towr organizations view -n BBGLab

  Details for organization 'Barcelona Biomedical Genomics'

   -------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    ID          | 175513926776370                                                                                                                                                                                                                                                                      
    Name        | BBGLab                                                                                                                                                                                                                                                                               
    Full Name   | Barcelona Biomedical Genomics                                                                                                                                                                                                                                                        
    Description | Our research is focused on the study of cancer from a genomics perspective. We are particularly interested in the 
identification of cancer driver mutations, genes and pathways across tumour types and in the study of the mutational processes
 across tissues and genomic regions. 
    Website     |                                                                                                                                                                                                                                                                                      

Split it in multiple lines keeping the table correct.

jordeu avatar Oct 14 '21 08:10 jordeu

A possibile solution is to add an ellipses /easy solution) at the end otherwise the table component needs to be changed (more work).

@mbosio85 your call

swampie avatar Oct 25 '21 10:10 swampie

I would go for the ellipses solution. It solves the visual issue and we can move forward. If later on we notice that ellipses are a big enough issue somewhere (causes enough pain to enough users), we can change the table component for a future version.

mbosio85 avatar Oct 25 '21 13:10 mbosio85

Make sense to cut. The user can use describe to see the details

pditommaso avatar Oct 25 '21 13:10 pditommaso