Skip to content

feat(settings): restore news filter ordering in customization (#311)#318

Open
cassio-rossi wants to merge 1 commit into
release/v5from
feature/restore-custom-news-order
Open

feat(settings): restore news filter ordering in customization (#311)#318
cassio-rossi wants to merge 1 commit into
release/v5from
feature/restore-custom-news-order

Conversation

@cassio-rossi

Copy link
Copy Markdown
Collaborator

Summary

Restores the News filter ordering option in Settings → Customização do app, letting users drag-reorder the News filter options (Todas, Últimas Notícias, Destaques, Apple TV, Reviews, Rumores, Tutoriais).

The feature was removed in two steps:

  • d85e32cb "Delete readpost" — disabled it (CustomNewsView()// CustomNewsView())
  • 0f22512b "remove dead code…" — deleted CustomNewsView.swift

All supporting infrastructure was still present and wired, so only the view and its call site needed restoring:

  • CustomizationDB.news, CustomizationViewModel.news / .change(_ news:)
  • Database.update(news:), AnalyticsConstants.GenericEvent.newsOrder
  • Consumers: SettingsViewModel.news → iPad sidebar order + initial selection

Changes

  • New SettingsLibrary/Views/Supplementals/CustomNewsView.swift — restored, mirroring CustomSocialView; copy reworded to reference the news filters.
  • Modified SettingsLibrary/Views/SettingsView.swiftCustomNewsView() reinserted between CustomTabView() and CustomSocialView().

Quality gates

  • ✅ Lint (--strict): 0 violations
  • ✅ Build: ** BUILD SUCCEEDED ** (iPhone 17 Pro Max, OS 26.5 — iPhone 17 Pro runtime not installed locally)
  • ✅ Tests: ** TEST SUCCEEDED ** — 44 tests, 5 suites

Relates to #311

🤖 Generated with Claude Code

Restore CustomNewsView, deleted in 0f22512 after being disabled in
d85e32c, letting users drag-reorder the News filter options. All
supporting infrastructure (CustomizationDB.news, CustomizationViewModel,
Database.update(news:), newsOrder analytics, sidebar/initial-selection
consumers) was still present, so only the view and its SettingsView call
site needed restoring. Copy reworded to reference the news filters.

Co-Authored-By: Claude <noreply@anthropic.com>
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