From 5973ab1ca567ef3010d1ff96bfb4ec8879b32431 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Sun, 26 Jul 2026 02:50:06 +0200 Subject: [PATCH] Reorder translation detail: chapters first Move the Chapters section above the Details section on the TranslationArtifactVersionDetailScreen so the actionable content leads. Co-Authored-By: Claude Opus 4.8 --- .../TranslationArtifactVersionDetailScreen.kt | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/press/mantra/compose/ui/composable/TranslationArtifactVersionDetailScreen.kt b/composeApp/src/commonMain/kotlin/press/mantra/compose/ui/composable/TranslationArtifactVersionDetailScreen.kt index 122b9b3c..c93680c6 100644 --- a/composeApp/src/commonMain/kotlin/press/mantra/compose/ui/composable/TranslationArtifactVersionDetailScreen.kt +++ b/composeApp/src/commonMain/kotlin/press/mantra/compose/ui/composable/TranslationArtifactVersionDetailScreen.kt @@ -97,27 +97,6 @@ fun TranslationArtifactVersionDetailScreen( modifier = Modifier.padding(innerPadding).fillMaxSize().padding(20.dp), verticalArrangement = Arrangement.spacedBy(10.dp) ) { - // Details - item { - Text( - text = "Details", - style = MaterialTheme.typography.labelMedium - ) - } - item { - Card { - DetailRow(label = "Name", value = translation.name) - DetailRow(label = "Dialect", value = translation.dialectId) - DetailRow(label = "Visibility", value = translation.visibility) - DetailRow(label = "License", value = translation.license) - DetailRow(label = "Source version", value = translation.artifactVersionId) - DetailRow(label = "Author", value = translation.publicKey) - DetailRow(label = "Created", value = translation.createdAt.toString()) - } - } - - item { HorizontalDivider() } - // Chapters with translation progress item { Text( @@ -159,6 +138,27 @@ fun TranslationArtifactVersionDetailScreen( } } } + + item { HorizontalDivider() } + + // Details + item { + Text( + text = "Details", + style = MaterialTheme.typography.labelMedium + ) + } + item { + Card { + DetailRow(label = "Name", value = translation.name) + DetailRow(label = "Dialect", value = translation.dialectId) + DetailRow(label = "Visibility", value = translation.visibility) + DetailRow(label = "License", value = translation.license) + DetailRow(label = "Source version", value = translation.artifactVersionId) + DetailRow(label = "Author", value = translation.publicKey) + DetailRow(label = "Created", value = translation.createdAt.toString()) + } + } } } }