Commit Graph
8 Commits
Author SHA1 Message Date
Brent Simmons e9c32b5f7c Add and use shared hasCredentialsView and ViewBuilder for getting the correct credentials view. 2026-11-25 10:28:21 -08:00
Dave MarquardandIngmar Stein ba63d58712 Add native Miniflux account type and sync support
Adds Miniflux as a first-class account type alongside Feedbin, Feedly,
NewsBlur, and Reader API accounts, on both macOS and iOS.

Refreshes are incremental: the changed_after parameter means read and
starred status ride along with the entries in a single pass instead of
needing separate status scans. Articles missing locally are backfilled by
ID via GET /v1/entries/{id}; a 404 means the entry is gone server-side, so
its statuses are deleted and it is not requested again on every refresh.
Starred changes go out as idempotent batch updates.

Requires Miniflux 2.0.49 or newer. The server version is detected at
runtime via GET /v1/version and persisted in AccountSettings. Servers
older than 2.3.2 have no /v1/entries/ids and no batch starred updates, so
those paths fall back transparently to paged /v1/entries and per-entry
bookmark toggles.

Both HTTP Basic and API-token authentication are supported, selectable in
the account sheet on either platform. Entered URLs are normalized (scheme
added, trailing slash and /v1 suffix stripped), and adding a second
account for a server that already has one is rejected.

Tests cover folder sync, model decoding, version parsing, the pre-2.3.2
fallback paths, and duplicate-endpoint detection, with JSON fixtures for
the API responses.

The runtime version detection and the duplicate-endpoint check were
informed by IngmarStein's independent Miniflux implementation in #5335.

Written with help from Claude Code.

Co-Authored-By: Ingmar Stein <490610+IngmarStein@users.noreply.github.com>
2026-11-22 07:06:11 -08:00
Brent Simmons 263ec26831 Offer update-credentials for all username/password accounts (not Feedbin only). 2026-10-09 11:20:48 -07:00
Brent Simmons ccb116ed37 Use shared constant for form sheet size. 2026-10-09 09:23:52 -07:00
Brent Simmons 94897de070 Convert account screens to SwiftUI. 2026-09-18 10:06:04 -07:00
Brent Simmons 7809b713de Fix bug where decoding errors during syncing would display as theme import errors. Also: show account name and type in sync error messages. Fixes #3849. 2026-08-01 09:41:04 -07:00
Brent Simmons fb05b944cf Regularize comments for localized strings so the Localizable.xcstrings file doesn't change just because we switched targets. 2026-06-06 14:43:31 -07:00
Brent Simmons c4fe05617e Move some things to RSCore. 2025-11-19 19:33:12 -08:00