mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Update footer changelog link to github (#57871)
This commit is contained in:
@@ -62,7 +62,7 @@ var config = {
|
|||||||
url: '${HOST}/login',
|
url: '${HOST}/login',
|
||||||
wait: 500,
|
wait: 500,
|
||||||
rootElement: '.main-view',
|
rootElement: '.main-view',
|
||||||
threshold: 12,
|
threshold: 13,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '${HOST}/login',
|
url: '${HOST}/login',
|
||||||
@@ -74,7 +74,7 @@ var config = {
|
|||||||
"click element button[aria-label='Login button']",
|
"click element button[aria-label='Login button']",
|
||||||
"wait for element [aria-label='Skip change password button'] to be visible",
|
"wait for element [aria-label='Skip change password button'] to be visible",
|
||||||
],
|
],
|
||||||
threshold: 13,
|
threshold: 14,
|
||||||
rootElement: '.main-view',
|
rootElement: '.main-view',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -101,49 +101,49 @@ var config = {
|
|||||||
rootElement: '.main-view',
|
rootElement: '.main-view',
|
||||||
// the unified alerting promotion alert's content contrast is too low
|
// the unified alerting promotion alert's content contrast is too low
|
||||||
// see https://github.com/grafana/grafana/pull/41829
|
// see https://github.com/grafana/grafana/pull/41829
|
||||||
threshold: 5,
|
threshold: 6,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '${HOST}/datasources',
|
url: '${HOST}/datasources',
|
||||||
wait: 500,
|
wait: 500,
|
||||||
rootElement: '.main-view',
|
rootElement: '.main-view',
|
||||||
threshold: 0,
|
threshold: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '${HOST}/org/users',
|
url: '${HOST}/org/users',
|
||||||
wait: 500,
|
wait: 500,
|
||||||
rootElement: '.main-view',
|
rootElement: '.main-view',
|
||||||
threshold: 0,
|
threshold: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '${HOST}/org/teams',
|
url: '${HOST}/org/teams',
|
||||||
wait: 500,
|
wait: 500,
|
||||||
rootElement: '.main-view',
|
rootElement: '.main-view',
|
||||||
threshold: 0,
|
threshold: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '${HOST}/plugins',
|
url: '${HOST}/plugins',
|
||||||
wait: 500,
|
wait: 500,
|
||||||
rootElement: '.main-view',
|
rootElement: '.main-view',
|
||||||
threshold: 0,
|
threshold: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '${HOST}/org',
|
url: '${HOST}/org',
|
||||||
wait: 500,
|
wait: 500,
|
||||||
rootElement: '.main-view',
|
rootElement: '.main-view',
|
||||||
threshold: 0,
|
threshold: 1,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '${HOST}/org/apikeys',
|
url: '${HOST}/org/apikeys',
|
||||||
wait: 500,
|
wait: 500,
|
||||||
rootElement: '.main-view',
|
rootElement: '.main-view',
|
||||||
threshold: 3,
|
threshold: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
url: '${HOST}/dashboards',
|
url: '${HOST}/dashboards',
|
||||||
wait: 500,
|
wait: 500,
|
||||||
rootElement: '.main-view',
|
rootElement: '.main-view',
|
||||||
threshold: 0,
|
threshold: 1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -40,11 +40,10 @@ export let getFooterLinks = (): FooterLink[] => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function getVersionMeta(version: string) {
|
export function getVersionMeta(version: string) {
|
||||||
const containsHyphen = version.includes('-');
|
|
||||||
const isBeta = version.includes('-beta');
|
const isBeta = version.includes('-beta');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
hasReleaseNotes: !containsHyphen || isBeta,
|
hasReleaseNotes: true,
|
||||||
isBeta,
|
isBeta,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -65,17 +64,13 @@ export let getVersionLinks = (): FooterLink[] => {
|
|||||||
return links;
|
return links;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { hasReleaseNotes, isBeta } = getVersionMeta(buildInfo.version);
|
const { hasReleaseNotes } = getVersionMeta(buildInfo.version);
|
||||||
const versionSlug = buildInfo.version.replace(/\./g, '-'); // replace all periods with hyphens
|
|
||||||
const docsVersion = isBeta ? 'next' : 'latest';
|
|
||||||
|
|
||||||
links.push({
|
links.push({
|
||||||
target: '_blank',
|
target: '_blank',
|
||||||
id: 'version',
|
id: 'version',
|
||||||
text: `v${buildInfo.version} (${buildInfo.commit})`,
|
text: `v${buildInfo.version} (${buildInfo.commit})`,
|
||||||
url: hasReleaseNotes
|
url: hasReleaseNotes ? `https://github.com/grafana/grafana/blob/main/CHANGELOG.md` : undefined,
|
||||||
? `https://grafana.com/docs/grafana/${docsVersion}/release-notes/release-notes-${versionSlug}/`
|
|
||||||
: undefined,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (buildInfo.hasUpdate) {
|
if (buildInfo.hasUpdate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user