feat: Added a latest news panel to the system updates widget #1230
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a news ticker with the latest news item from a news feed to the System Updates widget. On click, it expands to show all available news and their descriptions.
I made it to check Arch news before updating the system, but you can configure the feed to show something else. By default it works on Arch, Manjaro, CachyOS, EndeavourOS and Fedora as an honorable guest. Didn't really know what feed to set on Fedora, so I went with https://fedoramagazine.org/
Since Arch's feed has a known and stable structure, I'm using curl + regex instead of any xml parser to avoid extra dependencies.
The custom feed option is pretty limited. You need to give it a regex with 4 matching groups similar to arch's structure so it fits the layout.
2026-01-01.21-16-35.mp4