SBIN2010 commented on issue #44906:
URL: https://github.com/apache/superset/issues/44906#issuecomment-5999751080

   @EnxDev @rusackas @msyavuz 
   Current implementation:
   A text cell whose value is a JSON object or array gets an icon on the right. 
A click on the text selects the row and can apply a cross-filter, the same as 
any other cell. A click on the icon, or Enter while the cell is focused, opens 
a dialog titled "Cell content". The dialog shows the structure expanded and can 
copy the original text. The icon click does not apply a cross-filter.
   
   How the text is shown follows the column:
   
   - A column that wraps text shows the JSON wrapped onto extra lines. Line 
breaks and indentation in the stored text are collapsed, so a pretty-printed 
value does not force a very tall row.
   - A column that truncates long cells shows one line. Hovering the cell 
reveals the rest, the same as other truncated cells.
   
   **Customize → Options → JSON in cell** is off by default and does not rerun 
the query. Turning it on adds an arrow on the left and keeps the icon on the 
right. The preview stays one line. A click on the arrow expands and collapses 
the JSON in the row, one level at a time, and the row grows with the tree. A 
click on the icon still opens the dialog. A click on the collapsed text can 
still apply a cross-filter.
   
   Only objects and arrays are interactive. Scalars, invalid JSON, URLs, and 
cells rendered as HTML stay as they are. Text longer than 100 KB stays plain 
text.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to