feature/asset-data-status #10

Merged
fredo merged 2 commits from feature/asset-data-status into main 2026-09-13 10:33:30 +02:00
Owner
No description provided.
On first install (or after clearing data), medications are loaded from
bundled assets. The data status row now shows which version is bundled
and that it has never been synced online, instead of a misleading
"never checked" error card.

Key invariant preserved: asset_version_$lang is stored separately from
data_version_$lang so the online refresh comparison never sees the asset
version number — a fresh download is always triggered on first refresh.

- DataStatus: add isFromAssets flag
- JsonLoader: add loadVersionFromAssets() (trims ISO datetime to date)
- MedicationRepository.prePopulateFromAssets(): write asset_version/
  asset_published_at prefs after insert; keep clearing data_version
- MedicationRepository.getDataStatus(): online status takes priority;
  falls back to asset status; null only when neither exists
- MedicationListScreen.DataStatusRow: new tertiary card for asset data
- strings (FR + NL): add data_status_assets string

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Both the asset version and online version dates are now stored as
YYYY/MM/DD, stripping the time portion from ISO datetimes and replacing
dashes with slashes before writing to SharedPreferences.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fredo merged commit a8f56fcd1f into main 2026-09-13 10:33:30 +02:00
Sign in to join this conversation.
No reviewers
No labels
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
fredo/Compendium!10
No description provided.