diff --git a/apps/web/lib/settings/integration-setting.tsx b/apps/web/lib/settings/integration-setting.tsx index 358d3e8ff..03c3e990d 100644 --- a/apps/web/lib/settings/integration-setting.tsx +++ b/apps/web/lib/settings/integration-setting.tsx @@ -5,13 +5,13 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@ import { useGitHubIntegration, useIntegrationTenant, useIntegrationTypes, useOrganizationTeams } from '@app/hooks'; import { ChangeEvent, useCallback, useEffect, useMemo, useState } from 'react'; import { GITHUB_APP_NAME } from '@app/constants'; -import Link from 'next/link'; import { useOrganizationProjects } from '@app/hooks'; import { TrashIcon } from 'lib/components/svgs'; -import { Button, InputField, Text } from 'lib/components'; +import { Button, InputField } from 'lib/components'; import { getActiveProjectIdCookie } from '@app/helpers'; import { Switch } from '@headlessui/react'; import debounce from 'lodash/debounce'; +import Link from 'next/link'; export const IntegrationSetting = () => { const { t } = useTranslation(); @@ -165,139 +165,160 @@ export const IntegrationSetting = () => { return (
-
-
-
- -
- - {/* Divider */} -
- -
-
- {t('pages.settingsTeam.GITHUB')} + <> +
+
+
+
+ {/* Divider */} +
+
- {integrationGithubRepositories?.total_count === 0 && ( +
+ {t('pages.settingsTeam.GITHUB')} +
+ +
+ {integrationGithubRepositories?.total_count === 0 && ( +
+ {t('pages.settingsTeam.GITHUB_INTEGRATION_DESCRIPTION')} +
+ )} +
- {t('pages.settingsTeam.GITHUB_INTEGRATION_DESCRIPTION')} + {t('common.GITHUB_INTEGRATION_SUBTITLE_TEXT')}
- )} - -
Lorem impsum
+
-
- -
- -
-
-
-

Auto Synk Tasks

-

- Lorem ipsum dolor sit amet consectetur. In gravida egestas quis arcu mauris sed et mauris. -

-
-
- { - handleEditOrganizationProject({ - autoSync: !isTasksAutoSync - }); - setIsTasksAutoSync(!isTasksAutoSync); - }} - className={`${isTasksAutoSync ? 'bg-[#DBD3FA]' : 'bg-[#80808061]'} - relative inline-flex h-[38px] w-[74px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`} + {integrationGithubRepositories && integrationGithubRepositories?.total_count > 0 && ( +
+ Remove + + )} + + {(!integrationGithubRepositories || integrationGithubRepositories?.total_count === 0) && ( + + {t('pages.settingsTeam.INSTALL')} + + )}
-
-
-

Sync Tasks with specific Label

-

- Lorem ipsum dolor sit amet consectetur. In gravida egestas quis arcu mauris sed et mauris. -

-
-
- { - handleEditOrganizationProject({ - autoSyncOnLabel: !isTasksAutoSyncOnLabel - }); - setIsTasksAutoSyncOnLabel(!isTasksAutoSyncOnLabel); - }} - className={`${isTasksAutoSyncOnLabel ? 'bg-[#DBD3FA]' : 'bg-[#80808061]'} + {integrationGithubRepositories && integrationGithubRepositories?.total_count > 0 && ( +
+
+
+

Auto Synk Tasks

+

{t('common.GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT')}

+
+
+ { + handleEditOrganizationProject({ + autoSync: !isTasksAutoSync + }); + setIsTasksAutoSync(!isTasksAutoSync); + }} + className={`${isTasksAutoSync ? 'bg-[#DBD3FA]' : 'bg-[#80808061]'} relative inline-flex h-[38px] w-[74px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`} - > - Use setting - -
-
+ /> + +
+
-
-
- - - {selectedRepo && ( - - )} -
+
+
+

Sync Tasks with specific Label

+

{t('common.GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT')}

+
+
+ { + handleEditOrganizationProject({ + autoSyncOnLabel: !isTasksAutoSyncOnLabel + }); + setIsTasksAutoSyncOnLabel(!isTasksAutoSyncOnLabel); + }} + className={`${isTasksAutoSyncOnLabel ? 'bg-[#DBD3FA]' : 'bg-[#80808061]'} + relative inline-flex h-[38px] w-[74px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`} + > + Use setting + +
+
- {integrationGithubRepositories && integrationGithubRepositories?.total_count > 0 && ( -
- +
+
+ + + {selectedRepo && ( + + )} +
+ + {integrationGithubRepositories?.total_count > 0 && ( +
+ +
+ )}
- )} -
-
+
+ )} +
); }; diff --git a/apps/web/public/locales/ar/common.json b/apps/web/public/locales/ar/common.json index 518843372..ecaf836fb 100644 --- a/apps/web/public/locales/ar/common.json +++ b/apps/web/public/locales/ar/common.json @@ -167,7 +167,10 @@ "FILTER_UNSUBSCRIBE": "إلغاء الاشتراك", "KEYBOARD_SHORTCUTS": "اختصارات لوحة المفاتيح", - "GITHUB_LOADING_TEXT": "نحن الآن في عملية تثبيت التكامل الخاص بك على GitHub، توكّل." + "GITHUB_LOADING_TEXT": "نحن الآن في عملية تثبيت التكامل الخاص بك على GitHub، توكّل.", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "قم بمزامنة المهام تلقائيًا في تطبيقك لتحديثات سلسة وفعّالة.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "تزامن المهام بشكل انتقائي عن طريق ربطها بتصنيف معين.", + "GITHUB_AUTO_SYNC_LABEL": "اختر تسمية التزامن التلقائي" }, "alerts": { "ALERT_DELETE_ACCOUNT": "سيتم إزالة الحساب من جميع الفرق، باستثناء حيث أنت المدير فقط", diff --git a/apps/web/public/locales/bg/common.json b/apps/web/public/locales/bg/common.json index f7e0fd44e..da3a7b939 100644 --- a/apps/web/public/locales/bg/common.json +++ b/apps/web/public/locales/bg/common.json @@ -165,7 +165,10 @@ "FILTER_UNSUBSCRIBE": "Отпиши се", "KEYBOARD_SHORTCUTS": "Клавишни комбинации", - "GITHUB_LOADING_TEXT": "В момента инсталираме вашия GitHub интеграция, изчакайте..." + "GITHUB_LOADING_TEXT": "В момента инсталираме вашия GitHub интеграция, изчакайте...", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "Автоматично синхронизирайте задачите в приложението си за безпроблемни и ефективни актуализации.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "Синхронизирайте задачите избирателно, като ги свържете с конкретен етикет.", + "GITHUB_AUTO_SYNC_LABEL": "Изберете етикет за автоматична синхронизация" }, "alerts": { "ALERT_DELETE_ACCOUNT": "Профилът ще бъде премахнат от всички отбори, освен където сте само мениджър", diff --git a/apps/web/public/locales/de/common.json b/apps/web/public/locales/de/common.json index 0c53656cb..bbe492d42 100644 --- a/apps/web/public/locales/de/common.json +++ b/apps/web/public/locales/de/common.json @@ -167,7 +167,10 @@ "KEYBOARD_SHORTCUTS": "Tastenkombinationen", - "GITHUB_LOADING_TEXT": "Wir installieren jetzt Ihre GitHub-Integration, warten Sie..." + "GITHUB_LOADING_TEXT": "Wir installieren jetzt Ihre GitHub-Integration, warten Sie...", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "Synchronisieren Sie Aufgaben in Ihrer Anwendung automatisch für nahtlose und effiziente Aktualisierungen.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "Synchronisieren Sie Aufgaben selektiv, indem Sie sie mit einem bestimmten Label verknüpfen.", + "GITHUB_AUTO_SYNC_LABEL": "Auto-Sync-Label auswählen" }, "alerts": { "ALERT_DELETE_ACCOUNT": "Das Konto wird von allen Teams entfernt, außer wo Sie nur Manager sind", diff --git a/apps/web/public/locales/en/common.json b/apps/web/public/locales/en/common.json index 5fdb810b1..3ec33feb3 100644 --- a/apps/web/public/locales/en/common.json +++ b/apps/web/public/locales/en/common.json @@ -167,7 +167,11 @@ "KEYBOARD_SHORTCUTS": "Keyboard Shortcuts", - "GITHUB_LOADING_TEXT": "We are now installing your GitHub Integration, hold on..." + "GITHUB_LOADING_TEXT": "We are now installing your GitHub Integration, hold on...", + "GITHUB_INTEGRATION_SUBTITLE_TEXT": "Activate GitHub integration for project & repository sync", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "Automatically synchronize tasks in your application for seamless and efficient updates.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "Synchronize tasks selectively by associating them with specific label.", + "GITHUB_AUTO_SYNC_LABEL": "Select Auto-Sync Label" }, "alerts": { "ALERT_DELETE_ACCOUNT": "Account will be removed from all teams, except where you are only the manager", diff --git a/apps/web/public/locales/es/common.json b/apps/web/public/locales/es/common.json index c5084d37f..2072ecc48 100644 --- a/apps/web/public/locales/es/common.json +++ b/apps/web/public/locales/es/common.json @@ -163,7 +163,10 @@ "FILTER_HISTORY": "Historial", "FILTER_UNSUBSCRIBE": "Darse de baja", "KEYBOARD_SHORTCUTS": "Atajos de teclado", - "GITHUB_LOADING_TEXT": "Estamos instalando su integración de GitHub, espere..." + "GITHUB_LOADING_TEXT": "Estamos instalando su integración de GitHub, espere...", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "Sincronice automáticamente tareas en su aplicación para actualizaciones fluidas y eficientes.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "Sincronice tareas de manera selectiva asociándolas con una etiqueta específica.", + "GITHUB_AUTO_SYNC_LABEL": "Seleccionar etiqueta de sincronización automática" }, "alerts": { "ALERT_DELETE_ACCOUNT": "La cuenta será eliminada de todos los equipos, excepto donde eres sólo el administrador", diff --git a/apps/web/public/locales/fr/common.json b/apps/web/public/locales/fr/common.json index 11501f05f..35c4d51bb 100644 --- a/apps/web/public/locales/fr/common.json +++ b/apps/web/public/locales/fr/common.json @@ -165,7 +165,10 @@ "FILTER_UNSUBSCRIBE": "Se désabonner", "KEYBOARD_SHORTCUTS": "Raccourcis clavier", - "GITHUB_LOADING_TEXT": "Nous installons actuellement votre intégration GitHub, veuillez patienter..." + "GITHUB_LOADING_TEXT": "Nous installons actuellement votre intégration GitHub, veuillez patienter...", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "Synchronisez automatiquement les tâches dans votre application pour des mises à jour fluides et efficaces.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "Synchronisez sélectivement les tâches en les associant à une étiquette spécifique.", + "GITHUB_AUTO_SYNC_LABEL": "Sélectionner l'étiquette de synchronisation automatique" }, "alerts": { "ALERT_DELETE_ACCOUNT": "Le compte sera supprimé de toutes les équipes, sauf si vous êtes uniquement le gestionnaire", diff --git a/apps/web/public/locales/he/common.json b/apps/web/public/locales/he/common.json index b3d59d1e4..a5fdcfe44 100644 --- a/apps/web/public/locales/he/common.json +++ b/apps/web/public/locales/he/common.json @@ -167,7 +167,10 @@ "KEYBOARD_SHORTCUTS": "קיצורי מקלדת", - "GITHUB_LOADING_TEXT": "אנו מתקינים כעת את אינטגרציית ה-GitHub שלך, המתינו." + "GITHUB_LOADING_TEXT": "אנו מתקינים כעת את אינטגרציית ה-GitHub שלך, המתינו.", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "סנכרן משימות באופן אוטומטי באפליקציה שלך לעדכונים חלקים ויעילים.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "סנכרן משימות באופן בררני על ידי הקשרתן לתג מסוים.", + "GITHUB_AUTO_SYNC_LABEL": "בחר תגית אוטומטית לסנכרון" }, "alerts": { "ALERT_DELETE_ACCOUNT": "החשבון יוסר מכל הצוותים, למעט היכן שאתה רק המנהל", diff --git a/apps/web/public/locales/it/common.json b/apps/web/public/locales/it/common.json index 6a8a35e74..cd557f82e 100644 --- a/apps/web/public/locales/it/common.json +++ b/apps/web/public/locales/it/common.json @@ -167,7 +167,10 @@ "KEYBOARD_SHORTCUTS": "Keyboard Shortcuts", - "GITHUB_LOADING_TEXT": "Stiamo installando la tua integrazione GitHub, attendi..." + "GITHUB_LOADING_TEXT": "Stiamo installando la tua integrazione GitHub, attendi...", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "Sincronizza automaticamente le attività nella tua applicazione per aggiornamenti senza intoppi ed efficienti.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "Sincronizza le attività in modo selettivo associandole a un'etichetta specifica.", + "GITHUB_AUTO_SYNC_LABEL": "Seleziona etichetta di sincronizzazione automatica" }, "alerts": { "ALERT_DELETE_ACCOUNT": "Account will be removed from all teams, except where you are only the manager", diff --git a/apps/web/public/locales/nl/common.json b/apps/web/public/locales/nl/common.json index 060c428d2..f6da1ffc9 100644 --- a/apps/web/public/locales/nl/common.json +++ b/apps/web/public/locales/nl/common.json @@ -167,7 +167,10 @@ "KEYBOARD_SHORTCUTS": "Sneltoetsen", - "GITHUB_LOADING_TEXT": "We zijn nu uw GitHub-integratie aan het installeren, even geduld..." + "GITHUB_LOADING_TEXT": "We zijn nu uw GitHub-integratie aan het installeren, even geduld...", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "Synchroniseer taken automatisch in uw applicatie voor naadloze en efficiënte updates.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "Synchroniseer taken selectief door ze te koppelen aan een specifiek label.", + "GITHUB_AUTO_SYNC_LABEL": "Selecteer Auto-Sync-label" }, "alerts": { "ALERT_DELETE_ACCOUNT": "Account wordt verwijderd van alle teams, behalve waar u alleen manager bent", diff --git a/apps/web/public/locales/pl/common.json b/apps/web/public/locales/pl/common.json index 864014292..7f74fa575 100644 --- a/apps/web/public/locales/pl/common.json +++ b/apps/web/public/locales/pl/common.json @@ -167,7 +167,10 @@ "KEYBOARD_SHORTCUTS": "Keyboard Shortcuts", - "GITHUB_LOADING_TEXT": "Aktualnie instalujemy integrację GitHub, proszę czekać..." + "GITHUB_LOADING_TEXT": "Aktualnie instalujemy integrację GitHub, proszę czekać...", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "Automatycznie synchronizuj zadania w swojej aplikacji, aby uzyskać płynne i efektywne aktualizacje.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "Synchronizuj zadania selektywnie, łącząc je z konkretną etykietą.", + "GITHUB_AUTO_SYNC_LABEL": "Wybierz etykietę automatycznej synchronizacji" }, "alerts": { "ALERT_DELETE_ACCOUNT": "Account will be removed from all teams, except where you are only the manager", diff --git a/apps/web/public/locales/pt/common.json b/apps/web/public/locales/pt/common.json index 590dacb3b..527366411 100644 --- a/apps/web/public/locales/pt/common.json +++ b/apps/web/public/locales/pt/common.json @@ -167,7 +167,10 @@ "KEYBOARD_SHORTCUTS": "Keyboard Shortcuts", - "GITHUB_LOADING_TEXT": "Estamos agora a instalar a sua integração do GitHub, aguarde..." + "GITHUB_LOADING_TEXT": "Estamos agora a instalar a sua integração do GitHub, aguarde...", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "Sincronize automaticamente tarefas em seu aplicativo para atualizações sem interrupções e eficientes.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "Sincronize tarefas seletivamente associando-as a uma etiqueta específica.", + "GITHUB_AUTO_SYNC_LABEL": "Selecionar rótulo de sincronização automática" }, "alerts": { "ALERT_DELETE_ACCOUNT": "Account will be removed from all teams, except where you are only the manager", diff --git a/apps/web/public/locales/ru/common.json b/apps/web/public/locales/ru/common.json index 75993d5f1..f90f1d9ac 100644 --- a/apps/web/public/locales/ru/common.json +++ b/apps/web/public/locales/ru/common.json @@ -167,7 +167,10 @@ "KEYBOARD_SHORTCUTS": "Keyboard Shortcuts", - "GITHUB_LOADING_TEXT": "Мы сейчас устанавливаем вашу интеграцию GitHub, подождите..." + "GITHUB_LOADING_TEXT": "Мы сейчас устанавливаем вашу интеграцию GitHub, подождите...", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "Автоматическая синхронизация задач в вашем приложении для бесперебойных и эффективных обновлений.", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "Синхронизация задач выборочно путем ассоциирования их с конкретной меткой.", + "GITHUB_AUTO_SYNC_LABEL": "Выберите метку автосинхронизации" }, "alerts": { "ALERT_DELETE_ACCOUNT": "Account will be removed from all teams, except where you are only the manager", diff --git a/apps/web/public/locales/zh/common.json b/apps/web/public/locales/zh/common.json index cbb774930..37fbbd301 100644 --- a/apps/web/public/locales/zh/common.json +++ b/apps/web/public/locales/zh/common.json @@ -167,7 +167,10 @@ "KEYBOARD_SHORTCUTS": "快捷键", - "GITHUB_LOADING_TEXT": "我们正在安装您的 GitHub 集成,请稍等..." + "GITHUB_LOADING_TEXT": "我们正在安装您的 GitHub 集成,请稍等...", + "GITHUB_INTEGRATION_AUTO_SYNC_TASK_TEXT": "在您的应用程序中自动同步任务,实现无缝和高效的更新。", + "GITHUB_INTEGRATION_LABEL_SYNC_TASK_TEXT": "通过将任务与特定标签关联,有选择地进行同步。", + "GITHUB_AUTO_SYNC_LABEL": "选择自动同步标签" }, "alerts": { "ALERT_DELETE_ACCOUNT": "账户将从所有团队中移除,您作为管理员的团队除外",