azdo-userscripts icon indicating copy to clipboard operation
azdo-userscripts copied to clipboard

Add agent status and enabled state to page summary

Open humberto-garza opened this issue 4 years ago • 2 comments

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

image

After

Agent that is online and enabled image

Agent that is online and disabled image

Agent that is offline and enabled image

Agent that is offline and disabled image

humberto-garza avatar Jan 11 '22 01:01 humberto-garza

@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

alejandro5042 avatar Nov 30 '22 01:11 alejandro5042

@humberto-garza - Is this still a desired PR?

alejandro5042 avatar Jan 25 '23 06:01 alejandro5042