fix: make the Kubus Markdown export fail loudly and test the Volkskrant filters and exporters #117

Merged
midas merged 3 commits from review/markdown-export into dev 2026-10-17 16:59:57 +02:00
Owner

Part of #105, fixes #89 and #92.

  • #89: KubusModels warns (once per cause) on ambiguous/missing values and throwing getters and renders toString() once per object (KubusModels.model); an empty body gives a "Kopiëren mislukt" toast instead of copying header + URL; the toolbar proxy returns zero values for primitives and has identity equals/hashCode/toString; the interaction field and article URL are picked more strictly; onArticleLoaded returns early when the toggle is off and no longer holds a class lock during reflection; the setArticle fingerprint lost its obfuscated parameter list (the patch checks the first parameter type instead).
  • #92: stub DTOs got test constructors; tests for filterFeedTile, the Block -> Markdown mapping of both exporters, DST/invalid-date cases; MarkdownVideo cache reset in @Before; unused Presentation stub removed.

Verified: unit tests green, buildAndroid, Applied on Tubantia 9.22.0, De Gelderlander 9.21.1, AD 9.21.1 (15 each) and de Volkskrant 7.53.1 (13). Not verified on a device.

🤖 Generated with Claude Code

Part of #105, fixes #89 and #92. - #89: `KubusModels` warns (once per cause) on ambiguous/missing values and throwing getters and renders `toString()` once per object (`KubusModels.model`); an empty body gives a "Kopiëren mislukt" toast instead of copying header + URL; the toolbar proxy returns zero values for primitives and has identity equals/hashCode/toString; the interaction field and article URL are picked more strictly; `onArticleLoaded` returns early when the toggle is off and no longer holds a class lock during reflection; the `setArticle` fingerprint lost its obfuscated parameter list (the patch checks the first parameter type instead). - #92: stub DTOs got test constructors; tests for `filterFeedTile`, the Block -> Markdown mapping of both exporters, DST/invalid-date cases; `MarkdownVideo` cache reset in `@Before`; unused `Presentation` stub removed. Verified: unit tests green, `buildAndroid`, Applied on Tubantia 9.22.0, De Gelderlander 9.21.1, AD 9.21.1 (15 each) and de Volkskrant 7.53.1 (13). Not verified on a device. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Give the Volkskrant stub DTOs a public test constructor, and test
ContentFilters.filterFeedTile (push category tile, game teaser, teaser
without game id, null) and the Block -> Markdown mapping of the
Volkskrant exporter. MarkdownVideo gets a clearCacheForTesting() hook
that the tests call in @Before, ArticleDatesTest gains DST transition
and invalid day cases. Remove the unused Presentation stub and document
that the DefaultConstructorMarker stub must stay compileOnly.

Refs #92

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fix: make the Kubus Markdown export fail loudly instead of copying an empty article
All checks were successful
CI / Build (pull_request) Successful in 1m31s
3f225f8732
KubusModels logs (once per distinct cause) an ambiguous or missing type,
a name toString() doesn't show and a throwing getter, and renders an
object's toString() once per object instead of once per property read.
An export whose body stays empty shows "Kopiëren mislukt" instead of
copying a header and a link. The toolbar proxy answers primitive returns
with their zero value, the interaction field and the article url are
picked more strictly, onArticleLoaded returns early while the Markdown
button is off and no longer holds the class lock during reflection. The
set-article fingerprint drops its hardcoded obfuscated parameter list.

Closes #89

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merge branch 'dev' into test-markdown
All checks were successful
CI / Build (pull_request) Successful in 1m15s
b5846d564c
Sign in to join this conversation.
No description provided.