sync: auto-sync from HOWARD-HOME at 2026-07-18 11:56:15

Author: Howard Enos
Machine: HOWARD-HOME
Timestamp: 2026-07-18 11:56:15
This commit is contained in:
2026-07-18 11:56:43 -07:00
parent f3080f4960
commit 90e25f0979

View File

@@ -253,9 +253,8 @@ async function loadLabels() {
async function loadIssues() {
allIssues = [];
const states = showClosed ? ['open','closed'] : ['open'];
const fetches = ALL_REPOS.map(async repo => {
for (const state of states) {
for (const state of ['open', 'closed']) {
let page=1;
while(true) {
try {
@@ -336,7 +335,8 @@ function getFiltered() {
const q = searchText.toLowerCase();
items = items.filter(i => i.title.toLowerCase().includes(q) || (i.body||'').toLowerCase().includes(q) || ('#'+i.number).includes(q));
}
if (!showClosed) items = items.filter(i => i.state !== 'closed');
// showClosed controls list view; board view always shows done column
if (!showClosed && currentView === 'list') items = items.filter(i => i.state !== 'closed');
return items;
}
@@ -425,8 +425,8 @@ function renderToolbar() {
<button class="btn ${currentView==='board'?'active':''}" onclick="currentView='board';renderMain()">Board</button>
<button class="btn ${currentView==='list'?'active':''}" onclick="currentView='list';renderMain()">List</button>
</div>
<button class="btn ${showClosed?'active':''}" onclick="showClosed=!showClosed;loadIssues()">
${showClosed ? 'Showing closed' : 'Show closed'}
<button class="btn ${showClosed?'active':''}" onclick="showClosed=!showClosed;renderMain()">
${showClosed ? 'Hiding closed in list' : 'Show closed in list'}
</button>
<button class="btn btn-primary" onclick="showNewIssue()">+ New Issue</button>
<button class="btn" onclick="loadIssues()">Refresh</button>