Add 'Cancel' Button and Implement Phone Input Improvements in Bot User Interface
Merge Request Description
This merge request covers two key enhancements to the bot user interface. The primary task involves the addition of a 'Cancel' button, available to users during the complaint sequence, providing a seamless option to exit the process at any given point. The second task includes the implementation of a 'Send Contact' button for phone input, coupled with an input mask for text phone input.
Goals
Main Goal:
1. Implementation of 'Cancel' Button
During the complaint sequence, a 'Cancel' button has been introduced to provide users an easy way to opt out of the sequence at any point. Upon clicking 'Cancel', the user is redirected back to the main bot user interface.
Acceptance Criteria:
- The 'Cancel' button is only visible during the complaint sequence.
- Clicking the 'Cancel' button instantly ends the complaint sequence.
- Users are redirected to the main bot UI after clicking the 'Cancel' button.
- The 'Cancel' button adheres to the design principles of the existing bot UI.
Additional Goal:
2. Phone Input Improvements
The bot user interface has been improved with a 'Send Contact' button for the phone input, enhancing user interaction. Moreover, an input mask has been implemented for the text phone input, ensuring data is entered in a specific format.
Acceptance Criteria:
- The 'Send Contact' button is properly functional.
- The input mask ensures data is input in the correct format.
Testing:
Unit tests were conducted to ensure the correct functioning of the newly implemented features. All changes have passed these tests, indicating that they behave as expected.