tractorcow-farm / silverstripe-fluent

Multi-language translate module for Silverstripe, without having to manage separate site trees.
BSD 3-Clause "New" or "Revised" License
92 stars 110 forks source link

Asset admin edit form actions #778

Open mfendeksilverstripe opened 1 year ago

mfendeksilverstripe commented 1 year ago

Asset admin edit form actions

Looks like we don't have a proper locale aware customisation in the Asset admin actions UI in the edit form. This covers the case where content is being inherited from another locale. For example, for pages we would display UI indicating that you can localise the page (copy and copy & publish buttons instead of regular action buttons).

Individual asset actions

Screen Shot 2023-02-15 at 11 32 53 AM

Publish buttons reflects the correct state but the rest of the UI needs tweaking.

Localisation badges

Content authors need to know if assets has localised content, inherited content or no content. We can achieve this by adding a badge to the asset card.

Screenshot 2024-02-21 at 3 25 45 PM

Batch actions

Screen Shot 2023-02-15 at 11 33 20 AM

Impacted version

All versions (tested on version 6).

tractorcow commented 1 year ago

From memory, you had to create a custom form builder, or extend the form builder for assets to get custom actions. Is that supported in the new react based forms for assets?

mfendeksilverstripe commented 1 year ago

Not sure, this requires further investigation but I think there were some recent improvements to the React based UI. Maybe @maxime-rainville can chime in with some insight ;-)

tractorcow commented 1 year ago

From memory, we could extend form builder, and decorate the actions list. I don't remember how much control it gave over styling / layout / extra menus.

Then we just needed to add the actual action to the AssetAdmin controller (I think there's already a fluent extension that does this for other admins).

mfendeksilverstripe commented 7 months ago

Hey @maxime-rainville is this something we can get prioritised?