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

Add refresh timer to recent activity on the dashboard #55

Open
gmr opened this issue Dec 30, 2022 · 1 comment
Open

Add refresh timer to recent activity on the dashboard #55

gmr opened this issue Dec 30, 2022 · 1 comment

Comments

@gmr
Copy link
Contributor

gmr commented Dec 30, 2022

It'd be nice to have an updated activity feed when coming back to an Imbi tab when it's been idle for some time without having to reload the page or navigate away.

Ideally it'd be on a timer or be able to tell when the window becomes active again after some time.

@in-op
Copy link
Contributor

in-op commented Jan 4, 2023

We can leverage the Page Visibility API, using the visibilityChange event. When hidden, save the current timestamp in local state. When visible again (and after some time), refresh the recent activity.

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

2 participants