feat: hide puzzle and game promos #41

Closed
opened 2026-10-10 12:23:11 +02:00 by midas · 1 comment
Owner

Part of #16. Depends on #18 and #19.

Feature description

Both apps promote their puzzles and games inside the news feed and inside articles. Offer a patch that removes these promos. The games and puzzles section itself stays reachable.

Findings

De Gelderlander (9.21.1)

  • Feed: GamesPromoTeaser (TeaserType gamesPromo).
  • Article: GameComponent maps in g20.a to i30.m, an embedded game.
  • FEATURE_GAMES_FEEDBACK exists (a feedback prompt in games?). Check whether it is a nag.

de Volkskrant (7.52.0)

  • There is no separate promo tile type. Puzzle teasers are normal teasers whose destination is TeaserDestination.Game (from gameIdentifier, see SectionDtoToModelExtensionsKt.getDestination).
  • Filtering by destination in the feed filter (#19) drops them.
  • Check the overview pages too. The games overview itself must stay.

Approach

  • Gelderlander: add GamesPromoTeaser and GameComponent to the filters (#18).
  • Volkskrant: drop feed teasers whose destination is Game, outside the games page itself (#19).
  • Patch name suggestion: Hide game promotions.

Done when

  • Build passes; the patch applies on both apps.
  • Device check (after asking): no puzzle teasers in news feeds or articles; the puzzles section still works.
  • Documented in both docs/apps/*.md.

Midas Settings

  • Toggle: Verberg puzzelpromo's (hide_game_promos), category "Advertenties en promotie", default on. Same key in both apps.
  • Read in the filters (#18, #19).
  • Needs #49 and the entry point for each app (#50, #51).
Part of #16. Depends on #18 and #19. ## Feature description Both apps promote their puzzles and games inside the news feed and inside articles. Offer a patch that removes these promos. The games and puzzles section itself stays reachable. ## Findings ### De Gelderlander (9.21.1) - Feed: `GamesPromoTeaser` (TeaserType `gamesPromo`). - Article: `GameComponent` maps in `g20.a` to `i30.m`, an embedded game. - `FEATURE_GAMES_FEEDBACK` exists (a feedback prompt in games?). Check whether it is a nag. ### de Volkskrant (7.52.0) - There is no separate promo tile type. Puzzle teasers are normal teasers whose destination is `TeaserDestination.Game` (from `gameIdentifier`, see `SectionDtoToModelExtensionsKt.getDestination`). - Filtering by destination in the feed filter (#19) drops them. - Check the overview pages too. The games overview itself must stay. ## Approach - Gelderlander: add `GamesPromoTeaser` and `GameComponent` to the filters (#18). - Volkskrant: drop feed teasers whose destination is `Game`, outside the games page itself (#19). - Patch name suggestion: **Hide game promotions**. ## Done when - [ ] Build passes; the patch applies on both apps. - [ ] Device check (after asking): no puzzle teasers in news feeds or articles; the puzzles section still works. - [ ] Documented in both `docs/apps/*.md`. ## Midas Settings - Toggle: **Verberg puzzelpromo's** (`hide_game_promos`), category "Advertenties en promotie", default **on**. Same key in both apps. - Read in the filters (#18, #19). - Needs #49 and the entry point for each app (#50, #51).
midas closed this issue 2026-10-10 20:59:24 +02:00
Author
Owner

Gap found in review (2026-10-11, static analysis of 7.52.0 smali, not device-tested)

de Volkskrant: "Hide game promotions" does not touch the home tab.

  • The game filter (isGameTile: TeaserTileDto with a gameId) sits in SectionDtoToModelExtensionsKt.toModel(TileDto, TrackingData). That method has exactly two callers:
    • the section/list feeds (FeedResponseMapperKt);
    • the digital paper (DigitalPaperResponseMapperKt.toModel(DigitalPaperSectionDto, int)).
  • Home is an overview page (OverviewViewDataMapper). ContentFilters.OVERVIEW_COMPONENT_FILTERS is empty, so puzzle promos on home stay visible. That matches the doc note that the tile hook was never reached during the device test.
  • The Puzzels section itself is safe: PuzzlesOverview → NavigationEvent$Route$Overview("/puzzels/") → OverviewViewDataMapper, and games open through the games SDK. Neither path uses the tile mapper.
  • Digital paper risk: a puzzle page in the paper would lose its game tiles, which are real content. EditionDigitalPaperViewModel handles GameClick, so such tiles can exist. Whether the paper actually serves them is server data, so this is unverified.

Possible approach for home (needs one device capture first)

  • Overview pages have no game tap action. OverviewPageTapAction is Article / Audio / KijkVerder / None / Overview / PodcastEpisode / Url. So a puzzle block on home is most likely an OverviewPageComponent$Group that links to the puzzles overview:
    • via its header (OverviewBlockHeader.tapAction = Overview(urlPath = "/puzzels/…")), or
    • via items whose tap action is a puzzle Url.
  • Filter: drop such a Group in filterOverviewComponent, but not on the /puzzels/ page itself. toViewData(OverviewPageComponent, String, int) only gets the page id. The page path is available one level up in OverviewViewDataMapper.map(OverviewPage) (getUrlPath()), so pass it along (e.g. a hook at the start of map that stores the current urlPath for the filter).
  • Before building it, capture what the home's puzzle block actually looks like: logcat-dump the components in filterOverviewComponent once on a device.
## Gap found in review (2026-10-11, static analysis of 7.52.0 smali, not device-tested) **de Volkskrant: "Hide game promotions" does not touch the home tab.** - The game filter (`isGameTile`: `TeaserTileDto` with a `gameId`) sits in `SectionDtoToModelExtensionsKt.toModel(TileDto, TrackingData)`. That method has exactly two callers: - the section/list feeds (`FeedResponseMapperKt`); - the digital paper (`DigitalPaperResponseMapperKt.toModel(DigitalPaperSectionDto, int)`). - Home is an **overview page** (`OverviewViewDataMapper`). `ContentFilters.OVERVIEW_COMPONENT_FILTERS` is empty, so puzzle promos on home stay visible. That matches the doc note that the tile hook was never reached during the device test. - The Puzzels section itself is safe: `PuzzlesOverview` → `NavigationEvent$Route$Overview("/puzzels/")` → `OverviewViewDataMapper`, and games open through the games SDK. Neither path uses the tile mapper. - **Digital paper risk:** a puzzle page in the paper would lose its game tiles, which are real content. `EditionDigitalPaperViewModel` handles `GameClick`, so such tiles can exist. Whether the paper actually serves them is server data, so this is unverified. ### Possible approach for home (needs one device capture first) - Overview pages have no game tap action. `OverviewPageTapAction` is Article / Audio / KijkVerder / None / Overview / PodcastEpisode / Url. So a puzzle block on home is most likely an `OverviewPageComponent$Group` that links to the puzzles overview: - via its header (`OverviewBlockHeader.tapAction` = `Overview(urlPath = "/puzzels/…")`), or - via items whose tap action is a puzzle `Url`. - Filter: drop such a Group in `filterOverviewComponent`, but **not** on the `/puzzels/` page itself. `toViewData(OverviewPageComponent, String, int)` only gets the page **id**. The page path is available one level up in `OverviewViewDataMapper.map(OverviewPage)` (`getUrlPath()`), so pass it along (e.g. a hook at the start of `map` that stores the current urlPath for the filter). - Before building it, capture what the home's puzzle block actually looks like: logcat-dump the components in `filterOverviewComponent` once on a device.
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#41
No description provided.