feat: polish up user not found sheet

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2023-10-02 00:04:52 +02:00
parent 3fb535aa5d
commit 5232b9fd93
2 changed files with 13 additions and 2 deletions

View File

@ -62,7 +62,16 @@ fun UserContextSheet(
if (user == null) {
// TODO fetch user in this scenario
Text(text = "not in user cache, but for now there's always this message")
Column(Modifier.padding(16.dp)) {
Text(
text = stringResource(R.string.user_context_sheet_user_not_found),
style = MaterialTheme.typography.headlineSmall
)
Text(
text = stringResource(R.string.user_context_sheet_user_not_found_description),
style = MaterialTheme.typography.bodyMedium
)
}
return
}

View File

@ -108,7 +108,7 @@
<string name="home">Home</string>
<string name="menu">Menu</string>
<string name="logout">Log out</string>
<string name="home_join_jenvolt">Join Jenvolt</string>
<string name="home_join_jenvolt_description">Jenvolt is the developer-run space for all things Android app and more. Support, feedback go here. Maybe you will get to try out new features! 👀</string>
@ -234,6 +234,8 @@
<string name="server_context_sheet_actions_leave_confirm_no">Stay</string>
<string name="server_context_sheet_actions_leave_silently">Leave Silently</string>
<string name="user_context_sheet_user_not_found">Can\'t resolve this user</string>
<string name="user_context_sheet_user_not_found_description">This user may have been deleted or you may not have permission to view them.</string>
<string name="user_context_sheet_category_bio">Bio</string>
<string name="user_context_sheet_bio_empty">This user hasn\'t set a bio yet.</string>
<string name="user_context_sheet_bio_not_found">This user\'s bio could not be fetched. Please verify you share a server or are friends.</string>