ui: About rows, and drop the removed copy from the roster's own KDoc
The SDK/key-type footnote moved to Node and Settings, so it should not survive as a quoted string in ui/ either — the About card now shows IDENTITY ed25519 and SDK <version> as label plus mono value, which is the design system's idiom for a machine fact. Same reasoning for the KDoc: it describes the change instead of pasting the strings that were removed.
This commit is contained in:
parent
b65c990014
commit
a7b7792b3f
2 changed files with 15 additions and 15 deletions
|
|
@ -64,18 +64,18 @@ import uniffi.onionwire_sdk.FriendInfo
|
|||
*
|
||||
* Three things changed from the alpha build and they are deliberate:
|
||||
*
|
||||
* - The identity block is one compact bar. The `YOU (stable forever)` card, the
|
||||
* `sdk … · identity = ed25519 pubkey` line and the keep-alive paragraph are
|
||||
* gone from here — the SDK line is on Node & Settings, and the keep-alive
|
||||
* state is a status row there too. A home screen does not explain the
|
||||
* transport before it shows the people.
|
||||
* - The identity block is one compact bar. The old expandable card, the version
|
||||
* and key-type footnote and the keep-alive paragraph are gone from here: the
|
||||
* technical lines moved to Node & Settings, and reachability is a status row
|
||||
* there too. A home screen does not explain the transport before it shows the
|
||||
* people.
|
||||
* - The five text-link actions are gone. Invite and Add are the two first-class
|
||||
* actions (in the empty state, and in the bar); the rare and destructive ones
|
||||
* live behind `⋮`.
|
||||
* live behind the overflow menu.
|
||||
* - The empty state says what to do next, with the two buttons that do it.
|
||||
*
|
||||
* Behaviour is unchanged: `invite`, `onPaste`, `onOpenChat`, `onRotate`,
|
||||
* `onWipe` and `onLock` are the same ViewModel calls the old screen made.
|
||||
* Behaviour is unchanged: every callback here is the ViewModel call the old
|
||||
* screen made — this screen only decides where the entry points sit.
|
||||
*/
|
||||
@Composable
|
||||
fun RosterScreen(
|
||||
|
|
|
|||
|
|
@ -135,16 +135,16 @@ fun SettingsScreen(
|
|||
|
||||
OwCard(Modifier.fillMaxWidth()) {
|
||||
OwSectionTitle("About")
|
||||
Spacer(Modifier.height(6.dp))
|
||||
Text(
|
||||
"identity = ed25519 pubkey",
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
color = OwColors.TextSecondary,
|
||||
)
|
||||
Spacer(Modifier.height(8.dp))
|
||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
Label("IDENTITY")
|
||||
Spacer(Modifier.width(10.dp))
|
||||
Mono("ed25519")
|
||||
}
|
||||
Spacer(Modifier.height(4.dp))
|
||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
Label("SDK")
|
||||
Spacer(Modifier.width(8.dp))
|
||||
Spacer(Modifier.width(10.dp))
|
||||
Mono(sdkVersion)
|
||||
}
|
||||
Spacer(Modifier.height(10.dp))
|
||||
|
|
|
|||
Loading…
Reference in a new issue