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

[Admin] Send Messages and Perform Actions on Users (Dropdown Actions) #984

Open
mehalyna opened this issue Nov 27, 2024 · 0 comments
Open
Assignees

Comments

@mehalyna
Copy link
Collaborator

mehalyna commented Nov 27, 2024

As an Admin,
I want to choose from a set of actions for each user using a dropdown in the Дії (Actions) column,
So that I can send messages, view profiles, or block users directly from the users' list.


Acceptance Criteria:

Dropdown Menu for Actions:

  1. In the Дії (Actions) column, a dropdown menu is provided for each user.
  2. The dropdown contains the following options:
    • Надіслати лист (Send Message)
    • Переглянути (View Profile)

Send Message:

  1. When Надіслати лист (Send Message) is selected:
    • A form appears, allowing the admin to compose and send a custom message.
    • The system sends the message to the user’s registered email address.
    • A confirmation is displayed once the message is sent successfully.

View Profile:

  1. When Переглянути (View Profile) is selected:
    • The admin is redirected to the user’s detailed profile page.
    • The profile contains full user details, account activity, and any uploaded documents.

Action Logging:

  1. All actions performed through the Дії (Actions) dropdown (sending messages, viewing profiles) are logged in the system for auditing purposes.

UI/UX Notes:

  • The dropdown must be easy to use and accessible with hover and click interactions.

  • Actions should execute without page reloads unless required (e.g., for viewing profiles).


Error Handling:

  1. Send Message:
    • If the email fails to send, display an error message: "Failed to send the message. Please try again."
  2. View Profile:
    • If the profile cannot be loaded, show an error: "Unable to view profile. Please refresh the page."
  3. Prevent multiple clicks by disabling the action button until the current action is completed.

Mockup

image

Epic link #821

Labels to be added "User story", Corresponding Functionality (e.g. User), Priority ("pri: "), "Corresponding Epic"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants