Skip to content

Add QfNewsParser to expose opt-in QField blog news items - #8082

Merged
kaustuvpokharel merged 4 commits into
masterfrom
newsHandler
Oct 15, 2026
Merged

kaustuvpokharel merged 4 commits into
masterfrom
newsHandler

Conversation

@kaustuvpokharel

@kaustuvpokharel kaustuvpokharel commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

This pr adds QfNewsParser, which reads an RSS feed (the qfield.org blog) and shows the latest posts as cards on the welcome screen

News is opt-in. Only posts published after the user turns it on, and within the last 30 days, are shown. Each card has a title, a short description, a Read more button that opens the post, and an X to dismiss it. Either way, a handled post wont come back. When there is more than one post, you can swipe between them and dots show where you are. Nothing is fetched while the option is off, and the last fetched feed is cached so the cards still show offline.

Also in here:

  • htmlToPlainText moved to QfStringUtils so plugins can use it
  • ScopedIniSettings moved into test/testutils.h, shared by the four tests that use it
  • QfWelcomeCard.Panel gets a closeClicked signal and a collapseOnClose property, so a panel can handle its own X (defaults keep the existing cards unchanged)

The settings toggle comes in a follow-up.

Demo, on clicking read more, it redirects you to the blog site which is missing in the video

Screen.Recording.2026-10-12.at.10.54.56.AM.mov

@qfield-fairy

qfield-fairy commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

🍎 MacOS DMG universal builds

Download a MacOS DMG universal build of this PR for testing.
(Built from commit 52cb9d0)

📱 Android builds

Download an Android arm64 build of this PR for testing.
(Built from commit 52cb9d0)

Other Android architectures

🪟 Windows builds

Download a Windows build of this PR for testing and for arm64.

(Built from commit 52cb9d0)

🐧 Linux AppImage builds

Download a Linux AppImage build of this PR for testing.
(Built from commit 52cb9d0)

@nirvn nirvn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, we're getting there :)

Comment thread src/core/qfnewsparser.h
Comment thread src/core/qfnewsparser.h Outdated
Comment thread src/core/qfnewsparser.h Outdated
Comment thread src/core/qfnewsparser.cpp Outdated
Comment thread src/core/qfnewsparser.cpp Outdated
Comment thread src/core/qfnewsparser.cpp Outdated
Comment thread src/core/qfnewsparser.cpp
Comment thread src/core/qfnewsparser.h Outdated
Comment thread test/test_newsparser.cpp Outdated
Comment thread src/core/qfnewsparser.cpp Outdated
Comment thread src/core/qfnewsparser.cpp Outdated
Comment thread src/core/qfnewsparser.cpp Outdated
Comment thread src/core/qfnewsparser.cpp Outdated
@kaustuvpokharel
kaustuvpokharel merged commit 985b181 into master Oct 15, 2026
30 checks passed
@kaustuvpokharel
kaustuvpokharel deleted the newsHandler branch October 15, 2026 20:52
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.

3 participants