From a079bd481e296a868796668c1194b950470d85e5 Mon Sep 17 00:00:00 2001 From: wtclaude Date: Tue, 22 Sep 2026 20:32:26 -0500 Subject: [PATCH] fix(rust): say when and where an account was linked, as the website's row does MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by the emulator walk, not by the suite: the app's row carried the name and the Steam id and stopped there, while the website's says "linked just now on rust-oxide". Neither fact is part of the identity — a link is fleet-wide — but which server minted the code is where a support conversation starts, and the module's own schema comment says so. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01PMH6bw1jXMgbyF3ZWGEzSM --- .../app/ui/rust/RustAccountScreen.kt | 17 +++++++++++++++++ app/src/main/res/values/strings.xml | 1 + 2 files changed, 18 insertions(+) diff --git a/app/src/main/java/com/runicgateway/app/ui/rust/RustAccountScreen.kt b/app/src/main/java/com/runicgateway/app/ui/rust/RustAccountScreen.kt index 0ff2b32..d811df5 100644 --- a/app/src/main/java/com/runicgateway/app/ui/rust/RustAccountScreen.kt +++ b/app/src/main/java/com/runicgateway/app/ui/rust/RustAccountScreen.kt @@ -188,6 +188,23 @@ private fun LinkRow(link: RustLinkDto, busy: Boolean, onUnlink: () -> Unit) { style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant, ) + + // When, and which server minted the code. Not part of the + // identity — a link is fleet-wide — but it is where a support + // conversation starts, and the website's own row says it. + val when_ = rustAgo(link.linkedAt) + val where = link.serverId?.takeIf { it.isNotBlank() } + + if (when_ != null || where != null) { + Text( + text = listOfNotNull( + when_?.let { stringResource(R.string.rust_account_linked_when, it) }, + where, + ).joinToString(" · "), + style = MaterialTheme.typography.bodySmall, + color = MaterialTheme.colorScheme.onSurfaceVariant, + ) + } } TextButton(onClick = onUnlink, enabled = !busy) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0ca42ca..7e91b39 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -621,6 +621,7 @@ Could not link that code. Unlink Could not unlink that account. + linked %1$s No Steam account is linked to this profile yet. A link covers every server this community runs — a Steam account is one person wherever they play. You can also type /unlink in game. What you can do in game