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.
Files changed (45) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/bin/adapter/entry-points/console/ui-dist/assets/index-BUFcVUVD.js +86 -0
  3. package/bin/adapter/entry-points/console/ui-dist/index.html +1 -1
  4. package/bin/adapter/repositories/GoogleSpreadsheetRepository.js +41 -12
  5. package/bin/adapter/repositories/GoogleSpreadsheetRepository.js.map +1 -1
  6. package/bin/domain/usecases/extractFencedJsonBlocks.js +18 -0
  7. package/bin/domain/usecases/extractFencedJsonBlocks.js.map +1 -0
  8. package/bin/domain/usecases/extractNextStepAgent.js +14 -23
  9. package/bin/domain/usecases/extractNextStepAgent.js.map +1 -1
  10. package/bin/domain/usecases/isPullRequestDeclaredUnnecessary.js +10 -17
  11. package/bin/domain/usecases/isPullRequestDeclaredUnnecessary.js.map +1 -1
  12. package/package.json +1 -1
  13. package/src/adapter/entry-points/console/ui/e2e/consoleScenario.spec.ts +1 -1
  14. package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsoleItemDetail.stories.tsx +1 -0
  15. package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOkAndAwaitingWorkspaceActions.stories.tsx +25 -0
  16. package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOkAndAwaitingWorkspaceActions.test.tsx +50 -0
  17. package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOkAndAwaitingWorkspaceActions.tsx +41 -0
  18. package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOperationMenu.stories.tsx +1 -0
  19. package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOperationMenu.test.tsx +1 -0
  20. package/src/adapter/entry-points/console/ui/src/features/console/components/operations/ConsoleOperationMenu.tsx +5 -0
  21. package/src/adapter/entry-points/console/ui/src/features/console/hooks/useConsoleOperations.test.ts +70 -0
  22. package/src/adapter/entry-points/console/ui/src/features/console/hooks/useConsoleOperations.ts +29 -0
  23. package/src/adapter/entry-points/console/ui/src/features/console/logic/actionToast.test.ts +14 -0
  24. package/src/adapter/entry-points/console/ui/src/features/console/logic/actionToast.ts +5 -1
  25. package/src/adapter/entry-points/console/ui/src/features/console/logic/operations.ts +1 -0
  26. package/src/adapter/entry-points/console/ui/src/features/console/pages/ConsoleItemDetailContainer.test.tsx +1 -0
  27. package/src/adapter/entry-points/console/ui/src/features/console/pages/ConsoleItemDetailContainer.tsx +7 -0
  28. package/src/adapter/entry-points/console/ui-dist/assets/index-BUFcVUVD.js +86 -0
  29. package/src/adapter/entry-points/console/ui-dist/index.html +1 -1
  30. package/src/adapter/repositories/GoogleSpreadsheetRepository.test.ts +47 -0
  31. package/src/adapter/repositories/GoogleSpreadsheetRepository.ts +76 -36
  32. package/src/domain/usecases/extractFencedJsonBlocks.test.ts +40 -0
  33. package/src/domain/usecases/extractFencedJsonBlocks.ts +21 -0
  34. package/src/domain/usecases/extractNextStepAgent.test.ts +19 -0
  35. package/src/domain/usecases/extractNextStepAgent.ts +15 -27
  36. package/src/domain/usecases/isPullRequestDeclaredUnnecessary.test.ts +33 -0
  37. package/src/domain/usecases/isPullRequestDeclaredUnnecessary.ts +13 -21
  38. package/types/adapter/repositories/GoogleSpreadsheetRepository.d.ts +3 -1
  39. package/types/adapter/repositories/GoogleSpreadsheetRepository.d.ts.map +1 -1
  40. package/types/domain/usecases/extractFencedJsonBlocks.d.ts +2 -0
  41. package/types/domain/usecases/extractFencedJsonBlocks.d.ts.map +1 -0
  42. package/types/domain/usecases/extractNextStepAgent.d.ts.map +1 -1
  43. package/types/domain/usecases/isPullRequestDeclaredUnnecessary.d.ts.map +1 -1
  44. package/bin/adapter/entry-points/console/ui-dist/assets/index-I_2Yu8fM.js +0 -86
  45. 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 =