github-issue-tower-defence-management 2.1.1 → 2.1.2
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/consoleOperationApi.js +6 -4
- package/bin/adapter/entry-points/console/consoleOperationApi.js.map +1 -1
- package/bin/adapter/entry-points/console/ui-dist/assets/{index-lT5OKx7e.js → index-BVyeR7xJ.js} +2 -2
- package/bin/adapter/entry-points/console/ui-dist/index.html +1 -1
- package/bin/adapter/entry-points/console/webServer.js +0 -4
- package/bin/adapter/entry-points/console/webServer.js.map +1 -1
- package/package.json +1 -1
- package/src/adapter/entry-points/console/consoleOperationApi.test.ts +60 -32
- package/src/adapter/entry-points/console/consoleOperationApi.ts +6 -7
- package/src/adapter/entry-points/console/ui/e2e/consoleTestHarness.ts +12 -17
- package/src/adapter/entry-points/console/ui/src/features/console/components/list/ConsoleStoryList.stories.tsx +1 -0
- package/src/adapter/entry-points/console/ui/src/features/console/components/list/ConsoleStoryList.test.tsx +85 -0
- package/src/adapter/entry-points/console/ui/src/features/console/components/list/ConsoleStoryList.tsx +73 -1
- package/src/adapter/entry-points/console/ui/src/features/console/pages/ConsolePage.tsx +53 -16
- package/src/adapter/entry-points/console/ui-dist/assets/{index-lT5OKx7e.js → index-BVyeR7xJ.js} +2 -2
- package/src/adapter/entry-points/console/ui-dist/index.html +1 -1
- package/src/adapter/entry-points/console/webServer.ts +0 -8
- package/types/adapter/entry-points/console/consoleOperationApi.d.ts +1 -2
- package/types/adapter/entry-points/console/consoleOperationApi.d.ts.map +1 -1
- package/types/adapter/entry-points/console/webServer.d.ts +0 -2
- package/types/adapter/entry-points/console/webServer.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-BVyeR7xJ.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-CLHvrafO.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
@@ -3,7 +3,6 @@ import * as fs from 'fs';
|
|
|
3
3
|
import * as path from 'path';
|
|
4
4
|
import { IssueAttachmentRepository } from '../../../domain/usecases/adapter-interfaces/IssueAttachmentRepository';
|
|
5
5
|
import { IssueRepository } from '../../../domain/usecases/adapter-interfaces/IssueRepository';
|
|
6
|
-
import { ProjectRepository } from '../../../domain/usecases/adapter-interfaces/ProjectRepository';
|
|
7
6
|
import { Project } from '../../../domain/entities/Project';
|
|
8
7
|
import {
|
|
9
8
|
CONSOLE_LIST_TAB_NAMES,
|
|
@@ -240,7 +239,6 @@ export type WebServerOptions = {
|
|
|
240
239
|
resolveProjectRepository?: ConsoleProjectRepositoryResolver | null;
|
|
241
240
|
invalidateProject?: ((pjcode: string) => void) | null;
|
|
242
241
|
issueAttachmentRepository?: IssueAttachmentRepository | null;
|
|
243
|
-
projectRepository?: Pick<ProjectRepository, 'updateStoryList'> | null;
|
|
244
242
|
updateProjectCacheEntry?:
|
|
245
243
|
((pjcode: string, updatedProject: Project) => void) | null;
|
|
246
244
|
issueTitleStateCache?: IssueTitleStateCache | null;
|
|
@@ -574,18 +572,12 @@ const handleOperationApi = async (
|
|
|
574
572
|
}
|
|
575
573
|
const resolveIssueRepository =
|
|
576
574
|
options.resolveIssueRepository ?? ((): IssueRepository => issueRepository);
|
|
577
|
-
const projectRepository = options.projectRepository ?? null;
|
|
578
575
|
const context: ConsoleOperationContext = {
|
|
579
576
|
resolveIssueRepository,
|
|
580
577
|
resolveProject,
|
|
581
578
|
isPjcodeConfigured,
|
|
582
579
|
consoleDataOutputDir: options.consoleDataOutputDir,
|
|
583
580
|
issueAttachmentRepository: options.issueAttachmentRepository ?? null,
|
|
584
|
-
updateStoryList:
|
|
585
|
-
projectRepository !== null
|
|
586
|
-
? (project, stories) =>
|
|
587
|
-
projectRepository.updateStoryList(project, stories)
|
|
588
|
-
: null,
|
|
589
581
|
resolveProjectRepository: options.resolveProjectRepository ?? null,
|
|
590
582
|
invalidateProject: options.invalidateProject ?? null,
|
|
591
583
|
updateProjectCacheEntry: options.updateProjectCacheEntry ?? null,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Project } from '../../../domain/entities/Project';
|
|
2
2
|
import type { IssueAttachmentRepository } from '../../../domain/usecases/adapter-interfaces/IssueAttachmentRepository';
|
|
3
3
|
import type { IssueRepository } from '../../../domain/usecases/adapter-interfaces/IssueRepository';
|
|
4
4
|
import type { ProjectRepository } from '../../../domain/usecases/adapter-interfaces/ProjectRepository';
|
|
@@ -20,7 +20,6 @@ export type ConsoleOperationContext = {
|
|
|
20
20
|
isPjcodeConfigured: ConsolePjcodeValidator;
|
|
21
21
|
consoleDataOutputDir: string | null;
|
|
22
22
|
issueAttachmentRepository: IssueAttachmentRepository | null;
|
|
23
|
-
updateStoryList: ((project: Project, stories: FieldOption[]) => Promise<FieldOption[]>) | null;
|
|
24
23
|
resolveProjectRepository: ConsoleProjectRepositoryResolver | null;
|
|
25
24
|
invalidateProject: ((pjcode: string) => void) | null;
|
|
26
25
|
updateProjectCacheEntry: ((pjcode: string, updatedProject: Project) => void) | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consoleOperationApi.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/console/consoleOperationApi.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"consoleOperationApi.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/console/consoleOperationApi.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,OAAO,EACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uEAAuE,CAAC;AACvH,OAAO,KAAK,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,EAChC,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B,OAAO,CAAC,wBAAwB,CAyClC,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,SAAS,uBAAuB,EAChC,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B,OAAO,CAAC,wBAAwB,CAqBlC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as http from 'http';
|
|
2
2
|
import { IssueAttachmentRepository } from '../../../domain/usecases/adapter-interfaces/IssueAttachmentRepository';
|
|
3
3
|
import { IssueRepository } from '../../../domain/usecases/adapter-interfaces/IssueRepository';
|
|
4
|
-
import { ProjectRepository } from '../../../domain/usecases/adapter-interfaces/ProjectRepository';
|
|
5
4
|
import { Project } from '../../../domain/entities/Project';
|
|
6
5
|
import { IssueTitleStateCache, PullRequestStatusCache } from './consoleReadApi';
|
|
7
6
|
import { ConsoleIssueRepositoryResolver, ConsolePjcodeValidator, ConsoleProjectRepositoryResolver, ConsoleProjectResolver } from './consoleOperationApi';
|
|
@@ -36,7 +35,6 @@ export type WebServerOptions = {
|
|
|
36
35
|
resolveProjectRepository?: ConsoleProjectRepositoryResolver | null;
|
|
37
36
|
invalidateProject?: ((pjcode: string) => void) | null;
|
|
38
37
|
issueAttachmentRepository?: IssueAttachmentRepository | null;
|
|
39
|
-
projectRepository?: Pick<ProjectRepository, 'updateStoryList'> | null;
|
|
40
38
|
updateProjectCacheEntry?: ((pjcode: string, updatedProject: Project) => void) | null;
|
|
41
39
|
issueTitleStateCache?: IssueTitleStateCache | null;
|
|
42
40
|
pullRequestStatusCache?: PullRequestStatusCache | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webServer.d.ts","sourceRoot":"","sources":["../../../../src/adapter/entry-points/console/webServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAG7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,uEAAuE,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