Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show provisional draft data in element chips/cards/tables #14975

Conversation

brandonkelly
Copy link
Member

When an element has a provisional draft, its chips, cards, and index table data will now show the provisional draft’s data, as well as an “Edited” label.

An entry index in table view, showing that one entry has an “Edited” label because it has provisional draft data. An entry index in card view, showing that one entry has an “Edited” label because it has provisional draft data.

When editing an element via a slideout, its chips, cards, and table data will automatically refresh to reflect the latest changes (including its “Edited” label).

@brandonkelly brandonkelly requested a review from gcamacho079 May 10, 2024 17:21
Copy link

linear bot commented May 10, 2024

@brandonkelly brandonkelly changed the title Feature/cms 1302 show provisional draft data in element chips cards Show provisional draft data in element chips/cards/tables May 10, 2024
…ms-1302-show-provisional-draft-data-in-element-chips-cards
…ms-1302-show-provisional-draft-data-in-element-chips-cards
…ms-1302-show-provisional-draft-data-in-element-chips-cards

# Conflicts:
#	src/elements/NestedElementManager.php
#	src/web/assets/cp/dist/cp.js
#	src/web/assets/cp/dist/cp.js.map
…in-element-chips-cards

# Conflicts:
#	src/elements/NestedElementManager.php
#	src/web/assets/cp/dist/cp.js
#	src/web/assets/cp/dist/cp.js.map
…in-element-chips-cards

# Conflicts:
#	src/web/assets/cp/dist/cp.js
#	src/web/assets/cp/dist/cp.js.map
Copy link
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.

This looks great, @brandonkelly! The only change I would suggest is:

  • In the card view, it would be helpful to put the status badges in a ul.

…in-element-chips-cards

# Conflicts:
#	src/web/assets/cp/dist/cp.js
#	src/web/assets/cp/dist/cp.js.map
[ci skip]
@brandonkelly
Copy link
Member Author

Done! Thanks @gcamacho079

@brandonkelly brandonkelly merged commit ca3264d into 5.2 May 29, 2024
@brandonkelly brandonkelly deleted the feature/cms-1302-show-provisional-draft-data-in-element-chips-cards branch May 29, 2024 22:21
@brettburwell
Copy link

This is a sneaky awesome update. Bravo!

It's been fun seeing all of these detail polishing updates drop in the 5.2 release. Keep up the great work.

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.

3 participants