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 manual check for app update #4699

Merged
merged 8 commits into from
Aug 17, 2024
Merged

Add manual check for app update #4699

merged 8 commits into from
Aug 17, 2024

Conversation

mtsgrd
Copy link
Contributor

@mtsgrd mtsgrd commented Aug 15, 2024

Adds a menu item for manually checking for updates. See issue #4683.

image

Copy link

vercel bot commented Aug 15, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
gitbutler-web ⬜️ Ignored (Inspect) Visit Preview Aug 16, 2024 10:35pm

@github-actions github-actions bot added rust Pull requests that update Rust code @gitbutler/desktop labels Aug 15, 2024
@mtsgrd mtsgrd marked this pull request as draft August 15, 2024 16:18
@mtsgrd
Copy link
Contributor Author

mtsgrd commented Aug 15, 2024

@ndom91 in what menu would be want to place this for linux users?

@ndom91
Copy link
Contributor

ndom91 commented Aug 15, 2024

@mtsgrd I think the "File" menu would be fine 👍

@mtsgrd mtsgrd force-pushed the Add-manual-update-app-check branch from 1a16ba3 to 398e7b2 Compare August 15, 2024 16:42
@mtsgrd
Copy link
Contributor Author

mtsgrd commented Aug 15, 2024

@ndom91 cool, added it there!

const update = await Promise.race([
checkUpdate(), // In DEV mode this never returns.
new Promise<UpdateResult>((resolve) =>
setTimeout(() => resolve({ shouldUpdate: false }), 30000)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@PavelLaptev in dev mode you need to wait for this timeout until "up to date" should be displayed. In prod, the checkUpdate function above will also return shouldUpdate: false if no new binary is available.

@PavelLaptev
Copy link
Contributor

@mtsgrd I've updated the design. Could you please check to ensure everything works correctly?
I had to rewrite some of the code, so I want to make sure I didn't miss anything.

Here is the logic:

image

@mtsgrd
Copy link
Contributor Author

mtsgrd commented Aug 16, 2024

Did you forget to check some things in? The font here is off, and I also see you're using modal width xsmall but it's not defined.
image

@PavelLaptev
Copy link
Contributor

Interesting... There should be a few commits before the last one

image

@mtsgrd mtsgrd force-pushed the Add-manual-update-app-check branch from ff9cdab to 6977599 Compare August 16, 2024 16:22
@mtsgrd
Copy link
Contributor Author

mtsgrd commented Aug 16, 2024

Thanks, the for some reason didn't pick up the changes until I touched a file in gitbutler-ui.

@mtsgrd
Copy link
Contributor Author

mtsgrd commented Aug 16, 2024

I'm going to test this manually with a nightly build before merging!

@PavelLaptev
Copy link
Contributor

I'm going to test this manually with a nightly build before merging!

Sounds good, thanks :-)

PavelLaptev and others added 2 commits August 17, 2024 00:35
…ipsis

Just something I noticed about how other applications spell this.
- fixes things discovered in manual testing
- avoid $effect loops
@mtsgrd mtsgrd enabled auto-merge (rebase) August 17, 2024 08:00
@mtsgrd mtsgrd merged commit c9b5aa7 into master Aug 17, 2024
16 checks passed
@mtsgrd mtsgrd deleted the Add-manual-update-app-check branch August 17, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@gitbutler/desktop @gitbutler/ui rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants