Skip to content

Commit d9c7283

Browse files
aapelivclaude
andcommitted
Web/profile: Bring back hosting request hint on message form
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 6e3b000 commit d9c7283

16 files changed

Lines changed: 34 additions & 28 deletions

File tree

app/web/features/messages/groupchats/CreateGroupChat.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
ListItemButton,
44
ListItemText,
55
styled,
6-
Typography,
76
} from "@mui/material";
87
import { useMutation, useQueryClient } from "@tanstack/react-query";
98
import Alert from "components/Alert";
@@ -22,7 +21,7 @@ import useFriendList from "features/connections/friends/useFriendList";
2221
import { groupChatsListKey } from "features/queryKeys";
2322
import useUserByUsername from "features/userQueries/useUserByUsername";
2423
import { RpcError } from "grpc-web";
25-
import { Trans, useTranslation } from "i18n";
24+
import { useTranslation } from "i18n";
2625
import { MESSAGES } from "i18n/namespaces";
2726
import { useRouter } from "next/router";
2827
import { LiteUser, User } from "proto/api_pb";
@@ -249,17 +248,6 @@ export default function CreateGroupChat({ className }: { className?: string }) {
249248
</Button>
250249
)}
251250
</DialogActions>
252-
{createMessageToUsername && (
253-
<Typography
254-
variant="body2"
255-
sx={{ px: 3, pb: 2, textAlign: "center" }}
256-
>
257-
<Trans
258-
i18nKey="messages:create_chat.hosting_request_hint"
259-
components={{ back: <strong />, request: <strong /> }}
260-
/>
261-
</Typography>
262-
)}
263251
</form>
264252
</Dialog>
265253
</>

app/web/features/messages/locales/ca.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"user_load_error_message": "(Error en carregar l'usuari)",
99
"friends_input_label": "Amics",
1010
"create_button": "Crea el xat",
11-
"back_button": "Enrere",
12-
"hosting_request_hint": "Envies una sol·licitud d'allotjament? Torna <back>Enrere</back> i fes servir el botó <request>Sol·licita</request>."
11+
"back_button": "Enrere"
1312
},
1413
"chat_input": {
1514
"label": "Missatge"

app/web/features/messages/locales/de.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@
5757
"friends_input_label": "Freunde",
5858
"title_label": "Titel",
5959
"create_button": "Chat erstellen",
60-
"back_button": "Zurück",
61-
"hosting_request_hint": "Möchtest du eine Host-Anfrage senden? Gehe <back>Zurück</back> und benutze stattdessen den <request>Anfragen</request>-Button."
60+
"back_button": "Zurück"
6261
},
6362
"admins_dialog": {
6463
"step_down_confirmation_dialog": {

app/web/features/messages/locales/en.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@
8383
"friends_input_label": "Friends",
8484
"title_label": "Title",
8585
"create_button": "Create chat",
86-
"back_button": "Back",
87-
"hosting_request_hint": "Sending a hosting request? Go <back>Back</back> and use the <request>Request</request> button instead."
86+
"back_button": "Back"
8887
},
8988
"chat_input": {
9089
"label": "Message"

app/web/features/messages/locales/es.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
"user_load_error_message": "(Error de carga de usuario)",
5353
"title_label": "Título",
5454
"create_button": "Crear chat",
55-
"back_button": "Atrás",
56-
"hosting_request_hint": "¿Enviando una solicitud de alojamiento? Vuelve <back>Atrás</back> y usa el botón <request>Solicitar</request> en su lugar."
55+
"back_button": "Atrás"
5756
},
5857
"chat_input": {
5958
"label": "Mensaje"

app/web/features/messages/locales/nl.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@
7272
"friends_input_label": "Vrienden",
7373
"title_label": "Titel",
7474
"create_button": "Chat aanmaken",
75-
"back_button": "Terug",
76-
"hosting_request_hint": "Een hosting-verzoek doen? Ga <back>terug</back> en gebruik in plaats daarvan de <request>Verzoek</request> knop."
75+
"back_button": "Terug"
7776
},
7877
"chat_input": {
7978
"label": "Bericht"

app/web/features/messages/locales/pt_BR.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@
9696
"user_load_error_message": "(Erro de carregamento de usuário)",
9797
"friends_input_label": "Amigos",
9898
"create_button": "Criar conversa",
99-
"back_button": "Voltar",
100-
"hosting_request_hint": "Enviando uma solicitação de hospedagem? <back>Volte</back> e use o botão <request>Solicitar</request> em vez disso."
99+
"back_button": "Voltar"
101100
},
102101
"group_chat_settings_dialog": {
103102
"title": "Configurações de conversa em grupo",

app/web/features/messages/locales/ru.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@
123123
"friends_input_label": "Друзья",
124124
"title_label": "Заголовок",
125125
"create_button": "Создать чат",
126-
"back_button": "Назад",
127-
"hosting_request_hint": "Отправляете запрос на хостинг? Вернитесь <back>Назад</back> и используйте кнопку <request>Запрос</request>."
126+
"back_button": "Назад"
128127
},
129128
"leave_chat_dialog": {
130129
"message": "Вы уверены, что хотите покинуть этот чат?",

app/web/features/profile/locales/ca.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@
233233
"request_chars_remaining_other": "Escriu almenys {{count}} caràcters més per enviar una sol·licitud d'allotjament.",
234234
"success": "Sol·licitud enviada!"
235235
},
236+
"message_form": {
237+
"hosting_request_hint": "Envies una sol·licitud d'allotjament? Torna <back>Enrere</back> i fes servir el botó <request>Sol·licita</request>."
238+
},
236239
"reference_filter_label": {
237240
"friend": "D'amics",
238241
"hosted": "D'amfitrions",

app/web/features/profile/locales/de.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@
217217
"request_chars_remaining_one": "Bitte schreibe mindestens noch {{count}} Zeichen, um eine Host-Anfrage zu senden.",
218218
"request_chars_remaining_other": "Bitte schreibe mindestens noch {{count}} Zeichen, um eine Host-Anfrage zu senden."
219219
},
220+
"message_form": {
221+
"hosting_request_hint": "Möchtest du eine Host-Anfrage senden? Gehe <back>Zurück</back> und benutze stattdessen den <request>Anfragen</request>-Button."
222+
},
220223
"response_rate_text_some": "Manchmal",
221224
"reference_filter_label": {
222225
"friend": "Von Freunden",

0 commit comments

Comments
 (0)