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

fix: toast notification #382

Merged
merged 3 commits into from
Oct 2, 2023
Merged

fix: toast notification #382

merged 3 commits into from
Oct 2, 2023

Conversation

sekwah41
Copy link
Member

Need to test if this works or not. Based on the documentation it seems like whatever installer/auto updater we have may be what is needed here. Though hopefully not.

@sekwah41 sekwah41 force-pushed the fix/toast-notification branch 2 times, most recently from a90e05b to b535a66 Compare May 20, 2023 15:41
@sekwah41 sekwah41 requested a review from roldanjr May 20, 2023 15:41
@sekwah41
Copy link
Member Author

sekwah41 commented May 20, 2023

I'll approve it myself once I've checked it on Windows, though id like to also check on the other platforms we have just to do a full check. So id like @roldanjr to also review :)

@sekwah41
Copy link
Member Author

This fixes #367

@sekwah41 sekwah41 changed the title fix: order formatting fix: toast notification May 20, 2023
@sekwah41 sekwah41 marked this pull request as draft May 20, 2023 15:45
@roldanjr
Copy link
Member

I can only check the AppImage package once this fix is published. I only have a Linux machine right now and don't have access to Mac and Windows.

app/main/src/main.ts Outdated Show resolved Hide resolved
@sekwah41
Copy link
Member Author

image the portable version at least doesn't show the wrong name, but no icon shows

title: "READY TO BE INSTALLED",
message: "Update has been successfully downloaded.",
actions: ["Quit and Install", "Install it Later"],
callback: (err, response) => {
if (!err) {
if (response === "quit and install") {
Copy link
Member Author

Choose a reason for hiding this comment

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

For some reason this callback seems to be undefined. Though the update installs anyway.

So the icons show fine but something is odd with the response.

When you dismiss it it does seem to respond with dismissed. Ill need to check the events on windows and mac as well as any other callback logic functions as expected.

@sekwah41
Copy link
Member Author

sekwah41 commented Jul 1, 2023

Need to re-visit this to fix it once I get a bit more time.

@roldanjr
Copy link
Member

roldanjr commented Jul 3, 2023

Maybe we can release the new version of the app after you've figured out the fix for this @sekwah41. Thank you for your effort on this one 🙇🏼

@sekwah41
Copy link
Member Author

I am not back on windows as my main OS. I will take a look at this today.

sekwah41 and others added 2 commits September 30, 2023 15:48
Co-authored-by: Joseph Musser <me@jnm2.com>
@sekwah41
Copy link
Member Author

image
Looks fine :D

@sekwah41
Copy link
Member Author

Ok so looks like there is an issue atm at least with node-notifier and how it uses snoretoast for multiple actions with custom appId's atm it only returns "undefined" with the notify response callback. So for now I'm commenting out the "Install it Later" option as users can just ignore the notifications on different operating systems.

@roldanjr as long as you are ok with that the rest should be fine to merge.

@sekwah41
Copy link
Member Author

See mikaelbr/node-notifier#332 about the snoretoast issues.

@sekwah41 sekwah41 marked this pull request as ready for review September 30, 2023 19:16
app/main/package.json Outdated Show resolved Hide resolved
Copy link
Member

@roldanjr roldanjr left a comment

Choose a reason for hiding this comment

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

This looks good to me @sekwah41 :D

@roldanjr roldanjr merged commit 25403d7 into master Oct 2, 2023
6 checks passed
@sekwah41 sekwah41 deleted the fix/toast-notification branch October 3, 2023 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed/Done
Development

Successfully merging this pull request may close these issues.

3 participants