From 6b90df9cf027bd602cd75cc08da8cf9a2b047d5d Mon Sep 17 00:00:00 2001 From: KC Hawes-Domingue Date: Fri, 23 Aug 2024 11:48:12 -0500 Subject: [PATCH 1/3] Fix invisible scroll bar on release pipeline logs --- src/azdo-pr-dashboard.user.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/azdo-pr-dashboard.user.js b/src/azdo-pr-dashboard.user.js index 87cdf04..ce40392 100644 --- a/src/azdo-pr-dashboard.user.js +++ b/src/azdo-pr-dashboard.user.js @@ -147,6 +147,10 @@ watchForRepoBrowsingPages(session); }); + eus.onUrl(/\/(_releaseProgress)/gi, (session, urlMatch) => { + fixScrollBarColor(isDarkTheme); + }); + // Throttle page update events to avoid using up CPU when AzDO is adding a lot of elements during a short time (like on page load). const onPageUpdatedThrottled = _.throttle(onPageUpdated, 400, { leading: false, trailing: true }); @@ -1326,6 +1330,14 @@ }); } + function fixScrollBarColor(isDarkTheme) { + if (isDarkTheme) { + GM_addStyle('.custom-scrollbar { scrollbar-color: rgb(99 99 99) black !important; }'); + } else { + GM_addStyle('.custom-scrollbar { scrollbar-color: rgb(0 0 0 / 20%) white !important; }'); + } + } + async function watchForLVDiffsAndAddNIBinaryDiffButton(session) { // NI Binary Diff is only supported on Windows if (navigator.userAgent.indexOf('Windows') === -1) return; From 010a2124e7e622bb4f7822cd393ea3267ecae95d Mon Sep 17 00:00:00 2001 From: KC Hawes-Domingue Date: Fri, 23 Aug 2024 11:55:47 -0500 Subject: [PATCH 2/3] Update version --- src/azdo-pr-dashboard.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azdo-pr-dashboard.user.js b/src/azdo-pr-dashboard.user.js index ce40392..1c14757 100644 --- a/src/azdo-pr-dashboard.user.js +++ b/src/azdo-pr-dashboard.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name More Awesome Azure DevOps (userscript) -// @version 3.7.5 +// @version 3.7.6 // @author Alejandro Barreto (NI) // @description Makes general improvements to the Azure DevOps experience, particularly around pull requests. Also contains workflow improvements for NI engineers. // @license MIT From 19f378de913d1c6882daa89b185adb4ddb057e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KC=20Hawes-Domingue=20=F0=9F=A6=9C?= Date: Fri, 23 Aug 2024 12:19:03 -0500 Subject: [PATCH 3/3] Don't bother with themes - log window is always black --- src/azdo-pr-dashboard.user.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/azdo-pr-dashboard.user.js b/src/azdo-pr-dashboard.user.js index 1c14757..2e447c8 100644 --- a/src/azdo-pr-dashboard.user.js +++ b/src/azdo-pr-dashboard.user.js @@ -148,7 +148,7 @@ }); eus.onUrl(/\/(_releaseProgress)/gi, (session, urlMatch) => { - fixScrollBarColor(isDarkTheme); + fixScrollBarColor(); }); // Throttle page update events to avoid using up CPU when AzDO is adding a lot of elements during a short time (like on page load). @@ -1330,12 +1330,8 @@ }); } - function fixScrollBarColor(isDarkTheme) { - if (isDarkTheme) { - GM_addStyle('.custom-scrollbar { scrollbar-color: rgb(99 99 99) black !important; }'); - } else { - GM_addStyle('.custom-scrollbar { scrollbar-color: rgb(0 0 0 / 20%) white !important; }'); - } + function fixScrollBarColor() { + GM_addStyle('.custom-scrollbar { scrollbar-color: rgb(99 99 99) black !important; }'); } async function watchForLVDiffsAndAddNIBinaryDiffButton(session) {