Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to not announcing page data when browser is not active #140

Open
KillyMXI opened this issue Oct 24, 2024 · 6 comments
Open

Option to not announcing page data when browser is not active #140

KillyMXI opened this issue Oct 24, 2024 · 6 comments

Comments

@KillyMXI
Copy link

Currently, the active tab is shown in the timeline even if I'm not looking at it.

Browser app is open 24/7 for me, with many open tabs.
The data occupying most space in the timeline is the tab where I left the browser last time before switching to other apps. This is pretty misleading.

aw-watcher-obsidian seems smarter about this. Its timeline shows data blocks with more relevance to when I was using it.
aw-watcher-web-edge can contain short gaps (under a minute) here and there, but those don't change the overall picture.

@ErikBjare
Copy link
Member

ErikBjare commented Oct 25, 2024

Browsers do not have (reliable) APIs to detect that they are not active.

The solution to your UX issue is to let users filter away AFK data in the timeline by using the data from the AFK watcher (not modify the web watcher).

@KillyMXI
Copy link
Author

AFK won't work. I don't wan't to see browser data when I'm working with other apps.

I'm not familiar with browser APIs.
ChatGPT provided something like this for Chromium:

chrome.windows.onFocusChanged.addListener(function(windowId) {
   if (windowId === chrome.windows.WINDOW_ID_NONE) {
     console.log('All browser windows are unfocused or minimized.');
   } else {
     console.log('Window is focused.');
   }
});

MDN: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/windows/onFocusChanged also mentions windows.WINDOW_ID_NONE

@KillyMXI
Copy link
Author

Instead of AFK, could the plugin subscribe for aw-watcher-window bucket to know when the browser is active?

@BelKed
Copy link
Contributor

BelKed commented Oct 25, 2024

The easiest solution would probably be quitting the web browser when you aren't using it :)

@KillyMXI
Copy link
Author

The easiest solution would probably be quitting the web browser when you aren't using it :)

Non-negotiable. Irresponsible to even suggest this.

@KillyMXI
Copy link
Author

KillyMXI commented Oct 25, 2024

Thinking how I could've achieved something similar by different means.

If there were a different set of categorization rules to split aw-watcher-window track into multiple tracks, I could've used it to split everything from msedge.exe and other browsers into a separate track.
That might give overall more visually readable timeline than color alone.

The downside is not having page URLs. If there were a mechanism to enrich (hydrate) data blocks instead of making a separate bucket - that would've also been helpful.

I have more complaints about current categorization, but that's for a different repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants