feature/import-about #6

Merged
fredo merged 2 commits from feature/import-about into main 2026-09-11 18:56:22 +02:00
Owner
No description provided.
Notes import
- Updated export format (v2) to include a "Medication ID:" line per note
  block so files can be round-tripped. Old-format files are rejected with a
  clear message ("re-export with current version").
- Added NotesManager.importNotes(uri): reads a v2 export file selected via
  the system file picker, inserts notes into Room using the embedded IDs.
- Added ViewModel.importNotes(uri) with the same loading/message pattern as
  export (isRefreshing spinner, 3-second feedback message in the active
  language).
- Import item added to the overflow menu (below Export); uses
  rememberLauncherForActivityResult(OpenDocument) in the list screen so no
  Activity subclass is needed.

About screen
- New AboutScreen.kt: app name, version from BuildConfig.VERSION_NAME,
  author, email, disclaimer — all from string resources so FR/NL both work.
- Enabled buildConfig = true in build.gradle.kts (disabled by default in
  AGP 8+); required for BuildConfig.VERSION_NAME.
- About item added to overflow menu below a divider.
- "about" route wired in MainActivity NavHost.
- Placeholder strings added to values/ and values-nl/ — fill in name,
  email, and disclaimer text in strings.xml before release.

Version
- versionCode 10, versionName "0.10" (already bumped locally, now committed).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The link label and button text both used the primary colour, making
the RCP link indistinguishable from other detail row labels.

- Link text now uses MaterialTheme.colorScheme.tertiary (a distinct
  accent colour) with TextDecoration.Underline, so it reads as a
  hyperlink rather than a plain label.
- Hardcoded English "Open RCP Document" replaced with localised string
  resources ("Ouvrir le document RCP" / "RCP-document openen").

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fredo merged commit 089fde1c43 into main 2026-09-11 18:56:22 +02:00
fredo deleted branch feature/import-about 2026-09-12 20:30:52 +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!6
No description provided.