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
#1

Updated by Ram Kordale about 1 year ago

  • Description updated (diff)
#2

Updated by Ayush Khandelwal about 1 year ago

  • Due date set to 11/06/2023
  • Status changed from New to In Progress
#4

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.

#5

Updated by Ayush Khandelwal about 1 year ago

#6

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
#7

Updated by Ayush Khandelwal about 1 year ago

  • Tracker changed from Task to Feature
  • Assignee changed from Ayush Khandelwal to Ayanava Karmakar
#8

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.

#9

Updated by Ayanava Karmakar about 1 year ago

  • Status changed from New to In Progress
#10

Updated by Ayanava Karmakar about 1 year ago

  • % Done changed from 0 to 50
#11

Updated by Ayanava Karmakar about 1 year ago

  • Status changed from In Progress to Resolved
#12

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
#13

Updated by Ram Kordale about 1 year ago

  • Description updated (diff)
#14

Updated by Ayanava Karmakar about 1 year ago

  • Status changed from Review to Reopened
#15

Updated by Ayanava Karmakar about 1 year ago

  • Assignee changed from Ayush Khandelwal to Ayanava Karmakar
#16

Updated by Ayanava Karmakar about 1 year ago

  • Status changed from Reopened to In Progress
#17

Updated by Ayanava Karmakar about 1 year ago

  • Status changed from In Progress to Resolved
#18

Updated by Ayanava Karmakar about 1 year ago

  • Status changed from Resolved to Review
  • Assignee changed from Ayanava Karmakar to Ayush Khandelwal

Also available in: Atom PDF