feat(gelderlander): hide comments #42

Closed
opened 2026-10-10 12:23:14 +02:00 by midas · 0 comments
Owner

Part of #16. Depends on #18.

Feature description

De Gelderlander has article comments, powered by the Viafoura SDK, and comment counts. Offer a patch that hides the comment section and the comment counts. de Volkskrant has no comments feature, so this is Gelderlander only.

Findings (9.21.1)

  • Article components: Comments maps to i30.i, and CommentCount maps to i30.h (both in g20.a).
  • Comments load in e30$loadComments$1 (ArticleDetailUseCase).
  • Viafoura is gated by FEATURE_COMMENTING_VIAFOURA, whose static default is "disabled"; the check is in vx. Remote config may enable it per section or over time. Verify on the device whether comments are currently visible at all.
  • The Viafoura SDK is still initialised at every start (tx5.invoke() in MainApplication.onCreate).

Approach

  • Drop Comments and CommentCount via #18, and force FEATURE_COMMENTING_VIAFOURA off via #17.
  • With comments hidden, Viafoura init can be skipped as well (see #32).
  • Patch name suggestion: Hide comments.

Done when

  • Build passes; patch applied on 9.21.1.
  • Device check (after asking): an article that normally shows comments or a count shows neither.
  • Documented in docs/apps/gelderlander.md.

Midas Settings

  • Toggle: Verberg reacties (hide_comments), category "Inhoud", default off, because comments are content.
  • Read in the article filter (#18) and the flag override (#17).
  • If Viafoura init is skipped (#32), it may only be skipped while the toggle is on, and turning the toggle off then needs a restart.
  • Needs #49 and #51.
Part of #16. Depends on #18. ## Feature description De Gelderlander has article comments, powered by the Viafoura SDK, and comment counts. Offer a patch that hides the comment section and the comment counts. de Volkskrant has no comments feature, so this is Gelderlander only. ## Findings (9.21.1) - Article components: `Comments` maps to `i30.i`, and `CommentCount` maps to `i30.h` (both in `g20.a`). - Comments load in `e30$loadComments$1` (ArticleDetailUseCase). - Viafoura is gated by `FEATURE_COMMENTING_VIAFOURA`, whose static default is "disabled"; the check is in `vx`. Remote config may enable it per section or over time. Verify on the device whether comments are currently visible at all. - The Viafoura SDK is still initialised at every start (`tx5.invoke()` in `MainApplication.onCreate`). ## Approach - Drop `Comments` and `CommentCount` via #18, and force `FEATURE_COMMENTING_VIAFOURA` off via #17. - With comments hidden, Viafoura init can be skipped as well (see #32). - Patch name suggestion: **Hide comments**. ## Done when - [ ] Build passes; patch applied on 9.21.1. - [ ] Device check (after asking): an article that normally shows comments or a count shows neither. - [ ] Documented in `docs/apps/gelderlander.md`. ## Midas Settings - Toggle: **Verberg reacties** (`hide_comments`), category "Inhoud", default **off**, because comments are content. - Read in the article filter (#18) and the flag override (#17). - If Viafoura init is skipped (#32), it may only be skipped while the toggle is on, and turning the toggle off then needs a restart. - Needs #49 and #51.
midas closed this issue 2026-10-10 20:59:26 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/midas-patches#42
No description provided.