From 5b4090662b611b46f49373d2b52287d0a1f92460 Mon Sep 17 00:00:00 2001 From: Kyle Roeschley Date: Tue, 22 Jul 2025 15:35:02 -0400 Subject: [PATCH 1/3] Switch to working MutationObserver for responding to page updates --- src/azdo-pr-dashboard.user.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/azdo-pr-dashboard.user.js b/src/azdo-pr-dashboard.user.js index 79df467..2b71ee3 100644 --- a/src/azdo-pr-dashboard.user.js +++ b/src/azdo-pr-dashboard.user.js @@ -155,7 +155,9 @@ onPageUpdatedThrottled.flush(); // Call our event handler if we notice new elements being inserted into the DOM. This happens as the page is loading or updating dynamically based on user activity. - $('body > div.full-size')[0].addEventListener('DOMNodeInserted', onPageUpdatedThrottled); + const targetNode = $('body > div.full-size')[0]; + const observer = new MutationObserver(onPageUpdatedThrottled); + observer.observe(targetNode, {childList: true, subtree: true}); } function watchForStatusCardAndMoveToRightSideBar(session) { From bc8d500806343d802f25fe2174ba6429c2ca7def Mon Sep 17 00:00:00 2001 From: Kyle Roeschley Date: Thu, 7 Aug 2025 11:55:32 -0400 Subject: [PATCH 2/3] Bump version and populate update notification --- src/azdo-pr-dashboard.user.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/azdo-pr-dashboard.user.js b/src/azdo-pr-dashboard.user.js index 2b71ee3..1a42d3f 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.8.0 +// @version 3.8.1 // @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 @@ -76,14 +76,12 @@ 'agent-arbitration-status-off': 'Off', }); - eus.showTipOnce('release-2024-06-06', 'New in the AzDO userscript', ` -

Highlights from the 2024-06-06 update!

-

Changes to the build logs view:

+ eus.showTipOnce('release-2025-08-08', 'New in the AzDO userscript', ` +

Highlights from the 2025-08-08 update!

-

See also other changes since our last update notification.

-

Comments, bugs, suggestions? File an issue on GitHub 🧡

`); } From 4e277f676ca2b0572cabf3550c0987106c4179e8 Mon Sep 17 00:00:00 2001 From: Kyle Roeschley Date: Thu, 7 Aug 2025 12:06:30 -0400 Subject: [PATCH 3/3] Fix up linting error --- 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 1a42d3f..382f734 100644 --- a/src/azdo-pr-dashboard.user.js +++ b/src/azdo-pr-dashboard.user.js @@ -155,7 +155,7 @@ // Call our event handler if we notice new elements being inserted into the DOM. This happens as the page is loading or updating dynamically based on user activity. const targetNode = $('body > div.full-size')[0]; const observer = new MutationObserver(onPageUpdatedThrottled); - observer.observe(targetNode, {childList: true, subtree: true}); + observer.observe(targetNode, { childList: true, subtree: true }); } function watchForStatusCardAndMoveToRightSideBar(session) {