Skip to content

Fix filter context handling for notifications and timelines#2416

Merged
Dimillian merged 4 commits intomainfrom
fix/filter-notifications-overhaul
Jan 6, 2026
Merged

Fix filter context handling for notifications and timelines#2416
Dimillian merged 4 commits intomainfrom
fix/filter-notifications-overhaul

Conversation

@Dimillian
Copy link
Owner

@Dimillian Dimillian commented Jan 6, 2026

Summary

  • Make instance-side filter contexts authoritative across the app by mapping views to the correct context and matching filters by context (home/public/account/thread/notifications).
  • Ensure hide-completely notifications never render while still advancing the notifications marker so unread badges stay accurate.
  • Refresh policy + list after closing the notifications filter sheet so policy changes apply immediately.
  • Localize the filtered-notifications selection UI and policy subtitles (new localization keys).

Details by issue

Testing

  • mcp__XcodeBuildMCP__build_sim

Ensure instance-side filter contexts are respected across timelines, account views, detail threads, explore, and notifications.

Notifications now drop hide-completely items while still advancing markers to prevent unread badges, and policy changes refresh the list after dismissing the sheet.

Localize filtered notifications selection UI and policy subtitles.

Closes: #639, #2211, #2210, #2227
Use localization keys for notifications policy subtitles and moderated accounts label.
@Dimillian
Copy link
Owner Author

Dimillian commented Jan 6, 2026

@codex review this

@Dimillian
Copy link
Owner Author

@codex review this in accordance with the mastodon instance side filter documentation and see if it honors it correctly

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Added a Task in the TimelineViewModel initializer to set the filter context on the datasource asynchronously. This ensures the datasource is configured with the correct filter context upon initialization.
@Dimillian Dimillian merged commit 65fa910 into main Jan 6, 2026
7 checks passed
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.

1 participant