Commit Graph
820 Commits
Author SHA1 Message Date
Brent Simmons e0be3718e0 Fix bug where hide-read-articles didn't work for Today feed or for folders. Fix #4919. 2026-01-08 21:47:39 -08:00
Brent Simmons f1dbe8045a Adjust the article title font size. Hide the .externalLink block when it’s empty. 2026-01-08 20:23:40 -08:00
Brent Simmons 7df7a40018 Fix lint issues. 2026-01-08 09:07:53 -08:00
Brent Simmons 306f4ea7a7 Merge pull request #4922 from stuartbreckenridge/improve-widget-performance
Improve widget performance
2026-01-08 08:50:57 -08:00
Stuart Breckenridge 212d3973a2 ✨ Add Lock Screen Summary Widget 2026-01-08 16:50:57 +08:00
Stuart Breckenridge 6458065e6a ⚡️ Widget encoding is syncronous
When the widget encoding is completed asynchronously and wrapped in `Task { @MainActor in }`, the app rarely (if ever) refreshes the widget unless attached to the debugger (in which case, unhelpfully, it works fine).

My thinking is that the app is being terminated _before_ `encode` is complete and therefore the call to refresh widget timelines is not happening consistently.

Moving the widget to synchronous encoding has resolved the widget refresh behaviour.
2026-01-08 13:50:36 +08:00
Brent Simmons 23a836dfea Trim default subscriptions list. 2026-01-07 21:33:11 -08:00
Stuart Breckenridge e55e5b5b3d ⚡️ Improve performance of Widget
Rewrite `encode()`:
- Remove file removal checks, writing data will replace
- Compare existing widget data to new data and determine which widgets actually need refreshed

Refactor `flushSharedContainer` to `removeStaleFaviconsFromSharedContainer`:
- No longer nuked in full
- Only favicons not accessed in the last seven days are deleted (in DEBUG builds this is 30 seconds)

Improve `writeImageDataToSharedContainer`:
- Favicons now use their md5 digest instead of a UUID (thus one image per feed, instead of one image per article)
- If the favicon exists it is not rewritten

Add `reloadTimelines`:
- Compares existing article arrays to new article arrays and will only reload specific widget timelines where there is a difference.
- `LatestArticle` now conforms to `Hashable` to make this possible.

Improve `SceneDelegate` selection logic:
- select the correct feed before selecting the article
2026-01-08 12:38:34 +08:00
Brent Simmons 2ac2a3c1bf Fix concurrency crash in ArticlePasteboardWriter. 2026-01-07 18:21:56 -08:00
Brent Simmons a9b4efeaab Remove most uses of forEach. (Note: not talking about SwiftUI ForEach, which is fine and good and should not be removed.) 2026-01-04 12:36:41 -08:00
Brent Simmons 9ff1bd9836 Fix various SwiftLint warnings. 2026-01-02 17:50:35 -08:00
Brent Simmons d9216a3275 Fix various SwiftLint warnings. 2026-01-02 15:58:36 -08:00
Brent Simmons d0d7d0c823 Fix various SwiftLint warnings. 2026-01-02 15:13:44 -08:00
Brent Simmons f94d0c8d40 Fix various SwiftLint warnings. 2026-01-02 10:30:01 -08:00
Brent Simmons c622172973 Fix various SwiftLint warnings. 2026-01-01 16:53:37 -08:00
Brent Simmons 0b429ae259 Fix various SwiftLint warnings. 2026-01-01 16:17:54 -08:00
Brent Simmons 61e109a0d5 Fix various SwiftLint warnings. 2026-01-01 15:59:20 -08:00
Brent Simmons 0d6c222d40 Fix various SwiftLint warnings. 2026-01-01 15:50:20 -08:00
Brent Simmons 36cb48bae3 Fix various SwiftLint warnings. 2026-01-01 15:38:51 -08:00
Brent Simmons 6ba9940834 Fix various SwiftLint warnings. 2025-12-31 11:38:56 -08:00
Brent Simmons d0e674c0f3 Change from Slack to Discourse. 2025-12-30 22:20:22 -08:00
Brent Simmons d6f44c291f Use more verbose but easier-to-read names in HidingReadArticlesState. 2025-12-30 21:40:37 -08:00
Brent Simmons a7c7412dfc Split FetchRequestOperation (temporarily) until we start using HidingReadArticlesState on Mac. 2025-12-30 21:26:34 -08:00
Brent Simmons 0481b0db4e Merge pull request #4877 from stuartbreckenridge/main
Minor fixes for 7.0
2025-12-19 10:42:42 -08:00
Eric A. Meyer 0d1690732c Tune Sepia theme 2025-12-16 09:54:43 -05:00
Stuart Breckenridge 5657647c3e 🚑️ Fix Assets crash that was not using symbol 2025-12-12 20:26:07 +08:00
Brent Simmons 1383a9476a Restore state using UserDefaults. 2025-12-05 10:18:38 -08:00
Brent Simmons 08e67d356e Use UserDefaults for state restoration. 2025-12-04 21:03:36 -08:00
Brent Simmons 9d045360d2 Add function for finding Article matching an ArticleSpecifier. 2025-12-04 20:46:47 -08:00
Brent Simmons df44903a59 Add matchedArticle function. 2025-12-04 20:46:28 -08:00
Brent Simmons 0bb7e02d1f Merge 6.2.1 changes to AppDefaults. 2025-12-04 11:30:53 -08:00
Brent Simmons 0f7ecbf951 Fix filename to match case of bundled file. This fixes a crash bug on case-sensitive file systems. 2025-12-04 09:47:32 -08:00
Brent Simmons aa3c7c7d64 Normalize file names. 2025-11-19 16:23:30 -08:00
Brent Simmons b296bbd053 Move things to RSCore that belong there. 2025-11-19 16:22:26 -08:00
Brent Simmons 22c123daa9 Move to RSCore module. 2025-11-19 16:05:08 -08:00
Brent Simmons 8a3b4e393a Move CGImage extension to RSCore. 2025-11-19 15:27:42 -08:00
Brent Simmons 16f33effa6 Speed up calculating luminance for images. Do it less often; do it on a smaller (but still effective) sample. 2025-11-19 13:28:50 -08:00
Brent Simmons beeeabba24 Convert AppAssets to shared Assets. 2025-11-19 10:38:18 -08:00
Brent Simmons 39ffd38461 Continue conversion from AppAssets to shared Assets. 2025-11-18 22:08:33 -08:00
Brent Simmons 35be01c220 Start converting AppAssets to a shared Assets struct. 2025-11-18 21:26:06 -08:00
Brent Simmons 20d363433d Fix various concurrency issues. 2025-11-18 19:58:48 -08:00
Brent Simmons d1635d8046 Fix various concurrency issues. 2025-11-18 19:07:55 -08:00
Brent Simmons 563d1febbc Fix various concurrency issues. 2025-11-18 16:39:51 -08:00
Brent Simmons 3c24f9139a Fix various concurrency issues. 2025-11-18 14:33:24 -08:00
Brent Simmons 350aea0788 Fix various concurrency issues. 2025-11-18 13:28:09 -08:00
Brent Simmons 8f57f914dd Fix various concurrency issues. 2025-11-18 13:25:47 -08:00
Brent Simmons 4fa0b65d98 Convert from default MainActor isolation to unspecified default isolation. 2025-11-17 21:53:40 -08:00
Brent Simmons b90a308e9d Do various code cleanups. 2025-11-17 20:16:41 -08:00
Brent Simmons 6f3886112b Fix concurrency issues. 2025-11-17 17:23:39 -08:00
Brent Simmons 28c7d9f55d Fix some concurrency issues. 2025-11-17 14:25:56 -08:00