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

386 add update to tray #392

Merged
merged 26 commits into from
Oct 2, 2024

Conversation

EzraEllette
Copy link
Contributor

/claim #386

Icons need to be updated.

How should we determine which color icon to use? (light vs dark mode for example.)

Copy link

algora-pbc bot commented Oct 1, 2024

💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe.

Copy link

vercel bot commented Oct 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
screenpipe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2024 1:13am

Copy link

@defihook defihook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usetoast

@louis030195
Copy link
Collaborator

@defihook you are blocked

@louis030195
Copy link
Collaborator

@EzraEllette nice!!

How should we determine which color icon to use? (light vs dark mode for example.)

hmm is there such a thing as dark/light mode in the tray bar? on macos my tray bar seems always black background?

@EzraEllette
Copy link
Contributor Author

@EzraEllette nice!!

How should we determine which color icon to use? (light vs dark mode for example.)

hmm is there such a thing as dark/light mode in the tray bar? on macos my tray bar seems always black background?

My Traybar icons are usually white. I'll just use white

@louis030195
Copy link
Collaborator

@EzraEllette i see you commented the JS code

can you make sure the sidecar stops when updating?

maybe just kill using the kill app command

esp. for windows sidecar does not close well sometimes, for some reason auto destruct feat does not work on windows https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/auto_destruct.rs

only use case is if user is using dev mode and running CLI built from source and front end built from CI but i think it's fine

then put to review the PR ill test it 🙏

@EzraEllette
Copy link
Contributor Author

@EzraEllette i see you commented the JS code

can you make sure the sidecar stops when updating?

maybe just kill using the kill app command

esp. for windows sidecar does not close well sometimes, for some reason auto destruct feat does not work on windows https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/auto_destruct.rs

only use case is if user is using dev mode and running CLI built from source and front end built from CI but i think it's fine

then put to review the PR ill test it 🙏

I'll update that.

Should there be another PR for updating the default system tray icon to the icon provided in the folder?

@louis030195
Copy link
Collaborator

@

@EzraEllette i see you commented the JS code
can you make sure the sidecar stops when updating?
maybe just kill using the kill app command
esp. for windows sidecar does not close well sometimes, for some reason auto destruct feat does not work on windows https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/auto_destruct.rs
only use case is if user is using dev mode and running CLI built from source and front end built from CI but i think it's fine
then put to review the PR ill test it 🙏

I'll update that.

Should there be another PR for updating the default system tray icon to the icon provided in the folder?

that would be great! or in this PR would work too

@EzraEllette
Copy link
Contributor Author

@

@EzraEllette i see you commented the JS code
can you make sure the sidecar stops when updating?
maybe just kill using the kill app command
esp. for windows sidecar does not close well sometimes, for some reason auto destruct feat does not work on windows https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/auto_destruct.rs
only use case is if user is using dev mode and running CLI built from source and front end built from CI but i think it's fine
then put to review the PR ill test it 🙏

I'll update that.
Should there be another PR for updating the default system tray icon to the icon provided in the folder?

that would be great! or in this PR would work too

@louis030195 Quick update: sidecar restarts when calling kill_all_screenpipes, but I'm not sure you meant that's what I am supposed to invoke to kill the sidecar.

I didn't find anything else, so I added a command kill_sidecar that calls kill_all_screenpipes and aborts the task that restarts sidecar on an interval.

I'll update the tray icon in my next commit.

@louis030195
Copy link
Collaborator

@

@EzraEllette i see you commented the JS code
can you make sure the sidecar stops when updating?
maybe just kill using the kill app command
esp. for windows sidecar does not close well sometimes, for some reason auto destruct feat does not work on windows https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/auto_destruct.rs
only use case is if user is using dev mode and running CLI built from source and front end built from CI but i think it's fine
then put to review the PR ill test it 🙏

I'll update that.
Should there be another PR for updating the default system tray icon to the icon provided in the folder?

that would be great! or in this PR would work too

@louis030195 Quick update: sidecar restarts when calling kill_all_screenpipes, but I'm not sure you meant that's what I am supposed to invoke to kill the sidecar.

I didn't find anything else, so I added a command kill_sidecar that calls kill_all_screenpipes and aborts the task that restarts sidecar on an interval.

I'll update the tray icon in my next commit.

yeah basically windows has a weird setup install UX that looks like Windows XP/dinosaur age software that block if the CLI is running in the background because it cannot update files because it's being used so need to properly make sure CLI/app is closed on windows

@EzraEllette
Copy link
Contributor Author

@

@EzraEllette i see you commented the JS code
can you make sure the sidecar stops when updating?
maybe just kill using the kill app command
esp. for windows sidecar does not close well sometimes, for some reason auto destruct feat does not work on windows https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-server/src/auto_destruct.rs
only use case is if user is using dev mode and running CLI built from source and front end built from CI but i think it's fine
then put to review the PR ill test it 🙏

I'll update that.
Should there be another PR for updating the default system tray icon to the icon provided in the folder?

that would be great! or in this PR would work too

@louis030195 Quick update: sidecar restarts when calling kill_all_screenpipes, but I'm not sure you meant that's what I am supposed to invoke to kill the sidecar.
I didn't find anything else, so I added a command kill_sidecar that calls kill_all_screenpipes and aborts the task that restarts sidecar on an interval.
I'll update the tray icon in my next commit.

yeah basically windows has a weird setup install UX that looks like Windows XP/dinosaur age software that block if the CLI is running in the background because it cannot update files because it's being used so need to properly make sure CLI/app is closed on windows

Okay, should be ready. triple check the code around killing sidecar.

As for commenting out the update check in the frontend, I did that because It wasn't allowing me to prevent the update. The cancel button triggers the useEffect hook and leads to an infinite loop of update notifications.

I can uncomment it if you would like.

@EzraEllette EzraEllette marked this pull request as ready for review October 1, 2024 23:36
@EzraEllette
Copy link
Contributor Author

P.S. I got distracted by ben franklin, I really just want to update the database manager so that I can store everything on my server.

@louis030195
Copy link
Collaborator

/approve

Copy link

algora-pbc bot commented Oct 2, 2024

@louis030195: The claim has been successfully added to reward-all. You can visit your dashboard to complete the payment.

@louis030195 louis030195 merged commit c8b1509 into mediar-ai:main Oct 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants