runrig-coop / early-warning-system

An early warning system for Richland Gro-Op to coordinate field health.
GNU General Public License v3.0
2 stars 1 forks source link

Use the System Tray #32

Open jgaehring opened 7 months ago

jgaehring commented 7 months ago

Discussed in https://github.com/runrig-coop/early-warning-system/discussions/20

Originally posted by jgaehring August 26, 2023 I keep coming back to the thought, since this is meant to be a pretty minimal UI, at least for now, and we really want to focus future Runrig work towards integrations with other FOSS projects, what if we aimed towards making the EWS an app that was primarily launched from the system tray?

It looks like there is plenty of support and prior art for doing this kind of thing in Tauri:

The more I think about it, the more I like how this paradigm gels with Runrig's stated aim of being "the mortar joining these technological building blocks together, while reinforcing and giving shape to the whole." I am very wary of adding notifications, but if it was setup to provide passive alerts from the system tray, then we could place links to other platforms there in the tray's menu, like a link to their crop plan on farmOS or a batch of orders on Open Food Network. We could still have our own minimal UI for giving a general overview, but users could entirely bypass that to go to the platform that needs their attention most.

jgaehring commented 7 months ago

The other possibility is to start a fresh project that could share the same storage layer but be geared towards being a "system-tray-first" application that could eventually supersede this project, or perhaps integrate it as an extension via some sort of plugin system.

jgaehring commented 3 months ago

As I mentioned in our Matrix room just now, I realized earlier today that Atomic Data had a distributable of their server implementation embedded in a Tarui desktop app: https://github.com/atomicdata-dev/atomic-server/tree/59fef87ed06dc28289bff2925e55c5036f99b5cd/desktop

However, they deprecated it a few months ago: https://github.com/atomicdata-dev/atomic-server/issues/718

It seemed similarly geared toward using Tauri's system tray API to provide a status indicator, updated upon remote changes to their data: https://docs.atomicdata.dev/roadmap.html?highlight=desktop#history