fsolauncher icon indicating copy to clipboard operation
fsolauncher copied to clipboard

[Feature] Notification dot/indicator

Open ItsSim opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. When (for example) the remesh package is updated, the user has no way of knowing it was updated without checking the installer tab periodically.

Describe the solution you'd like There should be a way to set a notification dot or indicator for any tab in the launcher. Adding a notification dot to the sidebar would promptly let the user know that they should check out the tab.

Additional context

Implementation
  • Add a js function in fsolauncher_ui/client.js to set a notification dot, passing in the tab id as a parameter. The notification dot should automatically be dismissed when the user enters said tab.
  • Add an ipc-bridge method in fsolauncher/library/ipc-bridge.js and its handler in fsolauncher_ui/client.js so that a notification dot can be set from the node.js side.
  • Use the ipc-bridge method to set a notification dot on the Installer tab any time there is a new remesh update.
  • Keep track of notification dots that have already been dismissed, using localStorage in fsolauncher_ui/client.js. Use remesh package version to identify if a notification dot has already been dismissed for that particular version.
Example notification dot on the installer tab, in the sidebar:

image

ItsSim avatar Aug 14 '22 07:08 ItsSim

Instead of the complex dot indicator state, a better approach would be:

  • Use localStorage to store the last time the user has accessed the Installer tab.

  • If it's been > 24hr (which is when the "new remesh pack available" status expires) and there is currently a remesh available, show the dot indicator.

  • When the user clicks the Installer tab, save the current timestamp and hide the dot.

ItsSim avatar Jun 17 '24 02:06 ItsSim