Skip to content

Commit

Permalink
feat: add tooltip to on-call notification label for clarity (#4219)
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus authored Dec 26, 2024
1 parent 22265b2 commit b8acc00
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Radio,
RadioGroup,
TextField,
Tooltip,
Typography,
} from '@mui/material'
import makeStyles from '@mui/styles/makeStyles'
Expand All @@ -20,6 +21,7 @@ import { EVERY_DAY, NO_DAY } from './util'
import { useSchedOnCallNotifyTypes } from '../../util/RequireConfig'
import { DestinationInput, WeekdayFilter } from '../../../schema'
import DestinationField from '../../selection/DestinationField'
import { Info } from '@mui/icons-material'

const days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']

Expand Down Expand Up @@ -100,7 +102,14 @@ export default function ScheduleOnCallNotificationsForm(
<FormControlLabel
data-cy='notify-on-change'
disabled={props.disabled}
label='Notify when on-call changes'
label={
<React.Fragment>
Notify when on-call changes{' '}
<Tooltip title='When multiple rules are configured, including timed notifications, only a single message will be sent to each destination when a change occurs.'>
<Info />
</Tooltip>
</React.Fragment>
}
value='on-change'
control={<Radio />}
/>
Expand Down

0 comments on commit b8acc00

Please sign in to comment.