@startsimpli/integrations 0.2.200 → 0.2.202

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 (147) hide show
  1. package/package.json +7 -7
  2. package/src/__tests__/briefing-actions.test.ts +11 -0
  3. package/src/__tests__/briefing-edits.test.ts +98 -0
  4. package/src/__tests__/briefing-markdown.test.ts +64 -0
  5. package/src/__tests__/converse-brain.test.ts +64 -1
  6. package/src/__tests__/converse-cards.test.ts +53 -0
  7. package/src/__tests__/converse-handoff.test.ts +8 -0
  8. package/src/__tests__/converse-meeting-brief.test.ts +72 -8
  9. package/src/__tests__/converse-meeting-duplex.test.ts +132 -0
  10. package/src/__tests__/converse-meeting-keep-speech.test.ts +87 -0
  11. package/src/__tests__/converse-meeting-vad.test.ts +1 -1
  12. package/src/__tests__/converse-page.test.tsx +148 -37
  13. package/src/__tests__/converse-roci.test.ts +22 -0
  14. package/src/__tests__/converse-spoken-form.test.ts +10 -0
  15. package/src/__tests__/converse-spoken-summary.test.ts +27 -6
  16. package/src/__tests__/converse-structure.test.ts +27 -0
  17. package/src/__tests__/converse-view.test.ts +46 -0
  18. package/src/__tests__/converse.test.ts +29 -2
  19. package/src/__tests__/corpus-ask.test.ts +22 -0
  20. package/src/__tests__/corpus-tracker.test.tsx +42 -174
  21. package/src/__tests__/data-table-logic.test.ts +75 -0
  22. package/src/__tests__/data-table.test.tsx +133 -0
  23. package/src/__tests__/extract-classify.test.ts +17 -0
  24. package/src/__tests__/fleet-page.test.tsx +57 -0
  25. package/src/__tests__/fleet-view.test.ts +149 -0
  26. package/src/__tests__/home-brief.test.tsx +25 -40
  27. package/src/__tests__/library-call-shape.test.tsx +164 -0
  28. package/src/__tests__/load-error.test.tsx +1 -1
  29. package/src/__tests__/mini-markdown.test.tsx +24 -0
  30. package/src/__tests__/overview-page.test.tsx +36 -6
  31. package/src/__tests__/plan-shell.test.tsx +6 -4
  32. package/src/__tests__/project-basis-entity.test.ts +19 -0
  33. package/src/__tests__/project-basis.test.ts +21 -0
  34. package/src/__tests__/relay-cli.test.ts +10 -1
  35. package/src/__tests__/task-detail-project-guess.test.tsx +46 -0
  36. package/src/__tests__/timeline-events.test.ts +65 -0
  37. package/src/__tests__/timeline-table.test.tsx +66 -0
  38. package/src/__tests__/todo-table-model.test.ts +75 -0
  39. package/src/__tests__/todo-table.test.tsx +202 -0
  40. package/src/__tests__/tracker-timeline-component.test.tsx +4 -4
  41. package/src/__tests__/tracker-timeline-reader.test.ts +1 -1
  42. package/src/comms/__tests__/app-sends-page.test.tsx +69 -0
  43. package/src/comms/api/comms.ts +23 -0
  44. package/src/comms/components/ResultsPanel.tsx +2 -2
  45. package/src/comms/components/SendLog.tsx +20 -8
  46. package/src/comms/components/index.ts +1 -0
  47. package/src/comms/components/pages/AppSendsPage.tsx +58 -0
  48. package/src/comms/hooks/index.ts +8 -3
  49. package/src/components/FolderTree.tsx +12 -3
  50. package/src/components/index.ts +4 -1
  51. package/src/components/pages/ConversePage.tsx +114 -105
  52. package/src/components/pages/FleetPage.tsx +115 -0
  53. package/src/components/pages/LibraryPage.tsx +63 -24
  54. package/src/components/pages/TaskDetailPage.tsx +27 -1
  55. package/src/components/pages/TrackerPage.tsx +170 -474
  56. package/src/components/pages/converse/CardView.tsx +72 -0
  57. package/src/components/pages/converse/SettingsMenu.tsx +37 -0
  58. package/src/components/pages/converse/Thread.tsx +48 -33
  59. package/src/components/pages/converse/useNeedsYou.ts +60 -0
  60. package/src/components/pages/home/BriefCard.tsx +16 -7
  61. package/src/components/pages/home/HomeBriefPage.tsx +6 -91
  62. package/src/components/pages/home/MiniMarkdown.tsx +51 -0
  63. package/src/components/pages/home/{DueSoonLine.tsx → dueSoonText.ts} +2 -11
  64. package/src/components/pages/home/index.ts +1 -1
  65. package/src/components/pages/overview/OverviewPage.tsx +46 -83
  66. package/src/components/pages/plan/TalkPage.tsx +5 -14
  67. package/src/components/pages/plan/TimelinePage.tsx +4 -2
  68. package/src/components/pages/task-tracker/ProjectGuess.tsx +42 -0
  69. package/src/components/pages/tracker/SweepPanel.tsx +108 -0
  70. package/src/components/pages/tracker/TimelineTable.tsx +70 -0
  71. package/src/components/pages/tracker/TrackerTimeline.tsx +32 -15
  72. package/src/components/table/DataTable.tsx +92 -0
  73. package/src/components/table/RowMenu.tsx +35 -0
  74. package/src/components/table/TablePagination.tsx +63 -0
  75. package/src/components/table/TableToolbar.tsx +56 -0
  76. package/src/components/table/TodoTable.tsx +142 -0
  77. package/src/components/table/index.ts +10 -0
  78. package/src/components/table/table-logic.ts +60 -0
  79. package/src/components/table/todo-model.ts +93 -0
  80. package/src/corpus/ask-items.ts +7 -4
  81. package/src/corpus/ask.ts +1 -1
  82. package/src/corpus/briefing/actions/confirm.ts +9 -1
  83. package/src/corpus/briefing/actions/execute.ts +71 -11
  84. package/src/corpus/briefing/actions/log.ts +1 -1
  85. package/src/corpus/briefing/actions/seam.ts +18 -2
  86. package/src/corpus/briefing/actions/types.ts +14 -0
  87. package/src/corpus/briefing/generate-weekly.ts +4 -0
  88. package/src/corpus/briefing/generate.ts +4 -0
  89. package/src/corpus/briefing/index.ts +1 -0
  90. package/src/corpus/briefing/intent/describe.ts +5 -1
  91. package/src/corpus/briefing/intent/edits.ts +92 -0
  92. package/src/corpus/briefing/intent/grammar.ts +3 -0
  93. package/src/corpus/briefing/intent/ground.ts +5 -1
  94. package/src/corpus/briefing/intent/match.ts +3 -1
  95. package/src/corpus/briefing/intent/model.ts +36 -3
  96. package/src/corpus/briefing/intent/resolve.ts +12 -1
  97. package/src/corpus/briefing/intent/types.ts +8 -0
  98. package/src/corpus/briefing/markdown.ts +71 -0
  99. package/src/corpus/briefing/speak.ts +13 -0
  100. package/src/corpus/client.ts +40 -146
  101. package/src/corpus/converse/brain.ts +41 -13
  102. package/src/corpus/converse/briefing-queue.ts +105 -27
  103. package/src/corpus/converse/cards.ts +69 -0
  104. package/src/corpus/converse/client.ts +6 -0
  105. package/src/corpus/converse/fleet-view.ts +126 -0
  106. package/src/corpus/converse/fleet.ts +18 -5
  107. package/src/corpus/converse/followups.ts +12 -2
  108. package/src/corpus/converse/handle.ts +21 -12
  109. package/src/corpus/converse/handoff.ts +7 -2
  110. package/src/corpus/converse/index.ts +11 -3
  111. package/src/corpus/converse/meeting-config.ts +8 -4
  112. package/src/corpus/converse/meeting.ts +66 -11
  113. package/src/corpus/converse/respond.ts +14 -2
  114. package/src/corpus/converse/roci.ts +13 -0
  115. package/src/corpus/converse/spoken-form.ts +9 -2
  116. package/src/corpus/converse/spoken-summary.ts +30 -8
  117. package/src/corpus/converse/store.ts +2 -0
  118. package/src/corpus/converse/structure.ts +39 -0
  119. package/src/corpus/converse/types.ts +14 -1
  120. package/src/corpus/converse/view.ts +34 -0
  121. package/src/corpus/entities.ts +2 -0
  122. package/src/corpus/extract.ts +9 -4
  123. package/src/corpus/index.ts +2 -0
  124. package/src/corpus/participants.ts +220 -0
  125. package/src/corpus/project-basis.ts +23 -0
  126. package/src/corpus/timeline-events.ts +83 -0
  127. package/src/corpus/tracker-sort.ts +9 -3
  128. package/src/corpus/tracker-timeline-client.ts +2 -0
  129. package/src/corpus/tracker-timeline.ts +4 -0
  130. package/src/corpus/types.ts +38 -5
  131. package/src/native/app/__tests__/plan-talk-registry.test.tsx +2 -1
  132. package/src/native/app/converseServices.ts +5 -3
  133. package/src/native/app/device.ts +2 -0
  134. package/src/native/converse/ConverseScreen.tsx +30 -4
  135. package/src/native/converse/__tests__/liveScreen.test.tsx +35 -2
  136. package/src/native/converse/__tests__/meetingIO.test.ts +55 -1
  137. package/src/native/converse/format.ts +2 -2
  138. package/src/native/converse/io.ts +15 -5
  139. package/src/native/home/HomeScreen.tsx +1 -1
  140. package/src/native/home/tab.tsx +1 -2
  141. package/src/native/plan/PlanTab.tsx +1 -2
  142. package/src/native/plan/__tests__/plan-tab.test.tsx +5 -5
  143. package/src/native/talk/TalkTab.tsx +1 -1
  144. package/src/native/talk/__tests__/talk-tab.test.tsx +1 -1
  145. package/src/__tests__/home-needs-your-call.test.tsx +0 -65
  146. package/src/components/pages/tracker/TrackerBoard.tsx +0 -45
  147. package/src/components/pages/tracker/TrackerToolbar.tsx +0 -44
@@ -0,0 +1,46 @@
1
+ import { describe, expect, it, vi } from 'vitest';
2
+ import { render, screen, waitFor, fireEvent } from '@testing-library/react';
3
+
4
+ import { TaskDetailPage } from '../components/pages/TaskDetailPage';
5
+ import { toCommitment, type TenantEntity } from '../corpus/entities';
6
+ import type { Commitment } from '../corpus/types';
7
+
8
+ const make = (data: Record<string, unknown>): Commitment => ({
9
+ ...toCommitment({
10
+ id: 'a', external_id: 'commit:a', name: 'a', entity_type: 'commitment', version: 1,
11
+ data: { title: 'Send the lease paperwork', status: 'open', subtype: 'action', mentions: [], ...data },
12
+ } as unknown as TenantEntity, { orgId: 'o' }), focusId: 'f1' });
13
+
14
+ function setup(item: Commitment, withFiling = true) {
15
+ const api = {
16
+ listCommitments: vi.fn(async (q: { page?: number } = {}) => ({ results: (q.page ?? 1) === 1 ? [item] : [], count: 1 })) as never,
17
+ updateCommitment: vi.fn(async (i: Commitment, patch: object) => ({ ...i, ...patch })) as never,
18
+ ...(withFiling ? { fileCommitment: vi.fn(async () => undefined) } : {}),
19
+ };
20
+ render(<TaskDetailPage api={api} scope={{ orgId: 'o' } as never} itemId="commit:a" projectNames={{ f1: 'Home admin', f2: 'Tandem' }} />);
21
+ return api as typeof api & { fileCommitment: ReturnType<typeof vi.fn> };
22
+ }
23
+
24
+ describe('a project that was only guessed', () => {
25
+ it('says so next to the project and offers a one-tap change', async () => {
26
+ const api = setup(make({ project_basis: 'guessed from the topic' }));
27
+ expect(await screen.findByTestId('project-guess')).toBeInTheDocument();
28
+ expect(screen.getByText(/guessed from the topic/i)).toBeInTheDocument();
29
+ fireEvent.change(screen.getByLabelText(/change project/i), { target: { value: 'f2' } });
30
+ await waitFor(() => expect(api.fileCommitment).toHaveBeenCalledWith(expect.anything(), 'f2'));
31
+ await waitFor(() => expect(api.updateCommitment).toHaveBeenCalledWith(expect.anything(), { projectBasis: null }));
32
+ });
33
+
34
+ it('"That is right" keeps the project and clears the guess marker', async () => {
35
+ const api = setup(make({ project_basis: 'guessed from the topic' }));
36
+ fireEvent.click(await screen.findByRole('button', { name: /that.s right/i }));
37
+ await waitFor(() => expect(api.updateCommitment).toHaveBeenCalledWith(expect.anything(), { projectBasis: null }));
38
+ expect(api.fileCommitment).not.toHaveBeenCalled();
39
+ });
40
+
41
+ it('shows nothing extra for a project that was named', async () => {
42
+ setup(make({}));
43
+ expect(await screen.findByText(/home admin/i)).toBeInTheDocument();
44
+ expect(screen.queryByText(/guessed from the topic/i)).toBeNull();
45
+ });
46
+ });
@@ -0,0 +1,65 @@
1
+ import { describe, expect, it } from 'vitest';
2
+
3
+ import { timelineEvents, relativeWhen, actorOf, EVENT_FILTERS } from '../corpus/timeline-events';
4
+ import type { TimelineRead } from '../corpus/tracker-timeline-client';
5
+
6
+ const NOW = Date.parse('2026-08-10T12:00:00Z');
7
+ const DAY = 86_400_000;
8
+ const iso = (ms: number) => new Date(ms).toISOString();
9
+
10
+ const read = (items: TimelineRead['items']): TimelineRead => ({ anchor: '2026-08-10', created: [], done: [], overdue: [], items, truncated: false });
11
+ const item = (over: Partial<TimelineRead['items'][number]> = {}): TimelineRead['items'][number] => ({
12
+ id: '1', externalId: 'commit:1', title: 'Send the sheet', status: 'open', dueAt: null, firstSeenAt: null, resolvedAt: null, updatedAt: null, origin: null, ...over,
13
+ });
14
+
15
+ describe('timelineEvents', () => {
16
+ it('turns each to-do into plain-language events, newest first', () => {
17
+ const rows = timelineEvents(read([
18
+ item({ firstSeenAt: iso(NOW - 5 * DAY), status: 'done', resolvedAt: iso(NOW - 1 * DAY), origin: 'human' }),
19
+ ]), NOW, 'UTC', 30);
20
+ expect(rows.map((r) => r.what)).toEqual(['To-do finished', 'To-do created']);
21
+ expect(rows[0]).toMatchObject({ title: 'Send the sheet', externalId: 'commit:1', status: 'done' });
22
+ });
23
+
24
+ it('an owed to-do past its date has an overdue event on its due day', () => {
25
+ const rows = timelineEvents(read([item({ dueAt: iso(NOW - 3 * DAY) })]), NOW, 'UTC', 30);
26
+ expect(rows).toHaveLength(1);
27
+ expect(rows[0]).toMatchObject({ kind: 'overdue', what: 'To-do went overdue', actor: 'Automatic' });
28
+ });
29
+
30
+ it('a done to-do is never overdue, and events outside the range are left out', () => {
31
+ expect(timelineEvents(read([item({ status: 'done', dueAt: iso(NOW - 3 * DAY), resolvedAt: iso(NOW - 2 * DAY) })]), NOW, 'UTC', 30).map((r) => r.kind)).toEqual(['done']);
32
+ expect(timelineEvents(read([item({ firstSeenAt: iso(NOW - 45 * DAY) })]), NOW, 'UTC', 30)).toHaveLength(0);
33
+ expect(timelineEvents(read([item({ firstSeenAt: iso(NOW - 45 * DAY) })]), NOW, 'UTC', 60)).toHaveLength(1);
34
+ });
35
+
36
+ it('a done to-do with no completion stamp is dated by its last update and says so', () => {
37
+ const rows = timelineEvents(read([item({ status: 'done', updatedAt: iso(NOW - 2 * DAY) })]), NOW, 'UTC', 30);
38
+ expect(rows[0]).toMatchObject({ kind: 'done', estimated: true });
39
+ });
40
+ });
41
+
42
+ describe('who or what did it', () => {
43
+ it('names the origin in plain words', () => {
44
+ expect(actorOf('created', 'human')).toBe('You');
45
+ expect(actorOf('created', 'tenant-extraction')).toBe('Meeting import');
46
+ expect(actorOf('created', 'linear-sync')).toBe('Tracker sync');
47
+ expect(actorOf('created', 'roci')).toBe('Roci');
48
+ expect(actorOf('created', null)).toBe('Tandem');
49
+ expect(actorOf('overdue', 'human')).toBe('Automatic');
50
+ });
51
+ });
52
+
53
+ describe('when', () => {
54
+ it('relative text, exact on hover', () => {
55
+ expect(relativeWhen(NOW - 3 * DAY, NOW)).toBe('3 days ago');
56
+ expect(relativeWhen(NOW - 60_000, NOW)).toBe('1 minute ago');
57
+ expect(relativeWhen(NOW - 5 * 3_600_000, NOW)).toBe('5 hours ago');
58
+ expect(relativeWhen(NOW - 1 * DAY, NOW)).toBe('Yesterday');
59
+ expect(relativeWhen(NOW - 2_000, NOW)).toBe('Just now');
60
+ expect(relativeWhen(NOW - 40 * DAY, NOW)).toBe('Jul 1');
61
+ });
62
+ it('offers the event filters', () => {
63
+ expect(EVENT_FILTERS.map((f) => f.value)).toEqual(['all', 'created', 'done', 'overdue']);
64
+ });
65
+ });
@@ -0,0 +1,66 @@
1
+ import * as React from 'react';
2
+ import { afterEach, describe, expect, it, vi } from 'vitest';
3
+ import { cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react';
4
+
5
+ import { TimelinePage } from '../components/pages/plan';
6
+
7
+ afterEach(cleanup);
8
+
9
+ const NOW = Date.parse('2026-08-10T12:00:00Z');
10
+ const DAY = 86_400_000;
11
+ const iso = (ms: number) => new Date(ms).toISOString();
12
+ const item = (n: number, over: Record<string, unknown> = {}) => ({
13
+ id: `i${n}`, externalId: `commit:i${n}`, title: `TEST SAMPLE event ${n}`, status: 'open', dueAt: null, firstSeenAt: iso(NOW - n * DAY), resolvedAt: null, updatedAt: null, origin: 'human', ...over,
14
+ });
15
+ const api = (items: ReturnType<typeof item>[], onFilter: (f: unknown) => void = () => undefined) => ({
16
+ timeline: vi.fn(async (filter: unknown) => { onFilter(filter); return { anchor: '2026-08-10', created: [], done: [], overdue: [], items, truncated: false }; }),
17
+ }) as never;
18
+ const scope = { orgId: 'tandem' };
19
+
20
+ describe('the Timeline table', () => {
21
+ it('has what happened, when, to-do, by, status: no category, no amount', async () => {
22
+ render(<TimelinePage api={api([item(1)])} scope={scope} now={NOW} onOpenItem={() => undefined} />);
23
+ await screen.findByText('TEST SAMPLE event 1');
24
+ expect(screen.getAllByRole('columnheader').map((h) => h.textContent?.replace(/[▲▼]/g, ''))).toEqual(['What happened', 'When', 'To-do', 'By', 'Status']);
25
+ });
26
+
27
+ it('says it in words: relative time with the exact time on hover, who did it, the to-do as a link', async () => {
28
+ const onOpen = vi.fn();
29
+ render(<TimelinePage api={api([item(3, { status: 'done', resolvedAt: iso(NOW - 3 * DAY) })])} scope={scope} now={NOW} onOpenItem={onOpen} />);
30
+ const table = await screen.findByTestId('table-timeline');
31
+ expect(within(table).getByText('To-do finished')).toBeTruthy();
32
+ const when = within(table).getAllByText('3 days ago')[0];
33
+ expect(when.getAttribute('title')).toMatch(/2026/);
34
+ expect(within(table).getAllByText('You').length).toBeGreaterThan(0);
35
+ fireEvent.click(within(table).getAllByRole('button', { name: 'TEST SAMPLE event 3' })[0]);
36
+ expect(onOpen).toHaveBeenCalledWith('commit:i3');
37
+ });
38
+
39
+ it('shows ONE status per row (the to-do now), and the Event dropdown filters', async () => {
40
+ render(<TimelinePage api={api([item(1), item(2, { status: 'done', resolvedAt: iso(NOW - 2 * DAY) })])} scope={scope} now={NOW} />);
41
+ const table = await screen.findByTestId('table-timeline');
42
+ // the done to-do has two events (created, finished), each row carrying its ONE current status
43
+ expect(within(table).getAllByText('Done')).toHaveLength(2);
44
+ fireEvent.change(screen.getByRole('combobox', { name: 'Event' }), { target: { value: 'created' } });
45
+ expect(within(table).queryByText('To-do finished')).toBeNull();
46
+ expect(within(table).getAllByText('To-do created').length).toBe(2);
47
+ });
48
+
49
+ it('search is a server filter and there is no add button', async () => {
50
+ const seen: unknown[] = [];
51
+ render(<TimelinePage api={api([item(1)], (f) => seen.push(f))} scope={scope} now={NOW} />);
52
+ await screen.findByText('TEST SAMPLE event 1');
53
+ fireEvent.change(screen.getByRole('searchbox', { name: 'Search events' }), { target: { value: 'tax' } });
54
+ await waitFor(() => expect(seen.at(-1)).toMatchObject({ search: 'tax' }));
55
+ expect(screen.queryByRole('button', { name: /Add/ })).toBeNull();
56
+ });
57
+
58
+ it('has the shared footer, remembered size included', async () => {
59
+ const many = Array.from({ length: 30 }, (_, i) => item(i + 1));
60
+ render(<TimelinePage api={api(many)} scope={scope} now={NOW} />);
61
+ await screen.findByText('TEST SAMPLE event 1');
62
+ expect(screen.getByText(/1-25 of 30/)).toBeTruthy();
63
+ fireEvent.click(screen.getByRole('button', { name: 'Next page' }));
64
+ expect(screen.getByText('26-30 of 30')).toBeTruthy();
65
+ });
66
+ });
@@ -0,0 +1,75 @@
1
+ import { describe, expect, it } from 'vitest';
2
+
3
+ import { commitmentOrder } from '../corpus/tracker-sort';
4
+ import { dueCell, statusCell, todoQuery, TODO_STATUS_FILTERS } from '../components/table/todo-model';
5
+
6
+ const DAY = 86_400_000;
7
+ const NOW = Date.parse('2026-08-10T12:00:00Z');
8
+
9
+ describe('server order', () => {
10
+ it('prefixes a minus for descending and knows status', () => {
11
+ expect(commitmentOrder('due', 'asc')).toBe('attr.due_at');
12
+ expect(commitmentOrder('due', 'desc')).toBe('-attr.due_at');
13
+ expect(commitmentOrder('title', 'desc')).toBe('-attr.title');
14
+ expect(commitmentOrder('status', 'asc')).toBe('attr.status');
15
+ });
16
+ it('keeps already-descending sorts descending unless flipped', () => {
17
+ expect(commitmentOrder('updated')).toBe('-attr.last_seen_at');
18
+ expect(commitmentOrder('updated', 'desc')).toBe('-attr.last_seen_at');
19
+ expect(commitmentOrder('updated', 'asc')).toBe('attr.last_seen_at');
20
+ });
21
+ });
22
+
23
+ describe('the ONE status', () => {
24
+ it('maps every stored status to one dot + label', () => {
25
+ expect(statusCell('open')).toMatchObject({ label: 'To do' });
26
+ expect(statusCell('in_progress')).toMatchObject({ label: 'In progress' });
27
+ expect(statusCell('blocked')).toMatchObject({ label: 'Blocked' });
28
+ expect(statusCell('done')).toMatchObject({ label: 'Done' });
29
+ expect(statusCell('dropped')).toMatchObject({ label: 'Dropped' });
30
+ });
31
+ });
32
+
33
+ describe('the due column', () => {
34
+ const due = (days: number | null, status: 'open' | 'done' = 'open') =>
35
+ dueCell({ dueAt: days === null ? null : new Date(NOW + days * DAY).toISOString(), status }, NOW, 'UTC');
36
+ it('says plainly how late, in red tone only when overdue and not finished', () => {
37
+ expect(due(-7)).toMatchObject({ text: '7 days late', tone: 'overdue' });
38
+ expect(due(-1)).toMatchObject({ text: '1 day late', tone: 'overdue' });
39
+ expect(due(-7, 'done')).toMatchObject({ tone: 'plain' });
40
+ });
41
+ it('today, tomorrow, soon, later, none', () => {
42
+ expect(due(0)).toMatchObject({ text: 'Today', tone: 'plain' });
43
+ expect(due(1)).toMatchObject({ text: 'Tomorrow', tone: 'plain' });
44
+ expect(due(3).text).toBe('In 3 days');
45
+ expect(due(20).text).toBe('Aug 30');
46
+ expect(due(null)).toMatchObject({ text: '–', tone: 'none' });
47
+ });
48
+ it('has the exact date for the hover', () => {
49
+ expect(due(-7).exact).toBe('2026-08-03');
50
+ });
51
+ });
52
+
53
+ describe('todoQuery: everything the table asks for is a server parameter', () => {
54
+ const base = { search: '', status: 'open', project: '', sort: null, page: 1, pageSize: 25 as const };
55
+ it('defaults to what is still owed, tasks only, with project names', () => {
56
+ expect(todoQuery(base)).toMatchObject({
57
+ status: ['open', 'in_progress', 'blocked'], subtype: ['action', 'requirement'], withFocus: true, page: 1, pageSize: 25,
58
+ });
59
+ });
60
+ it('maps each status choice', () => {
61
+ expect(TODO_STATUS_FILTERS.map((f) => f.value)).toEqual(['open', 'todo', 'in_progress', 'blocked', 'done', 'all']);
62
+ expect(todoQuery({ ...base, status: 'done' }).status).toEqual(['done', 'dropped']);
63
+ expect(todoQuery({ ...base, status: 'blocked' }).status).toEqual(['blocked']);
64
+ expect(todoQuery({ ...base, status: 'todo' }).status).toEqual(['open']);
65
+ expect(todoQuery({ ...base, status: 'all' }).status).toBeUndefined();
66
+ });
67
+ it('sends search, project, sort direction and page to the server', () => {
68
+ expect(todoQuery({ ...base, search: ' tax ', project: 'focus:p1', sort: { key: 'due', dir: 'desc' }, page: 3, pageSize: 50 })).toMatchObject({
69
+ search: 'tax', focus: 'focus:p1', sort: 'due', sortDir: 'desc', page: 3, pageSize: 50,
70
+ });
71
+ });
72
+ it('a page that fixes the project (a project view) wins over the dropdown', () => {
73
+ expect(todoQuery({ ...base, project: 'focus:p2' }, 'focus:p1').focus).toBe('focus:p1');
74
+ });
75
+ });
@@ -0,0 +1,202 @@
1
+ /**
2
+ * THE TO-DO TABLE as the tracker page draws it: one toolbar, one table, ONE status per row, server-side everything.
3
+ */
4
+ import * as React from 'react';
5
+ import { afterEach, describe, expect, it, vi } from 'vitest';
6
+ import { cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react';
7
+
8
+ import { TrackerPage } from '../components/pages/TrackerPage';
9
+ import type { Commitment, CommitmentQuery, CommitmentTrackerApi, CorpusPage } from '../corpus/types';
10
+
11
+ afterEach(cleanup);
12
+
13
+ const NOW = Date.parse('2026-08-10T12:00:00Z');
14
+ const SCOPE = { orgId: 'tandem' };
15
+ const DAY = 86_400_000;
16
+
17
+ const todo = (n: number, over: Partial<Commitment> = {}): Commitment => ({
18
+ id: `t${n}`, externalId: `commit:t${n}`, dedupeKey: `t${n}`, subtype: 'action', title: `TEST SAMPLE to-do ${n}`, detail: '', status: 'open',
19
+ subjectKey: '', actionKey: '', mentions: [], firstSeenAt: null, lastSeenAt: null, extractorVersion: 't', source: 'voice', sourceLabel: 'V', scope: SCOPE, ...over,
20
+ }) as Commitment;
21
+
22
+ function api(rows: Commitment[], onQuery: (q: CommitmentQuery) => void = () => undefined, total = rows.length) {
23
+ const update = vi.fn(async (item: Commitment, patch: Partial<Commitment>) => ({ ...item, ...patch }) as Commitment);
24
+ const create = vi.fn(async (d: { title: string }) => todo(99, { title: d.title }));
25
+ const impl: CommitmentTrackerApi = {
26
+ async listCommitments(q: CommitmentQuery = {}): Promise<CorpusPage<Commitment>> {
27
+ onQuery(q);
28
+ return { count: total, next: null, previous: null, results: rows, appliedFilters: ['status', 'subtype', 'search', 'focus'] };
29
+ },
30
+ updateCommitment: update, createCommitment: create,
31
+ } as unknown as CommitmentTrackerApi;
32
+ return { impl, update, create };
33
+ }
34
+
35
+ const mount = (a: CommitmentTrackerApi, props: Partial<React.ComponentProps<typeof TrackerPage>> = {}) =>
36
+ render(<TrackerPage api={a} scope={SCOPE} now={NOW} showTimeline={false} projectNames={{ 'focus:p1': 'Website', 'focus:p2': 'Taxes' }} {...props} />);
37
+
38
+ describe('the table', () => {
39
+ it('draws the columns Quinn asked for and nothing else', async () => {
40
+ mount(api([todo(1, { focusId: 'focus:p1', sync: { state: 'synced', key: 'ENG-125', url: 'https://l/ENG-125' } })]).impl);
41
+ await screen.findByText('TEST SAMPLE to-do 1');
42
+ expect(screen.getAllByRole('columnheader').map((h) => h.textContent?.replace(/[▲▼]/g, ''))).toEqual(['Mark done', 'To-do', 'Project', 'Key', 'Status', 'Due', 'Actions']);
43
+ expect(within(screen.getByTestId('table-todos')).getByText('Website')).toBeTruthy();
44
+ expect(screen.getByRole('link', { name: /ENG-125/ }).getAttribute('href')).toBe('https://l/ENG-125');
45
+ });
46
+
47
+ it('shows ONE status per row and no pills, chips, or sync badge', async () => {
48
+ mount(api([todo(1, { status: 'in_progress', sync: { state: 'synced', key: 'ENG-1', stateName: 'In Progress' } })]).impl);
49
+ await screen.findByText('TEST SAMPLE to-do 1');
50
+ expect(within(screen.getByTestId('table-todos')).getAllByText('In progress')).toHaveLength(1);
51
+ expect(screen.queryByText('Synced')).toBeNull();
52
+ expect(document.querySelector('.rounded-full:not([aria-hidden])')).toBeNull();
53
+ });
54
+
55
+ it('overdue is plain red text in the due column: "7 days late"', async () => {
56
+ mount(api([todo(1, { dueAt: new Date(NOW - 7 * DAY).toISOString() }), todo(2, { dueAt: new Date(NOW + 3 * DAY).toISOString() })]).impl);
57
+ const late = await screen.findByText('7 days late');
58
+ expect(late.getAttribute('data-due-tone')).toBe('overdue');
59
+ expect(late.className).toMatch(/text-red/);
60
+ expect(screen.getByText('In 3 days').getAttribute('data-due-tone')).toBe('plain');
61
+ });
62
+
63
+ it('has no subtitle, no board/list toggle, no sort select, no quick-filter pills', async () => {
64
+ mount(api([todo(1)]).impl);
65
+ await screen.findByText('TEST SAMPLE to-do 1');
66
+ expect(screen.queryByLabelText('Sort to-dos')).toBeNull();
67
+ expect(screen.queryByRole('group', { name: 'Quick filters' })).toBeNull();
68
+ expect(screen.queryByRole('button', { name: 'Board' })).toBeNull();
69
+ expect(screen.queryByTestId('tracker-summary')).toBeNull();
70
+ });
71
+ });
72
+
73
+ describe('everything is a server query', () => {
74
+ it('asks for tasks still owed, page 1 of 25, with project names', async () => {
75
+ const q: CommitmentQuery[] = [];
76
+ mount(api([todo(1)], (x) => q.push(x)).impl);
77
+ await screen.findByText('TEST SAMPLE to-do 1');
78
+ expect(q[0]).toMatchObject({ status: ['open', 'in_progress', 'blocked'], subtype: ['action', 'requirement'], withFocus: true, page: 1, pageSize: 25, sort: 'due' });
79
+ });
80
+
81
+ it('searches on the server, after a pause, from page one', async () => {
82
+ const q: CommitmentQuery[] = [];
83
+ mount(api([todo(1)], (x) => q.push(x), 60).impl);
84
+ await screen.findByText('TEST SAMPLE to-do 1');
85
+ fireEvent.click(screen.getByRole('button', { name: 'Next page' }));
86
+ await waitFor(() => expect(q.at(-1)).toMatchObject({ page: 2 }));
87
+ fireEvent.change(screen.getByRole('searchbox', { name: 'Search to-dos' }), { target: { value: 'tax' } });
88
+ await waitFor(() => expect(q.at(-1)).toMatchObject({ search: 'tax', page: 1 }));
89
+ });
90
+
91
+ it('the Status and Project dropdowns are server filters', async () => {
92
+ const q: CommitmentQuery[] = [];
93
+ mount(api([todo(1)], (x) => q.push(x)).impl);
94
+ await screen.findByText('TEST SAMPLE to-do 1');
95
+ fireEvent.change(screen.getByRole('combobox', { name: 'Status' }), { target: { value: 'blocked' } });
96
+ await waitFor(() => expect(q.at(-1)).toMatchObject({ status: ['blocked'] }));
97
+ fireEvent.change(screen.getByRole('combobox', { name: 'Project' }), { target: { value: 'focus:p2' } });
98
+ await waitFor(() => expect(q.at(-1)).toMatchObject({ focus: 'focus:p2' }));
99
+ });
100
+
101
+ it('a project view has no Project dropdown or column, and files adds under it', async () => {
102
+ const { impl, create } = api([todo(1)]);
103
+ mount(impl, { focusId: 'focus:p1' });
104
+ await screen.findByText('TEST SAMPLE to-do 1');
105
+ expect(screen.queryByRole('combobox', { name: 'Project' })).toBeNull();
106
+ expect(screen.queryByRole('columnheader', { name: 'Project' })).toBeNull();
107
+ fireEvent.click(screen.getByRole('button', { name: /Add to-do/ }));
108
+ fireEvent.change(screen.getByLabelText('New to-do title'), { target: { value: 'Ship it' } });
109
+ fireEvent.keyDown(screen.getByLabelText('New to-do title'), { key: 'Enter' });
110
+ await waitFor(() => expect(create).toHaveBeenCalledWith({ title: 'Ship it', focusId: 'focus:p1' }));
111
+ });
112
+
113
+ it('sorting a header asks the server for that order and flips on the second click', async () => {
114
+ const q: CommitmentQuery[] = [];
115
+ mount(api([todo(1)], (x) => q.push(x)).impl);
116
+ await screen.findByText('TEST SAMPLE to-do 1');
117
+ fireEvent.click(screen.getByRole('button', { name: /^To-do/ }));
118
+ await waitFor(() => expect(q.at(-1)).toMatchObject({ sort: 'title', sortDir: 'asc' }));
119
+ fireEvent.click(screen.getByRole('button', { name: /^To-do/ }));
120
+ await waitFor(() => expect(q.at(-1)).toMatchObject({ sort: 'title', sortDir: 'desc' }));
121
+ });
122
+
123
+ it('rows per page is a server page size, and the footer reads 1-25 of 41', async () => {
124
+ const q: CommitmentQuery[] = [];
125
+ mount(api([todo(1)], (x) => q.push(x), 41).impl);
126
+ await screen.findByText('TEST SAMPLE to-do 1');
127
+ expect(screen.getByText('1-25 of 41')).toBeTruthy();
128
+ fireEvent.change(screen.getByLabelText('Rows per page'), { target: { value: '50' } });
129
+ await waitFor(() => expect(q.at(-1)).toMatchObject({ pageSize: 50, page: 1 }));
130
+ });
131
+
132
+ it('does not loop: one read on mount', async () => {
133
+ const q: CommitmentQuery[] = [];
134
+ mount(api([todo(1)], (x) => q.push(x)).impl);
135
+ await screen.findByText('TEST SAMPLE to-do 1');
136
+ await new Promise((r) => setTimeout(r, 150));
137
+ expect(q.filter((x) => x.pageSize === 25)).toHaveLength(1);
138
+ });
139
+ });
140
+
141
+ describe('row actions', () => {
142
+ it('the checkbox marks done, and re-opens', async () => {
143
+ const { impl, update } = api([todo(1), todo(2, { status: 'done' })]);
144
+ mount(impl);
145
+ fireEvent.click(await screen.findByRole('checkbox', { name: /Mark done: TEST SAMPLE to-do 1/ }));
146
+ await waitFor(() => expect(update).toHaveBeenCalledWith(expect.objectContaining({ externalId: 'commit:t1' }), { status: 'done' }));
147
+ fireEvent.click(screen.getByRole('checkbox', { name: /Mark done: TEST SAMPLE to-do 2/ }));
148
+ await waitFor(() => expect(update).toHaveBeenCalledWith(expect.objectContaining({ externalId: 'commit:t2' }), { status: 'open' }));
149
+ });
150
+
151
+ it('the row menu snoozes a week and drops', async () => {
152
+ const { impl, update } = api([todo(1)]);
153
+ mount(impl);
154
+ await screen.findByText('TEST SAMPLE to-do 1');
155
+ fireEvent.click(screen.getByRole('button', { name: /Actions for TEST SAMPLE to-do 1/ }));
156
+ fireEvent.click(screen.getByRole('menuitem', { name: 'Snooze a week' }));
157
+ await waitFor(() => expect(update).toHaveBeenCalledWith(expect.objectContaining({ externalId: 'commit:t1' }), { dueAt: '2026-08-17' }));
158
+ fireEvent.click(screen.getByRole('button', { name: /Actions for TEST SAMPLE to-do 1/ }));
159
+ fireEvent.click(screen.getByRole('menuitem', { name: 'Drop' }));
160
+ await waitFor(() => expect(update).toHaveBeenCalledWith(expect.objectContaining({ externalId: 'commit:t1' }), { status: 'dropped', statusReason: 'Dropped from the list' }));
161
+ });
162
+
163
+ it('+ Add to-do is the one filled control; Enter adds a row at the top and re-reads', async () => {
164
+ const q: CommitmentQuery[] = [];
165
+ const { impl, create } = api([todo(1)], (x) => q.push(x));
166
+ mount(impl);
167
+ await screen.findByText('TEST SAMPLE to-do 1');
168
+ const add = screen.getByRole('button', { name: /Add to-do/ });
169
+ expect(add.className).toMatch(/bg-gray-900/);
170
+ fireEvent.click(add);
171
+ const box = screen.getByLabelText('New to-do title');
172
+ fireEvent.change(box, { target: { value: 'Pay the invoice' } });
173
+ fireEvent.keyDown(box, { key: 'Enter' });
174
+ await waitFor(() => expect(create).toHaveBeenCalledWith({ title: 'Pay the invoice' }));
175
+ await waitFor(() => expect(q.length).toBeGreaterThan(1));
176
+ expect(screen.queryByLabelText('New to-do title')).toBeNull();
177
+ });
178
+
179
+ it('offers no add and no checkbox writes on a read-only api', async () => {
180
+ const ro = { listCommitments: async () => ({ count: 1, next: null, previous: null, results: [todo(1)], appliedFilters: [] }) } as unknown as CommitmentTrackerApi;
181
+ mount(ro);
182
+ await screen.findByText('TEST SAMPLE to-do 1');
183
+ expect(screen.queryByRole('button', { name: /Add to-do/ })).toBeNull();
184
+ expect((screen.getByRole('checkbox') as HTMLInputElement).disabled).toBe(true);
185
+ });
186
+
187
+ it('says so when nothing matches', async () => {
188
+ mount(api([]).impl);
189
+ expect(await screen.findByText(/Nothing has been pulled out of your meetings yet/)).toBeTruthy();
190
+ fireEvent.change(screen.getByRole('combobox', { name: 'Status' }), { target: { value: 'blocked' } });
191
+ expect(await screen.findByText('No to-dos match.')).toBeTruthy();
192
+ });
193
+ });
194
+
195
+ describe('twelve-plus sample rows incl. an overdue one', () => {
196
+ it('draws 13 rows', async () => {
197
+ const rows = Array.from({ length: 13 }, (_, i) => todo(i + 1, i === 0 ? { dueAt: new Date(NOW - 7 * DAY).toISOString() } : {}));
198
+ mount(api(rows, () => undefined, 41).impl);
199
+ await screen.findByText('TEST SAMPLE to-do 13');
200
+ expect(within(screen.getByTestId('table-todos')).getAllByRole('row')).toHaveLength(14);
201
+ });
202
+ });
@@ -25,7 +25,7 @@ describe('TrackerTimeline', () => {
25
25
  it('reads once, not once per render', async () => {
26
26
  const timeline = vi.fn().mockResolvedValue(read());
27
27
  const { rerender } = render(<TrackerTimeline api={{ timeline }} orgId="o" now={NOW} filter={{}} />);
28
- await screen.findByText('No to-dos in this window.');
28
+ await screen.findByText('Nothing happened to a to-do in this window.');
29
29
  for (let i = 0; i < 5; i += 1) rerender(<TrackerTimeline api={{ timeline }} orgId="o" now={NOW} filter={{}} />);
30
30
  expect(timeline).toHaveBeenCalledTimes(1);
31
31
  });
@@ -52,8 +52,8 @@ describe('TrackerTimeline', () => {
52
52
  }));
53
53
  render(<TrackerTimeline api={{ timeline }} orgId="o" now={NOW} filter={{}} />);
54
54
  // created on the 1st and overdue since the 4th: two rows for one to-do
55
- expect(await screen.findAllByText('Send the proposal')).toHaveLength(2);
56
- expect(screen.getAllByText('Overdue').length).toBeGreaterThan(0);
55
+ expect((await screen.findAllByText('Send the proposal')).length).toBeGreaterThanOrEqual(2);
56
+ expect(screen.getAllByText('To-do went overdue').length).toBeGreaterThan(0);
57
57
  expect(screen.getByText('Book the venue')).toBeInTheDocument();
58
58
  expect(screen.getByTestId('timeline-estimated')).toHaveTextContent('1 done to-do has no completion date');
59
59
  });
@@ -68,7 +68,7 @@ describe('TrackerTimeline', () => {
68
68
  render(<TrackerTimeline api={{ timeline }} orgId="o" now={NOW} filter={{}} />);
69
69
  expect(await screen.findByText('New thing')).toBeInTheDocument();
70
70
  expect(screen.queryByText('Old thing')).not.toBeInTheDocument(); // default 30D
71
- await userEvent.click(screen.getByRole('tab', { name: '90 days' }));
71
+ await userEvent.selectOptions(screen.getByRole('combobox', { name: 'Range' }), '90d');
72
72
  await waitFor(() => expect(screen.getByText('Old thing')).toBeInTheDocument());
73
73
  expect(timeline).toHaveBeenCalledTimes(1); // the range is a view, not a read
74
74
  });
@@ -73,7 +73,7 @@ describe('createTimelineReader', () => {
73
73
  ]);
74
74
  const out = await read(http);
75
75
  expect(out.items).toEqual([
76
- { id: 'c1', title: 'Send proposal', status: 'done', dueAt: null, firstSeenAt: '2026-11-01', resolvedAt: null, updatedAt: '2026-11-06T09:00:00Z' },
76
+ { id: 'c1', externalId: null, origin: null, title: 'Send proposal', status: 'done', dueAt: null, firstSeenAt: '2026-11-01', resolvedAt: null, updatedAt: '2026-11-06T09:00:00Z' },
77
77
  ]);
78
78
  });
79
79
 
@@ -0,0 +1,69 @@
1
+ /** Platform-scope app send log (bd startsim-u5iwb.9), against a mocked Django (msw). */
2
+ import * as React from 'react';
3
+ import { afterAll, afterEach, beforeAll, describe, expect, it } from 'vitest';
4
+ import { render, screen, waitFor } from '@testing-library/react';
5
+ import userEvent from '@testing-library/user-event';
6
+ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
7
+ import { http, HttpResponse } from 'msw';
8
+ import { setupServer } from 'msw/node';
9
+
10
+ import { AppSendsPage } from '../components/pages/AppSendsPage';
11
+ import { setApiBase } from '../api/index';
12
+ import { BASE, metrics, sendRows } from './fixtures';
13
+
14
+ const A = `${BASE}/api/v1/foundry/comms/apps`;
15
+ let sendsHits: URL[] = [];
16
+ let forbid = false;
17
+
18
+ const server = setupServer(
19
+ http.get(`${A}/`, () =>
20
+ forbid
21
+ ? HttpResponse.json({ detail: 'no' }, { status: 403 })
22
+ : HttpResponse.json([{ app: 'raise', sent: 0 }, { app: 'crochet', sent: 7 }]),
23
+ ),
24
+ http.get(`${A}/:app/sends/`, ({ request }) => {
25
+ sendsHits.push(new URL(request.url));
26
+ return HttpResponse.json({ count: 1, next: null, previous: null, results: sendRows(1) });
27
+ }),
28
+ http.get(`${A}/:app/metrics/`, () => HttpResponse.json(metrics())),
29
+ );
30
+
31
+ beforeAll(() => { setApiBase(`${BASE}/api/v1`); server.listen({ onUnhandledRequest: 'error' }); });
32
+ afterEach(() => { server.resetHandlers(); sendsHits = []; forbid = false; });
33
+ afterAll(() => server.close());
34
+
35
+ const mount = () =>
36
+ render(
37
+ <QueryClientProvider client={new QueryClient({ defaultOptions: { queries: { retry: false } } })}>
38
+ <AppSendsPage />
39
+ </QueryClientProvider>,
40
+ );
41
+
42
+ describe('AppSendsPage', () => {
43
+ it('lists the app with sends first and pages its log from the server', async () => {
44
+ mount();
45
+ await screen.findByRole('heading', { name: 'App emails' });
46
+ const select = (await screen.findByLabelText('App')) as HTMLSelectElement;
47
+ expect(select.value).toBe('crochet');
48
+ await waitFor(() => expect(sendsHits.length).toBeGreaterThan(0));
49
+ expect(sendsHits[0].pathname).toMatch(/apps\/crochet\/sends\/$/);
50
+ expect(sendsHits[0].searchParams.get('page_size')).toBe('25');
51
+ await screen.findByText('1–1 of 1');
52
+ });
53
+
54
+ it('switching app and typing a program key refetches with that filter', async () => {
55
+ mount();
56
+ await userEvent.selectOptions(await screen.findByLabelText('App'), 'raise');
57
+ await waitFor(() => expect(sendsHits.some((u) => u.pathname.includes('apps/raise/sends'))).toBe(true));
58
+ await userEvent.type(screen.getByLabelText('Program'), 'welcome');
59
+ await waitFor(() => expect(sendsHits.at(-1)?.searchParams.get('program')).toBe('welcome'));
60
+ });
61
+
62
+ it('shows a plain notice and no log for a non-admin', async () => {
63
+ forbid = true;
64
+ mount();
65
+ await screen.findByText(/Only Platform admins/);
66
+ expect(screen.queryByLabelText('App')).toBeNull();
67
+ expect(sendsHits).toHaveLength(0);
68
+ });
69
+ });
@@ -162,3 +162,26 @@ export function createCommsApi(slug: string): CommsApi {
162
162
  getMetrics: (query = {}) => request(`${P}/metrics/`, { query: { ...query } }),
163
163
  };
164
164
  }
165
+
166
+ /** The slice of the comms client the send log and results panels need. */
167
+ export type SendReportApi = Pick<CommsApi, 'slug' | 'listSends' | 'getMetrics'>;
168
+
169
+ /** Platform-scope send log for ONE first-party app (crochet, raise...): GET /foundry/comms/apps/<app>/. */
170
+ export function createAppCommsApi(app: string): SendReportApi {
171
+ const P = `/foundry/comms/apps/${seg(app)}`;
172
+ return {
173
+ slug: `app:${app}`,
174
+ listSends: (query = {}) => request(`${P}/sends/`, { query: { ...query } }),
175
+ getMetrics: (query = {}) => request(`${P}/metrics/`, { query: { ...query } }),
176
+ };
177
+ }
178
+
179
+ export interface AppActivity {
180
+ app: string;
181
+ sent: number;
182
+ }
183
+
184
+ /** Every first-party app with its sends in the last `days` (default 30). Platform admins only. */
185
+ export function listCommsApps(days = 30): Promise<AppActivity[]> {
186
+ return request('/foundry/comms/apps/', { query: { days } });
187
+ }
@@ -8,13 +8,13 @@
8
8
  */
9
9
  import type { ReactElement } from 'react';
10
10
 
11
- import type { CommsApi } from '../api/comms';
11
+ import type { SendReportApi } from '../api/comms';
12
12
  import { useCommsMetrics } from '../hooks/index';
13
13
  import type { CommsMetrics } from '../types/index';
14
14
  import { ErrorNotice, Note } from './_shared';
15
15
 
16
16
  export interface ResultsPanelProps {
17
- api: CommsApi;
17
+ api: SendReportApi;
18
18
  programKey?: string;
19
19
  }
20
20