Feature #3306
Based on property, open copilot when user gets ready to exit the window
100%
Description
When user is about to exit, open the copilot if "isCopilotOpenOnExit" was present in the API response and the value was true.
How to decide if the user is about to exit. We can combine the following heuristics. If all of the following happens, we can assume that the user is about to exit
- Direction of the mouse movement is roughly towards the top of the window (between (0,2h/3) and (w, 2h/3)) where w is the width and h is the height of the window.
- Relatively fast movement [This needs some experimentation. We can use the same logic for both the points from the Angular implementation.]
Can we reuse the logic to find out if the user is exiting in Angular to build this feature?
There, the logic was based on direction and speed of mouse movement. [http://34.67.50.25/issues/2047 has some clue on where to find this in code.]
Files
Updated by Ayush Khandelwal about 1 year ago
- Due date set to 11/06/2023
- Status changed from New to In Progress
Updated by Ayush Khandelwal about 1 year ago
- File mouse_speed_old_poc.html mouse_speed_old_poc.html added
- File mouse_speed_poc.html mouse_speed_poc.html added
Updated by Ayush Khandelwal about 1 year ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Attached the speed implementation. After doing some experiment, we will decide the value for the speed. POC's are attached in the ticket.
Updated by Ayush Khandelwal about 1 year ago
- File mouse_speed_poc_approved.html mouse_speed_poc_approved.html added
- Due date changed from 11/06/2023 to 11/08/2023
- Status changed from Resolved to In Progress
- Estimated time set to 2.00 h
Updated by Ayush Khandelwal about 1 year ago
- Tracker changed from Feature to Task
- Status changed from In Progress to New
- % Done changed from 100 to 0
Updated by Ayush Khandelwal about 1 year ago
- Tracker changed from Task to Feature
- Assignee changed from Ayush Khandelwal to Ayanava Karmakar
Updated by Ayush Khandelwal about 1 year ago
Use the 'mouse_speed_poc_approved.html' logic to detect the user is ready to exit the window. If yes, then open the copilot.
Updated by Ayanava Karmakar about 1 year ago
- Status changed from Resolved to Review
- Assignee changed from Ayanava Karmakar to Ayush Khandelwal
- % Done changed from 50 to 100
Updated by Ayanava Karmakar about 1 year ago
- Assignee changed from Ayush Khandelwal to Ayanava Karmakar
Updated by Ayanava Karmakar about 1 year ago
- Status changed from Resolved to Review
- Assignee changed from Ayanava Karmakar to Ayush Khandelwal