github-issue-tower-defence-management 1.146.18 → 1.146.20

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 (22) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bin/adapter/entry-points/console/ui-dist/assets/index-wljqMpcX.js +82 -0
  3. package/bin/adapter/entry-points/console/ui-dist/index.html +1 -1
  4. package/bin/domain/usecases/console/GenerateConsoleListsUseCase.js +1 -1
  5. package/bin/domain/usecases/console/GenerateConsoleListsUseCase.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/adapter/entry-points/console/ui/e2e/consoleScenario.spec.ts +3 -1
  8. package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsoleItemDetail.test.tsx +46 -0
  9. package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsoleItemDetail.tsx +6 -1
  10. package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsolePullRequestDetail.tsx +4 -1
  11. package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsolePullRequestMergeableChip.stories.tsx +29 -0
  12. package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsolePullRequestMergeableChip.test.tsx +30 -0
  13. package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsolePullRequestMergeableChip.tsx +50 -0
  14. package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsolePullRequestStatusBadges.stories.tsx +2 -15
  15. package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsolePullRequestStatusBadges.test.tsx +0 -48
  16. package/src/adapter/entry-points/console/ui/src/features/console/components/detail/ConsolePullRequestStatusBadges.tsx +1 -35
  17. package/src/adapter/entry-points/console/ui-dist/assets/index-wljqMpcX.js +82 -0
  18. package/src/adapter/entry-points/console/ui-dist/index.html +1 -1
  19. package/src/domain/usecases/console/GenerateConsoleListsUseCase.test.ts +25 -6
  20. package/src/domain/usecases/console/GenerateConsoleListsUseCase.ts +1 -1
  21. package/bin/adapter/entry-points/console/ui-dist/assets/index-Dj5NvMDZ.js +0 -82
  22. package/src/adapter/entry-points/console/ui-dist/assets/index-Dj5NvMDZ.js +0 -82
@@ -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-Dj5NvMDZ.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-wljqMpcX.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-CDLgAfIB.css">
9
9
  </head>
10
10
  <body>
@@ -313,24 +313,38 @@ describe('GenerateConsoleListsUseCase', () => {
313
313
  ...result['todo-by-human'].items,
314
314
  ];
315
315
 
316
- it('hides a workflow-blocker-story In Tmux by agent issue from every tab', () => {
316
+ it('shows a workflow-blocker-story In Tmux by agent issue on the workflow blocker tab and nowhere else', () => {
317
317
  const result = run([
318
318
  makeIssue({
319
319
  story: 'regular / WORKFLOW BLOCKER',
320
320
  status: 'In Tmux by agent',
321
321
  }),
322
322
  ]);
323
+ expect(
324
+ result['workflow-blocker'].items.map((item) => item.status),
325
+ ).toEqual(['In Tmux by agent']);
326
+ expect(allTabItems(result)).toHaveLength(1);
327
+ });
328
+
329
+ it('hides a no-story In Tmux by agent issue from every tab', () => {
330
+ const result = run([
331
+ makeIssue({
332
+ story: 'no story',
333
+ status: 'In Tmux by agent',
334
+ }),
335
+ ]);
323
336
  expect(allTabItems(result)).toHaveLength(0);
324
337
  });
325
338
 
326
- it('hides In Tmux by agent case-insensitively from every tab', () => {
339
+ it('hides In Tmux by agent case-insensitively from every tab other than the workflow blocker tab', () => {
327
340
  const result = run([
328
341
  makeIssue({
329
342
  story: 'regular / WORKFLOW BLOCKER',
330
343
  status: 'in tmux by agent',
331
344
  }),
332
345
  ]);
333
- expect(allTabItems(result)).toHaveLength(0);
346
+ expect(result['workflow-blocker'].items).toHaveLength(1);
347
+ expect(allTabItems(result)).toHaveLength(1);
334
348
  });
335
349
 
336
350
  it('keeps sibling issues with other statuses displaying as before', () => {
@@ -346,11 +360,16 @@ describe('GenerateConsoleListsUseCase', () => {
346
360
  makeIssue({ status: 'Unread' }),
347
361
  ]);
348
362
  expect(
349
- result['workflow-blocker'].items.map((item) => item.status),
350
- ).toEqual(['In Tmux by human']);
363
+ result['workflow-blocker'].items.map((item) => item.status).sort(),
364
+ ).toEqual(['In Tmux by agent', 'In Tmux by human']);
351
365
  expect(result.unread.items.map((item) => item.number)).toEqual([3]);
352
366
  expect(
353
- allTabItems(result).some((item) => item.status === 'In Tmux by agent'),
367
+ result.prs.items
368
+ .concat(result.triage.items)
369
+ .concat(result.unread.items)
370
+ .concat(result['failed-preparation'].items)
371
+ .concat(result['todo-by-human'].items)
372
+ .some((item) => item.status === 'In Tmux by agent'),
354
373
  ).toBe(false);
355
374
  });
356
375
  });
@@ -141,7 +141,7 @@ export class GenerateConsoleListsUseCase {
141
141
 
142
142
  return {
143
143
  'workflow-blocker': buildStatusTabFromSource(
144
- visibleIssues.filter((issue) => issue.isClosed === false),
144
+ issues.filter((issue) => issue.isClosed === false),
145
145
  this.workflowBlockerSelector(workflowBlockerStoryName),
146
146
  ['done'],
147
147
  ),