UI: Add 1.17 changes to upgrade alert (#26843)

* add upgrade alert for 1.17

* add acme clients to modal export text

* add to mirage for tests

* add test
This commit is contained in:
claire bontempo
2024-05-06 18:56:37 +01:00
committed by GitHub
parent f298ef763a
commit 843270df7c
5 changed files with 25 additions and 13 deletions

View File

@@ -35,12 +35,13 @@ export const filterVersionHistory = (
end: string
) => {
if (versionHistory) {
const notableUpgrades = ['1.9', '1.10', '1.17'];
const upgrades = versionHistory.reduce((array: ClientsVersionHistoryModel[], upgradeData) => {
const includesVersion = (v: string) =>
// only add first match, disregard subsequent patch releases of the same version
upgradeData.version.match(v) && !array.some((d: ClientsVersionHistoryModel) => d.version.match(v));
['1.9', '1.10'].forEach((v) => {
notableUpgrades.forEach((v) => {
if (includesVersion(v)) array.push(upgradeData);
});