azdo-userscripts
azdo-userscripts copied to clipboard
Add agent status and enabled state to page summary
Description
When looking at the agent page, there is no way to tell if it is enabled or not or if it is online or not.
Implementation
Add a watcher to check for the agent page and when it finds the agent title row, query the agent status and add it to the view.
Testing
Before

After
Agent that is online and enabled

Agent that is online and disabled

Agent that is offline and enabled

Agent that is offline and disabled

@humberto-garza: Still interested in this PR? You have a few build failures to fix then we can enable it:
Error: 926:18 error 'watchForAgentPage' is already defined no-redeclare
Error: 951:62 error ["team"] is better written in dot notation dot-notation
Error: 953:56 error ["pool"] is better written in dot notation dot-notation
Error: 956:7 error Expected space(s) after "if" keyword-spacing
Error: 956:[28](https://github.com/alejandro5042/azdo-userscripts/actions/runs/3579620566/jobs/6020997280#step:4:29) error Expected '===' and instead saw '==' eqeqeq
Error: 957:45 error Strings must use singlequote quotes
Error: 957:55 error Operator ':' must be spaced space-infix-ops
Error: 957:56 error Strings must use singlequote quotes
@humberto-garza - Is this still a desired PR?