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

feat(admin/revision): improve datatable drafts and trash #914

Merged
merged 31 commits into from
Jul 17, 2024

Conversation

Davidmattei
Copy link
Member

@Davidmattei Davidmattei commented Jun 14, 2024

Q A
Bug fix? n
New feature? n
BC breaks? n
Deprecations? n
Fixed tickets? n
Documentation? n

In this PR refactored the trash & drafts datatables.

Removed the need of separate services for building a table. The query is now build inside the type and ask the queryBuilder from the RevisionRepository. The dataTableType just needs to implement QueryServiceTypeInterface

Replaced index view by new generic crud/overview.html.twig

  • Replaced EMS/core-bundle/src/Resources/views/data/draft-in-progress.html.twig
  • Replaced EMS/core-bundle/src/Resources/views/data/trash.html.twig

Other fixes:

  • Core datatables can now use Symfony translatableMessages for column names, action names, item actions.
  • The submitEMS form type now has a confirm and confirm_class option (confirm bulk action on dataTables)
  • QueryTable can now also return entities (before only arrays where supported)
  • Added a new column type RevisionDisplay, calls emsco_display on render.

@Davidmattei Davidmattei requested a review from a team as a code owner June 14, 2024 06:40
@Davidmattei Davidmattei marked this pull request as draft June 14, 2024 06:41
@Davidmattei Davidmattei added this to the 5.18.0 milestone Jun 14, 2024
@Davidmattei Davidmattei modified the milestones: 5.18.0, 5.19.0 Jun 25, 2024
@Davidmattei Davidmattei changed the title refactor(core): improve datatables feat(revision): improve datatable drafs and trash Jul 11, 2024
@Davidmattei Davidmattei marked this pull request as ready for review July 16, 2024 11:46
@Davidmattei Davidmattei self-assigned this Jul 16, 2024
Also align form/fields.twig with adminUI bundle
@Davidmattei Davidmattei changed the title feat(revision): improve datatable drafs and trash feat(revision): improve datatable drafts and trash Jul 16, 2024
Copy link
Member

@theus77 theus77 left a comment

Choose a reason for hiding this comment

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

Very good PR. Really nice. Don't forget to also update AdminUI forked twigs in branch 6.x

@Davidmattei Davidmattei merged commit 42ea72c into ems-project:5.x Jul 17, 2024
2 checks passed
@Davidmattei Davidmattei changed the title feat(revision): improve datatable drafts and trash feat(admin/revision): improve datatable drafts and trash Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants