feat(#279): restore mark as read/unread for news posts#290
Merged
Conversation
Brings back the read/unread post tracking UI: - Add `read` and `readAction` to CardContent model - Add "Marcar como lido/não lido" button to card context menu - Apply 0.6 opacity to read posts on news cards and highlights - FeedDB.read is toggled via context menu and auto-set on article open - No widget badge or counter (intentionally excluded) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ttings Restores ModelReadable protocol in MacMagazineLibrary so SettingsLibrary can mark all posts as read without importing FeedLibrary directly. Follows the same pattern as ModelFavoritable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Mirrors existing ModelFavoritable test coverage pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Shows "Todos os posts marcados como lido" alert with OK button after the mark-all-as-read action completes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Adds postRead setting back to SettingsDB - Creates ReadingPreferencesView with toggle + mark-all-as-read button - Moves reading preferences from About into Aparência screen - Adds highlightPostRead environment value for NewsCard/Highlights - Opacity now respects user preference via @Environment(\.highlightPostRead) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Restores the read/unread post tracking feature that users reported missing. Minimal implementation — no widget badge, no counter, just the visual indicator and toggle action.
What's back:
FeedDB.readproperty)What's intentionally excluded:
Changes:
CardContent— addedread: BoolandreadAction: (() -> Void)?(both optional with defaults for backward compat)MenuContent— added read/unread toggle button (only shown whenreadActionis provided)NewsCard— opacity modifier based ondata.readFeedHighlightCardView— opacity modifier based onpost.readFeedDBExtensions— passesreadstate and toggle closureCloses #279
Test plan
🤖 Generated with Claude Code