Skip to content

Commit

Permalink
Add Deprecation notice
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Sep 11, 2024
1 parent 54b02c7 commit 3b2097d
Show file tree
Hide file tree
Showing 12 changed files with 93 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This repository hosts the source code for PagerDuty Live, an open-source, single

**Live URL: https://pagerduty.github.io/pd-live-react/**

## :heavy_exclamation_mark: Deprecation

**This project has been replaced by [Operations Console](https://support.pagerduty.com/main/docs/operations-console), which is supported product from PagerDuty. Please plan to migrate to Operations Console instead.**

## :warning: Disclaimer

**This project is not officially supported by PagerDuty and therefore no issues can be reported to or resolved by PagerDuty Support.
Expand Down
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {

import moment from 'moment/min/moment-with-locales';

import DeprecationAlertComponent from 'src/components/DeprecationAlert/DeprecationAlert';
import CatastropheModal from 'src/components/CatastropheModal/CatastropheModal';
import AuthComponent from 'src/components/Auth/AuthComponent';
import UnauthorizedModalComponent from 'src/components/UnauthorizedModal/UnauthorizedModalComponent';
Expand Down Expand Up @@ -202,6 +203,7 @@ const App = () => {
>
<Box position="fixed" w="100%" h="100%" overflow="hidden">
<Box as="header" top={0} w="100%" pb={1}>
<DeprecationAlertComponent />
<NavigationBarComponent />
</Box>
<Box as="main" id="main">
Expand Down
4 changes: 4 additions & 0 deletions src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,7 @@ body.dark-mode div.react-select__option--is-focused {
color: $pd-brand-white !important;
}

a.external-link {
text-decoration: underline;
}

67 changes: 67 additions & 0 deletions src/components/DeprecationAlert/DeprecationAlert.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import React from 'react';

import {
useDisclosure,
Alert,
AlertIcon,
AlertTitle,
AlertDescription,
Box,
CloseButton,
} from '@chakra-ui/react';

import {
useTranslation, Trans,
} from 'react-i18next';

const DeprecationAlertComponent = () => {
const {
isOpen: isVisible, onClose,
} = useDisclosure({ defaultIsOpen: true });
const {
t,
} = useTranslation();

return isVisible ? (
<Alert status="info">
<AlertIcon />
<Box w="100%">
<AlertTitle>{t('PD Live is deprecated')}</AlertTitle>
<AlertDescription>
<Trans i18nKey="Deprecation">
This should be a
<a
href="https://support.pagerduty.com/main/docs/operations-console"
rel="external nofollow noopener noreferrer"
className="external-link"
target="_blank"
>
Operations Console
</a>
{/* <a
href="https://support.pagerduty.com/main/docs/operations-console"
rel="external nofollow noopener noreferrer"
className="external-link"
target="_blank"
>
{t('Operations Console')}
</a>
{' '}
is the new and improved version of PD Live, and is supported product from PagerDuty. Please plan to migrate to Operations Console instead. */}
</Trans>
</AlertDescription>
</Box>
<CloseButton
alignSelf="flex-start"
position="relative"
right={-1}
top={-1}
onClick={onClose}
/>
</Alert>
) : (
''
);
};

export default DeprecationAlertComponent;
2 changes: 2 additions & 0 deletions src/locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"Debugging Actions": "Debugging-Aktionen",
"Decline": "Ablehnen",
"Default Since Date Lookback": "Standard seit Datumsrückblick",
"Deprecation": "<1>Operations Console</1> ist die neue und verbesserte Version von PD Live und ein unterstütztes Produkt von PagerDuty. Bitte planen Sie, anstelle von PD Live zu Operations Console zu migrieren.",
"Description": "Beschreibung",
"Detailed Status": "Detaillierter Status",
"Disclaimer & License": "Haftungsausschluss & Lizenz",
Expand Down Expand Up @@ -151,6 +152,7 @@
"OK": "OK",
"on": "ein",
"Open Incidents": "Offene Vorfälle",
"PD Live is deprecated": "PD Live ist veraltet",
"Please contact the associated site owner for access": "Bitte wenden Sie sich an den Eigentümer der zugehörigen Website, um Zugriff zu erhalten",
"Polling": "Abfragen",
"Presets file is for a different subdomain": "Die Voreinstellungsdatei ist für eine andere Subdomain",
Expand Down
2 changes: 2 additions & 0 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"Debugging Actions": "Debugging Actions",
"Decline": "Decline",
"Default Since Date Lookback": "Default Since Date Lookback",
"Deprecation": "<1>Operations Console</1> is the new and improved version of PD Live, and is supported product from PagerDuty. Please plan to migrate to Operations Console instead.",
"Description": "Description",
"Detailed Status": "Detailed Status",
"Disclaimer & License": "Disclaimer & License",
Expand Down Expand Up @@ -151,6 +152,7 @@
"OK": "OK",
"on": "on",
"Open Incidents": "Open Incidents",
"PD Live is deprecated": "PD Live is deprecated",
"Please contact the associated site owner for access": "Please contact the associated site owner for access",
"Polling": "Polling",
"Presets file is for a different subdomain": "Presets file is for a different subdomain",
Expand Down
2 changes: 2 additions & 0 deletions src/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"Debugging Actions": "Acciones de depuración",
"Decline": "Rechazar",
"Default Since Date Lookback": "Vista previa de fecha de inicio predeterminada",
"Deprecation": "<1>Operations Console</1> es la versión nueva y mejorada de PD Live, y es un producto compatible de PagerDuty. Por favor, planee migrar a Operations Console en su lugar.",
"Description": "Descripción",
"Detailed Status": "Estado detallado",
"Disclaimer & License": "Aviso legal y licencia",
Expand Down Expand Up @@ -153,6 +154,7 @@
"OK": "OK",
"on": "en",
"Open Incidents": "Incidentes abiertos",
"PD Live is deprecated": "PD Live está obsoleto",
"Please contact the associated site owner for access": "Póngase en contacto con el propietario del sitio asociado para obtener acceso",
"Polling": "Sondeo",
"Presets file is for a different subdomain": "El archivo de preajustes es para un subdominio diferente",
Expand Down
2 changes: 2 additions & 0 deletions src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"Debugging Actions": "Actions de débogage",
"Decline": "Décliner",
"Default Since Date Lookback": "Défaut depuis la date de recherche",
"Deprecation": "<1>Operations Console</1> est la nouvelle version améliorée de PD Live, et est un produit pris en charge par PagerDuty. Veuillez prévoir de migrer vers Operations Console à la place.",
"Description": "Description",
"Detailed Status": "Statut détaillé",
"Disclaimer & License": "Clause de non-responsabilité et licence (en anglais)",
Expand Down Expand Up @@ -153,6 +154,7 @@
"OK": "OK",
"on": "sur",
"Open Incidents": "Incidents ouverts",
"PD Live is deprecated": "PD Live est obsolète",
"Please contact the associated site owner for access": "Please contact the associated site owner for access",
"Polling": "Interrogation",
"Presets file is for a different subdomain": "Le fichier de préréglages est pour un sous-domaine différent",
Expand Down
2 changes: 2 additions & 0 deletions src/locales/id/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"Debugging Actions": "Tindakan Debugging",
"Decline": "Tolak",
"Default Since Date Lookback": "Periode tampilan default",
"Deprecation": "<1>Operations Console</1> adalah versi baru dan ditingkatkan dari PD Live, dan merupakan produk yang didukung oleh PagerDuty. Silakan rencanakan untuk bermigrasi ke Operations Console sebagai gantinya.",
"Description": "Deskripsi",
"Detailed Status": "Status Detail",
"Disclaimer & License": "Sanggahan & Lisensi",
Expand Down Expand Up @@ -149,6 +150,7 @@
"OK": "OK",
"on": "on",
"Open Incidents": "Insiden yang Dibuka",
"PD Live is deprecated": "PD Live sudah tidak digunakan lagi",
"Please contact the associated site owner for access": "Silakan hubungi pemilik situs terkait untuk akses",
"Polling": "Polling",
"Presets file is for a different subdomain": "File preset untuk subdomain yang berbeda",
Expand Down
2 changes: 2 additions & 0 deletions src/locales/ja/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"Debugging Actions": "デバッグアクション",
"Decline": "拒否",
"Default Since Date Lookback": "デフォルト表示期間",
"Deprecation": "<1>Operations Console</1> はPD Liveの新しいバージョンであり、PagerDutyからサポートされている製品です。代わりにOperations Consoleに移行する予定です。",
"Description": "説明",
"Detailed Status": "詳細ステータス",
"Disclaimer & License": "免責事項・ライセンス",
Expand Down Expand Up @@ -149,6 +150,7 @@
"OK": "OK",
"on": "。対象:",
"Open Incidents": "オープンインシデント",
"PD Live is deprecated": "PD Liveは非推奨です",
"Please contact the associated site owner for access": "アクセスするには、サイトオーナーにお問い合わせください",
"Polling": "ポーリング中",
"Presets file is for a different subdomain": "プリセットファイルは別のサブドメイン用です",
Expand Down
2 changes: 2 additions & 0 deletions src/locales/pt-br/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"Debugging Actions": "Ações de Depuração",
"Decline": "Recusar",
"Default Since Date Lookback": "Retrospectiva a partir de Data Predefinida",
"Deprecation": "<1>Operations Console</1> é a nova e melhorada versão do PD Live, e é um produto suportado pela PagerDuty. Por favor, planeje migrar para o Operations Console em vez disso.",
"Description": "Descrição",
"Detailed Status": "Estado Detalhado",
"Disclaimer & License": "Aviso Legal & Licença",
Expand Down Expand Up @@ -153,6 +154,7 @@
"OK": "OK",
"on": "em",
"Open Incidents": "Incidentes Abertos",
"PD Live is deprecated": "PD Live está obsoleto",
"Please contact the associated site owner for access": "Por favor entre em contato com o proprietário do site associado para obter acesso",
"Polling": "Consultando",
"Presets file is for a different subdomain": "O arquivo de predefinições é para um subdomínio diferente",
Expand Down
2 changes: 2 additions & 0 deletions src/locales/pt/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"Debugging Actions": "Ações de Depuração",
"Decline": "Recusar",
"Default Since Date Lookback": "Retrospetiva a partir de Data Predefinida",
"Deprecation": "<1>Operations Console</1> é a nova e melhorada versão do PD Live, e é um produto suportado pela PagerDuty. Por favor, planeie migrar para o Operations Console em vez disso.",
"Description": "Descrição",
"Detailed Status": "Estado Detalhado",
"Disclaimer & License": "Aviso Legal & Licença",
Expand Down Expand Up @@ -153,6 +154,7 @@
"OK": "OK",
"on": "em",
"Open Incidents": "Incidentes Abertos",
"PD Live is deprecated": "PD Live está obsoleto",
"Please contact the associated site owner for access": "Por favor entre em contato com o proprietário do site associado para obter acesso",
"Polling": "A sondar",
"Presets file is for a different subdomain": "O ficheiro de predefinições é para um subdomínio diferente",
Expand Down

0 comments on commit 3b2097d

Please sign in to comment.