msupply-foundation / unified-codes

Provides a curated, searchable list of pharmaceutical products, each with an immutable code. A GraphQL API, a REST API and website are available for interaction with the database.
https://codes.msupply.foundation
2 stars 0 forks source link

Collapse nodes lower than the unit level #548

Closed lache-melvin closed 8 months ago

lache-melvin commented 8 months ago

Currently we expand all nodes of the entity trees when displaying them on the details page. However, for drugs and vaccines, typically we'd only need to see down to the unit level.

We should collapse immediatePackaging and packSizes where they are present.