create-heresay 0.2.40 → 0.2.41
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-heresay",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.41",
|
|
4
4
|
"description": "Set up your own Heresay: in-app feedback that every report gets a hearing. Creates a Firebase project in your Google account and deploys the dashboard, API and SDK to it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/release/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.41
|
|
@@ -23,6 +23,8 @@ export const CHAT_LIMITS = [
|
|
|
23
23
|
{ limit: 60, windowMs: 3600_000 },
|
|
24
24
|
{ limit: 300, windowMs: 24 * 3600_000 },
|
|
25
25
|
];
|
|
26
|
+
/** Chunks added to drafts: each one is a write, so they're limited too. A whole bundle still sends as one request. */
|
|
27
|
+
const APPEND_LIMIT = { limit: 600, windowMs: 3600_000 };
|
|
26
28
|
// Descriptive, not prescriptive: chat apps flag tool text that tells the model when to ask for
|
|
27
29
|
// approval or what counts as sensitive ("Suspicious Instruction"). Their own rules cover that.
|
|
28
30
|
const INSTRUCTIONS = [
|
|
@@ -31,7 +33,10 @@ const INSTRUCTIONS = [
|
|
|
31
33
|
'apps); nothing is sent. send_draft sends a draft, to the app in the preview or to another one. `text` is the request as',
|
|
32
34
|
'a teammate would read it; `details` is what the conversation worked out (why it matters, what was considered or ruled',
|
|
33
35
|
'out, examples, constraints, open questions); both may be Markdown. `document` attaches a Markdown (.md) file, its full',
|
|
34
|
-
'contents as text (a spec, a research handoff, a summary of the whole conversation), up to 100,000 characters. A
|
|
36
|
+
'contents as text (a spec, a research handoff, a summary of the whole conversation), up to 100,000 characters. A longer file',
|
|
37
|
+
'goes in pieces: append_to_draft adds the next piece to the draft, one call at a time, and the whole thing is sent once as one request;',
|
|
38
|
+
'never send a file as several requests. Rules that apply to the whole request go once in `details`, not in every piece.',
|
|
39
|
+
'A sent request stays open until someone on the team accepts it; sending',
|
|
35
40
|
'does not start any work. my_requests says what happened to the ones this member sent.',
|
|
36
41
|
].join(' ');
|
|
37
42
|
/** How long a draft waits to be sent. */
|
|
@@ -49,7 +54,7 @@ const TOOLS = [
|
|
|
49
54
|
title: 'Draft a Heresay request',
|
|
50
55
|
description: 'Prepares a bug, a confusing part, an improvement or an idea for one app\'s Heresay inbox and returns a preview: '
|
|
51
56
|
+ 'the app it would go to, its type and text, and the other apps. Nothing is sent. Without an app it returns the list of apps. '
|
|
52
|
-
+ 'A Markdown (.md) file can be attached with `document` (its full contents).',
|
|
57
|
+
+ 'A Markdown (.md) file can be attached with `document` (its full contents); a file over 100,000 characters is attached in pieces with append_to_draft.',
|
|
53
58
|
inputSchema: {
|
|
54
59
|
type: 'object',
|
|
55
60
|
properties: {
|
|
@@ -65,6 +70,24 @@ const TOOLS = [
|
|
|
65
70
|
},
|
|
66
71
|
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
67
72
|
},
|
|
73
|
+
{
|
|
74
|
+
name: 'append_to_draft',
|
|
75
|
+
title: 'Add the next piece of a file to a Heresay draft',
|
|
76
|
+
description: 'Adds the next piece of the attached Markdown file to a draft from draft_request, for a file too long for one `document`. '
|
|
77
|
+
+ 'Pieces are joined exactly as given, in the order of the calls, so call it once per piece and wait for each answer; split at any point. '
|
|
78
|
+
+ 'Nothing is sent: send_draft sends the draft, with the whole file, as one request.',
|
|
79
|
+
inputSchema: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: {
|
|
82
|
+
draft_id: { type: 'string', description: 'From draft_request' },
|
|
83
|
+
document: { type: 'string', maxLength: LIMITS.documentMax, description: 'The next piece of the file, up to 100,000 characters.' },
|
|
84
|
+
document_title: { type: 'string', maxLength: LIMITS.documentTitleMax, description: 'The file\'s name or title, if the draft has none yet.' },
|
|
85
|
+
},
|
|
86
|
+
required: ['draft_id', 'document'],
|
|
87
|
+
additionalProperties: false,
|
|
88
|
+
},
|
|
89
|
+
annotations: { readOnlyHint: true, openWorldHint: false },
|
|
90
|
+
},
|
|
68
91
|
{
|
|
69
92
|
name: 'send_draft',
|
|
70
93
|
title: 'Send a Heresay draft',
|
|
@@ -174,6 +197,8 @@ async function one(m, member, via, req, deps) {
|
|
|
174
197
|
// send_request is what older bridges call; it drafts too, so nothing is sent unseen.
|
|
175
198
|
if (name === 'draft_request' || name === 'send_request')
|
|
176
199
|
return rpcResult(msg.id, await draftRequest(args, member, via, deps));
|
|
200
|
+
if (name === 'append_to_draft')
|
|
201
|
+
return rpcResult(msg.id, await appendToDraft(args, member, deps));
|
|
177
202
|
if (name === 'send_draft')
|
|
178
203
|
return rpcResult(msg.id, await sendDraft(args, member, req, deps));
|
|
179
204
|
if (name === 'withdraw_request')
|
|
@@ -224,7 +249,7 @@ async function draftRequest(a, member, via, deps) {
|
|
|
224
249
|
if (typeof a.document === 'string' && a.document.length > LIMITS.documentMax) {
|
|
225
250
|
throw new ToolError(`The document is ${a.document.length} characters; the limit is ${LIMITS.documentMax}. Shorten it or split it across requests.`);
|
|
226
251
|
}
|
|
227
|
-
const markdown = typeof a.document === 'string' && a.document.trim() ? a.document.replace(/\r\n/g, '\n')
|
|
252
|
+
const markdown = typeof a.document === 'string' && a.document.trim() ? a.document.replace(/\r\n/g, '\n') : null;
|
|
228
253
|
const document = markdown ? { title: str(a.document_title, LIMITS.documentTitleMax), markdown } : null;
|
|
229
254
|
const all = (await deps.store.listProjects()).sort((x, y) => x.created_at.localeCompare(y.created_at));
|
|
230
255
|
if (!str(a.app, 100)) {
|
|
@@ -234,14 +259,14 @@ async function draftRequest(a, member, via, deps) {
|
|
|
234
259
|
const id = createHash('sha256').update(`${member.email}${deps.now()}${Math.random()}`).digest('hex').slice(0, 24);
|
|
235
260
|
await deps.store.putAuth({
|
|
236
261
|
kind: 'draft', id, expires_at: new Date(deps.now() + DRAFT_TTL_MS).toISOString(),
|
|
237
|
-
data: { email: member.email, project_id: project.id, type: a.type, text, details, document, via },
|
|
262
|
+
data: { email: member.email, project_id: project.id, type: a.type, text, details, document, via, pieces: document ? 1 : 0 },
|
|
238
263
|
});
|
|
239
264
|
const others = all.filter((p) => p.id !== project.id);
|
|
240
265
|
return result([
|
|
241
266
|
`Draft, not sent yet. App: ${project.name} (${project.platform}). Type: ${a.type}.`,
|
|
242
267
|
`Text: ${text}`,
|
|
243
268
|
details ? `Details: ${details}` : null,
|
|
244
|
-
document ? `Attached document: ${document.title ? `"${document.title}", ` : ''}${document.markdown.length} characters of Markdown.` : null,
|
|
269
|
+
document ? `Attached document: ${document.title ? `"${document.title}", ` : ''}${document.markdown.length} characters of Markdown. A longer file goes on with append_to_draft.` : null,
|
|
245
270
|
others.length ? `Other apps it could go to instead: ${appNames(others)}.` : null,
|
|
246
271
|
`send_draft with draft_id ${id} sends it${others.length ? ' (with app set to send it elsewhere)' : ''}. Drafts last two hours.`,
|
|
247
272
|
].filter(Boolean).join('\n'), {
|
|
@@ -250,6 +275,38 @@ async function draftRequest(a, member, via, deps) {
|
|
|
250
275
|
other_apps: others.map((p) => ({ id: p.id, name: p.name, platform: p.platform })),
|
|
251
276
|
});
|
|
252
277
|
}
|
|
278
|
+
const trimmed = (d) => (d ? { ...d, markdown: d.markdown.trim() } : null);
|
|
279
|
+
/** The next piece of a draft's document. Refused, with the draft unchanged, if the whole would pass the cap. */
|
|
280
|
+
async function appendToDraft(a, member, deps) {
|
|
281
|
+
const id = str(a.draft_id, 64);
|
|
282
|
+
const d = id ? await deps.store.getAuth('draft', id) : null;
|
|
283
|
+
if (!d || String(d.data.email).toLowerCase() !== member.email.toLowerCase() || Date.parse(d.expires_at ?? '') < deps.now()) {
|
|
284
|
+
throw new ToolError('That draft doesn\'t exist, has expired or was already sent. Make a new one with draft_request.');
|
|
285
|
+
}
|
|
286
|
+
if (typeof a.document !== 'string' || !a.document.trim())
|
|
287
|
+
throw new ToolError('Give the next piece of the file in document.');
|
|
288
|
+
if (a.document.length > LIMITS.documentMax) {
|
|
289
|
+
throw new ToolError(`That piece is ${a.document.length} characters; a piece can be up to ${LIMITS.documentMax}. Split it and add the parts one by one.`);
|
|
290
|
+
}
|
|
291
|
+
const now = deps.now();
|
|
292
|
+
const start = Math.floor(now / APPEND_LIMIT.windowMs) * APPEND_LIMIT.windowMs;
|
|
293
|
+
if (!(await deps.store.hit(`chatappend:${APPEND_LIMIT.windowMs}:${member.email.toLowerCase()}:${start}`, APPEND_LIMIT.limit, start + APPEND_LIMIT.windowMs))) {
|
|
294
|
+
throw new ToolError('That\'s a lot of pieces in a short time. Try again later.');
|
|
295
|
+
}
|
|
296
|
+
const had = d.data.document ?? null;
|
|
297
|
+
const markdown = (had?.markdown ?? '') + a.document.replace(/\r\n/g, '\n');
|
|
298
|
+
const bytes = Buffer.byteLength(markdown, 'utf8');
|
|
299
|
+
// Refused rather than cut, so the end of a long file isn't silently missing.
|
|
300
|
+
if (bytes > LIMITS.documentBundleBytes) {
|
|
301
|
+
throw new ToolError(`With that piece the file would be ${bytes} bytes; the limit is ${LIMITS.documentBundleBytes}. The draft is unchanged: send it as it is, or start a new one with a shorter file.`);
|
|
302
|
+
}
|
|
303
|
+
const document = { title: had?.title ?? str(a.document_title, LIMITS.documentTitleMax), markdown };
|
|
304
|
+
const pieces = Number(d.data.pieces ?? 0) + 1;
|
|
305
|
+
// Each piece keeps the draft alive, so a long file isn't lost half-built.
|
|
306
|
+
await deps.store.putAuth({ ...d, expires_at: new Date(now + DRAFT_TTL_MS).toISOString(), data: { ...d.data, document, pieces } });
|
|
307
|
+
return result(`Added piece ${pieces}. The draft's document is now ${markdown.length} characters (${bytes} of ${LIMITS.documentBundleBytes} bytes allowed). `
|
|
308
|
+
+ `Add the next piece, or send_draft with draft_id ${id} to send the whole file as one request.`, { draft_id: id, sent: false, pieces, document: { title: document.title, characters: markdown.length, bytes } });
|
|
309
|
+
}
|
|
253
310
|
async function sendDraft(a, member, req, deps) {
|
|
254
311
|
const id = str(a.draft_id, 64);
|
|
255
312
|
const d = id ? await deps.store.getAuth('draft', id) : null;
|
|
@@ -262,7 +319,7 @@ async function sendDraft(a, member, req, deps) {
|
|
|
262
319
|
// Once only, however many times it's called.
|
|
263
320
|
if (!(await deps.store.takeAuth('draft', id)))
|
|
264
321
|
throw new ToolError('That draft was already sent.');
|
|
265
|
-
return createChatReport(project, d.data.type, String(d.data.text), d.data.details ?? null, d.data.document
|
|
322
|
+
return createChatReport(project, d.data.type, String(d.data.text), d.data.details ?? null, trimmed(d.data.document), member, String(d.data.via ?? 'a chat app'), req, deps);
|
|
266
323
|
}
|
|
267
324
|
async function createChatReport(project, type, text, details, document, member, via, req, deps) {
|
|
268
325
|
const now = deps.now();
|
|
@@ -24,6 +24,8 @@ export const LIMITS = {
|
|
|
24
24
|
textMax: 2000,
|
|
25
25
|
detailsMax: 8000,
|
|
26
26
|
documentMax: 100_000,
|
|
27
|
+
/** A document built up over several append_to_draft calls, in UTF-8 bytes: under Firestore's 1 MiB per document, with room for the rest of the report. */
|
|
28
|
+
documentBundleBytes: 800_000,
|
|
27
29
|
documentTitleMax: 120,
|
|
28
30
|
filesMax: 20,
|
|
29
31
|
pathMax: 300,
|
|
@@ -1320,6 +1320,8 @@
|
|
|
1320
1320
|
view.classList.add('inbox-view');
|
|
1321
1321
|
var reports = [], ctxs = {}, selected = null, loaded = false, detailSignature = null, loadSerial = 0;
|
|
1322
1322
|
var product = p ? productOf(p) : 'all', platform = 'all', search = '', type = 'all', source = 'all';
|
|
1323
|
+
// Choosing several open reports to accept together: the keys picked, a confirm step, the last one ticked (for shift-click).
|
|
1324
|
+
var picking = false, picked = {}, confirming = false, bulkBusy = false, lastPick = null;
|
|
1323
1325
|
var shell = el('div', { class: 'inbox-shell' });
|
|
1324
1326
|
var list = el('div', { class: 'report-list', 'aria-label': 'Reports' });
|
|
1325
1327
|
var detail = el('section', { class: 'report-detail', 'aria-label': 'Report details', tabindex: '-1' });
|
|
@@ -1339,10 +1341,11 @@
|
|
|
1339
1341
|
var controls = el('div', { class: 'inbox-controls' }, [productSelect, platformSelect, filterButton]);
|
|
1340
1342
|
var productTools = el('details', { class: 'inbox-app-tools', hidden: !p }, [el('summary', { text: 'Manage app' })]);
|
|
1341
1343
|
var listHead = el('div', { class: 'list-heading' }, [el('b', { text: 'Needs review' }), el('span', { text: 'Type, then most reported' })]);
|
|
1344
|
+
var bulkBar = el('div', { class: 'bulk-bar', hidden: true });
|
|
1342
1345
|
var master = el('section', { class: 'inbox-master', 'aria-label': 'Report inbox' }, [
|
|
1343
1346
|
el('div', { class: 'inbox-heading' }, [heading, el('p', { class: 'mute', text: 'A hearing for every report.' })]),
|
|
1344
1347
|
el('div', { class: 'inbox-search' }, [searchInput, el('kbd', { text: '⌘ K', 'aria-hidden': 'true' })]),
|
|
1345
|
-
controls, advanced, productTools, filters, listHead, list,
|
|
1348
|
+
controls, advanced, productTools, filters, listHead, bulkBar, list,
|
|
1346
1349
|
]);
|
|
1347
1350
|
shell.appendChild(master); shell.appendChild(detail); view.appendChild(shell);
|
|
1348
1351
|
detail.appendChild(loading());
|
|
@@ -1402,6 +1405,12 @@
|
|
|
1402
1405
|
var shown = here.filter(function (r) { return filter === 'all' || r.status === filter; });
|
|
1403
1406
|
listHead.firstChild.textContent = filter === 'open' ? 'Needs review' : filter === 'all' ? 'All reports' : STATUS_LABEL[filter] + ' reports';
|
|
1404
1407
|
if (!shown.some(function (r) { return key(r) === selected; })) selected = shown.length ? key(shown[0]) : null;
|
|
1408
|
+
// Only open reports can be accepted, so choosing is for that tab; whatever left the list drops out of the choice.
|
|
1409
|
+
if (filter !== 'open' || !shown.length) { picking = false; confirming = false; picked = {}; lastPick = null; }
|
|
1410
|
+
Object.keys(picked).forEach(function (k) { if (!shown.some(function (r) { return key(r) === k; })) delete picked[k]; });
|
|
1411
|
+
if (!Object.keys(picked).length) confirming = false;
|
|
1412
|
+
drawBulk(shown);
|
|
1413
|
+
list.classList.toggle('picking', picking);
|
|
1405
1414
|
list.textContent = '';
|
|
1406
1415
|
if (!projects.length) {
|
|
1407
1416
|
list.appendChild(el('div', { class: 'inbox-empty' }, [markImg(48), el('h2', { text: 'Add your first app' }), el('p', { text: 'Connect your app to give every report a hearing.' }), el('a', { class: 'btn primary', href: '#/new', text: 'Add an app' })]));
|
|
@@ -1417,7 +1426,20 @@
|
|
|
1417
1426
|
el('span', { class: 'preview-meta' }, [sourceTag(r, 'src-label'), (count > 1 ? ' · ' + count + ' reports' : '') + ' · ' + relative(r.created_at)])]),
|
|
1418
1427
|
el('span', { class: 'pill ' + r.type, text: TYPE_LABEL[r.type] }),
|
|
1419
1428
|
]);
|
|
1420
|
-
|
|
1429
|
+
var line = el('div', { class: 'report-row' }, [button]);
|
|
1430
|
+
if (picking) {
|
|
1431
|
+
var box = el('input', { type: 'checkbox', 'aria-label': 'Select: ' + title(r), disabled: bulkBusy });
|
|
1432
|
+
box.checked = !!picked[key(r)];
|
|
1433
|
+
box.addEventListener('click', function (e) {
|
|
1434
|
+
var on = box.checked, at = shown.indexOf(r);
|
|
1435
|
+
// Shift-click ticks everything between this one and the last.
|
|
1436
|
+
var from = e.shiftKey && lastPick !== null ? Math.min(at, lastPick) : at, to = e.shiftKey && lastPick !== null ? Math.max(at, lastPick) : at;
|
|
1437
|
+
shown.slice(from, to + 1).forEach(function (x) { if (on) picked[key(x)] = true; else delete picked[key(x)]; });
|
|
1438
|
+
lastPick = at; confirming = false; render();
|
|
1439
|
+
});
|
|
1440
|
+
line.insertBefore(el('label', { class: 'pick' }, [box]), button);
|
|
1441
|
+
}
|
|
1442
|
+
list.appendChild(line);
|
|
1421
1443
|
});
|
|
1422
1444
|
drawDetail(shown, preserveDetail);
|
|
1423
1445
|
var candidates = focusedReport ? list.querySelectorAll('[data-report]') : focusedStatus ? filters.querySelectorAll('[data-status]') : [];
|
|
@@ -1426,6 +1448,54 @@
|
|
|
1426
1448
|
return false;
|
|
1427
1449
|
});
|
|
1428
1450
|
}
|
|
1451
|
+
/** The bar over the list: start choosing, select all, how many, and the two-step accept. */
|
|
1452
|
+
function drawBulk(shown) {
|
|
1453
|
+
bulkBar.textContent = '';
|
|
1454
|
+
bulkBar.hidden = filter !== 'open' || !shown.length;
|
|
1455
|
+
if (bulkBar.hidden) return;
|
|
1456
|
+
if (!picking) {
|
|
1457
|
+
bulkBar.appendChild(el('button', { class: 'btn ghost', type: 'button', text: 'Select reports…', onclick: function () { picking = true; render(); } }));
|
|
1458
|
+
return;
|
|
1459
|
+
}
|
|
1460
|
+
var n = Object.keys(picked).length;
|
|
1461
|
+
var all = el('input', { type: 'checkbox', 'aria-label': 'Select all ' + shown.length + ' open reports', disabled: bulkBusy });
|
|
1462
|
+
all.checked = n === shown.length; all.indeterminate = n > 0 && n < shown.length;
|
|
1463
|
+
all.addEventListener('click', function () {
|
|
1464
|
+
shown.forEach(function (r) { if (all.checked) picked[key(r)] = true; else delete picked[key(r)]; });
|
|
1465
|
+
confirming = false; render();
|
|
1466
|
+
});
|
|
1467
|
+
bulkBar.appendChild(el('label', { class: 'pick-all' }, [all, ' All ' + shown.length]));
|
|
1468
|
+
bulkBar.appendChild(el('span', { class: 'count', role: 'status', text: bulkBusy ? 'Accepting…' : n ? n + ' selected' : 'None selected' }));
|
|
1469
|
+
bulkBar.appendChild(el('span', { class: 'spacer' }));
|
|
1470
|
+
if (confirming && n) {
|
|
1471
|
+
bulkBar.appendChild(el('span', { class: 'confirm-q', text: 'Make ' + n + (n === 1 ? ' report' : ' reports') + ' available to a coding agent?' }));
|
|
1472
|
+
bulkBar.appendChild(el('button', { class: 'btn primary', type: 'button', disabled: bulkBusy, text: 'Yes, accept ' + n, onclick: function () { acceptPicked(shown); } }));
|
|
1473
|
+
bulkBar.appendChild(el('button', { class: 'btn', type: 'button', disabled: bulkBusy, text: 'Back', onclick: function () { confirming = false; render(); } }));
|
|
1474
|
+
} else {
|
|
1475
|
+
bulkBar.appendChild(el('button', { class: 'btn primary', type: 'button', disabled: !n || bulkBusy, text: n ? 'Accept ' + n + '…' : 'Accept…', onclick: function () { confirming = true; render(); } }));
|
|
1476
|
+
bulkBar.appendChild(el('button', { class: 'btn ghost', type: 'button', disabled: bulkBusy, text: 'Cancel', onclick: function () { picking = false; picked = {}; lastPick = null; render(); } }));
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
/** One after another through the same accept a person does on a single report: the default repo, no note. A 409 or an error leaves that one open and the rest go on. */
|
|
1480
|
+
function acceptPicked(shown) {
|
|
1481
|
+
var todo = shown.filter(function (r) { return picked[key(r)]; }), ok = 0, failed = [];
|
|
1482
|
+
bulkBusy = true; confirming = false; render();
|
|
1483
|
+
var step = function (i) {
|
|
1484
|
+
if (i >= todo.length) return Promise.resolve();
|
|
1485
|
+
var r = todo[i];
|
|
1486
|
+
return api('POST', '/projects/' + r.project_id + '/reports/' + r.id + '/accept', {})
|
|
1487
|
+
.then(function (x) { Object.assign(r, x.report || {}); ok++; delete picked[key(r)]; })
|
|
1488
|
+
.catch(function (x) { failed.push(x.message); })
|
|
1489
|
+
.then(function () { return step(i + 1); });
|
|
1490
|
+
};
|
|
1491
|
+
step(0).then(function () {
|
|
1492
|
+
bulkBusy = false;
|
|
1493
|
+
if (!failed.length) { picking = false; lastPick = null; }
|
|
1494
|
+
toast('Accepted ' + ok + (ok === 1 ? ' report' : ' reports') + '. They are waiting for a coding agent.'
|
|
1495
|
+
+ (failed.length ? ' ' + failed.length + ' could not be accepted: ' + failed[0] : ''), null, failed.length > 0);
|
|
1496
|
+
selected = null; load(true);
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1429
1499
|
function drawDetail(shown, preserve) {
|
|
1430
1500
|
var chosen = shown.filter(function (x) { return key(x) === selected; })[0];
|
|
1431
1501
|
var signature = chosen ? JSON.stringify([chosen, ctxs[chosen.project_id].briefs[chosen.id], ctxs[chosen.project_id].dups[chosen.id], ctxs[chosen.project_id].repos]) : null;
|
|
@@ -99,6 +99,15 @@ h3 { font-size:15px; margin:0 0 14px; font-weight:700; }
|
|
|
99
99
|
.list-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:18px 24px; font-size:12px; }
|
|
100
100
|
.list-heading b { font-size:13px; }
|
|
101
101
|
.list-heading > span { font-size:10px; color:var(--mute); }
|
|
102
|
+
.report-row { position:relative; }
|
|
103
|
+
.report-row > .pick { position:absolute; left:0; top:0; bottom:0; width:42px; display:flex; align-items:center; justify-content:center; z-index:1; cursor:pointer; }
|
|
104
|
+
.report-list.picking .report-preview { padding-left:46px; }
|
|
105
|
+
.bulk-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 24px 12px; border-bottom:1px solid var(--line); font-size:12px; }
|
|
106
|
+
.bulk-bar[hidden] { display:none; }
|
|
107
|
+
.bulk-bar .pick-all { display:flex; align-items:center; gap:6px; font-weight:500; cursor:pointer; }
|
|
108
|
+
.bulk-bar .count { color:var(--mute); }
|
|
109
|
+
.bulk-bar .spacer { flex:1; }
|
|
110
|
+
.bulk-bar .confirm-q { font-weight:500; }
|
|
102
111
|
.report-preview { --type:var(--mute); display:grid; grid-template-columns:23px minmax(0,1fr) auto; gap:12px; width:100%; text-align:left; border:0; border-bottom:1px solid var(--line); background:var(--bg); font:inherit; padding:20px 22px 20px 24px; cursor:pointer; position:relative; color:var(--fg); }
|
|
103
112
|
.report-preview:hover { background:var(--rowhover); }
|
|
104
113
|
.report-preview[aria-current=true] { background:var(--rowsel); }
|