ai-agentmanager 1.26.1 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/public/actions.js +16 -2
- package/public/app.js +18 -6
- package/public/bughunt.js +316 -0
- package/public/index.html +27 -0
- package/public/issues.js +22 -2
- package/public/keys.js +4 -2
- package/public/style.css +31 -0
- package/public/support.js +168 -0
- package/public/today.js +88 -5
- package/src/bughunt.js +475 -0
- package/src/issues.js +3 -0
- package/src/jira.js +34 -10
- package/src/manager.js +20 -6
- package/src/server.js +41 -3
- package/src/support.js +156 -0
- package/src/today.js +25 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.28.0 (2026-11-07)
|
|
4
|
+
|
|
5
|
+
- **Bug hunts.** *Bugs* (or `b`) runs agents that look for bugs in the background, in a project or one folder of it: in what changed since the last run, or the whole module a part at a time, for any bug or the kinds you pick (races, error handling, leaks, security, data). A hunt runs by hand (*Hunt now*) or every night, one at a time, and stops at its cost limit. The hunter reads the code and runs the tests on its own copy and never commits or pushes. Each bug must come with evidence (a failing test, or the path through the code), and the AI judge checks each one against the code: only those that hold up are listed, worst first, and nothing is reported twice. On each: *Fix* starts an agent with the finding and its test, *File it* opens a filled-in GitHub issue (or copies it as Markdown), *Not a bug* keeps it from coming back, *Snooze* hides it until tomorrow or Monday. Critical and high ones show in Today.
|
|
6
|
+
|
|
7
|
+
## 1.27.0 (2026-11-07)
|
|
8
|
+
|
|
9
|
+
- **Jira on your company's own address.** With your site saved in Settings → Jira, every issue's summary and status are asked of that site, whatever address its link has (links often use the company's own domain, like `jira.company.com`, while the API answers on `company.atlassian.net`). A site that sends the API on to its Atlassian address is followed there (and only there). When Jira says it can't find an issue, the Jira list says so: usually the email in Settings isn't the one you sign in to Jira with.
|
|
10
|
+
- **Bring back what you set aside, and undo.** Today has a *Set aside* section listing what you skipped, marked done or removed, each with *Bring back*, and *Bring all back*. Skip, Done and Bring back offer *Undo* on their message (or press `u` in Today). The Jira and Actions lists offer *Undo* after each change too, and *Bring all back* on their Skipped, Done and Removed filters. Messages now show over an open window, so their buttons can be clicked.
|
|
11
|
+
- **Report a problem or idea.** In the menu (☰), *Report a problem or idea…* takes a title, the details and a screenshot: paste it (⌘V), drop an image, choose a file, or capture the screen. The report is kept on your computer (`support/` in the home folder), and GitHub opens with a new issue filled in, including the version, OS and which lists are on (no names, folders or tokens). The screenshot is put on your clipboard to paste there. Nothing is posted until you submit it on GitHub.
|
|
12
|
+
|
|
3
13
|
## 1.26.1 (2026-11-07)
|
|
4
14
|
|
|
5
15
|
- **Jira says why it isn't working.** When your Jira site can't be used (the token isn't accepted, the site sends a sign-in page, it can't be reached), the Jira list and Today say so in words instead of just showing no summaries or statuses. Settings → Jira has a **Check Jira** button that asks the site for your open issues and says how many it found, or why it couldn't.
|
package/package.json
CHANGED
package/public/actions.js
CHANGED
|
@@ -95,6 +95,7 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
|
|
|
95
95
|
<option value="">pick a project</option>
|
|
96
96
|
${list.map((p) => `<option value="${esc(p.key)}" ${p.key === project ? 'selected' : ''}>${esc(p.name ?? p.key)}</option>`).join('')}
|
|
97
97
|
</select></label>
|
|
98
|
+
${['skipped', 'done', 'removed'].includes(filter) && rows.length ? `<button class="small" data-act="back-all" title="Every one here back to open, undecided">Bring all ${rows.length} back</button>` : ''}
|
|
98
99
|
<button class="small" data-act="refresh" title="Look again (r)">↻</button>
|
|
99
100
|
${expandButton(dialog)}
|
|
100
101
|
<button class="small" data-act="close" title="Close (Esc)">Close</button>
|
|
@@ -117,14 +118,19 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
|
|
|
117
118
|
const render = holdWhilePicking(body, draw);
|
|
118
119
|
expandable(dialog, draw);
|
|
119
120
|
|
|
120
|
-
async function set(ids, state) {
|
|
121
|
+
async function set(ids, state, { undoing = false } = {}) {
|
|
121
122
|
if (busy) return;
|
|
122
123
|
busy = true;
|
|
124
|
+
// What each was before, to take the change back.
|
|
125
|
+
const before = new Map(ids.map((id) => [id, data?.rows.find((x) => x.id === id)?.status ?? 'open']));
|
|
123
126
|
try {
|
|
124
127
|
const r = await api('POST', '/actions/set', { ids, state, project: project || null });
|
|
125
128
|
const bad = r.failed.map((x) => x.reason).join('; ');
|
|
126
129
|
const label = STATES.find(([v]) => v === state)?.[1] ?? state;
|
|
127
|
-
|
|
130
|
+
const msg = r.started.length ? `Agent ${r.started.map((x) => x.agent.name).join(', ')} started` : bad ? `Not changed: ${bad}` : state === 'open' ? (ids.length > 1 ? `${r.set.length} open again` : 'Open again') : label;
|
|
131
|
+
// An agent once started stays; anything else can be taken back.
|
|
132
|
+
const undo = !undoing && r.set.length && !r.started.length ? { label: 'Undo', run: () => undoTo(r.set.map((id) => [id, before.get(id)])) } : null;
|
|
133
|
+
toast?.(msg, bad ? 8000 : undo ? 6000 : 2500, undo);
|
|
128
134
|
} catch (err) {
|
|
129
135
|
toast?.(err.message, 6000);
|
|
130
136
|
} finally {
|
|
@@ -133,6 +139,13 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
|
|
|
133
139
|
load();
|
|
134
140
|
}
|
|
135
141
|
|
|
142
|
+
/** Set each action back to what it was: [[id, status]]. */
|
|
143
|
+
async function undoTo(pairs) {
|
|
144
|
+
for (const state of new Set(pairs.map(([, st]) => st))) {
|
|
145
|
+
await set(pairs.filter(([, st]) => st === state).map(([id]) => id), state, { undoing: true });
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
136
149
|
async function discuss(id) {
|
|
137
150
|
try {
|
|
138
151
|
const r = await api('POST', `/actions/${id}/discuss`, {});
|
|
@@ -191,6 +204,7 @@ export function initActions({ api, $, esc, ago, toast, openAgent, projects = ()
|
|
|
191
204
|
const b = e.target.closest('[data-act]')?.dataset.act;
|
|
192
205
|
if (b === 'close') return dialog.close();
|
|
193
206
|
if (b === 'refresh') return load();
|
|
207
|
+
if (b === 'back-all') return set(data.rows.filter((r) => r.group === filter).map((r) => r.id), 'open');
|
|
194
208
|
});
|
|
195
209
|
|
|
196
210
|
function open() {
|
package/public/app.js
CHANGED
|
@@ -21,6 +21,7 @@ import { initPlaybooks } from '/playbooks.js';
|
|
|
21
21
|
import { initSetup } from '/setup.js';
|
|
22
22
|
import { initUpdate } from '/update.js';
|
|
23
23
|
import { initMenu } from '/menu.js';
|
|
24
|
+
import { initSupport } from '/support.js';
|
|
24
25
|
import { initCode } from '/code.js';
|
|
25
26
|
import { initMachine } from '/machine.js';
|
|
26
27
|
import { initWatch } from '/watch.js';
|
|
@@ -31,6 +32,7 @@ import { initToday } from '/today.js';
|
|
|
31
32
|
import { reviewSpeech } from '/prvoice.js';
|
|
32
33
|
import { initDesigns } from '/designs.js';
|
|
33
34
|
import { initReviews } from '/reviews.js';
|
|
35
|
+
import { initBugHunt } from '/bughunt.js';
|
|
34
36
|
import { drawDiagram } from '/diagram.js';
|
|
35
37
|
import { initValue } from '/value.js';
|
|
36
38
|
import { initCodeMap } from '/codemap.js';
|
|
@@ -136,7 +138,9 @@ function toast(msg, ms = 2600, action) {
|
|
|
136
138
|
};
|
|
137
139
|
el.append(' ', b);
|
|
138
140
|
}
|
|
139
|
-
|
|
141
|
+
// Over an open window (a modal one leaves the page behind it unclickable), else on the page.
|
|
142
|
+
const top = [...document.querySelectorAll('dialog[open]')].filter((d) => d.matches(':modal')).at(-1);
|
|
143
|
+
(top ?? document.body).append(el);
|
|
140
144
|
setTimeout(() => el.remove(), ms);
|
|
141
145
|
}
|
|
142
146
|
|
|
@@ -158,6 +162,8 @@ initWorklog({ api, esc, toast, $ });
|
|
|
158
162
|
initSetup({ api, esc, $ });
|
|
159
163
|
const updateUi = initUpdate({ api, esc, toast, $ });
|
|
160
164
|
initMenu({ api, esc, toast, $ });
|
|
165
|
+
const supportUi = initSupport({ api, $, esc, toast });
|
|
166
|
+
$('#support-btn').onclick = () => supportUi.open();
|
|
161
167
|
initMachine({ api, esc, toast, $, Terminal, FitAddon });
|
|
162
168
|
let sidePane = null; // the split view's right pane (set up once the terminal is)
|
|
163
169
|
const codeUi = initCode({ api, esc, toast, $, agents, isOpen: () => term.kind === 'code' || Boolean(sidePane?.showing('code')) });
|
|
@@ -209,7 +215,7 @@ const standupUi = initStandup({
|
|
|
209
215
|
needsFor: (a) => needsFor(a),
|
|
210
216
|
needCard: (it, o) => needCard(it, o),
|
|
211
217
|
onNeed: (e) => onNeed(e),
|
|
212
|
-
toast: (m, ms) => toast(m, ms),
|
|
218
|
+
toast: (m, ms, a) => toast(m, ms, a),
|
|
213
219
|
openAgent: (id) => (showTab('agents'), select(id)),
|
|
214
220
|
});
|
|
215
221
|
// Jira: every issue an agent works on, the ones waiting for your review first.
|
|
@@ -218,7 +224,7 @@ const issuesUi = initIssues({
|
|
|
218
224
|
$,
|
|
219
225
|
esc,
|
|
220
226
|
ago,
|
|
221
|
-
toast: (m, ms) => toast(m, ms),
|
|
227
|
+
toast: (m, ms, a) => toast(m, ms, a),
|
|
222
228
|
openAgent: (id) => (showTab('agents'), select(id)),
|
|
223
229
|
openDoc: (id, kind) => (showTab('agents'), select(id), openDoc(id, kind)),
|
|
224
230
|
});
|
|
@@ -229,7 +235,7 @@ const actionsUi = initActions({
|
|
|
229
235
|
$,
|
|
230
236
|
esc,
|
|
231
237
|
ago,
|
|
232
|
-
toast: (m, ms) => toast(m, ms),
|
|
238
|
+
toast: (m, ms, a) => toast(m, ms, a),
|
|
233
239
|
openAgent: (id) => (showTab('agents'), select(id)),
|
|
234
240
|
projects: () => projectsState.map((p) => ({ key: p.shortcut, name: p.name })),
|
|
235
241
|
});
|
|
@@ -252,12 +258,13 @@ const todayUi = initToday({
|
|
|
252
258
|
$,
|
|
253
259
|
esc,
|
|
254
260
|
ago,
|
|
255
|
-
toast: (m, ms) => toast(m, ms),
|
|
261
|
+
toast: (m, ms, a) => toast(m, ms, a),
|
|
256
262
|
openAgent: (id) => (showTab('agents'), select(id)),
|
|
257
263
|
showInbox: () => showTab('inbox'),
|
|
258
264
|
openActions: () => actionsUi.open(),
|
|
259
265
|
openIssues: () => issuesUi.open(),
|
|
260
266
|
openReviews: () => reviewsUi.open(),
|
|
267
|
+
openBugs: () => bugsUi.open({ show: 'open' }),
|
|
261
268
|
});
|
|
262
269
|
$('#today-btn').onclick = () => todayUi.open();
|
|
263
270
|
// Designs: every agent's design doc, the ones waiting for your review first.
|
|
@@ -266,7 +273,7 @@ const designsUi = initDesigns({
|
|
|
266
273
|
$,
|
|
267
274
|
esc,
|
|
268
275
|
ago,
|
|
269
|
-
toast: (m, ms) => toast(m, ms),
|
|
276
|
+
toast: (m, ms, a) => toast(m, ms, a),
|
|
270
277
|
openAgent: (id) => (showTab('agents'), select(id)),
|
|
271
278
|
openDoc: (id) => (showTab('agents'), select(id), openDoc(id, 'designdoc')),
|
|
272
279
|
});
|
|
@@ -274,6 +281,9 @@ $('#designs-btn').onclick = () => designsUi.open();
|
|
|
274
281
|
// Reviews: other people's pull requests, reviewed by agents for you.
|
|
275
282
|
const reviewsUi = initReviews({ api, $, esc, ago, toast: (m, ms) => toast(m, ms), openAgent: (id) => (showTab('agents'), select(id)) });
|
|
276
283
|
$('#reviews-btn').onclick = () => reviewsUi.open();
|
|
284
|
+
// Bugs: background bug hunts and what they found.
|
|
285
|
+
const bugsUi = initBugHunt({ api, $, esc, ago, toast: (m, ms, a) => toast(m, ms, a), openAgent: (id) => (showTab('agents'), select(id)) });
|
|
286
|
+
$('#bugs-btn').onclick = () => bugsUi.open();
|
|
277
287
|
// Value: what the delivered work is worth, for you and for management.
|
|
278
288
|
const valueUi = initValue({ api, $, esc, toast: (m, ms) => toast(m, ms), openAgent: (id) => (showTab('agents'), select(id)) });
|
|
279
289
|
$('#value-btn').onclick = () => valueUi.open();
|
|
@@ -325,6 +335,7 @@ function shortcut(act) {
|
|
|
325
335
|
if (act === 'results') return $('#spend-btn').click();
|
|
326
336
|
if (act === 'designs') return designsUi.open();
|
|
327
337
|
if (act === 'reviews') return reviewsUi.open();
|
|
338
|
+
if (act === 'bugs') return bugsUi.open();
|
|
328
339
|
if (act === 'value') return valueUi.open();
|
|
329
340
|
if (act === 'today') return todayUi.open();
|
|
330
341
|
if (act.startsWith('tab:')) return showTab(act.slice(4));
|
|
@@ -4234,6 +4245,7 @@ function handleEvent(msg) {
|
|
|
4234
4245
|
todayUi.changed();
|
|
4235
4246
|
designsUi.changed();
|
|
4236
4247
|
if (msg.agent.reviewing) reviewsUi.changed();
|
|
4248
|
+
if (msg.agent.hunting) bugsUi.changed();
|
|
4237
4249
|
// The detail, terminal and document views show one agent; another agent's update leaves them be.
|
|
4238
4250
|
return invalidate([
|
|
4239
4251
|
'list', 'backlog', 'land', 'inbox', 'race', 'team',
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
// Bugs: what background bug hunts found, checked, worst first; and the hunts themselves (a project
|
|
2
|
+
// or a folder of it, recent changes or the whole module, by hand or every night, with a cost
|
|
3
|
+
// limit per run). Each finding opens to its evidence; Fix starts an agent on it, File it opens a
|
|
4
|
+
// filled-in issue, Not a bug keeps it from coming back, Snooze hides it until later.
|
|
5
|
+
|
|
6
|
+
import { holdWhilePicking, rowKeys } from './rowkeys.js';
|
|
7
|
+
import { expandButton, expandable } from './expand.js';
|
|
8
|
+
|
|
9
|
+
const SAVED = 'agentmgr.bugsFilter';
|
|
10
|
+
const FILTERS = [
|
|
11
|
+
['open', 'Open'],
|
|
12
|
+
['fixing', 'Fixing'],
|
|
13
|
+
['snoozed', 'Snoozed'],
|
|
14
|
+
['filed', 'Filed'],
|
|
15
|
+
['notbug', 'Not a bug'],
|
|
16
|
+
['dropped', 'Not kept'],
|
|
17
|
+
['hunts', 'Hunts'],
|
|
18
|
+
];
|
|
19
|
+
const SEV = { critical: 'Critical', high: 'High', medium: 'Medium', low: 'Low' };
|
|
20
|
+
|
|
21
|
+
/** Tomorrow at 9, or next Monday at 9. */
|
|
22
|
+
function later(which) {
|
|
23
|
+
const d = new Date();
|
|
24
|
+
d.setHours(9, 0, 0, 0);
|
|
25
|
+
d.setDate(d.getDate() + (which === 'week' ? ((8 - d.getDay()) % 7 || 7) : 1));
|
|
26
|
+
return d.toISOString();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function initBugHunt({ api, $, esc, ago, toast, openAgent }) {
|
|
30
|
+
const dialog = $('#bugs-dialog');
|
|
31
|
+
const body = $('#bugs-body');
|
|
32
|
+
let data = null;
|
|
33
|
+
let filter = 'open';
|
|
34
|
+
let opened = null; // the finding shown in full
|
|
35
|
+
let editing = null; // a hunt being added ('new') or edited (its id)
|
|
36
|
+
let sure = null; // a hunt whose Delete was pressed once
|
|
37
|
+
try {
|
|
38
|
+
filter = localStorage.getItem(SAVED) || 'open';
|
|
39
|
+
} catch {}
|
|
40
|
+
let projects = [];
|
|
41
|
+
|
|
42
|
+
async function load() {
|
|
43
|
+
try {
|
|
44
|
+
data = await api('GET', '/hunts');
|
|
45
|
+
} catch (e) {
|
|
46
|
+
toast?.(e.message, 5000);
|
|
47
|
+
}
|
|
48
|
+
badge();
|
|
49
|
+
render();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function badge() {
|
|
53
|
+
const n = data ? data.findings.filter((f) => f.status === 'open').length : 0;
|
|
54
|
+
const el = $('#bugs-count');
|
|
55
|
+
if (el) {
|
|
56
|
+
el.textContent = n ? String(n) : '';
|
|
57
|
+
el.title = n ? `${n} open bug${n === 1 ? '' : 's'} found by hunts` : '';
|
|
58
|
+
}
|
|
59
|
+
const b = $('#bugs-btn');
|
|
60
|
+
if (b) b.classList.toggle('hunting', Boolean(data?.running));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const count = (k) => (k === 'hunts' ? data.hunts.length : data.findings.filter((f) => f.status === k).length);
|
|
64
|
+
const where = (f) => (f.file ? `${f.file}${f.line ? `:${f.line}` : ''}` : '');
|
|
65
|
+
|
|
66
|
+
function findingRow(f) {
|
|
67
|
+
const acts =
|
|
68
|
+
f.status === 'open'
|
|
69
|
+
? `<button class="small primary" data-bug="fix" title="Start an agent on it, with the failing test (a)">Fix</button>
|
|
70
|
+
<button class="small" data-bug="file" title="A filled-in issue to submit (i)">File it</button>
|
|
71
|
+
<button class="small" data-bug="notbug" title="Not a bug: it won't be reported again (x)">Not a bug</button>
|
|
72
|
+
<select class="small" data-bug-snooze title="Hide it until then (s: tomorrow)"><option value="">Snooze…</option><option value="day">Until tomorrow 9am</option><option value="week">Until Monday 9am</option></select>`
|
|
73
|
+
: f.status === 'fixing' && f.fixAgentId
|
|
74
|
+
? `<button class="small" data-bug="open-fix" title="Open the agent fixing it">Open fix</button> <button class="small" data-bug="back" title="Back to open (o)">Bring back</button>`
|
|
75
|
+
: `<button class="small" data-bug="back" title="Back to open (o)">Bring back</button>`;
|
|
76
|
+
const full =
|
|
77
|
+
opened === f.id
|
|
78
|
+
? `<tr class="bug-detail"><td colspan="3">
|
|
79
|
+
<p><b>How it fails.</b> ${esc(f.why)}</p>
|
|
80
|
+
<p><b>Evidence: ${f.evidence.type === 'test' ? 'a failing test' : 'the path through the code'}.</b></p><pre>${esc(f.evidence.detail)}</pre>
|
|
81
|
+
${f.evidence.test ? `<p><b>Test.</b></p><pre>${esc(f.evidence.test)}</pre>` : ''}
|
|
82
|
+
${f.fix ? `<p><b>Suggested fix.</b> ${esc(f.fix)}</p>` : ''}
|
|
83
|
+
<p class="hint">${f.check ? `Second check: ${f.check.real ? 'holds up' : 'does not hold up'} (${Math.round(f.check.confidence * 100)}%). ${esc(f.check.reason ?? '')}` : 'Second check: not asked (the AI judge is off); kept because a test fails.'} Found ${esc(ago(f.at))} by the ${esc(f.hunt ?? '')} hunt${f.foundBy ? ` · <button class="link" data-bug-agent="${esc(f.foundBy)}">its session</button>` : ''}.</p>
|
|
84
|
+
</td></tr>`
|
|
85
|
+
: '';
|
|
86
|
+
return `<tr data-row-id="${esc(f.id)}" class="bug-${esc(f.severity)}">
|
|
87
|
+
<td class="nowrap"><span class="bug-sev ${esc(f.severity)}">${esc(SEV[f.severity] ?? f.severity)}</span></td>
|
|
88
|
+
<td><div class="today-title">${esc(f.title)}</div><div class="hint">${esc(where(f))}${f.evidence?.type === 'test' ? ' · a test fails' : ''}${f.snoozeUntil ? ` · until ${esc(new Date(f.snoozeUntil).toLocaleString())}` : ''}</div></td>
|
|
89
|
+
<td class="nowrap today-acts">${acts}</td>
|
|
90
|
+
</tr>${full}`;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function huntForm(h) {
|
|
94
|
+
const p = h ?? { focus: 'changes', schedule: 'manual', maxUsd: 5, kinds: [], path: '', project: projects[0]?.shortcut ?? '' };
|
|
95
|
+
return `<form class="hunt-form alerts-body" data-hunt-form="${esc(h?.id ?? 'new')}">
|
|
96
|
+
<h3>${h ? `Edit ${esc(h.name)}` : 'New hunt'}</h3>
|
|
97
|
+
<div class="row three">
|
|
98
|
+
<label>Project <select name="project" required>${projects.map((x) => `<option value="${esc(x.shortcut)}" ${x.shortcut === p.project ? 'selected' : ''}>${esc(x.name ?? x.shortcut)}</option>`).join('')}</select></label>
|
|
99
|
+
<label>Folder <span class="hint">(empty: all of it)</span><input name="path" value="${esc(p.path)}" placeholder="pkg/providers" autocomplete="off" /></label>
|
|
100
|
+
<label>Name <span class="hint">(optional)</span><input name="name" value="${esc(h?.name ?? '')}" autocomplete="off" /></label>
|
|
101
|
+
</div>
|
|
102
|
+
<fieldset><legend>Look at</legend>${Object.entries(data.focus).map(([k, label]) => `<label class="check"><input type="radio" name="focus" value="${k}" ${p.focus === k ? 'checked' : ''} /> ${esc(label)}</label>`).join('')}</fieldset>
|
|
103
|
+
<fieldset><legend>For <span class="hint">(none ticked: any kind of bug)</span></legend><div class="hunt-kinds">${Object.entries(data.kinds).map(([k, label]) => `<label class="check"><input type="checkbox" name="kind" value="${k}" ${p.kinds.includes(k) ? 'checked' : ''} /> ${esc(label)}</label>`).join('')}</div></fieldset>
|
|
104
|
+
<div class="row three">
|
|
105
|
+
<label>When <select name="schedule">${Object.entries(data.schedules).map(([k, label]) => `<option value="${k}" ${p.schedule === k ? 'selected' : ''}>${esc(label)}</option>`).join('')}</select></label>
|
|
106
|
+
<label>Cost limit per run ($) <input name="maxUsd" type="number" min="0.5" max="500" step="0.5" value="${esc(p.maxUsd)}" /></label>
|
|
107
|
+
</div>
|
|
108
|
+
<p class="hint">The hunter reads the code and runs the tests on its own copy; it never commits or pushes. One hunt runs at a time, and it stops at the cost limit.</p>
|
|
109
|
+
<div class="dialog-actions"><button type="button" class="ghost" data-bug="cancel-hunt">Cancel</button><button type="submit" class="primary">${h ? 'Save' : 'Add hunt'}</button></div>
|
|
110
|
+
</form>`;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function huntsHtml() {
|
|
114
|
+
if (editing) return huntForm(editing === 'new' ? null : data.hunts.find((h) => h.id === editing));
|
|
115
|
+
const rows = data.hunts
|
|
116
|
+
.map((h) => {
|
|
117
|
+
const last = h.last ? `${h.last.status === 'running' ? 'running now' : `${h.last.kept ?? 0} kept of ${h.last.found ?? 0} new`} · ${ago(h.last.at)}` : 'not run yet';
|
|
118
|
+
return `<tr data-hunt="${esc(h.id)}">
|
|
119
|
+
<td><div class="today-title">${esc(h.name)}</div><div class="hint">${esc(h.focus === 'changes' ? 'recent changes' : `whole module${h.coveredCount ? ` (${h.coveredCount} parts covered)` : ''}`)}${h.kinds.length ? ` · ${esc(h.kinds.join(', '))}` : ''} · ${esc(h.schedule === 'nightly' ? 'nightly' : 'by hand')} · up to $${esc(h.maxUsd)}</div></td>
|
|
120
|
+
<td class="hint">${esc(last)}${h.open ? ` · ${h.open} open` : ''}</td>
|
|
121
|
+
<td class="nowrap today-acts"><button class="small primary" data-bug="run" ${data.running ? 'disabled title="A hunt is running; one at a time"' : 'title="Start a run now"'}>Hunt now</button> <button class="small" data-bug="edit">Edit</button> <button class="small ${sure === h.id ? 'danger' : ''}" data-bug="delete">${sure === h.id ? 'Delete it?' : 'Delete'}</button></td>
|
|
122
|
+
</tr>`;
|
|
123
|
+
})
|
|
124
|
+
.join('');
|
|
125
|
+
return `${rows ? `<div class="issues-scroll"><table class="issues today-table"><tbody>${rows}</tbody></table></div>` : '<p class="hint issues-empty">No hunts yet. A hunt looks for bugs in a project, or one folder of it, in the background: in what changed since its last run, or the whole module a part at a time. Each bug comes with evidence, and a second check keeps only those that hold up.</p>'}
|
|
126
|
+
<p><button class="small primary" data-bug="new-hunt" ${projects.length ? '' : 'disabled title="Add a project first"'}>+ New hunt</button></p>`;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function draw() {
|
|
130
|
+
if (!dialog.open) return;
|
|
131
|
+
if (!data) {
|
|
132
|
+
body.innerHTML = '<p class="hint">Loading…</p>';
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const rows = data.findings.filter((f) => f.status === filter);
|
|
136
|
+
const empty = {
|
|
137
|
+
open: data.hunts.length ? 'No open bugs. Hunts add what they find here, worst first.' : 'No bugs yet: set up a hunt under Hunts.',
|
|
138
|
+
dropped: "Findings the second check didn't confirm. They aren't reported again.",
|
|
139
|
+
};
|
|
140
|
+
body.innerHTML = `
|
|
141
|
+
<div class="issues-head">
|
|
142
|
+
<h2>Bugs</h2>
|
|
143
|
+
<div class="chips" role="tablist">${FILTERS.map(([k, label]) => `<button class="chip ${k === filter ? 'active' : ''}" role="tab" aria-selected="${k === filter}" data-bugs-filter="${k}">${label} <span class="count">${count(k)}</span></button>`).join('')}</div>
|
|
144
|
+
<span class="spacer"></span>
|
|
145
|
+
<button class="small" data-bug="refresh" title="Look again (r)">↻</button>
|
|
146
|
+
${expandButton(dialog)}
|
|
147
|
+
<button class="small" data-bug="close" title="Close (Esc)">Close</button>
|
|
148
|
+
</div>
|
|
149
|
+
${data.running ? `<p class="hunt-running">Hunting now: <button class="link" data-bug-agent="${esc(data.running.id)}">${esc(data.running.name)}</button>. Its findings come in when it's done.</p>` : ''}
|
|
150
|
+
${filter === 'hunts'
|
|
151
|
+
? huntsHtml()
|
|
152
|
+
: rows.length
|
|
153
|
+
? `<div class="issues-scroll"><table class="issues today-table"><tbody>${rows.map(findingRow).join('')}</tbody></table></div>`
|
|
154
|
+
: `<p class="hint issues-empty">${esc(empty[filter] ?? 'None here.')}</p>`}
|
|
155
|
+
${filter === 'hunts' ? '' : '<p class="hint">Keys: j/k move (or click a row), Enter shows the evidence, a fix, i file it, x not a bug, s snooze until tomorrow, o bring back, r look again, [ ] filters, f bigger.</p>'}`;
|
|
156
|
+
keys.redraw();
|
|
157
|
+
}
|
|
158
|
+
const render = holdWhilePicking(body, draw);
|
|
159
|
+
expandable(dialog, draw);
|
|
160
|
+
|
|
161
|
+
const finding = (id) => data?.findings.find((f) => f.id === id) ?? null;
|
|
162
|
+
|
|
163
|
+
/** Set findings to a decision; Undo puts each back. */
|
|
164
|
+
async function decide(ids, status, until = null, { undoing = false } = {}) {
|
|
165
|
+
const before = ids.map((id) => [id, finding(id)?.status, finding(id)?.snoozeUntil]);
|
|
166
|
+
try {
|
|
167
|
+
await api('POST', '/findings/set', { ids, status, until });
|
|
168
|
+
const label = { open: 'Back on the list', notbug: 'Not a bug: it won\'t be reported again', snoozed: 'Snoozed', filed: 'Marked filed' }[status];
|
|
169
|
+
const undo = undoing ? null : { label: 'Undo', run: async () => {
|
|
170
|
+
for (const [id, st, u] of before) if (st && st !== 'fixing') await decide([id], st, st === 'snoozed' ? u : null, { undoing: true });
|
|
171
|
+
} };
|
|
172
|
+
toast?.(label, undo ? 6000 : 2500, undo);
|
|
173
|
+
} catch (e) {
|
|
174
|
+
toast?.(e.message, 6000);
|
|
175
|
+
}
|
|
176
|
+
load();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
async function act(id, what, extra) {
|
|
180
|
+
const f = finding(id);
|
|
181
|
+
if (!f) return;
|
|
182
|
+
if (what === 'fix') {
|
|
183
|
+
try {
|
|
184
|
+
const r = await api('POST', `/findings/${id}/fix`, {});
|
|
185
|
+
toast?.(r.existing ? `${r.agent.name} is on it already` : `Agent ${r.agent.name} started on it`, 4000, { label: 'Open', run: () => (dialog.close(), openAgent(r.agent.id)) });
|
|
186
|
+
} catch (e) {
|
|
187
|
+
toast?.(e.message, 6000);
|
|
188
|
+
}
|
|
189
|
+
return load();
|
|
190
|
+
}
|
|
191
|
+
if (what === 'file') {
|
|
192
|
+
try {
|
|
193
|
+
const r = await api('GET', `/findings/${id}/issue`);
|
|
194
|
+
if (r.url) window.open(r.url, '_blank', 'noopener');
|
|
195
|
+
else await navigator.clipboard?.writeText(`# ${r.title}\n\n${r.markdown}`).catch(() => {});
|
|
196
|
+
return decide([id], 'filed', null).then(() => toast?.(r.url ? 'GitHub opened with the issue filled in: submit it there' : 'Copied as Markdown, to paste into your tracker', 5000));
|
|
197
|
+
} catch (e) {
|
|
198
|
+
return toast?.(e.message, 6000);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (what === 'notbug') return decide([id], 'notbug');
|
|
202
|
+
if (what === 'snooze') return decide([id], 'snoozed', later(extra || 'day'));
|
|
203
|
+
if (what === 'back') return decide([id], 'open');
|
|
204
|
+
if (what === 'open-fix' && f.fixAgentId) return dialog.close(), openAgent(f.fixAgentId);
|
|
205
|
+
if (what === 'enter') {
|
|
206
|
+
opened = opened === id ? null : id;
|
|
207
|
+
return render();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const keys = rowKeys(dialog, {
|
|
212
|
+
rows: () => [...body.querySelectorAll('tbody tr[data-row-id]')],
|
|
213
|
+
filters: () => [...body.querySelectorAll('[data-bugs-filter]')],
|
|
214
|
+
keys: {
|
|
215
|
+
Enter: (r) => act(r.dataset.rowId, 'enter'),
|
|
216
|
+
a: (r) => act(r.dataset.rowId, 'fix'),
|
|
217
|
+
i: (r) => act(r.dataset.rowId, 'file'),
|
|
218
|
+
x: (r) => act(r.dataset.rowId, 'notbug'),
|
|
219
|
+
s: (r) => act(r.dataset.rowId, 'snooze', 'day'),
|
|
220
|
+
o: (r) => act(r.dataset.rowId, 'back'),
|
|
221
|
+
r: Object.assign(() => load(), { needsRow: false }),
|
|
222
|
+
},
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
async function hunt(id, what) {
|
|
226
|
+
try {
|
|
227
|
+
if (what === 'run') {
|
|
228
|
+
const r = await api('POST', `/hunts/${id}/run`, {});
|
|
229
|
+
toast?.(`${r.agent.name} is hunting. Its findings come in when it's done.`, 5000);
|
|
230
|
+
} else if (what === 'edit') {
|
|
231
|
+
editing = id;
|
|
232
|
+
sure = null;
|
|
233
|
+
return render();
|
|
234
|
+
} else if (what === 'delete') {
|
|
235
|
+
if (sure !== id) {
|
|
236
|
+
sure = id;
|
|
237
|
+
return render();
|
|
238
|
+
}
|
|
239
|
+
sure = null;
|
|
240
|
+
await api('DELETE', `/hunts/${id}`);
|
|
241
|
+
toast?.('Hunt deleted; its findings stay', 3000);
|
|
242
|
+
}
|
|
243
|
+
} catch (e) {
|
|
244
|
+
toast?.(e.message, 6000);
|
|
245
|
+
}
|
|
246
|
+
load();
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
body.addEventListener('change', (e) => {
|
|
250
|
+
const s = e.target.closest('[data-bug-snooze]');
|
|
251
|
+
if (s && s.value) act(e.target.closest('tr[data-row-id]')?.dataset.rowId, 'snooze', s.value);
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
body.addEventListener('submit', async (e) => {
|
|
255
|
+
const form = e.target.closest('[data-hunt-form]');
|
|
256
|
+
if (!form) return;
|
|
257
|
+
e.preventDefault();
|
|
258
|
+
const fd = new FormData(form);
|
|
259
|
+
const input = { project: fd.get('project'), path: fd.get('path'), name: fd.get('name'), focus: fd.get('focus'), kinds: fd.getAll('kind'), schedule: fd.get('schedule'), maxUsd: Number(fd.get('maxUsd')) };
|
|
260
|
+
try {
|
|
261
|
+
const id = form.dataset.huntForm;
|
|
262
|
+
await api(id === 'new' ? 'POST' : 'PUT', id === 'new' ? '/hunts' : `/hunts/${id}`, input);
|
|
263
|
+
editing = null;
|
|
264
|
+
toast?.(id === 'new' ? 'Hunt added: press Hunt now to start it' : 'Saved', 3000);
|
|
265
|
+
} catch (err) {
|
|
266
|
+
return toast?.(err.message, 6000);
|
|
267
|
+
}
|
|
268
|
+
load();
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
body.addEventListener('click', (e) => {
|
|
272
|
+
const ag = e.target.closest('[data-bug-agent]');
|
|
273
|
+
if (ag) return dialog.close(), openAgent(ag.dataset.bugAgent);
|
|
274
|
+
const f = e.target.closest('[data-bugs-filter]');
|
|
275
|
+
if (f) {
|
|
276
|
+
filter = f.dataset.bugsFilter;
|
|
277
|
+
editing = null;
|
|
278
|
+
try {
|
|
279
|
+
localStorage.setItem(SAVED, filter);
|
|
280
|
+
} catch {}
|
|
281
|
+
return render();
|
|
282
|
+
}
|
|
283
|
+
const b = e.target.closest('[data-bug]')?.dataset.bug;
|
|
284
|
+
if (!b) {
|
|
285
|
+
// A click on a finding's title shows its evidence.
|
|
286
|
+
const row = e.target.closest('tr[data-row-id]');
|
|
287
|
+
if (row && e.target.closest('.today-title')) act(row.dataset.rowId, 'enter');
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
if (b === 'close') return dialog.close();
|
|
291
|
+
if (b === 'refresh') return load();
|
|
292
|
+
if (b === 'new-hunt') return (editing = 'new'), render();
|
|
293
|
+
if (b === 'cancel-hunt') return (editing = null), render();
|
|
294
|
+
const huntRow = e.target.closest('tr[data-hunt]');
|
|
295
|
+
if (huntRow) return hunt(huntRow.dataset.hunt, b);
|
|
296
|
+
act(e.target.closest('tr[data-row-id]')?.dataset.rowId, b);
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
async function open({ show } = {}) {
|
|
300
|
+
if (dialog.open && !show) return dialog.close();
|
|
301
|
+
if (show) filter = show;
|
|
302
|
+
if (!dialog.open) dialog.showModal();
|
|
303
|
+
render();
|
|
304
|
+
projects = await api('GET', '/projects').catch(() => []);
|
|
305
|
+
load();
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
let again = null;
|
|
309
|
+
function changed() {
|
|
310
|
+
clearTimeout(again);
|
|
311
|
+
again = setTimeout(load, dialog.open ? 1500 : 20_000);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
load();
|
|
315
|
+
return { open, changed, load, decide, fix: (id) => act(id, 'fix') };
|
|
316
|
+
}
|
package/public/index.html
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
<button id="actions-btn" title="Actions: what's asked of you in Slack and in meeting notes, found by the assistant; decide on each one">Actions <span id="actions-count" class="badge ready"></span></button>
|
|
37
37
|
<button id="issues-btn" title="Jira: every issue an agent works on, with its Jira status, pull request and agent, the ones waiting for your review first">Jira <span id="issues-count" class="badge ready"></span></button>
|
|
38
38
|
<button id="designs-btn" title="Designs: every agent's design doc with its summary and links, the ones waiting for your review first">Designs <span id="designs-count" class="badge ready"></span></button>
|
|
39
|
+
<button id="bugs-btn" title="Bugs: background hunts in a project or folder, and what they found, checked and worst first">Bugs <span id="bugs-count" class="badge"></span></button>
|
|
39
40
|
<button id="reviews-btn" title="Reviews: pull requests you review. Reviewer agents ask the critical questions and find what blocks approval; you post what you pick">Reviews <span id="reviews-count" class="badge ready"></span></button>
|
|
40
41
|
<button id="value-btn" title="Value: what the delivered work is worth, by day, week, month and quarter, against the AI cost and your time; reports for management">Value</button>
|
|
41
42
|
<button id="map-btn" title="The codebase map: where each agent is changing and reading code, and who is about to collide">Map</button>
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
<div class="menu-sep"></div>
|
|
62
63
|
<div class="menu-theme"><span>Theme</span><span class="seg" role="radiogroup" aria-label="Theme"><button type="button" data-theme-set="auto" title="Follow this device's setting">Auto</button><button type="button" data-theme-set="light">Light</button><button type="button" data-theme-set="dark">Dark</button></span></div>
|
|
63
64
|
<div class="menu-sep"></div>
|
|
65
|
+
<button role="menuitem" id="support-btn" title="Tell us about a problem or an idea, with a screenshot">Report a problem or idea…</button>
|
|
64
66
|
<button role="menuitem" id="keys-btn" title="Quick actions from the keyboard">Keyboard shortcuts… <kbd>?</kbd></button>
|
|
65
67
|
<button role="menuitem" id="menu-about">About and updates…</button>
|
|
66
68
|
</div>
|
|
@@ -394,6 +396,9 @@
|
|
|
394
396
|
<dialog id="designs-dialog" class="issues-dialog" aria-label="Design docs">
|
|
395
397
|
<div id="designs-body"></div>
|
|
396
398
|
</dialog>
|
|
399
|
+
<dialog id="bugs-dialog" class="issues-dialog" aria-label="Bugs">
|
|
400
|
+
<div id="bugs-body"></div>
|
|
401
|
+
</dialog>
|
|
397
402
|
<dialog id="reviews-dialog" class="issues-dialog" aria-label="Reviews">
|
|
398
403
|
<div id="reviews-body"></div>
|
|
399
404
|
</dialog>
|
|
@@ -836,6 +841,28 @@
|
|
|
836
841
|
</div>
|
|
837
842
|
</dialog>
|
|
838
843
|
|
|
844
|
+
<dialog id="support-dialog" class="support-dialog" aria-label="Report a problem or idea">
|
|
845
|
+
<form id="support-form" class="alerts-body">
|
|
846
|
+
<h2>Report a problem or idea</h2>
|
|
847
|
+
<div class="support-kind" role="radiogroup" aria-label="What it is">
|
|
848
|
+
<label class="check"><input type="radio" name="kind" value="bug" checked /> Something is wrong</label>
|
|
849
|
+
<label class="check"><input type="radio" name="kind" value="idea" /> An improvement</label>
|
|
850
|
+
</div>
|
|
851
|
+
<label>Title <input name="title" maxlength="200" required autocomplete="off" placeholder="In a few words" /></label>
|
|
852
|
+
<label>Details <textarea name="details" rows="7" maxlength="20000" required></textarea></label>
|
|
853
|
+
<div class="support-label">Screenshot <span class="hint">(optional)</span></div>
|
|
854
|
+
<div id="support-shot" class="support-shot"></div>
|
|
855
|
+
<p class="hint">It's kept on this computer, and GitHub opens with a new issue filled in for you to look over and submit. GitHub issues are public, so check the screenshot and the text for anything private first. Your version, OS and which lists are turned on are added; no names, folders or tokens.</p>
|
|
856
|
+
<p id="support-error" class="error" hidden></p>
|
|
857
|
+
<div class="dialog-actions">
|
|
858
|
+
<button type="button" data-support="close" class="ghost">Cancel</button>
|
|
859
|
+
<button type="submit" class="primary">Save and open on GitHub</button>
|
|
860
|
+
</div>
|
|
861
|
+
<div id="support-earlier"></div>
|
|
862
|
+
</form>
|
|
863
|
+
<div id="support-done" class="alerts-body" hidden></div>
|
|
864
|
+
</dialog>
|
|
865
|
+
|
|
839
866
|
<dialog id="settings-dialog" class="settings-dialog">
|
|
840
867
|
<form id="settings-form" method="dialog" class="alerts-body">
|
|
841
868
|
<h2>Settings</h2>
|
package/public/issues.js
CHANGED
|
@@ -154,11 +154,13 @@ export function initIssues({ api, $, esc, ago, openAgent, openDoc, toast }) {
|
|
|
154
154
|
: filter === 'removed'
|
|
155
155
|
? 'Nothing removed. Set an issue back to another action here to bring it back.'
|
|
156
156
|
: 'None here.';
|
|
157
|
+
const backAll = ['skipped', 'done', 'removed'].includes(filter) ? setAsideShown().length : 0;
|
|
157
158
|
body.innerHTML = `
|
|
158
159
|
<div class="issues-head">
|
|
159
160
|
<h2>Jira</h2>
|
|
160
161
|
<div class="chips" role="tablist">${FILTERS.map(([k, label]) => `<button class="chip ${k === filter ? 'active' : ''}" role="tab" aria-selected="${k === filter}" data-issues-filter="${k}">${label} <span class="count">${count(k)}</span></button>`).join('')}</div>
|
|
161
162
|
<span class="spacer"></span>
|
|
163
|
+
${backAll ? `<button class="small" data-issues="back-all" title="Clear your action on every one here: back to undecided">Bring all ${backAll} back</button>` : ''}
|
|
162
164
|
<button class="small" data-issues="copy" title="Copy this list as a Markdown table, to paste into Slack, Jira or a doc" ${rows.length ? '' : 'disabled'}>Copy</button>
|
|
163
165
|
<button class="small" data-issues="refresh" title="Look again now">↻</button>
|
|
164
166
|
${expandButton(dialog)}
|
|
@@ -184,10 +186,18 @@ export function initIssues({ api, $, esc, ago, openAgent, openDoc, toast }) {
|
|
|
184
186
|
keys.redraw();
|
|
185
187
|
}
|
|
186
188
|
const render = holdWhilePicking(body, draw);
|
|
189
|
+
|
|
190
|
+
/** The issues shown that you skipped, marked done or removed (not those done in Jira). */
|
|
191
|
+
function setAsideShown() {
|
|
192
|
+
const g = { skipped: 'skip', done: 'done', removed: 'remove' }[filter];
|
|
193
|
+
return (data?.rows ?? []).filter((r) => r.group === filter && r.action === g).map((r) => r.key);
|
|
194
|
+
}
|
|
187
195
|
expandable(dialog, draw);
|
|
188
196
|
|
|
189
197
|
/** Set your action on issues; assign starts the agents of ones not started yet. */
|
|
190
|
-
async function setAction(keys, action) {
|
|
198
|
+
async function setAction(keys, action, { undoing = false } = {}) {
|
|
199
|
+
// What each was before, to take the change back.
|
|
200
|
+
const before = new Map(keys.map((k) => [k, data?.rows.find((x) => x.key === k)?.action ?? null]));
|
|
191
201
|
try {
|
|
192
202
|
const r = await api('POST', '/issues/action', { keys, action: action || null });
|
|
193
203
|
for (const k of r.set) ticked.delete(k);
|
|
@@ -198,13 +208,22 @@ export function initIssues({ api, $, esc, ago, openAgent, openDoc, toast }) {
|
|
|
198
208
|
return t ? `${k} (${t.length > 60 ? `${t.slice(0, 59)}…` : t})` : k;
|
|
199
209
|
};
|
|
200
210
|
const what = r.started.length ? `Started ${r.started.map((x) => named(x.key)).join(', ')}` : r.set.length ? `${r.set.map(named).join(', ')}: ${label}` : 'Nothing changed';
|
|
201
|
-
|
|
211
|
+
// An agent once started stays; anything else can be taken back.
|
|
212
|
+
const undo = !undoing && r.set.length && !r.started.length ? { label: 'Undo', run: () => undoTo(r.set.map((k) => [k, before.get(k)])) } : null;
|
|
213
|
+
toast?.(`${what}${bad ? `. Not changed: ${bad}` : ''}`, bad ? 8000 : undo ? 6000 : 3000, undo);
|
|
202
214
|
} catch (err) {
|
|
203
215
|
toast?.(err.message, 6000);
|
|
204
216
|
}
|
|
205
217
|
load();
|
|
206
218
|
}
|
|
207
219
|
|
|
220
|
+
/** Set each issue back to what it was: [[key, action]]. */
|
|
221
|
+
async function undoTo(pairs) {
|
|
222
|
+
for (const action of new Set(pairs.map(([, a]) => a))) {
|
|
223
|
+
await setAction(pairs.filter(([, a]) => a === action).map(([k]) => k), action === 'assign' ? null : action, { undoing: true });
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
208
227
|
const keys = rowKeys(dialog, {
|
|
209
228
|
rows: () => [...body.querySelectorAll('tbody tr[data-row-id]')],
|
|
210
229
|
filters: () => [...body.querySelectorAll('[data-issues-filter]')],
|
|
@@ -282,6 +301,7 @@ export function initIssues({ api, $, esc, ago, openAgent, openDoc, toast }) {
|
|
|
282
301
|
if (b === 'start') return startTicked();
|
|
283
302
|
if (b === 'dismiss') return setAction([...ticked], 'remove');
|
|
284
303
|
if (b === 'skip') return setAction([...ticked], 'skip');
|
|
304
|
+
if (b === 'back-all') return setAction(setAsideShown(), null);
|
|
285
305
|
if (b === 'copy') {
|
|
286
306
|
try {
|
|
287
307
|
const { markdown } = await api('GET', `/issues?group=${encodeURIComponent(filter)}&format=markdown`);
|