pimcore / studio-ui-bundle

Studio UI bundle
Other
12 stars 2 forks source link

Properties #182

Closed fashxp closed 1 month ago

fashxp commented 3 months ago

https://www.figma.com/file/kTxowT29eCHwNh5NspDGGu/Pimcore-Components?type=design&node-id=490-59345&mode=design&t=l4k909oyeYybtcsS-4 https://www.figma.com/file/kTxowT29eCHwNh5NspDGGu/Pimcore-Components?type=design&node-id=2123-117952&mode=design&t=l4k909oyeYybtcsS-4

image

markus-moser commented 2 months ago

API requirements

We will need multiple different endpoints to handle the properties tab:

Property Listing

This could be done either as part of the asset detail endpoint or as separate endpoint.

In the classic UI bundle it's part of the asset/document/object detail call:

https://demo.pimcore.com/admin/asset/get-data-by-id?_dc=1712842909851&id=318&type=image

image Implementation details

Predefined properties listing

Classic UI call:

https://demo.pimcore.com/admin/element/get-predefined-properties?elementType=asset&_dc=1712843522785&query=&page=1&start=0&limit=25

image

Used as source for the predefined properties select box:

image

Implementation details:

Save changed properties for a element

This should be part of the regular asset/object/document update patch call. The full updated list ist sent there. Therefore there are no separate endpoints for updating or deleting a single property of an element needed.

mattamon commented 2 months ago

What about creating a new predefined property?

markus-moser commented 2 months ago

What about creating a new predefined property?

We will need this a little bit later, but yes you're right, we should add this right now if possible 👍