Project

General

Profile

Feature #3306

Based on property, open copilot when user gets ready to exit the window

Added by Ram Kordale about 1 year ago. Updated about 1 year ago.

Status:
Review
Priority:
Urgent
Target version:
Start date:
10/25/2023
Due date:
11/08/2023 (about 13 months late)
% Done:

100%

Estimated time:
2.00 h

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

mouse_speed_old_poc.html (695 Bytes) mouse_speed_old_poc.html This is from old implementation which is #2047 Ayush Khandelwal, 11/06/2023 12:18 PM
mouse_speed_poc.html (1.98 KB) mouse_speed_poc.html New implementation according to the ticket Ayush Khandelwal, 11/06/2023 12:18 PM
mouse_speed_poc_approved.html (1.99 KB) mouse_speed_poc_approved.html Final approved POC for the implementation Ayush Khandelwal, 11/08/2023 05:44 AM

Also available in: Atom PDF