feat: hide puzzle and game promos #41
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)
GamesPromoTeaser(TeaserTypegamesPromo).GameComponentmaps ing20.atoi30.m, an embedded game.FEATURE_GAMES_FEEDBACKexists (a feedback prompt in games?). Check whether it is a nag.de Volkskrant (7.52.0)
TeaserDestination.Game(fromgameIdentifier, seeSectionDtoToModelExtensionsKt.getDestination).Approach
GamesPromoTeaserandGameComponentto the filters (#18).Game, outside the games page itself (#19).Done when
docs/apps/*.md.Midas Settings
hide_game_promos), category "Advertenties en promotie", default on. Same key in both apps.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.
isGameTile:TeaserTileDtowith agameId) sits inSectionDtoToModelExtensionsKt.toModel(TileDto, TrackingData). That method has exactly two callers:FeedResponseMapperKt);DigitalPaperResponseMapperKt.toModel(DigitalPaperSectionDto, int)).OverviewViewDataMapper).ContentFilters.OVERVIEW_COMPONENT_FILTERSis empty, so puzzle promos on home stay visible. That matches the doc note that the tile hook was never reached during the device test.PuzzlesOverview→NavigationEvent$Route$Overview("/puzzels/")→OverviewViewDataMapper, and games open through the games SDK. Neither path uses the tile mapper.EditionDigitalPaperViewModelhandlesGameClick, 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)
OverviewPageTapActionis Article / Audio / KijkVerder / None / Overview / PodcastEpisode / Url. So a puzzle block on home is most likely anOverviewPageComponent$Groupthat links to the puzzles overview:OverviewBlockHeader.tapAction=Overview(urlPath = "/puzzels/…")), orUrl.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 inOverviewViewDataMapper.map(OverviewPage)(getUrlPath()), so pass it along (e.g. a hook at the start ofmapthat stores the current urlPath for the filter).filterOverviewComponentonce on a device.