PradyumnaKrishna / enigma-protocol

An end to end encrypted messenger using Flask, SocketIO, and Vue.js
https://protocol.onpy.in
MIT License
19 stars 34 forks source link

Implementing Toast Notifications for Text Copied and Wrong Input in Enigma Protocol Chatting Website #80

Closed Nishitbaria closed 9 months ago

Nishitbaria commented 9 months ago

Description: Currently, our Enigma Protocol chatting website uses classic alert boxes for notifying users when text is copied successfully or when there is an error in the input. This approach disrupts the user experience and lacks the modern look and feel we want to achieve.

Expected Behavior: We would like to enhance the user experience by implementing toast notifications instead of classic alerts for the following scenarios:

  1. When a user successfully copies text (e.g., user ID, messages) to the clipboard, display a toast notification confirming the action.
  2. When a user enters incorrect input (e.g., invalid command), show a toast notification with an appropriate error message.

Screenshots

image

Proposed Solution:

  1. Integrate toast notifications into our Enigma Protocol chatting website.
  2. Define custom toast components for success and error notifications, ensuring they match the overall website theme and style.
  3. Trigger toast notifications when the relevant events occur, such as successful text copying or input errors.
  4. Customize the appearance and behavior of toast notifications, including duration, position, and visual design.
  5. Implement logic to handle different scenarios and display appropriate messages for successful actions and errors.

UI/UX Considerations:

  1. The toast notifications should be unobtrusive, appearing briefly and smoothly fading out to avoid interrupting the user's workflow.
  2. Toast notifications should be visually appealing and match the overall design of the website.
  3. Consider using different colors or icons to distinguish between success and error notifications.

Additional Notes:

Nishitbaria commented 9 months ago

@PradyumnaKrishna ,please assign me this issue

PradyumnaKrishna commented 9 months ago

I guess this is one of the component what I looking in #37. You are welcome to implement this.

PradyumnaKrishna commented 9 months ago

Sorry, this was a duplicate but you are welcome to get assigned other issues.

Nishitbaria commented 9 months ago

@PradyumnaKrishna ,can you can tell me which issues i can work on?

PradyumnaKrishna commented 9 months ago

Look at this @Nishitbaria https://github.com/PradyumnaKrishna/enigma-protocol/issues/37#issuecomment-1633508015