Data Views: Revisit layout config structure #60507
Labels
[Feature] DataViews
Work surrounding upgrading and evolving views in the site editor and beyond
[Type] Code Quality
Issues or PRs that relate to code quality
Currently in
view
config we have an optional config prop (layout
) per layout type (grid
,table
, etc..).We're starting to have several kind of displays for fields: primary, media, badge (maybe others in other layouts). It would be good to check if we can consolidate somehow.
We should check whether existing
layout
config props could be reused in every layout and moved tofields
API (exampleprimaryField
), we should check whether existing props should be moved to therender
function of a field (examplebadgeFields
), and we should explore how/whether to update thevisibleFields
with a different structure. An example suggestion by @youknowriad is:The text was updated successfully, but these errors were encountered: