Skip to content

UI attributes for element index cards view#15283

Merged
brandonkelly merged 71 commits into5.5from
feature/cms-1274-ui-attributes-for-element-index-cards-view
Nov 4, 2024
Merged

UI attributes for element index cards view#15283
brandonkelly merged 71 commits into5.5from
feature/cms-1274-ui-attributes-for-element-index-cards-view

Conversation

@i-just
Copy link
Copy Markdown
Contributor

@i-just i-just commented Jul 2, 2024

Description

Adds the ability to add attributes to the element card view and specify the order in which all the selected fields and attributes should appear.

  • added src/base/ElementInterface::cardAttributes()
  • added src/base/ElementInterface::defaultCardAttributes()
  • added src/events/RegisterElementCardAttributesEvent
  • added src/events/RegisterElementDefaultCardAttributesEvent
  • added src/helpers/Cp::cardViewDesignerHtml()
  • added src/models/FieldLayout->getCardView()
  • added src/models/FieldLayout->setCardView()
  • added src/models/FieldLayout->getCardBodyAttributes()
  • added src/models/FieldLayout->getCardBodyElements()

A card view designer, with “ID” and “Post Date” attributes selected

Related issues

CMS-1274

@linear
Copy link
Copy Markdown

linear Bot commented Jul 2, 2024

@i-just i-just requested a review from brandonkelly July 2, 2024 15:03
@brandonkelly brandonkelly changed the base branch from 5.3 to 5.4 August 7, 2024 13:31
@brandonkelly brandonkelly changed the base branch from 5.4 to 5.5 September 3, 2024 17:47
Copy link
Copy Markdown
Contributor

@gcamacho079 gcamacho079 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@i-just I’ve added some items to the Notion page we used for the previous review.

@i-just
Copy link
Copy Markdown
Contributor Author

i-just commented Sep 25, 2024

Thanks @gcamacho079! That’s all actioned now.

@brandonkelly brandonkelly changed the title Feature/cms 1274 UI attributes for element index cards view UI attributes for element index cards view Nov 2, 2024
Copy link
Copy Markdown
Member

@brandonkelly brandonkelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking really good!

Couple things:

  • It’s not super intuitive that to add custom fields, you still have to press “Show in element cards” in the disclosure menu. Let’s just get rid of those actions and start showing card view checkboxes for all selected custom fields that implement PreviewableFieldInterface.
  • Let’s update the checkbox select to use the new SortableCheckboxSelect.

@i-just
Copy link
Copy Markdown
Contributor Author

i-just commented Nov 4, 2024

Thanks @brandonkelly! It's all done now.

@brandonkelly brandonkelly merged commit b517684 into 5.5 Nov 4, 2024
@brandonkelly brandonkelly deleted the feature/cms-1274-ui-attributes-for-element-index-cards-view branch November 4, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants