buddy-workbench 0.2.14 → 0.2.16
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 +1 -1
- package/server/routes/jira-filters.js +9 -2
- package/server/services/script-supervisor.js +7 -1
- package/ui/dist/assets/{index-RvrWkRAD.js → index-DXe5CVco.js} +180 -180
- package/ui/dist/assets/{xmindAdapter-CLCxNrZn.js → xmindAdapter-BIfpwShm.js} +1 -1
- package/ui/dist/index.html +1 -1
- package/ui/dist/sw.js +2 -2
package/package.json
CHANGED
|
@@ -443,7 +443,14 @@ router.get('/recently-commented', async (_req, res) => {
|
|
|
443
443
|
|
|
444
444
|
const myComments = comments.filter((c) => isAuthorMatch(c.author || c.updateAuthor, identity));
|
|
445
445
|
if (myComments.length > 0) {
|
|
446
|
-
|
|
446
|
+
// A comment's updated timestamp changes when an older comment is edited.
|
|
447
|
+
// Recently Commented should follow the time the comment was posted, so
|
|
448
|
+
// an edit cannot make an old comment appear newer than a later comment.
|
|
449
|
+
myComments.sort((a, b) => {
|
|
450
|
+
const aCreated = new Date(a.created || a.updated || 0).getTime();
|
|
451
|
+
const bCreated = new Date(b.created || b.updated || 0).getTime();
|
|
452
|
+
return bCreated - aCreated;
|
|
453
|
+
});
|
|
447
454
|
const latestMyComment = myComments[0];
|
|
448
455
|
const bodyText = extractCommentBodyText(latestMyComment.body);
|
|
449
456
|
const commentSnippet = bodyText.slice(0, 140).replace(/\r?\n+/g, ' ');
|
|
@@ -456,7 +463,7 @@ router.get('/recently-commented', async (_req, res) => {
|
|
|
456
463
|
priority: fields.priority?.name || '',
|
|
457
464
|
status: fields.status?.name || '',
|
|
458
465
|
commentSnippet,
|
|
459
|
-
commentedAt: latestMyComment.
|
|
466
|
+
commentedAt: latestMyComment.created || latestMyComment.updated || fields.updated,
|
|
460
467
|
url: `https://${jiraHost}/browse/${key}${commentId ? `?focusedCommentId=${commentId}#comment-${commentId}` : ''}`
|
|
461
468
|
};
|
|
462
469
|
}
|
|
@@ -4,7 +4,13 @@ import { promisify } from 'node:util';
|
|
|
4
4
|
const execFileAsync = promisify(execFile);
|
|
5
5
|
const parentPid = Number(process.env.BUDDY_PARENT_PID);
|
|
6
6
|
const command = process.env.BUDDY_SCRIPT_COMMAND;
|
|
7
|
-
|
|
7
|
+
// GUI apps on macOS can start with a much lower file-descriptor soft limit
|
|
8
|
+
// than an interactive Terminal session. Raise it for the command shell when
|
|
9
|
+
// the inherited hard limit allows it, so file watchers in dev servers work.
|
|
10
|
+
const launchCommand = process.platform === 'darwin'
|
|
11
|
+
? `ulimit -n 65536 2>/dev/null || ulimit -n 4096 2>/dev/null || true\n${command}`
|
|
12
|
+
: command;
|
|
13
|
+
const child = spawn(launchCommand, {
|
|
8
14
|
cwd: process.cwd(),
|
|
9
15
|
shell: true,
|
|
10
16
|
stdio: 'inherit',
|