fix: show the author names and a Dutch local date in the copied article byline #69
No reviewers
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!69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/kubus-byline"
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?
Fixes the byline in Copy article as Markdown on both platforms. The problems were found in device tests after #66.
Author missing (Kubus apps). De Gelderlander 9.21.1 renders its byline from
AuthorComponent(g20.a->i30.c->rh0.a-> composableph0.h): it shows theproperties.authors[].names withproperties.shortDescriptionbelow them. The exporter only readSource. It now takes:AuthorComponent, otherwise its short description;ExtendedAuthorComponent;Sourcetext.Names are read through
KubusModels(newjoined(...)); empty stubs for both components were added tostubs/gelderlander(unobfuscated Moshi class names).Bio instead of the author (Volkskrant).
AuthorByline.getDescription()is the author's short description, usually a bio, so the byline read*is politiek verslaggever van de Volkskrant. Hij schrijft over ...*. The exporter now takes the names (first + last) ofgetAuthorProfiles()and uses the description only when there are no profiles. The logic is in the testablebyline(List<String>, String).Raw ISO UTC date (both platforms).
TimestampComponent.properties.publication(Kubus) andHeader.getPublicationDate()(Volkskrant, which the app itself runs throughZonedDateTime.parse) are ISO 8601. The one shared helpermarkdown/ArticleDates, applied inMarkdownWriter.headerfor both exporters, formats them asd MMMM yyyy, HH:mmin Europe/Amsterdam with the nl locale (the same pattern as Volkskrant'sDateTimeUtil). For example,2026-10-11T01:26:00Zbecomes11 oktober 2026, 03:26. Anything that is not ISO is kept as is. The timestamp is parsed by hand (regex +Calendar+SimpleDateFormat), so it needs neitherjava.time(API 26) norSimpleDateFormat'sX(API 24).Tests:
ArticleDatesTestandVolkskrantArticleExporterTest(new), plus new cases inMarkdownWriterTestandKubusModelsTest.Checked:
gradlew buildAndroid testpasses.patch-install.ps1 -NoInstallprintsApplied: Copy article as Markdownon Gelderlander 9.21.1 and Volkskrant 7.52.0.🤖 Generated with Claude Code
De Gelderlander and the other Kubus apps take the byline from the AuthorComponent (author names, else its short description), then an ExtendedAuthorComponent, and only then the Source. The ISO 8601 publication timestamp of both Kubus and Volkskrant articles is shown as Dutch local time ("11 oktober 2026, 03:26", Europe/Amsterdam) instead of raw UTC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>fix: show the author and a Dutch local date in the copied article bylineto fix: show the author names and a Dutch local date in the copied article byline