diff --git a/README.md b/README.md index b436de3e..ee7b9907 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository hosts the source code for PagerDuty Live, an open-source, single page application which enables organisations to manage their PagerDuty incidents in real-time through a unified console view. -**Live URL: https://giranm.github.io/pd-live-react/** +**Live URL: https://pagerduty.github.io/pd-live-react/** ## :warning: Disclaimer @@ -10,8 +10,7 @@ This repository hosts the source code for PagerDuty Live, an open-source, single This is an open-source project designed to be used in a safe/test environment before users can leverage on their primary domains.** - Full Disclaimer: https://www.termsfeed.com/live/68d1a0f2-9e68-47d0-9623-68afe0c31f6d -- Further details on roadmap functionality, bugs, etc can be viewed on the [wiki](https://github.com/giranm/pd-live-react/wiki). -- For any issues, please raise a [GitHub issue](https://github.com/giranm/pd-live-react/issues/new) which can be tracked accordingly. +- For any issues, please raise a [GitHub issue](https://github.com/pagerduty/pd-live-react/issues/new) which can be tracked accordingly. ## Screenshot @@ -99,7 +98,7 @@ To prepare PagerDuty Live for release, the current workflow should be carried ou $ git push --set-upstream origin release/ ``` -6. Raise [pull requests](https://github.com/giranm/pd-live-react/pulls) to merge into `main` branch. +6. Raise [pull requests](https://github.com/pagerduty/pd-live-react/pulls) to merge into `main` branch. 7. Build static bundle via `$ yarn build` or use appropriate CI/CD workflow. diff --git a/package.json b/package.json index 66efe5f5..86802490 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pd-live-react", - "homepage": "https://giranm.github.io/pd-live-react", - "version": "0.7.0-beta.0", + "homepage": "https://pagerduty.github.io/pd-live-react", + "version": "0.7.1-beta.0", "private": true, "dependencies": { "@braintree/sanitize-url": "^6.0.2", diff --git a/public/index.html b/public/index.html index a08afe88..44610a34 100644 --- a/public/index.html +++ b/public/index.html @@ -6,7 +6,7 @@ - + - \ No newline at end of file + diff --git a/src/components/DisclaimerModal/DisclaimerModalComponent.js b/src/components/DisclaimerModal/DisclaimerModalComponent.js index 16c76f05..dac88876 100644 --- a/src/components/DisclaimerModal/DisclaimerModalComponent.js +++ b/src/components/DisclaimerModal/DisclaimerModalComponent.js @@ -228,11 +228,11 @@ const DisclaimerModalComponent = ({ By visiting this page on our website: {' '} - https://github.com/giranm/pd-live-react + https://github.com/pagerduty/pd-live-react diff --git a/src/components/IncidentTable/IncidentTableComponent.js b/src/components/IncidentTable/IncidentTableComponent.js index b0910c37..3eab5184 100644 --- a/src/components/IncidentTable/IncidentTableComponent.js +++ b/src/components/IncidentTable/IncidentTableComponent.js @@ -39,6 +39,10 @@ import { ContextMenu, MenuItem, ContextMenuTrigger, } from 'react-contextmenu'; +import { + useTranslation, +} from 'react-i18next'; + import CheckboxComponent from './subcomponents/CheckboxComponent'; import EmptyIncidentsComponent from './subcomponents/EmptyIncidentsComponent'; import QueryActiveComponent from './subcomponents/QueryActiveComponent'; @@ -132,6 +136,9 @@ const IncidentTableComponent = ({ const { currentUserLocale, } = users; + const { + t, + } = useTranslation(); // React Table Config const defaultColumn = useMemo( @@ -368,7 +375,8 @@ const IncidentTableComponent = ({ exportTableDataToCsv(tableHook); }} > - Export CSV + $ + {t('Export CSV')} {tableHook.selectedFlatRows.length > 0 ? ` (${tableHook.selectedFlatRows.length} rows)` : ` (${tableHook.rows.length} rows)`} diff --git a/src/config/incident-table-columns.js b/src/config/incident-table-columns.js index f1ddc45c..6fd34a1a 100644 --- a/src/config/incident-table-columns.js +++ b/src/config/incident-table-columns.js @@ -675,13 +675,22 @@ export const customReactTableColumnSchema = ( value, }) => { // Determine if content should be rendered as link or plaintext - const sanitizedValue = sanitizeUrl(value); - if (validator.isURL(sanitizedValue)) { - return ( - - {sanitizedValue} - - ); + try { + const sanitizedValue = sanitizeUrl(value); + if (validator.isURL(sanitizedValue)) { + return ( + + {sanitizedValue} + + ); + } + } catch (e) { + console.log(e); } return
{value}
; }, diff --git a/src/config/version.js b/src/config/version.js index ac4d0471..a87de2bf 100644 --- a/src/config/version.js +++ b/src/config/version.js @@ -1,2 +1,2 @@ // Generated by genversion. -module.exports = '0.7.0-beta.0'; +module.exports = '0.7.1-beta.0'; diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json index c73a9168..8e8f4259 100644 --- a/src/locales/de/translation.json +++ b/src/locales/de/translation.json @@ -39,6 +39,7 @@ "Current subdomain does not have the correct ability to use PagerDuty Live": "Die aktuelle Subdomain hat nicht die richtige Funktion aktiviert, PagerDuty Live zu verwenden", "Custom": "Benutzerdefiniert", "Custom Incident Action": "Benutzerdefinierte Vorfallaktion", + "Dark Mode": "Dunkler Modus", "Decline": "Ablehnen", "Default Since Date Lookback": "Standard seit Datumsrückblick", "Description": "Beschreibung", @@ -46,6 +47,7 @@ "error": "fehler", "Escalate": "Eskalieren", "Escalation Policy": "Eskalationsrichtlinie", + "Export CSV": "CSV exportieren", "External References": "Externe Referenzen", "External Systems": "Externe Systeme", "Fetching Alerts": "Abrufen von Benachrichtigungen", diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 418a74d4..41ce9e57 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -39,6 +39,7 @@ "Current subdomain does not have the correct ability to use PagerDuty Live": "Current subdomain does not have the correct ability to use PagerDuty Live", "Custom": "Custom", "Custom Incident Action": "Custom Incident Action", + "Dark Mode": "Dark Mode", "Decline": "Decline", "Default Since Date Lookback": "Default Since Date Lookback", "Description": "Description", @@ -46,6 +47,7 @@ "error": "error", "Escalate": "Escalate", "Escalation Policy": "Escalation Policy", + "Export CSV": "Export CSV", "External References": "External References", "External Systems": "External Systems", "Fetching Alerts": "Fetching Alerts", diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json index 718f9ca7..423f2c5a 100644 --- a/src/locales/es/translation.json +++ b/src/locales/es/translation.json @@ -39,6 +39,7 @@ "Current subdomain does not have the correct ability to use PagerDuty Live": "El subdominio actual no tiene la capacidad correcta para usar PagerDuty Live", "Custom": "Personalizado", "Custom Incident Action": "Acción de incidente personalizada", + "Dark Mode": "Modo oscuro", "Decline": "Rechazar", "Default Since Date Lookback": "Vista previa de fecha de inicio predeterminada", "Description": "Descripción", @@ -46,6 +47,7 @@ "error": "error", "Escalate": "Escalar", "Escalation Policy": "Política de Escalamiento", + "Export CSV": "Exportar CSV", "External References": "Referencias Externas", "External Systems": "Sistemas externos", "Fetching Alerts": "Obteniendo alertas", diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json index 679da502..b6a00b72 100644 --- a/src/locales/fr/translation.json +++ b/src/locales/fr/translation.json @@ -39,6 +39,7 @@ "Current subdomain does not have the correct ability to use PagerDuty Live": "Le sous-domaine actuel n'a pas la bonne capacité pour utiliser PagerDuty Live", "Custom": "Personnalisé", "Custom Incident Action": "Action d'incident personnalisée", + "Dark Mode": "Mode sombre", "Decline": "Décliner", "Default Since Date Lookback": "Défaut depuis la date de recherche", "Description": "Description", @@ -46,6 +47,7 @@ "error": "erreur", "Escalate": "Escalader", "Escalation Policy": "Politique d'escalade", + "Export CSV": "Exporter CSV", "External References": "Références externes", "External Systems": "Systèmes externes", "Fetching Alerts": "Récupération des alertes", diff --git a/src/locales/id/translation.json b/src/locales/id/translation.json index 05a2d403..a03ef8da 100644 --- a/src/locales/id/translation.json +++ b/src/locales/id/translation.json @@ -39,6 +39,7 @@ "Current subdomain does not have the correct ability to use PagerDuty Live": "Subdomain saat ini tidak memiliki kemampuan untuk menggunakan PagerDuty Live", "Custom": "Khusus", "Custom Incident Action": "Tindakan Insiden Khusus", + "Dark Mode": "Mode Gelap", "Decline": "Tolak", "Default Since Date Lookback": "Periode tampilan default", "Description": "Deskripsi", @@ -46,6 +47,7 @@ "error": "error", "Escalate": "Eskalasi", "Escalation Policy": "Kebijakan Eskalasi", + "Export CSV": "Ekspor CSV", "External References": "Referensi eksternal", "External Systems": "Sistem eksternal", "Fetching Alerts": "Mengambil Peringatan", diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json index 8be78be9..fadbb6eb 100644 --- a/src/locales/ja/translation.json +++ b/src/locales/ja/translation.json @@ -39,6 +39,7 @@ "Current subdomain does not have the correct ability to use PagerDuty Live": "現在のサブドメインはPagerDuty Liveを使用するための十分な権限を持っていません", "Custom": "カスタム", "Custom Incident Action": "カスタムインシデントアクション", + "Dark Mode": "ダークモード", "Decline": "拒否", "Default Since Date Lookback": "デフォルト表示期間", "Description": "説明", @@ -46,6 +47,7 @@ "error": "error", "Escalate": "エスカレート", "Escalation Policy": "エスカレーションポリシー", + "Export CSV": "CSVエクスポート", "External References": "外部リファレンス", "External Systems": "外部システム", "Fetching Alerts": "アラートを取得中", diff --git a/src/locales/pt-br/translation.json b/src/locales/pt-br/translation.json index 6137d7ac..cecddf23 100644 --- a/src/locales/pt-br/translation.json +++ b/src/locales/pt-br/translation.json @@ -39,6 +39,7 @@ "Current subdomain does not have the correct ability to use PagerDuty Live": "O subdomínio atual não tem a capacidade correta para usar PagerDuty Live", "Custom": "Personalizado", "Custom Incident Action": "Ação de Incidente Personalizada", + "Dark Mode": "Modo Escuro", "Decline": "Recusar", "Default Since Date Lookback": "Retrospectiva a partir de Data Predefinida", "Description": "Descrição", @@ -46,6 +47,7 @@ "error": "erro", "Escalate": "Escalar", "Escalation Policy": "Política de Escalação", + "Export CSV": "Exportar CSV", "External References": "Referências Externas", "External Systems": "Sistemas Externos", "Fetching Alerts": "Buscando Alertas", diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json index bdf950cb..d8a995a3 100644 --- a/src/locales/pt/translation.json +++ b/src/locales/pt/translation.json @@ -39,6 +39,7 @@ "Current subdomain does not have the correct ability to use PagerDuty Live": "O subdomínio atual não tem a capacidade correta para usar PagerDuty Live", "Custom": "Personalizado", "Custom Incident Action": "Ação de Incidente Personalizada", + "Dark Mode": "Modo Escuro", "Decline": "Recusar", "Default Since Date Lookback": "Retrospetiva a partir de Data Predefinida", "Description": "Descrição", @@ -46,6 +47,7 @@ "error": "erro", "Escalate": "Escalar", "Escalation Policy": "Política de Escalação", + "Export CSV": "Exportar CSV", "External References": "Referências Externas", "External Systems": "Sistemas Externos", "Fetching Alerts": "A obter Alertas",