You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today we discussed Jira a bit, and one of the shortcomings of GitHub roadmaps that was discussed was the inability to colorize, particularly around flexibility. I wanted to take a quick look at a customization strategy that may help until GitHub has better native support for that. So I opened this page:
functionsearchText(element,text){varparent=element.parentElement.parentElement;// search recursively over the descendants to see if any child has textContentletmatched=false;constsearch=node=>{if(node.textContent.includes(text)){matched=true;}else{node.childNodes.forEach(search);}}search(parent);returnmatched;};setInterval(()=>{Array.from(document.getElementsByTagName('span')).forEach(element=>{if(element.classList.contains('Label-sc-1dgcne-0')&&element.classList.contains('prxXS')){if(searchText(element,'PhET-iO')){element.style['background-color']='pink';}elseif(searchText(element,'Publish')){element.style['background-color']='yellow';}}});},10);
This says cells with PhET-iO should be pink, and cells with "Publish" should be yellow, as a demo. (We could write whatever rules we want). It renders like this:
This is something we could run automatically via a bookmarklet or tampermonkey. It would be somewhat fragile--if GitHub updated some implementation details in the CSS or DOM, we would have to update this code. Other features like time tracking or nested issues would not be supportable. But I just wanted to write it down as an idea.
The text was updated successfully, but these errors were encountered:
Today we discussed Jira a bit, and one of the shortcomings of GitHub roadmaps that was discussed was the inability to colorize, particularly around flexibility. I wanted to take a quick look at a customization strategy that may help until GitHub has better native support for that. So I opened this page:
https://github.com/orgs/phetsims/projects/66/views/2
And ran this code:
The logic is in this part:
This says cells with PhET-iO should be pink, and cells with "Publish" should be yellow, as a demo. (We could write whatever rules we want). It renders like this:
This is something we could run automatically via a bookmarklet or tampermonkey. It would be somewhat fragile--if GitHub updated some implementation details in the CSS or DOM, we would have to update this code. Other features like time tracking or nested issues would not be supportable. But I just wanted to write it down as an idea.
The text was updated successfully, but these errors were encountered: