-
Notifications
You must be signed in to change notification settings - Fork 268
Add toast to notify results for custom actions #971
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
Open
rusanpas
wants to merge
13
commits into
aminalaee:main
Choose a base branch
from
rusanpas:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mmzeynalli
suggested changes
Dec 9, 2025
Contributor
mmzeynalli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ALso add some screenshots of the result please
mmzeynalli
suggested changes
Dec 10, 2025
mmzeynalli
approved these changes
Dec 10, 2025
Contributor
mmzeynalli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @aminalaee
|
Is there any estimated time for this feature? I'm interested in it. |
Contributor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 Feature: Add Toast Notifications for Custom Action Results
Summary
This Pull Request introduces the functionality to display toast notifications in the UI to inform the user about the success or failure of a custom action executed from the admin interface.
Motivation
Currently, when a user executes a custom action (e.g., "Ban User," "Process Order," "Send Email"), the action runs on the backend, but the user receives no immediate, visible feedback on the frontend confirming the outcome. This can lead to an uncertain user experience.
By implementing toast notifications, we can provide instant, non-intrusive feedback, improving the overall usability and clarity of custom actions.
Implementation Details
1. Backend changes
Created a flash function to store the message, with an optional title and a customizable color based on the message category (e.g., success, warning, info, danger).
Created a get_flash_messages function to retrieve the stored messages for use within the templates.
2. Frontend changes
3. Samples screenshots