Skip to content

Commit 9f813c1

Browse files
authored
Merge branch 'develop' into pinned
2 parents 0e6b4c4 + 2c0cfa1 commit 9f813c1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+743
-83
lines changed

app/actions/actionsTypes.ts

+1
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,6 @@ export const VIDEO_CONF = createRequestTypes('VIDEO_CONF', [
9696
'ACCEPT_CALL',
9797
'SET_CALLING'
9898
]);
99+
export const TROUBLESHOOTING_NOTIFICATION = createRequestTypes('TROUBLESHOOTING_NOTIFICATION', ['INIT', 'SET']);
99100
export const SUPPORTED_VERSIONS = createRequestTypes('SUPPORTED_VERSIONS', ['SET']);
100101
export const IN_APP_FEEDBACK = createRequestTypes('IN_APP_FEEDBACK', ['SET', 'REMOVE', 'CLEAR']);
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { Action } from 'redux';
2+
3+
import { TROUBLESHOOTING_NOTIFICATION } from './actionsTypes';
4+
import { ITroubleshootingNotification } from '../reducers/troubleshootingNotification';
5+
6+
type TSetTroubleshootingNotification = Action & { payload: Partial<ITroubleshootingNotification> };
7+
8+
export type TActionTroubleshootingNotification = Action & TSetTroubleshootingNotification;
9+
10+
export function initTroubleshootingNotification(): Action {
11+
return {
12+
type: TROUBLESHOOTING_NOTIFICATION.INIT
13+
};
14+
}
15+
16+
export function setTroubleshootingNotification(payload: Partial<ITroubleshootingNotification>): TSetTroubleshootingNotification {
17+
return {
18+
type: TROUBLESHOOTING_NOTIFICATION.SET,
19+
payload
20+
};
21+
}

app/containers/UIKit/VideoConferenceBlock/components/VideoConferenceBaseContainer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const VideoConferenceBaseContainer = ({ variant, children }: VideoConfMes
3636
},
3737
issue: {
3838
icon: 'phone-issue',
39-
color: colors.statusFontOnWarning,
39+
color: colors.statusFontWarning,
4040
backgroundColor: colors.statusBackgroundWarning,
4141
label: i18n.t('Call_issue')
4242
}

app/definitions/ISubscription.ts

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export interface ISubscription {
110110
threads: RelationModified<TThreadModel>;
111111
threadMessages: RelationModified<TThreadMessageModel>;
112112
uploads: RelationModified<TUploadModel>;
113+
disableNotifications?: boolean;
113114
}
114115

115116
export type TSubscriptionModel = ISubscription &

app/definitions/redux/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ import { IEnterpriseModules } from '../../reducers/enterpriseModules';
4040
import { IVideoConf } from '../../reducers/videoConf';
4141
import { TActionUsersRoles } from '../../actions/usersRoles';
4242
import { TUsersRoles } from '../../reducers/usersRoles';
43+
import { ITroubleshootingNotification } from '../../reducers/troubleshootingNotification';
44+
import { TActionTroubleshootingNotification } from '../../actions/troubleshootingNotification';
4345
import { ISupportedVersionsState } from '../../reducers/supportedVersions';
4446
import { IInAppFeedbackState } from '../../reducers/inAppFeedback';
4547

@@ -67,6 +69,7 @@ export interface IApplicationState {
6769
roles: IRoles;
6870
videoConf: IVideoConf;
6971
usersRoles: TUsersRoles;
72+
troubleshootingNotification: ITroubleshootingNotification;
7073
supportedVersions: ISupportedVersionsState;
7174
inAppFeedback: IInAppFeedbackState;
7275
}
@@ -90,5 +93,6 @@ export type TApplicationActions = TActionActiveUsers &
9093
TActionEnterpriseModules &
9194
TActionVideoConf &
9295
TActionUsersRoles &
96+
TActionTroubleshootingNotification &
9397
TActionSupportedVersions &
9498
TInAppFeedbackAction;

app/definitions/rest/v1/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { E2eEndpoints } from './e2e';
1717
import { SubscriptionsEndpoints } from './subscriptions';
1818
import { VideoConferenceEndpoints } from './videoConference';
1919
import { CommandsEndpoints } from './commands';
20-
import { PushTokenEndpoints } from './pushToken';
20+
import { PushEndpoints } from './push';
2121
import { DirectoryEndpoint } from './directory';
2222
import { AutoTranslateEndpoints } from './autotranslate';
2323
import { ModerationEndpoints } from './moderation';
@@ -41,7 +41,7 @@ export type Endpoints = ChannelsEndpoints &
4141
SubscriptionsEndpoints &
4242
VideoConferenceEndpoints &
4343
CommandsEndpoints &
44-
PushTokenEndpoints &
44+
PushEndpoints &
4545
DirectoryEndpoint &
4646
AutoTranslateEndpoints &
4747
ModerationEndpoints;

app/definitions/rest/v1/push.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
type TPushInfo = {
2+
pushGatewayEnabled: boolean;
3+
defaultPushGateway: boolean;
4+
success: boolean;
5+
};
6+
7+
export type PushEndpoints = {
8+
'push.token': {
9+
POST: (params: { value: string; type: string; appName: string }) => {
10+
result: {
11+
id: string;
12+
token: string;
13+
appName: string;
14+
userId: string;
15+
};
16+
};
17+
};
18+
'push.info': {
19+
GET: () => TPushInfo;
20+
};
21+
'push.test': {
22+
POST: () => { tokensCount: number };
23+
};
24+
};

app/definitions/rest/v1/pushToken.ts

-12
This file was deleted.

app/i18n/locales/en.json

+21
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"All_users_in_the_channel_can_write_new_messages": "All users in the channel can write new messages",
2525
"All_users_in_the_team_can_write_new_messages": "All users in the team can write new messages",
2626
"Allow_Reactions": "Allow reactions",
27+
"Allow_push_notifications_for_rocket_chat": "Allow push notifications for Rocket.Chat",
2728
"Also_send_thread_message_to_channel_behavior": "Also send thread message to channel",
2829
"Announcement": "Announcement",
2930
"App_users_are_not_allowed_to_log_in_directly": "App users are not allowed to log in directly.",
@@ -102,6 +103,7 @@
102103
"Code_block": "Code block",
103104
"Code_or_password_invalid": "Code or password invalid",
104105
"Collaborative": "Collaborative",
106+
"Community_edition_push_quota": "Community push quota",
105107
"Condensed": "Condensed",
106108
"Confirm": "Confirm",
107109
"Confirmation": "Confirmation",
@@ -134,6 +136,8 @@
134136
"Create_a_new_workspace": "Create a new workspace",
135137
"Create_account": "Create an account",
136138
"Created_snippet": "created a snippet",
139+
"Custom_push_gateway_connected_description": "Your workspace uses a custom push notification gateway. Check with your workspace administrator for any issues.",
140+
"Custom_push_gateway_connection": "Custom gateway connection",
137141
"DELETE": "DELETE",
138142
"Dark": "Dark",
139143
"Dark_level": "Dark level",
@@ -156,6 +160,9 @@
156160
"Description": "Description",
157161
"Desktop_Alert_info": "These notifications are delivered in desktop",
158162
"Desktop_Notifications": "Desktop notifications",
163+
"Device_notification_settings": "Device notification settings",
164+
"Device_notifications_alert_description": "Please go to your settings app and enable notifications for Rocket.Chat",
165+
"Device_notifications_alert_title": "Notifications disabled",
159166
"Direct_Messages": "Direct messages",
160167
"Direct_message": "Direct message",
161168
"Direct_message_someone": "Direct message someone",
@@ -174,6 +181,7 @@
174181
"Do_you_have_a_certificate": "Do you have a certificate?",
175182
"Do_you_have_an_account": "Do you have an account?",
176183
"Do_you_really_want_to_key_this_room_question_mark": "Do you really want to {{key}} this room?",
184+
"Documentation": "Documentation",
177185
"Dont_Have_An_Account": "Don't you have an account?",
178186
"Dont_activate": "Don't activate now",
179187
"Downloaded_file": "Downloaded file",
@@ -387,6 +395,7 @@
387395
"No_channels_in_team": "No Channels on this team",
388396
"No_discussions": "No discussions",
389397
"No_files": "No files",
398+
"No_further_action_is_needed": "No further action is needed",
390399
"No_label_provided": "No {{label}} provided.",
391400
"No_limit": "No limit",
392401
"No_match_found": "No match found.",
@@ -404,6 +413,8 @@
404413
"Nothing": "Nothing",
405414
"Nothing_to_save": "Nothing to save!",
406415
"Notification_Preferences": "Notification preferences",
416+
"Notification_delay": "Notification delay",
417+
"Notification_delay_description": "There are factors that can contribute to delayed notifications. Learn more in Rocket.Chat's docs.",
407418
"Notifications": "Notifications",
408419
"Notify_active_in_this_room": "Notify active users in this room",
409420
"Notify_all_in_this_room": "Notify all in this room",
@@ -461,6 +472,10 @@
461472
"Public": "Public",
462473
"Push_Notifications": "Push notifications",
463474
"Push_Notifications_Alert_Info": "These notifications are delivered to you when the app is not open",
475+
"Push_Troubleshooting": "Push Troubleshooting",
476+
"Push_gateway_connected_description": "Send a push notification to yourself to check if the gateway is working",
477+
"Push_gateway_connection": "Push gateway connection",
478+
"Push_gateway_not_connected_description": "We're not able to connect to the push gateway. If this issue persists please check with your workspace administrator.",
464479
"Queued_chats": "Queued chats",
465480
"Quote": "Quote",
466481
"RESET": "RESET",
@@ -605,6 +620,7 @@
605620
"Team_not_found": "Team not found",
606621
"Teams": "Teams",
607622
"Terms_of_Service": " Terms of service ",
623+
"Test_push_notification": "Test push notification",
608624
"The_maximum_number_of_users_has_been_reached": "The maximum number of users has been reached.",
609625
"The_room_does_not_exist": "The room does not exist or you may not have access permission",
610626
"The_user_will_be_able_to_type_in_roomName": "The user will be able to type in {{roomName}}",
@@ -625,6 +641,7 @@
625641
"Token_expired": "Your session has expired. Please log in again.",
626642
"Topic": "Topic",
627643
"Translate": "Translate",
644+
"Troubleshooting": "Troubleshooting",
628645
"Try_again": "Try again",
629646
"Two_Factor_Authentication": "Two-factor authentication",
630647
"Type_message": "Type message",
@@ -690,6 +707,8 @@
690707
"Wi_Fi_and_mobile_data": "Wi-Fi and mobile data",
691708
"Without_Servers": "Without workspaces",
692709
"Workspace_URL_Example": "Ex. your-company.rocket.chat",
710+
"Workspace_consumption": "Workspace consumption",
711+
"Workspace_consumption_description": "There’s a set amount of push notifications per month",
693712
"Workspaces": "Workspaces",
694713
"Would_like_to_place_on_hold": "Would you like to place this chat on hold?",
695714
"Would_you_like_to_return_the_inquiry": "Would you like to return the inquiry?",
@@ -720,6 +739,7 @@
720739
"Your_invite_link_will_expire_on__date__or_after__usesLeft__uses": "Your invite link will expire on {{date}} or after {{usesLeft}} uses.",
721740
"Your_invite_link_will_never_expire": "Your invite link will never expire.",
722741
"Your_password_is": "Your password is",
742+
"Your_push_was_sent_to_s_devices": "Your push was sent to {{s}} devices",
723743
"Your_workspace": "Your workspace",
724744
"__count__empty_room_will_be_removed_automatically": "{{count}} empty room will be deleted.",
725745
"__count__empty_rooms_will_be_removed_automatically": "{{count}} empty rooms will be deleted.",
@@ -761,6 +781,7 @@
761781
"error-invalid-file-type": "Invalid file type",
762782
"error-invalid-password": "Invalid password",
763783
"error-invalid-room-name": "{{room_name}} is not a valid room name",
784+
"error-no-tokens-for-this-user": "There are no tokens for this user",
764785
"error-not-allowed": "Not allowed",
765786
"error-not-permission-to-upload-file": "You don't have permission to upload files",
766787
"error-save-image": "Error while saving image",

app/i18n/locales/pt-BR.json

+22-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"All_users_in_the_channel_can_write_new_messages": "Todos usuários no canal podem enviar mensagens novas",
2424
"All_users_in_the_team_can_write_new_messages": "Todos usuários no canal podem enviar mensagens novas",
2525
"Allow_Reactions": "Permitir reagir",
26+
"Allow_push_notifications_for_rocket_chat": "Permitir notificações push para Rocket.Chat",
2627
"Also_send_thread_message_to_channel_behavior": "Também enviar mensagem do tópico para o canal",
2728
"Announcement": "Anúncio",
2829
"App_users_are_not_allowed_to_log_in_directly": "Usuários do aplicativo não estão autorizados a fazer login diretamente.",
@@ -55,7 +56,7 @@
5556
"Call_issue": "Chamada com problemas",
5657
"Call_ongoing": "Chamada em andamento",
5758
"Call_rejected": "Chamada rejeitada",
58-
"Call_started": "Chamada iniciada",
59+
"Call_started": "Chamada Iniciada",
5960
"Call_was_not_answered": "A chamada não foi atendida",
6061
"Calling": "Chamando",
6162
"Cancel": "Cancelar",
@@ -99,6 +100,7 @@
99100
"Close_emoji_selector": "Fechar seletor de emojis",
100101
"Code_or_password_invalid": "Código ou senha inválido",
101102
"Collaborative": "Colaborativo",
103+
"Community_edition_push_quota": "Cota de notificações push community edition",
102104
"Condensed": "Condensado",
103105
"Confirm": "Confirmar",
104106
"Confirmation": "Confirmação",
@@ -131,6 +133,8 @@
131133
"Create_a_new_workspace": "Criar nova área de trabalho",
132134
"Create_account": "Criar conta",
133135
"Created_snippet": "criou um snippet",
136+
"Custom_push_gateway_connected_description": "Seu workspace utiliza um gateway de notificação push personalizado. Verifique com o administrador do seu workspace se há algum problema.",
137+
"Custom_push_gateway_connection": "Conexão personalizada com o gateway",
134138
"DELETE": "EXCLUIR",
135139
"Dark": "Escuro",
136140
"Dark_level": "Nível escuro",
@@ -153,6 +157,9 @@
153157
"Description": "Descrição",
154158
"Desktop_Alert_info": "Essas notificações são entregues a você na área de trabalho",
155159
"Desktop_Notifications": "Notificações da área de trabalho",
160+
"Device_notification_settings": "Configurações de notificações do dispositivo",
161+
"Device_notifications_alert_description": "Por favor, vá para o aplicativo de configurações e habilite as notificações para o Rocket.Chat.",
162+
"Device_notifications_alert_title": "Notificações desativadas",
156163
"Direct_Messages": "Mensagens diretas",
157164
"Direct_message": "Mensagem direta",
158165
"Direct_message_someone": "Enviar mensagem direta para alguém",
@@ -171,6 +178,7 @@
171178
"Do_you_have_a_certificate": "Você tem um certificado?",
172179
"Do_you_have_an_account": "Você tem uma conta?",
173180
"Do_you_really_want_to_key_this_room_question_mark": "Você quer realmente {{key}} esta sala?",
181+
"Documentation": "Documentação",
174182
"Dont_Have_An_Account": "Não tem uma conta?",
175183
"Dont_activate": "Não ativar agora",
176184
"Downloaded_file": "Arquivo baixado",
@@ -267,6 +275,7 @@
267275
"Jitsi_authentication_before_making_calls_admin": "Jitsi pode exigir autenticação antes de fazer chamadas. Para saber mais sobre as políticas deles, visite o site do Jitsi. Você também pode atualizar o aplicativo padrão para chamadas de vídeo nas preferências.",
268276
"Jitsi_authentication_before_making_calls_ask_admin": "Se você acredita que há problemas com o Jitsi e sua autenticação, peça ajuda a um administrador do espaço de trabalho.",
269277
"Jitsi_may_require_authentication": "O Jitsi pode exigir autenticação",
278+
"Jitsi_may_requires_authentication": "Jitsi pode exigir autenticação",
270279
"Join": "Entrar",
271280
"Join_Code": "Insira o código da sala",
272281
"Join_our_open_workspace": "Entrar na nossa workspace pública",
@@ -381,6 +390,7 @@
381390
"No_channels_in_team": "Nenhum canal nesta equipe",
382391
"No_discussions": "Sem discussões",
383392
"No_files": "Não há arquivos",
393+
"No_further_action_is_needed": "Nenhuma ação adicional é necessária",
384394
"No_label_provided": "Sem {{label}}.",
385395
"No_limit": "Sem limite",
386396
"No_match_found": "Nenhum resultado encontrado.",
@@ -397,6 +407,8 @@
397407
"Nothing": "Nada",
398408
"Nothing_to_save": "Nada para salvar!",
399409
"Notification_Preferences": "Preferências de notificação",
410+
"Notification_delay": "Atraso de notificação",
411+
"Notification_delay_description": "Existem fatores que podem contribuir para atrasos nas notificações. Saiba mais na documentação do Rocket.Chat.",
400412
"Notifications": "Notificações",
401413
"Notify_active_in_this_room": "Notificar usuários ativos nesta sala",
402414
"Notify_all_in_this_room": "Notificar todos nesta sala",
@@ -452,6 +464,10 @@
452464
"Public": "Público",
453465
"Push_Notifications": "Notificações push",
454466
"Push_Notifications_Alert_Info": "Essas notificações são entregues a você quando o aplicativo não está aberto",
467+
"Push_Troubleshooting": "Solucionar Problemas de Push",
468+
"Push_gateway_connected_description": "Envie uma notificação push para si mesmo para verificar se o gateway está funcionando.",
469+
"Push_gateway_connection": "Conexão com o gateway de push",
470+
"Push_gateway_not_connected_description": "Não conseguimos conectar ao gateway de push. Se esse problema persistir, por favor, verifique com o administrador do seu workspace.",
455471
"Queued_chats": "Bate-papos na fila",
456472
"Quote": "Citar",
457473
"RESET": "RESETAR",
@@ -593,6 +609,7 @@
593609
"Team_not_found": "Time não encontrado",
594610
"Teams": "Times",
595611
"Terms_of_Service": " Termos de serviço ",
612+
"Test_push_notification": "Testar notificação push",
596613
"The_maximum_number_of_users_has_been_reached": "O número máximo de usuários foi atingido.",
597614
"The_room_does_not_exist": "A sala não existe ou você pode não ter permissão de acesso",
598615
"The_user_will_be_able_to_type_in_roomName": "O usuário poderá digitar em {{roomName}}",
@@ -678,6 +695,8 @@
678695
"Wi_Fi_and_mobile_data": "Wi-Fi e dados móveis",
679696
"Without_Servers": "Sem workspaces",
680697
"Workspace_URL_Example": "Ex. sua-empresa.rocket.chat",
698+
"Workspace_consumption": "Consumo do workspace",
699+
"Workspace_consumption_description": "Existe uma quantidade definida de notificações push por mês",
681700
"Workspaces": "Workspaces",
682701
"Would_like_to_place_on_hold": "Gostaria de colocar essa conversa em espera?",
683702
"Would_you_like_to_return_the_inquiry": "Deseja retornar a consulta?",
@@ -708,6 +727,7 @@
708727
"Your_invite_link_will_expire_on__date__or_after__usesLeft__uses": "Seu link de convite irá vencer em {{date}} ou depois de {{usesLeft}} usos.",
709728
"Your_invite_link_will_never_expire": "Seu link de convite nunca irá vencer.",
710729
"Your_password_is": "Sua senha é",
730+
"Your_push_was_sent_to_s_devices": "A sua notificação foi enviada para {{s}} dispositivos",
711731
"Your_workspace": "Sua workspace",
712732
"__count__empty_room_will_be_removed_automatically": "{{count}} sala vazia será excluída.",
713733
"__count__empty_rooms_will_be_removed_automatically": "{{count}} salas vazias serão excluídas.",
@@ -749,6 +769,7 @@
749769
"error-invalid-file-type": "Tipo de arquivo inválido",
750770
"error-invalid-password": "Senha inválida",
751771
"error-invalid-room-name": "{{room_name}} não é um nome de sala válido",
772+
"error-no-tokens-for-this-user": "Não existem tokens para este usuário",
752773
"error-not-allowed": "Não permitido",
753774
"error-not-permission-to-upload-file": "Você não tem permissão para enviar arquivos",
754775
"error-save-image": "Erro ao salvar imagem",

app/lib/constants/colors.ts

-3
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ export const colors = {
287287
gray100: '#CBCED1',
288288
n900: '#1F2329',
289289
statusBackgroundWarning: '#FFECAD',
290-
statusFontOnWarning: '#B88D00',
291290
overlayColor: '#1F2329CC',
292291
taskBoxColor: '#9297a2',
293292
...mentions,
@@ -369,7 +368,6 @@ export const colors = {
369368
gray100: '#CBCED1',
370369
n900: '#FFFFFF',
371370
statusBackgroundWarning: '#FFECAD',
372-
statusFontOnWarning: '#B88D00',
373371
overlayColor: '#1F2329CC',
374372
taskBoxColor: '#9297a2',
375373
...mentions,
@@ -451,7 +449,6 @@ export const colors = {
451449
gray100: '#CBCED1',
452450
n900: '#FFFFFF',
453451
statusBackgroundWarning: '#FFECAD',
454-
statusFontOnWarning: '#B88D00',
455452
overlayColor: '#1F2329CC',
456453
taskBoxColor: '#9297a2',
457454
...mentions,

0 commit comments

Comments
 (0)