diff --git a/frontend/src/component/project/Project/ProjectHealth/ReportTable/ReportCard/ReportCard.tsx b/frontend/src/component/project/Project/ProjectHealth/ReportTable/ReportCard/ReportCard.tsx index 671851fe01..b51e0cb10c 100644 --- a/frontend/src/component/project/Project/ProjectHealth/ReportTable/ReportCard/ReportCard.tsx +++ b/frontend/src/component/project/Project/ProjectHealth/ReportTable/ReportCard/ReportCard.tsx @@ -1,9 +1,12 @@ -import { Box, Paper, styled } from '@mui/material'; +import { Box, Link, Paper, styled } from '@mui/material'; import CheckIcon from '@mui/icons-material/Check'; +import { Link as RouterLink } from 'react-router-dom'; import ReportProblemOutlinedIcon from '@mui/icons-material/ReportProblemOutlined'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import ReactTimeAgo from 'react-timeago'; import { IProjectHealthReport } from 'interfaces/project'; +import { HtmlTooltip } from 'component/common/HtmlTooltip/HtmlTooltip'; +import { InfoOutlined } from '@mui/icons-material'; const StyledBoxActive = styled(Box)(({ theme }) => ({ display: 'flex', @@ -39,6 +42,8 @@ const StyledPaper = styled(Paper)(({ theme }) => ({ const StyledHeader = styled('h2')(({ theme }) => ({ fontSize: theme.fontSizes.mainHeader, marginBottom: theme.spacing(1), + justifyItems: 'center', + display: 'flex', })); const StyledHealthRating = styled('p')(({ theme }) => ({ @@ -98,6 +103,30 @@ export const ReportCard = ({ healthReport }: IReportCardProps) => { ); + const StalenessInfoIcon = () => ( + + If your toggle exceeds the expected lifetime of it's toggle + type it will be marked as potentially stale. + + + Read more in the documentation + + + + } + > + theme.palette.text.secondary, ml: 1 }} + /> + + ); + return ( @@ -149,7 +178,12 @@ export const ReportCard = ({ healthReport }: IReportCardProps) => { - Potential actions + + Potential actions{' '} + + + +
  • { - Review your feature toggles and delete unused - toggles. - + <> + + Review your feature toggles and delete unused + toggles. + + + + Configure feature types lifetime + + + } elseShow={No action is required} /> diff --git a/src/mailtemplates/schedule-change-conflict/scheduled-change-conflict.html b/src/mailtemplates/schedule-change-conflict/scheduled-change-conflict.html new file mode 100644 index 0000000000..dbc58b2807 --- /dev/null +++ b/src/mailtemplates/schedule-change-conflict/scheduled-change-conflict.html @@ -0,0 +1,527 @@ + + + + + *|MC:SUBJECT|* + + + +
    + + + + +
    + + + + + + + + + + + + + + +
    + + + + + + + + +
    + Scheduled changes can no longer be applied + + Email not displaying correctly?
    View it in your browser. +
    + +
    + + + + + +
    + +
    + +
    + + + + + +
    +

    Conflict detected in a scheduled change

    + +
    + {{ conflict }}. Scheduled change requests that use this {{ conflictScope }} can no longer be applied and their scheduled applications will fail{{#conflictResolution}}{{.}}{{/conflictResolution}}{{^conflictResolution}}.{{/conflictResolution}} +
    + For you, this concerns change requests: +
    + {{#changeRequests}} + + {{/changeRequests}} +
    + +
    + + + + + + + + + +
    + Follow us on Github +
    + Copyright © {{ year }} | Bricks Software | All rights reserved. +
    + +
    + Our mailing address is: team@getunleash.io +
    + +
    + +
    + +
    +
    + + diff --git a/src/mailtemplates/scheduled-execution-failed/scheduled-execution-failed.html b/src/mailtemplates/scheduled-execution-failed/scheduled-execution-failed.html new file mode 100644 index 0000000000..acab22bd22 --- /dev/null +++ b/src/mailtemplates/scheduled-execution-failed/scheduled-execution-failed.html @@ -0,0 +1,522 @@ + + + + + *|MC:SUBJECT|* + + + +
    + + + + +
    + + + + + + + + + + + + + + +
    + + + + + + + + +
    + Scheduled change request failed to apply + + Email not displaying correctly?
    View it in your browser. +
    + +
    + + + + + +
    + +
    + +
    + + + + + +
    +

    Scheduled change request failed to apply

    + +
    + Scheduled change request {{{ changeRequestTitle }}} failed to apply at {{{ scheduledAt }}} due to {{{ errorMessage }}}. +
    + You can reschedule the change request to try again later or reject the changes to close it. +
    +
    + +
    + + + + + + + + + +
    + Follow us on Github +
    + Copyright © {{ year }} | Bricks Software | All rights reserved. +
    + +
    + Our mailing address is: team@getunleash.io +
    + +
    + +
    + +
    +
    + +