nens / lizard-catalogue

Lizard Catalogue
https://demo.lizard.net/catalogue/
0 stars 0 forks source link

Show extra_metadata field in Details tab of the Scenario catalogue #317

Closed hoanphungt closed 2 years ago

hoanphungt commented 2 years ago

The new extra_metadata field in the scenario endpoint is an object. How can we best display this field in the scenario details tab?

hoanphungt commented 2 years ago

@gijs @lexvand Do you guys have any suggestion on how we should display the extra_metadata field of a scenario in the Details tab?

lexvand commented 2 years ago

@hoanphungt I think the easiest way would be to just add it to the details tab. Maybe add a header below the default rows if any extra_metadata is available and add all attributes as additional rows. We need to make it scrollable then.

Some edge cases we probably need to handle:

An alternative would be to open the extra_metadata in a separate modal, but that is less elegant and less user friendly.

hoanphungt commented 2 years ago

@gijs Hi Gijs,

For the extra_metadata field of a scenario in the Details tab of the Catalogue, I struggle to display them in an useful way. The field is an object. I made an attempt like this:

Screenshot from 2022-04-26 11-29-38

As you can see, the object field contains another object so it can become messy here and also does not fit into the table anymore (although you can hover on it to see the value).

What do you think about this solution and do you have any other suggestion?

hoanphungt commented 2 years ago

Used the above solution for now. We might improve it later.

hoanphungt commented 2 years ago

@lexvand I just deployed to staging

lexvand commented 2 years ago

Tested on staging. For now it covers what we want from it. Let's see if we receive any requests for improvements.