diff --git a/grafana-plugin/CHANGELOG.md b/grafana-plugin/CHANGELOG.md index f66f1b73d..585b848c9 100644 --- a/grafana-plugin/CHANGELOG.md +++ b/grafana-plugin/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.9.28](https://github.com/grafana/irm/compare/grafana-oncall-app-v1.9.27...grafana-oncall-app-v1.9.28) (2024-10-01) + + +### Bug Fixes + +* disallow oncall schedule rotation layer/overrides CUD form submissions more than once ([#193](https://github.com/grafana/irm/issues/193)) ([73ae1c7](https://github.com/grafana/irm/commit/73ae1c7d78474b42b9eb4305416828afeb04fa3a)) + + +### Miscellaneous Chores + +* implement merged IRM module.tsx ([#182](https://github.com/grafana/irm/issues/182)) ([995b573](https://github.com/grafana/irm/commit/995b5732493aabc226cd62b9ca52a1e582ef5878)) + ## [1.9.27](https://github.com/grafana/irm/compare/grafana-oncall-app-v1.9.26...grafana-oncall-app-v1.9.27) (2024-09-26) diff --git a/grafana-plugin/package.json b/grafana-plugin/package.json index c4a9b55d2..a96090492 100644 --- a/grafana-plugin/package.json +++ b/grafana-plugin/package.json @@ -1,6 +1,6 @@ { "name": "grafana-oncall-app", - "version": "1.9.27", + "version": "1.9.28", "description": "Grafana OnCall Plugin", "scripts": { "lint": "eslint --ext .js,.jsx,.ts,.tsx --max-warnings=20 ./src ./e2e-tests", diff --git a/grafana-plugin/src/components/Policy/EscalationPolicy.tsx b/grafana-plugin/src/components/Policy/EscalationPolicy.tsx index 7f341eb94..aee19dad1 100644 --- a/grafana-plugin/src/components/Policy/EscalationPolicy.tsx +++ b/grafana-plugin/src/components/Policy/EscalationPolicy.tsx @@ -131,6 +131,8 @@ class _EscalationPolicy extends React.Component { return this.renderNumAlertsInWindow(); case 'num_minutes_in_window': return this.renderNumMinutesInWindowOptions(); + case 'severity': + return this.renderSeverities(); default: console.warn('Unknown escalation step placeholder'); return ''; @@ -248,6 +250,34 @@ class _EscalationPolicy extends React.Component { ); } + renderSeverities() { + const { + data, + isDisabled, + theme, + store: { escalationPolicyStore }, + } = this.props; + const styles = getEscalationPolicyStyles(theme); + const { severity } = data; + + return ( + +