-
Notifications
You must be signed in to change notification settings - Fork 555
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 unhealthy icon reminder #665
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe. |
The icon will be marked as failed when the screenpipe status is unhealthy. The failed icon is "screenpipe-app-tauri/src-tauri/icons/screenpipe-logo-tray-failed.png" @louis030195 |
@@ -45,6 +46,18 @@ export function useHealthCheck() { | |||
throw new Error(`http error! status: ${response.status}`); | |||
} | |||
const data: HealthCheckResponse = await response.json(); | |||
console.log(data); | |||
if(data.status=="unhealthy"){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use linter
pub fn set_tray_health_icon(app_handle: tauri::AppHandle<tauri::Wry>) { | ||
|
||
if let Some(main_tray) = app_handle.tray_by_id("screenpipe_main") { | ||
let _ =main_tray.set_icon(Some(tauri::image::Image::from_path("icons/screenpipe-logo-tray-black.png").unwrap())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, use linter
@ToSeven nice! any way you can make the icon looks like something is broken? this does not indicate it currently |
how about this icon? @louis030195 |
yeah this is good! |
3eea5e2 |
how to test? atm icon does not change The icon will be in failed status when you kill the screenpipe backend process. Actually, the icon will change as soon as the health check is deemed unhealthy. @louis030195 |
@ToSeven this did not work, backend was down but it was showing the update icon for some reason ( |
/claim #471