forge
Explore
Log in

Don't you dare go Hollow

The member list states the account, it does not narrate it

Browse files at this commit

4a0abe48fd6b536d8331b6fad58323f6964157cfAhmet Kaan GümüşParent: f91ac00
  • fix
    • the member list states the account, it does not narrate it
Show full message
💄 fix(settings): the member list states the account, it does not narrate it

owner / invited / active / last seen <day> replace the sentences; the
join screen stops explaining that a passwordless account has no password.
crates/izlek-web/src/pages.rsmodified+2 -2
@@ -184,8 +184,8 @@ fn JoinCard(token: String, person: Invited) -> impl IntoView {
184 // one rather than naming the wrong person: the invitee's own name used to184 // one rather than naming the wrong person: the invitee's own name used to
185 // sit here, greeting them with themselves.185 // sit here, greeting them with themselves.
186 let made_by = match person.invited_by.clone() {186 let made_by = match person.invited_by.clone() {
187- Some(admin) => format!("{admin} made you an account. It has no password yet."),187+ Some(admin) => format!("{admin} made you an account."),
188- None => "An admin made you an account. It has no password yet.".to_string(),188+ None => "An admin made you an account.".to_string(),
189 };189 };
190 190
191 view! {191 view! {
crates/izlek-web/src/settings.rsmodified+4 -4
@@ -1024,13 +1024,13 @@ fn MembersPanel(
1024 .into_iter()1024 .into_iter()
1025 .map(|member| {1025 .map(|member| {
1026 let account = if member.is_owner {1026 let account = if member.is_owner {
1027- "the first account, administers the workspace".to_string()1027+ "owner".to_string()
1028 } else if !member.has_password {1028 } else if !member.has_password {
1029- "no password yet".to_string()1029+ "invited".to_string()
1030 } else if let Some(day) = member.last_signed_in.clone() {1030 } else if let Some(day) = member.last_signed_in.clone() {
1031- format!("password set — last signed in {day}")1031+ format!("last seen {day}")
1032 } else {1032 } else {
1033- "password set".to_string()1033+ "active".to_string()
1034 };1034 };
1035 let id = member.id.clone();1035 let id = member.id.clone();
1036 view! {1036 view! {