github-issue-tower-defence-management 1.197.0 → 1.197.1
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 +7 -0
- package/bin/adapter/entry-points/console/consoleDataDelivery.js +1 -20
- package/bin/adapter/entry-points/console/consoleDataDelivery.js.map +1 -1
- package/bin/adapter/entry-points/console/ui-dist/assets/{index-CYwLv9pf.js → index-lT5OKx7e.js} +2 -2
- package/bin/adapter/entry-points/console/ui-dist/index.html +1 -1
- package/package.json +1 -1
- package/src/adapter/entry-points/console/consoleDataDelivery.test.ts +12 -6
- package/src/adapter/entry-points/console/consoleDataDelivery.ts +1 -31
- package/src/adapter/entry-points/console/ui/src/features/console/logic/overlay.test.ts +30 -18
- package/src/adapter/entry-points/console/ui/src/features/console/logic/overlay.ts +12 -3
- package/src/adapter/entry-points/console/ui/src/features/console/pages/ConsolePage.tsx +3 -1
- package/src/adapter/entry-points/console/ui-dist/assets/{index-CYwLv9pf.js → index-lT5OKx7e.js} +2 -2
- package/src/adapter/entry-points/console/ui-dist/index.html +1 -1
- package/src/adapter/entry-points/console/webServer.test.ts +10 -4
- package/src/adapter/entry-points/handlers/consoleListsWriter.test.ts +2 -2
- package/types/adapter/entry-points/console/consoleDataDelivery.d.ts.map +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>TDPM Console</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-lT5OKx7e.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-CLHvrafO.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
@@ -545,7 +545,7 @@ describe('webServer new routes integration', () => {
|
|
|
545
545
|
},
|
|
546
546
|
});
|
|
547
547
|
|
|
548
|
-
it('serves a data list file
|
|
548
|
+
it('serves a data list file through the token gate without done filtering', async () => {
|
|
549
549
|
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'console-server-'));
|
|
550
550
|
const dataDir = path.join(tmpDir, 'data');
|
|
551
551
|
const listDir = path.join(dataDir, 'acme', 'prs');
|
|
@@ -554,12 +554,15 @@ describe('webServer new routes integration', () => {
|
|
|
554
554
|
path.join(listDir, 'list.json'),
|
|
555
555
|
JSON.stringify({
|
|
556
556
|
pjcode: 'acme',
|
|
557
|
-
items: [
|
|
557
|
+
items: [
|
|
558
|
+
{ projectItemId: 'PVTI_keep' },
|
|
559
|
+
{ projectItemId: 'PVTI_also_keep' },
|
|
560
|
+
],
|
|
558
561
|
}),
|
|
559
562
|
);
|
|
560
563
|
fs.writeFileSync(
|
|
561
564
|
path.join(listDir, '.done.json'),
|
|
562
|
-
JSON.stringify({ projectItemIds: ['
|
|
565
|
+
JSON.stringify({ projectItemIds: ['PVTI_also_keep'] }),
|
|
563
566
|
);
|
|
564
567
|
const server = await startWebServer({
|
|
565
568
|
accessToken: testToken,
|
|
@@ -588,7 +591,10 @@ describe('webServer new routes integration', () => {
|
|
|
588
591
|
const parsed: unknown = JSON.parse(authorized.body);
|
|
589
592
|
expect(parsed).toEqual({
|
|
590
593
|
pjcode: 'acme',
|
|
591
|
-
items: [
|
|
594
|
+
items: [
|
|
595
|
+
{ projectItemId: 'PVTI_keep' },
|
|
596
|
+
{ projectItemId: 'PVTI_also_keep' },
|
|
597
|
+
],
|
|
592
598
|
});
|
|
593
599
|
} finally {
|
|
594
600
|
await closeServer(server);
|
|
@@ -312,12 +312,12 @@ describe('writeConsoleLists', () => {
|
|
|
312
312
|
expect(todoByHumanServedItemCount()).toBe(1);
|
|
313
313
|
});
|
|
314
314
|
|
|
315
|
-
it('
|
|
315
|
+
it('serves an item regardless of a done record accumulated between regenerations', () => {
|
|
316
316
|
regenerateTodoByHuman();
|
|
317
317
|
expect(todoByHumanServedItemCount()).toBe(1);
|
|
318
318
|
|
|
319
319
|
recordDoneProjectItemId(outDir, 'demo', 'todo-by-human', 'item-1');
|
|
320
|
-
expect(todoByHumanServedItemCount()).toBe(
|
|
320
|
+
expect(todoByHumanServedItemCount()).toBe(1);
|
|
321
321
|
|
|
322
322
|
regenerateTodoByHuman();
|
|
323
323
|
expect(todoByHumanServedItemCount()).toBe(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consoleDataDelivery.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/console/consoleDataDelivery.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"consoleDataDelivery.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/console/consoleDataDelivery.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAElC,MAAM,MAAM,gBAAgB,GACxB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAC7C;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC;AAO9D,eAAO,MAAM,qBAAqB,GAChC,aAAa,MAAM,KAClB,gBAAgB,GAAG,IAoCrB,CAAC;AAmBF,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,sBAAsB,MAAM,EAC5B,OAAO,gBAAgB,KACtB,mBAuCF,CAAC"}
|