digital-asset / daml

The Daml smart contract language
https://www.digitalasset.com/developers
Other
802 stars 204 forks source link

Allow to collapse and expand nested data structures in script results #15785

Open stefanobaghino-da opened 1 year ago

stefanobaghino-da commented 1 year ago

What is the problem you want to solve?

Difficulty in reading nested data structures when they are printed in script results.

What is the solution you would propose?

Show nested data structures like records as items that can be collapsed and expanded as needed.

Describe alternatives you've considered

Copying and pasting the script result and manually sieving through a complex data structure.

stefanobaghino-da commented 1 year ago

The following is an example of garbled input which is very difficult to work with and that ideally should be structured in a tree that can be collapsed and expanded as needed.

garbled

basvangijzel-DA commented 1 year ago

@stefanobaghino-da Sounds like a reasonable thing to want, but will incur some significant extension on how we present script results. Would be good to understand how important this is as a use case for customers.