Skip to content

Commit 1b8fbe6

Browse files
eriedclaude
andcommitted
Service Mode: log lines stop wrapping; Enter sends comments
Log rows now run on a single line and clip at the right edge — long entries no longer steal vertical space, and the export still has the full text. The comment field now uses ImeAction.Send so the keyboard's Enter key fires addComment instead of just dismissing the IME. Also updates Gio's credits line for promotion + suggestions + P6 testing. Bumps version to 0.3.2-p6preview14. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1f72499 commit 1b8fbe6

4 files changed

Lines changed: 22 additions & 12 deletions

File tree

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ android {
2727
applicationId = "com.eried.eucplanet"
2828
minSdk = 29
2929
targetSdk = 35
30-
versionCode = 22
31-
versionName = "0.3.2-p6preview13"
30+
versionCode = 23
31+
versionName = "0.3.2-p6preview14"
3232

3333
val buildStamp = SimpleDateFormat("yyMMdd.HHmm")
3434
.apply { timeZone = TimeZone.getTimeZone("UTC") }

app/src/main/java/com/eried/eucplanet/diagnostics/WheelDiagnosticsDialog.kt

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ import androidx.compose.foundation.rememberScrollState
3535
import androidx.compose.foundation.verticalScroll
3636
import androidx.compose.foundation.shape.CircleShape
3737
import androidx.compose.foundation.shape.RoundedCornerShape
38+
import androidx.compose.foundation.text.KeyboardActions
3839
import androidx.compose.foundation.text.KeyboardOptions
40+
import androidx.compose.ui.text.input.ImeAction
3941
import androidx.compose.animation.AnimatedVisibility
4042
import androidx.compose.material.icons.Icons
4143
import androidx.compose.material.icons.automirrored.filled.Redo
@@ -269,19 +271,26 @@ private fun CommentRow(vm: WheelDiagnosticsViewModel) {
269271
// Single-line + fixed height: keeps the row from growing as the user
270272
// types, which would otherwise shrink the log panel mid-input and
271273
// throw off the auto-scroll-to-bottom heuristic.
274+
val send = {
275+
if (comment.isNotBlank()) {
276+
vm.addComment(comment)
277+
comment = ""
278+
}
279+
}
272280
OutlinedTextField(
273281
value = comment,
274282
onValueChange = { comment = it },
275283
modifier = Modifier.weight(1f),
276284
label = { Text("Add comment to log") },
277285
placeholder = { Text("e.g. wheel display says 77F") },
278-
keyboardOptions = KeyboardOptions(capitalization = KeyboardCapitalization.Sentences),
286+
keyboardOptions = KeyboardOptions(
287+
capitalization = KeyboardCapitalization.Sentences,
288+
imeAction = ImeAction.Send
289+
),
290+
keyboardActions = KeyboardActions(onSend = { send() }),
279291
singleLine = true
280292
)
281-
IconButton(onClick = {
282-
vm.addComment(comment)
283-
comment = ""
284-
}) { Icon(Icons.Default.Send, contentDescription = "Add") }
293+
IconButton(onClick = { send() }) { Icon(Icons.Default.Send, contentDescription = "Add") }
285294
}
286295
}
287296

@@ -342,8 +351,9 @@ private fun LogRow(e: DiagnosticsLogger.Entry) {
342351
lineHeight = 12.sp
343352
),
344353
color = color,
345-
maxLines = 4,
346-
overflow = TextOverflow.Ellipsis
354+
softWrap = false,
355+
maxLines = 1,
356+
overflow = TextOverflow.Clip
347357
)
348358
}
349359

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@
461461
<string name="about_crash_logs_empty">No crashes recorded</string>
462462
<string name="about_share_crash">Share crash log</string>
463463
<string name="about_thanks">Credits</string>
464-
<string name="about_thanks_body">I got tired of EUC apps that evolve too slowly, look dated, have draconian rules around new features, treat their communities as customers, and forget that EUC riders are at their best when they help each other. This one tries to be the opposite.\n\nThanks to:\n• Gio (Wheel In Motion)P6 captures and Wear OS testing.\n• Ilya Shkolnik and the WheelLog community — public protocol research the KingSong, Begode and Veteran adapters draw on.\n• InMotion — for making my awesome V14.</string>
464+
<string name="about_thanks_body">I got tired of EUC apps that evolve too slowly, look dated, have draconian rules around new features, treat their communities as customers, and forget that EUC riders are at their best when they help each other. This one tries to be the opposite.\n\nThanks to:\n• Gio (Wheel In Motion). Promotion, suggestions and P6 testing. Stitched scalp, intact enthusiasm.\n• Ilya Shkolnik and the WheelLog community — public protocol research the KingSong, Begode and Veteran adapters draw on.\n• InMotion — for making my awesome V14.</string>
465465
<string name="about_license">License</string>
466466
<string name="toast_external_speed_change">Speed updated from wheel: %1$d km/h tiltback, %2$d km/h alarm</string>
467467
</resources>

wear/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ android {
2222
applicationId = "com.eried.eucplanet"
2323
minSdk = 30
2424
targetSdk = 35
25-
versionCode = 22
26-
versionName = "0.3.2-p6preview13"
25+
versionCode = 23
26+
versionName = "0.3.2-p6preview14"
2727
}
2828

2929
signingConfigs {

0 commit comments

Comments
 (0)