Skip to content
This repository was archived by the owner on Nov 24, 2026. It is now read-only.

feat(nexus): preview available updates with application icons - #65

Draft
SasoIkuyo wants to merge 2 commits into
dim-ghub:mainfrom
SasoIkuyo:contrib/update-preview
Draft

SasoIkuyo wants to merge 2 commits into
dim-ghub:mainfrom
SasoIkuyo:contrib/update-preview

Conversation

@SasoIkuyo

Copy link
Copy Markdown

Replace the Updates placeholder in Nexus with an Arch Linux update preview. Show package names, installed and candidate versions, repository/AUR origin, and icons from each package's installed desktop launcher. A virtualized list and page/list scrollbars keep long lists accessible without constructing every row.

Repository checks use checkupdates and its separate database; AUR checks use paru or yay when installed. Report missing commands, timeouts and query failures, preserving partial results and distinguishing an empty AUR result from an error.

This PR only queries available updates. Installation, authentication and interactive logs are intentionally left for a separate proposal: the existing prototype still needs a process lifetime independent of Quickshell before self-upgrades can be supported reliably.

Requirements: Python 3, Arch/pacman and pacman-contrib (checkupdates); paru or yay for AUR previews.

Validation:

  • python -m unittest discover -s tests -p test_updates.py -v: 7 tests with mocked package-manager responses, including empty results, network failures, timeouts and desktop icon mapping.
  • python tests/test_update_preview_ui.py: offscreen Quickshell loads the page with 200 fake packages and verifies page overflow. This uses lightweight theme/layout controls; it does not validate the complete upstream theme.

Draft pending visual review in a fresh upstream session. Tests do not install packages or alter the live shell.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant