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

Various fixes in AppListUpdateView #2237

Conversation

edwood-grant
Copy link
Contributor

@edwood-grant edwood-grant commented Dec 22, 2024

Summary

This PR make several fixes around the AppListUpdateView, and the general Update packages behavior, namely:

  1. Fixes Appcenter still reserves space for system updates in eOS 8 #2215 AppCenter still reserves space for system updates
    Bug 2215

    • The problem was related to the vexpand property of the list_box. When set to true
      it would try to take as much space as possible. It's now set to false once the installed panel is visible with any available installed packages.
  2. Fixes various issues around not showing properly the updates label.

    • Those are the "Everything is up-to-date." and "Updates available" labels on the top. They should now show/hide properly according to the update behavior.
  3. Disable the "Check for updates" menu button (set sensitive to false) when clicking on it, and enable it when the Flatpak backend stops again. This is to stop the user for clicking multiple times (when the button is enabled for brief moments in the check for updates process), which would create duplicate items in the updates view. This fix should also disable it if you are updating any package in the updates list box.
    Check for updates menu button bug

  4. Fixes a bug where if you clicked on an application to update that had no description available (and thus no release notes button) and then cancel it immediately, it would show the release notes button.

2024-12-22-03.25.17.131846186.mp4
  1. Fixes issue AppCenter sometimes opens to the Updates view #529 that the application would get "stuck" in the AppListUpdateView page and would not open to the main menu until terminated. This also fixes a problem where the view would not show the installed apps if you let the backend check for updates without changing to the updates view until the backend finished.

Tests

Here is a video of the whole flow with all the fixes applied:

2024-12-22-05.32.13.712051435.mp4

Comments

I know this is might be a moderate (maybe big?) PR, and I may be doing things wrong here on some places, especially since I don't know the whole picture. I hope it's still good work though to at least keep working on it, or maybe getting closer to something good.

Also, if you'd rather have this split into multiple PRs, or maybe it's not good enough, let me know so I can make it more streamlined or make the necessary changes for everyone.

Thanks a lot,

italo-capasso added 10 commits December 21, 2024 18:42
… complete

This is done to avoid multiple update check commands that could create duplicated update element in the list.
… updates.

This commit also toggles the updates message properly when trying to check new updates. Even when the app closes. This removes all installed and updated apps so iit clears the view whn tyring to update again.
Sionce this only appear when lists are empty, there not need to explicitly remove  since we arealready removing list data.
The release notes icon would appear when canelling an update of an application that doew nost have a description (and thus the icon should not appear)
This also fix an issue where installed apps would not show up if your did not open the AppListUpdateView until the update worker ended.
…button instead of action_name.

This helps to use the shortuct  to update elements and makes the sentiive property of the button more consistent when it starts and ends.
Apartfor being a better palce organizational asking. Thsi also avoids a bug when if you the application while listing updates, it will show a bad update list badge and also would keep the incomplete update list when re-opening the app.
This is needed for when there are no updates. oops.
Copy link
Contributor

@leonardo-lemos leonardo-lemos left a comment

Choose a reason for hiding this comment

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

Nice work, code looks good and fixes the issues. Thanks!

@leonardo-lemos leonardo-lemos merged commit d086f65 into elementary:main Dec 27, 2024
4 checks passed
@danirabbit
Copy link
Member

Generally in the future it would be nice to have at least separate commits and do a rebase merge so that if we have to do a git blame later it would be easier for future maintainers

Thank you for resolving these issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Appcenter still reserves space for system updates in eOS 8
3 participants