github-issue-tower-defence-management 1.180.1 → 1.181.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 +13 -0
- package/bin/adapter/entry-points/console/ui-dist/assets/index-BUFcVUVD.js +86 -0
- package/bin/adapter/entry-points/console/ui-dist/index.html +1 -1
- package/bin/adapter/repositories/GoogleSpreadsheetRepository.js +41 -12
- package/bin/adapter/repositories/GoogleSpreadsheetRepository.js.map +1 -1
- package/bin/domain/usecases/extractFencedJsonBlocks.js +18 -0
- package/bin/domain/usecases/extractFencedJsonBlocks.js.map +1 -0
- package/bin/domain/usecases/extractNextStepAgent.js +14 -23
- package/bin/domain/usecases/extractNextStepAgent.js.map +1 -1
- package/bin/domain/usecases/isPullRequestDeclaredUnnecessary.js +10 -17
- package/bin/domain/usecases/isPullRequestDeclaredUnnecessary.js.map +1 -1
- package/package.json +1 -1
- package/src/adapter/entry-points/console/ui/e2e/consoleScenario.spec.ts +1 -1
- package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsoleItemDetail.stories.tsx +1 -0
- package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOkAndAwaitingWorkspaceActions.stories.tsx +25 -0
- package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOkAndAwaitingWorkspaceActions.test.tsx +50 -0
- package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOkAndAwaitingWorkspaceActions.tsx +41 -0
- package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOperationMenu.stories.tsx +1 -0
- package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOperationMenu.test.tsx +1 -0
- package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOperationMenu.tsx +5 -0
- package/src/adapter/entry-points/console/ui/src/features/console/hooks/useConsoleOperations.test.ts +70 -0
- package/src/adapter/entry-points/console/ui/src/features/console/hooks/useConsoleOperations.ts +29 -0
- package/src/adapter/entry-points/console/ui/src/features/console/logic/actionToast.test.ts +14 -0
- package/src/adapter/entry-points/console/ui/src/features/console/logic/actionToast.ts +5 -1
- package/src/adapter/entry-points/console/ui/src/features/console/logic/operations.ts +1 -0
- package/src/adapter/entry-points/console/ui/src/features/console/pages/ConsoleItemDetailContainer.test.tsx +1 -0
- package/src/adapter/entry-points/console/ui/src/features/console/pages/ConsoleItemDetailContainer.tsx +7 -0
- package/src/adapter/entry-points/console/ui-dist/assets/index-BUFcVUVD.js +86 -0
- package/src/adapter/entry-points/console/ui-dist/index.html +1 -1
- package/src/adapter/repositories/GoogleSpreadsheetRepository.test.ts +47 -0
- package/src/adapter/repositories/GoogleSpreadsheetRepository.ts +76 -36
- package/src/domain/usecases/extractFencedJsonBlocks.test.ts +40 -0
- package/src/domain/usecases/extractFencedJsonBlocks.ts +21 -0
- package/src/domain/usecases/extractNextStepAgent.test.ts +19 -0
- package/src/domain/usecases/extractNextStepAgent.ts +15 -27
- package/src/domain/usecases/isPullRequestDeclaredUnnecessary.test.ts +33 -0
- package/src/domain/usecases/isPullRequestDeclaredUnnecessary.ts +13 -21
- package/types/adapter/repositories/GoogleSpreadsheetRepository.d.ts +3 -1
- package/types/adapter/repositories/GoogleSpreadsheetRepository.d.ts.map +1 -1
- package/types/domain/usecases/extractFencedJsonBlocks.d.ts +2 -0
- package/types/domain/usecases/extractFencedJsonBlocks.d.ts.map +1 -0
- package/types/domain/usecases/extractNextStepAgent.d.ts.map +1 -1
- package/types/domain/usecases/isPullRequestDeclaredUnnecessary.d.ts.map +1 -1
- package/bin/adapter/entry-points/console/ui-dist/assets/index-I_2Yu8fM.js +0 -86
- package/src/adapter/entry-points/console/ui-dist/assets/index-I_2Yu8fM.js +0 -86
|
@@ -20,7 +20,8 @@ export type ConsoleActionKind =
|
|
|
20
20
|
| { type: 'set_story'; optionName: string }
|
|
21
21
|
| { type: 'set_status'; optionName: string }
|
|
22
22
|
| { type: 'set_in_tmux_by_human'; optionName: string }
|
|
23
|
-
| { type: 'close'; action: ConsoleCloseAction }
|
|
23
|
+
| { type: 'close'; action: ConsoleCloseAction }
|
|
24
|
+
| { type: 'ok_and_awaiting_workspace' };
|
|
24
25
|
|
|
25
26
|
export const ACTION_TOAST_DELAY_MS = 5000;
|
|
26
27
|
|
|
@@ -56,6 +57,8 @@ export const actionToastMessage = (
|
|
|
56
57
|
return `Status → ${kind.optionName}`;
|
|
57
58
|
case 'set_in_tmux_by_human':
|
|
58
59
|
return 'Added to In Tmux by human';
|
|
60
|
+
case 'ok_and_awaiting_workspace':
|
|
61
|
+
return 'ok → Awaiting Workspace';
|
|
59
62
|
case 'close':
|
|
60
63
|
return kind.action === 'close' ? 'Closed' : 'Closed as not planned';
|
|
61
64
|
}
|
|
@@ -81,6 +84,7 @@ export const actionToastColor = (
|
|
|
81
84
|
case 'set_story':
|
|
82
85
|
case 'set_status':
|
|
83
86
|
case 'set_in_tmux_by_human':
|
|
87
|
+
case 'ok_and_awaiting_workspace':
|
|
84
88
|
return 'blue';
|
|
85
89
|
case 'close':
|
|
86
90
|
return 'red';
|
|
@@ -38,6 +38,7 @@ export type ConsoleOperationHandlers = {
|
|
|
38
38
|
onSetStatus: (option: ConsoleFieldOption) => void;
|
|
39
39
|
onSetInTmuxByHuman: (option: ConsoleFieldOption) => void;
|
|
40
40
|
onClose: (action: ConsoleCloseAction) => void;
|
|
41
|
+
onOkAndAwaitingWorkspace: (option: ConsoleFieldOption) => void;
|
|
41
42
|
};
|
|
42
43
|
|
|
43
44
|
export const STATUS_BUTTON_NAMES: string[] = [
|
|
@@ -74,6 +74,7 @@ const buildOperations = (): ConsoleOperationsApi => ({
|
|
|
74
74
|
setStatus: jest.fn(async () => {}),
|
|
75
75
|
setInTmuxByHuman: jest.fn(async () => {}),
|
|
76
76
|
closeIssue: jest.fn(async () => {}),
|
|
77
|
+
okAndMoveToAwaitingWorkspace: jest.fn(async () => {}),
|
|
77
78
|
addComment: jest.fn(async () => ({
|
|
78
79
|
author: 'HiromiShikata',
|
|
79
80
|
body: 'comment body',
|
|
@@ -150,6 +150,13 @@ export const ConsoleItemDetailContainer = ({
|
|
|
150
150
|
commit: () => operations.closeIssue(item, action),
|
|
151
151
|
});
|
|
152
152
|
},
|
|
153
|
+
onOkAndAwaitingWorkspace: (option: ConsoleFieldOption) => {
|
|
154
|
+
onQueueAction({
|
|
155
|
+
kind: { type: 'ok_and_awaiting_workspace' },
|
|
156
|
+
item,
|
|
157
|
+
commit: () => operations.okAndMoveToAwaitingWorkspace(item, option),
|
|
158
|
+
});
|
|
159
|
+
},
|
|
153
160
|
};
|
|
154
161
|
|
|
155
162
|
const resolvedStoryName =
|