Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Resize handle to build left panel #236

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/azdo-pr-dashboard.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==

// @name More Awesome Azure DevOps (userscript)
// @version 3.7.3
// @version 3.7.4
// @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
Expand Down Expand Up @@ -115,6 +115,7 @@
watchForWorkItemForms();
watchForNewDiffs(isDarkTheme);
watchForShowMoreButtons();
watchForBuildResultsPage();

if (atNI) {
watchForDiffHeaders();
Expand Down Expand Up @@ -1435,6 +1436,14 @@
});
}

function watchForBuildResultsPage() {
eus.onUrl(/\/(_build\/results)/gi, (session, urlMatch) => {
session.onEveryNew(document, '.bolt-master-panel', panel => {
$(panel).css('resize', 'horizontal');
});
});
}

async function enhancePullRequestRow(row, sectionTitle) {
const pullRequestUrl = new URL(row.href, window.location.origin);
const pullRequestId = parseInt(pullRequestUrl.pathname.substring(pullRequestUrl.pathname.lastIndexOf('/') + 1), 10);
Expand Down
Loading