Idle detection doesn't trigger.
Idle detection should trigger if no keyboard/mouse movement has been made within the past 15 seconds as per this Slack thread: https://toggl.slack.com/archives/C9LMUPD9T/p1597261168354800
Steps to reproduce the behaviour:
Settings the impact to high here because it seems to be a feature that is not working at all.
After:
https://github.com/toggl/toggl-button/pull/1452
https://github.com/toggl/toggl-button/pull/1466
Notification is sent after 5 minutes of idle time. That being said, I wasn't able to reproduce this bug with following test scenario:

Lazy man proof of concept:
Change it to be one minute:
https://github.com/toggl/toggl-button/blob/4dd4f0d9708b4f0bb3a109eb33d1020145007d1c/src/scripts/background.js#L12
Split this to:
const left = state === 'active' && seconds > FIVE_MINUTES
const right = state === 'idle' && seconds > 0 && (seconds % FIVE_MINUTES) === 0
if (right) { debugger }
return left || right
Repeat: start entry, do not touch mouse/keyboard for over 1 minute. Notice breakpoint being caught, notification sent.
So... either I have stupid luck and doing something wrong or we're too impatient here 馃槀
Hi @dianetoggl both me and @dpsxp weren't able to reproduce this issue finally. Keep in mind that idle detection only works if user is idle (do not touch input at all) for more than 5 minutes. 馃
This can be closed @rylek90. I've advised the user it takes 5 minutes of idle time before they'll see the pop up. Originally I was told idle time of 15 seconds - but that was a mistake 馃槀
Most helpful comment
This can be closed @rylek90. I've advised the user it takes 5 minutes of idle time before they'll see the pop up. Originally I was told idle time of 15 seconds - but that was a mistake 馃槀