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

FIX ModelAdmin toast elements #11037

Conversation

sabina-talipova
Copy link
Contributor

@sabina-talipova
Copy link
Contributor Author

sabina-talipova commented Oct 31, 2023

Failed tests are unrelated to this PR. This PR should fix #11038

@sabina-talipova sabina-talipova marked this pull request as ready for review October 31, 2023 02:29
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Missing toasts for:

  • validation errors
  • archiving
  • published (currently says "saved")
  • any actions from the gridfield itself (... on a row)

The message should also reflect the messages in the pages admin. e.g. when I save a page, it says "Saved 'New Page' successfully."

@sabina-talipova sabina-talipova force-pushed the pulls/4.13/toast-msg-gridfield branch 5 times, most recently from 17ae52e to 673893b Compare November 1, 2023 22:38
@sabina-talipova
Copy link
Contributor Author

sabina-talipova commented Nov 2, 2023

Updated. Required silverstripe/silverstripe-versioned#424

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Still needs:

  • Toasts on validation errors aren't happening
  • Toasts aren't happening for any actions from the gridfield itself (... on a row)
  • Quotation marks around the name of the item (instead of Saved Company Some comany name successfully it should be Saved Company 'Some comany name' successfully. (to match the pages admin)

lang/en.yml Outdated Show resolved Hide resolved
lang/en.yml Outdated Show resolved Hide resolved
src/Forms/GridField/GridFieldDetailForm_ItemRequest.php Outdated Show resolved Hide resolved
src/Forms/GridField/GridFieldDetailForm_ItemRequest.php Outdated Show resolved Hide resolved
@sabina-talipova sabina-talipova force-pushed the pulls/4.13/toast-msg-gridfield branch from 673893b to 5416aff Compare November 3, 2023 00:40
@GuySartorelli
Copy link
Member

I still don't get any toast when using the options in the ... menu of a gridfield row
image
I've mentioned this twice before.

@sabina-talipova sabina-talipova force-pushed the pulls/4.13/toast-msg-gridfield branch from 5416aff to e5a147e Compare November 7, 2023 21:53
@sabina-talipova
Copy link
Contributor Author

sabina-talipova commented Nov 7, 2023

  • Toasts aren't happening for any actions from the gridfield itself (... on a row)

This is a part of admin changes. PR

@sabina-talipova sabina-talipova force-pushed the pulls/4.13/toast-msg-gridfield branch from e5a147e to d883719 Compare November 8, 2023 20:40
@GuySartorelli
Copy link
Member

GuySartorelli commented Nov 9, 2023

The toasts for validation messages has broken again.
Edit: This was user error.

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Looks great and works well locally.

@GuySartorelli GuySartorelli merged commit 4c76ec6 into silverstripe:4.13 Nov 12, 2023
15 checks passed
@GuySartorelli GuySartorelli deleted the pulls/4.13/toast-msg-gridfield branch November 12, 2023 20:43
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.

2 participants