feat(home): the News panel lists the website's posts, each opening in the browser #429
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!429
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:feat/website-news"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The Home page's News panel only ever showed a fixed welcome. It now lists the website's News posts
(Longshot #3306 adds them, and
/news.json):https://longshot.magicbean.dev/news.jsononce, in the background, through the sameHTTPS client as its other downloads (1 MiB at most). It lists up to 20 posts, newest first: the day, the title and the
summary.
stderr, never a notice.
Read first:
src/shell.rs(load_news,news_posts), thenNewsIteminui/home.slintandNewsPostinui/shell-model.slint.Testing
Tested: Linux.
cargo testpasses (429, among them two new ones for reading the list: the website's pages kept inorder, anything else left out, and a page that isn't JSON refused), and
cargo clippy --all-targets -- -D warningsisclean.
Still to test:
/news.json: start the launcher, see the 4.0 post in News, click it and it opens inthe browser (by hand).
Risks
One small request at start to the website. If it fails, the panel looks as it does today. A revert is enough.
🤖 Generated with Claude Code
Possibly related, for context:
WIP: feat(home): the News panel lists the website's posts, each opening in the browserto feat(home): the News panel lists the website's posts, each opening in the browserRecommendation: Approve. The panel’s behavior against the website’s actual feed has not yet been demonstrated. It needs the companion feed deployed and a visual and interaction check before merge. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
The launcher fetches website news in the background and shows linked posts on Home, keeping the welcome when no posts are available. The implementation is small and reuses the existing HTTPS client; it adds one request per launch.
Should fix (1): not blocking, but worth doing before merging.
Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
ui/home.slint:544: The new panel has not yet been checked with the website’s actual feed or shown on screen. (more on the line) Do: After Longshot #3306 deploys the feed, check the list, opening a post, keyboard navigation and the offline welcome, and attach a screenshot.@fixcan do L2.Questions (1) (not confirmed from the code; they don't hold the recommendation)
Checks: Still running: 5 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven: the parser tests use synthetic JSON, and the described manual check against the deployed feed has not yet been done. This is not a performance change.
Other systems: The change affects the Home panel on Windows and Linux, including its narrow layout and keyboard and controller navigation. It uses the shared HTTPS client and posts the result to the UI event loop; the actual feed and on-screen interaction remain unverified.
Switches: None.
Reviewed:
2063e26b92against08fa1329e5: Read AGENTS.md, CONTRIBUTING.md, the commit and diff, src/shell.rs, ui/home.slint, ui/shell-model.slint and the relevant parts of ui/main.slint, the shared scroll view, Pressable, startup, controller navigation and HTTP client. Skimmed the remaining ui/main.slint and related documentation. No review checklist or pull request template was present.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run the project were executed. The author reports Linux cargo tests and Clippy passing; the listed CI checks are still running.
Overlaps and merge order: Longshot #3306 supplies the feed and News page; deploy it before the end-to-end check.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.
@ -504,2 +543,2 @@spacing: 20px;VerticalLayout {spacing: 12px;for post in Shell.news: NewsItem { post: post; }L1 (should fix): The new panel has not yet been checked with the website’s actual feed or shown on screen.
When: The current tests only parse synthetic data; they do not show that the deployed feed renders correctly or that a displayed post opens from the panel.
Do: After Longshot #3306 deploys the feed, check the list, opening a post, keyboard navigation and the offline welcome, and attach a screenshot.
The News panel on Linux (sway), with this branch reading the website's
news.jsonas built by Longshot #3306 (read from the build on disk for this picture, since the site hadn't deployed it yet). The post opens in the browser on a click.