Feature request: packages page, group by task

Currently I’m running Array.from(document.querySelectorAll('tr td span a')).reduce((p, el) => { p[el.textContent.trim()] = (p[el.textContent.trim()] || 0) + 1; return p; }, {}); in the console to get a count of tasks by type, so i can then “find in page” for the ones I care about.

In other words, with a small number of packages, the current UI might be fine, but with a large number of packages, I often want to a) hide packages that don’t have any open tasks; b) hide/ignore specific tasks that I don’t plan to do right now, c) see all packages for a single task that i do plan to do right now (like, doing all of the 2FA tasks at once, for example).

Is there any chance this page could get some options for filtering/grouping of tasks?

@ljharb thank you for submitting. I’ve logged this request to review with the team and I’ll keep you posted on what we’re thinking.

If anyone else has thoughts on this, please share!

1 Like

In the meantime, I’ve made this bookmarklet:

javascript:var%20header%20=%20document.querySelector('.main-container%20.user-controls');console.log(header);%20header.innerHTML%20=%20'%3Ctable%20style=%22font-size:%2060%25%22%3E%3Ctr%20cellspacing=10%3E%3C/tr%3E%3C/table%3E%3C/small%3E';%20var%20tr%20=%20header.querySelector('tr');%20Object.entries(Array.from(document.querySelectorAll('tr%20td%20span%20a')).reduce((p,%20el)%20=%3E%20%7B%20p.total%20=%20(p.total%20%7C%7C%200)%20+%201;%20p%5Bel.textContent.trim()%5D%20=%20(p%5Bel.textContent.trim()%5D%20%7C%7C%200)%20+%201;%20return%20p;%20%7D,%20%7B%7D)).forEach((%5Btask,%20count%5D)%20=%3E%20%7B%20const%20td%20=%20document.createElement('td');%20td.setAttribute('style',%20'padding:%200%2010px;%20font-weight:%20bold');%20td.append(task,%20document.createElement('br'),%20count);%20tr.appendChild(td);%20%7D)

which totals up the number of packages and number of tasks by type, and sneaks them into the header - it also removes any rows that have zero open tasks. This lets me at-a-glance see what task category I want to focus on, and then I use “find in page” to jump to the appropriate packages.

1 Like