Skip to content

Commit

Permalink
Merge pull request #79 from VKCOM/o.shcherbakov/error-global-modal/QA…
Browse files Browse the repository at this point in the history
…-15960

feat(ui): error global modal
  • Loading branch information
DaniilSmirnov authored Jan 21, 2025
2 parents 2767963 + bedc4cf commit 33a51ea
Show file tree
Hide file tree
Showing 150 changed files with 585 additions and 360 deletions.
2 changes: 2 additions & 0 deletions lib/units/api/swagger/api_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3501,6 +3501,8 @@ components:
type: string
deviceType:
type: string
likelyLeaveReason:
type: string
using:
type: boolean
ConflictsResponse:
Expand Down
8 changes: 6 additions & 2 deletions ui/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default tseslint.config(
{
html: 'ignore',
custom: 'enforce',
exceptions: [],
exceptions: ['BaseModal'],
},
],
'react/jsx-filename-extension': [
Expand Down Expand Up @@ -350,7 +350,11 @@ export default tseslint.config(
},
},
{
files: ['src/__mocks__/**', 'src/constants/keyboard-keys-map.ts'],
files: [
'src/__mocks__/**',
'src/constants/keyboard-keys-map.ts',
'src/constants/device-likely-leave-reason-map.ts',
],
rules: {
'@typescript-eslint/naming-convention': 'off',
},
Expand Down
14 changes: 9 additions & 5 deletions ui/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
"Device Photo": "Device Photo",
"Device Settings": "Device Settings",
"Device cannot get kicked from the group": "Device cannot get kicked from the group",
"Device is not present anymore for some reason.": "Device is not present anymore for some reason.",
"Device is present but offline.": "Device is present but offline.",
"Device is not present anymore for some reason": "Device is not present anymore for some reason",
"Device is present but offline": "Device is present but offline",
"Device was disconnected": "Device was disconnected",
"Device was kicked by automatic timeout.": "Device was kicked by automatic timeout.",
"Device was kicked by automatic timeout": "Device was kicked by automatic timeout",
"Devices": "Devices",
"Disable WiFi": "Disable WiFi",
"Discharging": "Discharging",
Expand Down Expand Up @@ -232,7 +232,7 @@
"Silent Mode": "Silent Mode",
"Size": "Size",
"Socket connection was lost": "Socket connection was lost",
"Someone stole your device.": "Someone stole your device.",
"Someone stole your device": "Someone stole your device",
"Special Keys": "Special Keys",
"Status": "Status",
"Stop": "Stop",
Expand Down Expand Up @@ -326,5 +326,9 @@
"Supported extensions": "Supported extensions",
"Please type or select value": "Please type or select value",
"Show Manifest": "Show Manifest",
"Hide Manifest": "Hide Manifest"
"Hide Manifest": "Hide Manifest",
"Stop Automation": "Stop Automation",
"Unhealthy": "Unhealthy",
"You (or someone else) kicked the device": "You (or someone else) kicked the device",
"Service is currently unavailable": "Service is currently unavailable! Try your attempt later"
}
14 changes: 9 additions & 5 deletions ui/public/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
"Device Photo": "Foto de dispositivo",
"Device Settings": "Configuración de Dispositivo",
"Device cannot get kicked from the group": "El dispositivo no puede ser expulsado del grupo",
"Device is not present anymore for some reason.": "Por algún motivo el dispositivo ya no está presente",
"Device is present but offline.": "El dispositivo está presente pero no disponible",
"Device is not present anymore for some reason": "Por algún motivo el dispositivo ya no está presente",
"Device is present but offline": "El dispositivo está presente pero no disponible",
"Device was disconnected": "El dispositivo se ha desconectado",
"Device was kicked by automatic timeout.": "El dispositivo fue expulsado por un exceso de tiempo automático",
"Device was kicked by automatic timeout": "El dispositivo fue expulsado por un exceso de tiempo automático",
"Devices": "Dispositivos",
"Disable WiFi": "Deshabilitar WIFI",
"Discharging": "Descargando",
Expand Down Expand Up @@ -232,7 +232,7 @@
"Silent Mode": "Modo silencio",
"Size": "Tamaño",
"Socket connection was lost": "Se perdió la conexión con el socket",
"Someone stole your device.": "Alguien robó tu dispositivo",
"Someone stole your device": "Alguien robó tu dispositivo",
"Special Keys": "Teclas especiales",
"Status": "Estado",
"Stop": "Parar",
Expand Down Expand Up @@ -326,5 +326,9 @@
"Supported extensions": "Extensiones compatibles",
"Please type or select value": "Por favor escriba o seleccione valor",
"Show Manifest": "Mostrar manifiesto",
"Hide Manifest": "Ocultar manifiesto"
"Hide Manifest": "Ocultar manifiesto",
"Stop Automation": "Detener la automatización",
"Unhealthy": "Malsano",
"You (or someone else) kicked the device": "Tú (u otra persona) pateaste el dispositivo",
"Service is currently unavailable": "¡El servicio no está disponible actualmente! \nPrueba tu intento más tarde"
}
14 changes: 8 additions & 6 deletions ui/public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@
"Device Photo": "Photos du Terminal",
"Device Settings": "Paramètres du Terminal",
"Device cannot get kicked from the group": "Le Terminal ne peut pas être exclu du groupe",
"Device is not present anymore for some reason.": "Le Terminal n'est plus présent pour certaines raisons",
"Device is present but offline.": "Le Terminal est présent mais Hors-Ligne",
"Device is not present anymore for some reason": "Le Terminal n'est plus présent pour certaines raisons",
"Device is present but offline": "Le Terminal est présent mais Hors-Ligne",
"Device was disconnected": "Le Terminal était déconnecté",
"Device was kicked by automatic timeout.": "Le Terminal a été exclu par le Timeout automatique",
"Device was kicked by automatic timeout": "Le Terminal a été exclu par le Timeout automatique",
"Devices": "Terminaux",
"Disable WiFi": "Désactiver le Wifi",
"Discharging": "En Décharge",
Expand Down Expand Up @@ -272,7 +272,7 @@
"Silent Mode": "Mode Silencieux",
"Size": "Taille",
"Socket connection was lost": "La connexion au Socket a été perdu",
"Someone stole your device.": "Quelqu'un a volé votre terminal.",
"Someone stole your device": "Quelqu'un a volé votre terminal",
"Special Keys": "Clefs spéciales",
"Start/Stop Logging": "Démarrer/Arrêter les logs",
"Status": "Statut",
Expand Down Expand Up @@ -368,7 +368,7 @@
"X DPI": "X DPI",
"Y DPI": "Y DPI",
"Yes": "Oui",
"You (or someone else) kicked the device.": "Vous (ou quelqu'un d'autre) a exclu le Terminal.",
"You (or someone else) kicked the device": "Vous (ou quelqu'un d'autre) a exclu le Terminal",
"translate": "Traduire",
"Empty": "Vide",
"Something went wrong": "Quelque chose s'est mal passé",
Expand Down Expand Up @@ -403,5 +403,7 @@
"Supported extensions": "Extensions prises en charge",
"Please type or select value": "Veuillez saisir ou sélectionner une valeur",
"Show Manifest": "Afficher le manifeste",
"Hide Manifest": "Masquer le manifeste"
"Hide Manifest": "Masquer le manifeste",
"Unhealthy": "Malsain",
"Service is currently unavailable": "Le service est actuellement indisponible ! \nEssayez votre tentative plus tard"
}
15 changes: 9 additions & 6 deletions ui/public/locales/ja/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@
"Developer": "開発者",
"Device": "デバイス",
"Device cannot get kicked from the group": "このデバイスはグループからキックできません。",
"Device is not present anymore for some reason.": "実機が見えなくなりました。",
"Device is present but offline.": "デバイスは接続されているが、オフラインになっています。",
"Device is not present anymore for some reason": "実機が見えなくなりました。",
"Device is present but offline": "デバイスは接続されているが、オフラインになっています。",
"Device Photo": "実機写真",
"Device Settings": "実機設定",
"Device was disconnected": "デバイスへの接続が切れました",
"Device was kicked by automatic timeout.": "デバイスは自動タイムアウトにより切断されました。",
"Device was kicked by automatic timeout": "デバイスは自動タイムアウトにより切断されました。",
"Devices": "端末リスト",
"Disable WiFi": "無線LANを無効にする",
"Discharging": "放電中",
Expand Down Expand Up @@ -264,7 +264,7 @@
"SIM": "SIM",
"Size": "サイズ",
"Socket connection was lost": "ソケットへの接続が切れました",
"Someone stole your device.": "誰かはデバイスを盗みました。",
"Someone stole your device": "誰かはデバイスを盗みました。",
"Special Keys": "特別なキー",
"Start/Stop Logging": "ログ取得の開始/停止",
"Status": "ステータス",
Expand Down Expand Up @@ -325,7 +325,7 @@
"X DPI": "X DPI",
"Y DPI": "Y DPI",
"Yes": "はい",
"You (or someone else) kicked the device.": "この実機はキックされました。",
"You (or someone else) kicked the device": "この実機はキックされました。",
"Empty": "空の",
"Something went wrong": "何か問題が発生しました",
"Groups": "グループ",
Expand Down Expand Up @@ -360,5 +360,8 @@
"Supported extensions": "サポートされている拡張子",
"Please type or select value": "値を入力または選択してください",
"Show Manifest": "マニフェストの表示",
"Hide Manifest": "マニフェストを隠す"
"Hide Manifest": "マニフェストを隠す",
"Stop Automation": "自動化の停止",
"Unhealthy": "不健康",
"Service is currently unavailable": "現在サービスはご利用いただけません。\n後で試してください"
}
15 changes: 9 additions & 6 deletions ui/public/locales/kk-KZ/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@
"Developer": "Разработчик",
"Device": "Құрылғы",
"Device cannot get kicked from the group": "Құрылғы топтан шығарылмайды",
"Device is not present anymore for some reason.": "Құрылғы кейбір себептермен қосылмаған.",
"Device is present but offline.": "Құрылғы қосылғанымен, онлайн емес.",
"Device is not present anymore for some reason": "Құрылғы кейбір себептермен қосылмаған",
"Device is present but offline": "Құрылғы қосылғанымен, онлайн емес",
"Device Photo": "Құрылғының суреті",
"Device Settings": "Құрылғының орнатпалары",
"Device was disconnected": "Құрылғы қосылмаған",
"Device was kicked by automatic timeout.": "Құрылғы автоматты таймаутаумен шығарылды.",
"Device was kicked by automatic timeout": "Құрылғы автоматты таймаутаумен шығарылды",
"Devices": "Құрылғылар",
"Disable WiFi": "WiFi сөндіру",
"Discharging": "Разрядталады",
Expand Down Expand Up @@ -228,7 +228,7 @@
"Silent Mode": "Тиін режимі",
"Size": "Өлшем",
"Socket connection was lost": "Сокеттік қосылу жоғалтылды",
"Someone stole your device.": "Кім-то сіздің құрылғыңызды утады.",
"Someone stole your device": "Кім-то сіздің құрылғыңызды утады",
"Device Buttons": "Құрылғы кнопкалары",
"Special Keys": "Арнайы түймелер",
"Start/Stop Logging": "Журналдауды бастау/тоқтату",
Expand Down Expand Up @@ -299,7 +299,7 @@
"X DPI": "X DPI",
"Y DPI": "Y DPI",
"Yes": "Иә",
"You (or someone else) kicked the device.": "Сіз (немесе кім біреу) құрылғыны шығардыңыз",
"You (or someone else) kicked the device": "Сіз (немесе кім біреу) құрылғыны шығардыңыз",
"DeviceHub Support": "Құрылғы фермасын қолдау",
"Logout": "Шығу",
"Log In": "Кіру",
Expand Down Expand Up @@ -333,5 +333,8 @@
"Supported extensions": "Қолдау көрсетілетін кеңейтімдер",
"Please type or select value": "Мәнді теріңіз немесе таңдаңыз",
"Show Manifest": "Манифест көрсету",
"Hide Manifest": "Манифестті жасыру"
"Hide Manifest": "Манифестті жасыру",
"Stop Automation": "Автоматтандыруды тоқтату",
"Unhealthy": "Дені сау емес",
"Service is currently unavailable": "Қызмет қазір қолжетімсіз! \nӘрекетті кейінірек көріңіз"
}
14 changes: 9 additions & 5 deletions ui/public/locales/ko/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@
"Details": "세부 정보",
"Developer": "개발자 옵션",
"Device": "단말기",
"Device is not present anymore for some reason.": "더이상 단말기가 존재하지 않습니다.",
"Device is present but offline.": "장치가 연결되어 있지만 오프라인 상태입니다.",
"Device is not present anymore for some reason": "더이상 단말기가 존재하지 않습니다",
"Device is present but offline": "장치가 연결되어 있지만 오프라인 상태입니다",
"Device Photo": "단말기 사진",
"Device Settings": "단말기 설정",
"Device was disconnected": "연결이 끊어졌습니다",
"Device was kicked by automatic timeout.": "시간초과로 인해 단말기 사용이 종료되었습니다.",
"Device was kicked by automatic timeout": "시간초과로 인해 단말기 사용이 종료되었습니다",
"Devices": "단말기 리스트",
"Disable WiFi": "WiFi 비활성화",
"Discharging": "충전중이 아님",
Expand Down Expand Up @@ -336,7 +336,7 @@
"X DPI": "X DPI",
"Y DPI": "Y DPI",
"Yes": "",
"You (or someone else) kicked the device.": "당신(혹은 다른 누군가)이 단말기를 사용 종료 하였습니다.",
"You (or someone else) kicked the device": "당신(혹은 다른 누군가)이 단말기를 사용 종료 하였습니다",
"Empty": "비어 있는",
"Something went wrong": "문제가 발생했습니다.",
"Groups": "여러 떼",
Expand Down Expand Up @@ -371,5 +371,9 @@
"Supported extensions": "지원되는 확장",
"Please type or select value": "값을 입력하거나 선택하세요.",
"Show Manifest": "매니페스트 표시",
"Hide Manifest": "매니페스트 숨기기"
"Hide Manifest": "매니페스트 숨기기",
"Stop Automation": "자동화 중지",
"Unhealthy": "위험한",
"Someone stole your device": "누군가가 귀하의 기기를 훔쳤습니다.",
"Service is currently unavailable": "현재 서비스를 이용할 수 없습니다! \n나중에 시도해 보세요."
}
14 changes: 10 additions & 4 deletions ui/public/locales/pl/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
"Developer": "Developer",
"Device": "Urządzenie",
"Device cannot get kicked from the group": "Urządzenie nie może zostać wyrzucone z grupy",
"Device is not present anymore for some reason.": "Urządzenie z jakiegoś powodu nie jest już dostępne",
"Device is present but offline.": "Urządzenie jest dostępne, lecz jest offline.",
"Device is not present anymore for some reason": "Urządzenie z jakiegoś powodu nie jest już dostępne",
"Device is present but offline": "Urządzenie jest dostępne, lecz jest offline",
"Device Photo": "Zdjęcie urządzenia",
"Device Settings": "Ustawienia urządzenia",
"Device was disconnected": "Urządzenie zostało odłączone",
"Device was kicked by automatic timeout.": "Urządzenie zostało wyrzucone z powodu braku aktywności.",
"Device was kicked by automatic timeout": "Urządzenie zostało wyrzucone z powodu braku aktywności",
"Devices": "Urządzenia",
"Disable WiFi": "Wyłącz WiFi",
"Discharging": "Rozładowywanie",
Expand Down Expand Up @@ -249,5 +249,11 @@
"Supported extensions": "Obsługiwane rozszerzenia",
"Please type or select value": "Wpisz lub wybierz wartość",
"Show Manifest": "Pokaż manifest",
"Hide Manifest": "Ukryj manifest"
"Hide Manifest": "Ukryj manifest",
"Try to reconnect": "Spróbuj połączyć się ponownie",
"Stop Automation": "Zatrzymaj automatyzację",
"Unhealthy": "Niezdrowy",
"Someone stole your device": "Ktoś ukradł Twoje urządzenie",
"You (or someone else) kicked the device": "Ty (lub ktoś inny) kopnąłeś urządzenie",
"Service is currently unavailable": "Usługa jest chwilowo niedostępna! \nSpróbuj później"
}
14 changes: 8 additions & 6 deletions ui/public/locales/pt-BR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@
"Device Photo": "Foto do Dispositivo",
"Device Settings": "Configurações do Dispositivo",
"Device cannot get kicked from the group": "O dispositivo não pode ser removido do grupo",
"Device is not present anymore for some reason.": "O dispositivo não está mais disponível por algum motivo.",
"Device is present but offline.": "Dispositivo presenta mas está indisponível",
"Device is not present anymore for some reason": "O dispositivo não está mais disponível por algum motivo",
"Device is present but offline": "Dispositivo presenta mas está indisponível",
"Device was disconnected": "Dispositivo desconectado",
"Device was kicked by automatic timeout.": "Dispositivo foi removido por tempo limite automático.",
"Device was kicked by automatic timeout": "Dispositivo foi removido por tempo limite automático",
"Devices": "Dispositivos",
"Disable WiFi": "Desabilitar WiFi",
"Discharging": "Descarregando",
Expand Down Expand Up @@ -272,7 +272,7 @@
"Silent Mode": "Modo Silencioso",
"Size": "Tamanho",
"Socket connection was lost": "Conexão Socket foi perdida",
"Someone stole your device.": "Alguém roubou seu dispositivo.",
"Someone stole your device": "Alguém roubou seu dispositivo",
"Special Keys": "Chaves Especiais",
"Start/Stop Logging": "Iniciar/Pausar Entrada",
"Status": "Estado",
Expand Down Expand Up @@ -368,7 +368,7 @@
"X DPI": "DPI X",
"Y DPI": "DPI Y",
"Yes": "Sim",
"You (or someone else) kicked the device.": "Você removeu o dispositivo.",
"You (or someone else) kicked the device": "Você removeu o dispositivo",
"translate": "traduzir",
"Empty": "Vazio",
"Something went wrong": "Algo deu errado",
Expand Down Expand Up @@ -403,5 +403,7 @@
"Supported extensions": "Extensões suportadas",
"Please type or select value": "Digite ou selecione o valor",
"Show Manifest": "Mostrar manifesto",
"Hide Manifest": "Ocultar manifesto"
"Hide Manifest": "Ocultar manifesto",
"Unhealthy": "Insalubre",
"Service is currently unavailable": "O serviço está indisponível no momento! \nTente sua tentativa mais tarde"
}
Loading

0 comments on commit 33a51ea

Please sign in to comment.