@startsimpli/integrations 0.2.222 → 0.2.224
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/package.json +8 -8
- package/src/__tests__/attention-policy.test.ts +174 -0
- package/src/__tests__/attention-rhythm.test.ts +95 -0
- package/src/__tests__/attention-run.test.ts +123 -0
- package/src/__tests__/attention-settings-page.test.tsx +57 -0
- package/src/__tests__/attention-settings.test.ts +86 -0
- package/src/__tests__/converse-client.test.ts +6 -0
- package/src/__tests__/converse-meeting.test.ts +40 -0
- package/src/__tests__/converse-relay.test.ts +35 -0
- package/src/__tests__/converse-soak.test.ts +61 -0
- package/src/__tests__/converse-watchdog.test.ts +107 -0
- package/src/__tests__/decisions-page.test.tsx +1 -1
- package/src/__tests__/fleet-view.test.ts +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/pages/AttentionSettings.tsx +51 -0
- package/src/components/pages/DecisionsPage.tsx +13 -2
- package/src/corpus/attention/controller.ts +37 -0
- package/src/corpus/attention/index.ts +8 -0
- package/src/corpus/attention/policy.ts +59 -0
- package/src/corpus/attention/push.ts +47 -0
- package/src/corpus/attention/queue.ts +22 -0
- package/src/corpus/attention/rhythm.ts +69 -0
- package/src/corpus/attention/run-steps.ts +89 -0
- package/src/corpus/attention/run.ts +55 -0
- package/src/corpus/attention/settings.ts +80 -0
- package/src/corpus/attention/types.ts +63 -0
- package/src/corpus/converse/client.ts +3 -2
- package/src/corpus/converse/handle.ts +18 -3
- package/src/corpus/converse/meeting-config.ts +15 -1
- package/src/corpus/converse/meeting.ts +100 -8
- package/src/corpus/converse/respond.ts +12 -2
- package/src/corpus/converse/types.ts +11 -0
- package/src/corpus/index.ts +1 -0
- package/src/corpus/notify/client.ts +10 -2
- package/src/corpus/notify/handle.ts +9 -5
- package/src/corpus/notify/respond.ts +1 -1
- package/src/corpus/notify/state.ts +3 -0
- package/src/corpus/notify/types.ts +9 -0
- package/src/native/app/converseServices.ts +1 -0
- package/src/native/app/notifyServices.ts +8 -1
- package/src/native/app/registry.tsx +4 -2
- package/src/native/app/services.ts +1 -1
- package/src/native/converse/DriveScreen.tsx +47 -0
- package/src/native/converse/__tests__/driveScreen.test.tsx +54 -0
- package/src/native/converse/api.ts +1 -0
- package/src/native/converse/fake.ts +4 -0
- package/src/native/converse/index.ts +1 -0
- package/src/native/converse/io.ts +1 -0
- package/src/native/push/AttentionCard.tsx +44 -0
- package/src/native/push/DecisionsScreen.tsx +12 -2
- package/src/native/push/NeedsYouCard.tsx +42 -0
- package/src/native/push/__tests__/decisionsApp.test.tsx +12 -1
- package/src/native/push/__tests__/needsYou.test.tsx +106 -0
- package/src/native/push/fake.ts +12 -1
- package/src/native/push/index.ts +3 -0
- package/src/native/push/needsYou.ts +29 -0
- package/src/native/push/tab.tsx +4 -2
- package/src/native/talk/TalkTab.tsx +24 -2
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
2
|
+
|
|
3
|
+
vi.mock('react-native', async () => ({ ...(await import('../../../../../ui-native/test/rn-stub')) }));
|
|
4
|
+
import { act, allText, render } from '../../../../../ui-native/test/render';
|
|
5
|
+
import type { MeetingController } from '../../../corpus/converse/meeting';
|
|
6
|
+
import { createFakeNativeCorpusApi } from '../../corpus/fake';
|
|
7
|
+
import type { TabContext } from '../../components/FoundryTabsShell';
|
|
8
|
+
import { talkTab } from '../../talk/TalkTab';
|
|
9
|
+
import { createFakeNotify } from '../fake';
|
|
10
|
+
import { createNeedsYouController } from '../needsYou';
|
|
11
|
+
|
|
12
|
+
const tick = () => act(async () => { await new Promise((res) => setTimeout(res, 40)); });
|
|
13
|
+
const IDLE = { phase: 'idle', retryable: false, lines: [], error: null, noAudio: null, conversationId: null, saved: null, relayNotice: null };
|
|
14
|
+
const ctx = (over: Partial<TabContext> = {}): TabContext => ({ tab: 'talk', active: true, route: null, push: vi.fn(), back: vi.fn(), openTab: vi.fn(), ...over });
|
|
15
|
+
|
|
16
|
+
describe('needs-you on the Talk tab', () => {
|
|
17
|
+
it('shows what is waiting, urgent first, and one button makes the assistant itself start the briefing', async () => {
|
|
18
|
+
let started = 0;
|
|
19
|
+
const typed: string[] = [];
|
|
20
|
+
const controller = { start() {}, end: async () => null, sendText: async (t: string) => { typed.push(t); }, startBriefing: async () => { started += 1; }, dismissNotice() {}, getState: () => IDLE, subscribe: () => () => undefined } as unknown as MeetingController;
|
|
21
|
+
const needsYou = createNeedsYouController({ client: createFakeNotify().client });
|
|
22
|
+
const r = render(<>{talkTab({ api: createFakeNativeCorpusApi(), converse: controller, needsYou }).render(ctx())}</>);
|
|
23
|
+
await tick();
|
|
24
|
+
expect(allText(r)).toContain('3 things need you');
|
|
25
|
+
expect(allText(r)).toContain('TEST: urgent sample A');
|
|
26
|
+
await act(async () => { r.root.findByProps({ testID: 'needs-you-talk' }).props.onPress(); });
|
|
27
|
+
expect(started).toBe(1);
|
|
28
|
+
expect(typed).toEqual([]); // the card text is never posted as something he said
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('a tapped attention push drops straight into the hands-free screen with the briefing already speaking', async () => {
|
|
32
|
+
let started = 0; let began = 0;
|
|
33
|
+
const controller = { start() { began += 1; }, end: async () => null, sendText: async () => undefined, startBriefing: async () => { started += 1; }, dismissNotice() {}, getState: () => IDLE, subscribe: () => () => undefined } as unknown as MeetingController;
|
|
34
|
+
const needsYou = createNeedsYouController({ client: createFakeNotify().client });
|
|
35
|
+
const r = render(<>{talkTab({ api: createFakeNativeCorpusApi(), converse: controller, needsYou }).render(ctx())}</>);
|
|
36
|
+
await tick();
|
|
37
|
+
expect(r.root.findAllByProps({ testID: 'drive-screen' })).toHaveLength(0);
|
|
38
|
+
await act(async () => { needsYou.requestBriefing(); });
|
|
39
|
+
await tick();
|
|
40
|
+
expect(r.root.findAllByProps({ testID: 'drive-screen' }).length).toBeGreaterThan(0);
|
|
41
|
+
expect(began).toBe(1);
|
|
42
|
+
expect(started).toBe(1);
|
|
43
|
+
expect(needsYou.getState().briefRequested).toBe(false);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
it('draws nothing when nothing is waiting', async () => {
|
|
47
|
+
const empty = { needsYou: async () => ({ items: [], counts: { urgent: 0, 'needs-answer': 0, digest: 0, noise: 0 }, callMe: false, waiting: 0 }) };
|
|
48
|
+
const controller = { start() {}, end: async () => null, sendText: async () => undefined, dismissNotice() {}, getState: () => IDLE, subscribe: () => () => undefined } as unknown as MeetingController;
|
|
49
|
+
const r = render(<>{talkTab({ api: createFakeNativeCorpusApi(), converse: controller, needsYou: createNeedsYouController({ client: empty }) }).render(ctx())}</>);
|
|
50
|
+
await tick();
|
|
51
|
+
expect(r.root.findAllByProps({ testID: 'needs-you' })).toHaveLength(0);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
it('controller reports a failed read instead of throwing', async () => {
|
|
55
|
+
const c = createNeedsYouController({ client: { needsYou: async () => { throw new Error('offline'); } } });
|
|
56
|
+
await c.refresh();
|
|
57
|
+
expect(c.getState()).toMatchObject({ queue: null, error: 'offline', loading: false });
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
describe('quiet mode on the Decisions tab', () => {
|
|
62
|
+
it('shows what quiet means, switches mode, and saves a schedule hour on end of editing', async () => {
|
|
63
|
+
const { createAttentionController } = await import('../../../corpus/attention/controller');
|
|
64
|
+
const { DecisionsScreen } = await import('../DecisionsScreen');
|
|
65
|
+
const { createDecisionsController } = await import('../decisions');
|
|
66
|
+
const { createPushController } = await import('../controller');
|
|
67
|
+
const { client } = createFakeNotify();
|
|
68
|
+
const save = vi.spyOn(client, 'setAttention');
|
|
69
|
+
const attention = createAttentionController({ client });
|
|
70
|
+
const r = render(<DecisionsScreen decisions={createDecisionsController({ client })} push={createPushController({ client, registry: { register: async () => ({ registered: true, devices: 0, push_enabled: true }), unregister: async () => undefined }, device: null })} attention={attention} />);
|
|
71
|
+
await tick();
|
|
72
|
+
expect(allText(r)).toContain('Never quiet. You can add a schedule (22:00 to 7:00)');
|
|
73
|
+
await act(async () => { r.root.findByProps({ testID: 'quiet-mode-on' }).props.onPress(); });
|
|
74
|
+
await tick();
|
|
75
|
+
expect(save).toHaveBeenCalledWith({ quiet_mode: 'on' });
|
|
76
|
+
expect(allText(r)).toContain('Quiet now: only urgent items reach you.');
|
|
77
|
+
await act(async () => { r.root.findByProps({ testID: 'quiet-start' }).props.onChangeText('23'); });
|
|
78
|
+
await act(async () => { r.root.findByProps({ testID: 'quiet-start' }).props.onEndEditing(); });
|
|
79
|
+
expect(save).toHaveBeenCalledWith({ quiet: { start: 23 } });
|
|
80
|
+
await act(async () => { r.root.findByProps({ testID: 'urgent-words' }).props.onChangeText('overdue, sev1'); });
|
|
81
|
+
await act(async () => { r.root.findByProps({ testID: 'urgent-words-save' }).props.onPress(); });
|
|
82
|
+
expect(save).toHaveBeenCalledWith({ urgent_words: ['overdue', 'sev1'] });
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
describe('one queue on Talk and Decisions', () => {
|
|
87
|
+
it('Decisions lists the same needs-you items, urgent as a badge, a decision row opens its card, and never says Nothing waiting while items wait', async () => {
|
|
88
|
+
const { createDecisionsController } = await import('../decisions');
|
|
89
|
+
const { createPushController } = await import('../controller');
|
|
90
|
+
const { DecisionsScreen } = await import('../DecisionsScreen');
|
|
91
|
+
const { client } = createFakeNotify();
|
|
92
|
+
const needsYou = createNeedsYouController({ client: { needsYou: async () => ({ items: [
|
|
93
|
+
{ id: 'q-1', text: 'TEST: sample urgent item', source: 'fleet', class: 'urgent' },
|
|
94
|
+
{ id: 'q-2', text: 'Which build goes to Quinn first?', source: 'decision', class: 'needs-answer', ref: 'dec-1' },
|
|
95
|
+
], counts: { urgent: 1, 'needs-answer': 1, digest: 0, noise: 0 }, callMe: false, waiting: 2 }) } });
|
|
96
|
+
const decisions = createDecisionsController({ client });
|
|
97
|
+
const r = render(<DecisionsScreen decisions={decisions} push={createPushController({ client, registry: { register: async () => ({ registered: true, devices: 0, push_enabled: true }), unregister: async () => undefined }, device: null })} needsYou={needsYou} />);
|
|
98
|
+
await tick();
|
|
99
|
+
expect(allText(r)).toContain('2 things need you');
|
|
100
|
+
expect(allText(r)).toContain('URGENT');
|
|
101
|
+
expect(allText(r)).not.toContain('Nothing waiting');
|
|
102
|
+
await act(async () => { r.root.findByProps({ testID: 'needs-you-open-1' }).props.onPress(); });
|
|
103
|
+
await tick();
|
|
104
|
+
expect(decisions.getState().open?.id).toBe('dec-1');
|
|
105
|
+
});
|
|
106
|
+
});
|
package/src/native/push/fake.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { AttentionSettings } from '../../corpus/attention/settings';
|
|
1
2
|
import type { DecisionRecord, NotifyClient } from '../../corpus/notify';
|
|
2
3
|
|
|
3
4
|
/** A scripted tenant for `-tgFakeTabs`: one pending decision with two questions, an on-by-default push setting. Nothing leaves the phone. */
|
|
4
5
|
export function createFakeNotify(): { client: NotifyClient; registered: string[] } {
|
|
5
6
|
let push = true;
|
|
7
|
+
let attention: AttentionSettings = { quiet_mode: 'off', quiet: { enabled: true, start: 22, end: 7, timeZone: 'America/Los_Angeles' }, quiet_active: false, urgent_words: [], call_me_at: 3, brief_hour: 8, wrap_hour: 18, notify_scope: 'decisions+fleet' };
|
|
6
8
|
const decision: DecisionRecord = {
|
|
7
9
|
id: 'dec-1', title: 'Which build goes to Quinn first?', status: 'pending', created_at: '2026-11-13T12:00:00Z',
|
|
8
10
|
questions: [{ n: 1, text: 'Ship the Siri Shortcut build now?', options: ['Yes', 'Not yet'] }, { n: 2, text: 'Anything to change first?' }],
|
|
@@ -16,8 +18,17 @@ export function createFakeNotify(): { client: NotifyClient; registered: string[]
|
|
|
16
18
|
if (decision.questions.every((q) => decision.answers.some((a) => a.n === q.n))) decision.status = 'answered';
|
|
17
19
|
return { ...decision };
|
|
18
20
|
},
|
|
19
|
-
settings: async () => ({ push, devices: 0 }),
|
|
21
|
+
settings: async () => ({ push, devices: 0, attention }),
|
|
20
22
|
setPush: async (on) => { push = on; return { push, devices: 0 }; },
|
|
23
|
+
setAttention: async (patch) => { attention = { ...attention, ...patch, quiet: { ...attention.quiet, ...patch.quiet } } as AttentionSettings; attention.quiet_active = attention.quiet_mode === 'on'; return attention; },
|
|
24
|
+
needsYou: async () => ({
|
|
25
|
+
items: [
|
|
26
|
+
{ id: 'q-fake0001', text: 'TEST: urgent sample A, no action needed', source: 'fleet', class: 'urgent' },
|
|
27
|
+
{ id: 'q-fake0002', text: 'Approve the staging promote', source: 'fleet', class: 'needs-answer' },
|
|
28
|
+
{ id: 'q-fake0003', text: decision.title, source: 'decision', class: 'needs-answer' },
|
|
29
|
+
],
|
|
30
|
+
counts: { urgent: 1, 'needs-answer': 2, digest: 0, noise: 0 }, callMe: true, waiting: 3,
|
|
31
|
+
}),
|
|
21
32
|
};
|
|
22
33
|
return { client, registered: [] };
|
|
23
34
|
}
|
package/src/native/push/index.ts
CHANGED
|
@@ -5,3 +5,6 @@ export { createDecisionsController, type DecisionsController, type DecisionsStat
|
|
|
5
5
|
export { decisionsTab } from './tab';
|
|
6
6
|
export { DecisionsScreen } from './DecisionsScreen';
|
|
7
7
|
export { createFakeNotify } from './fake';
|
|
8
|
+
export { createNeedsYouController, type NeedsYouController, type NeedsYouState } from './needsYou';
|
|
9
|
+
export { AttentionCard } from './AttentionCard';
|
|
10
|
+
export { NeedsYouCard } from './NeedsYouCard';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** The "needs you" queue on the phone: read on demand (a tapped push, the Talk tab coming on screen). */
|
|
2
|
+
import type { NeedsYouQueue } from '../../corpus/attention/types';
|
|
3
|
+
import type { NotifyClient } from '../../corpus/notify';
|
|
4
|
+
|
|
5
|
+
export interface NeedsYouState { queue: NeedsYouQueue | null; loading: boolean; error: string | null; /** A tapped push asked for the briefing: Talk starts it (hands-free) and clears this. */ briefRequested: boolean }
|
|
6
|
+
export interface NeedsYouController {
|
|
7
|
+
getState(): NeedsYouState;
|
|
8
|
+
subscribe(l: () => void): () => void;
|
|
9
|
+
refresh(): Promise<void>;
|
|
10
|
+
/** A tapped attention push: drop straight into the spoken briefing. */
|
|
11
|
+
requestBriefing(): void;
|
|
12
|
+
clearBriefRequest(): void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function createNeedsYouController(deps: { client: Pick<NotifyClient, 'needsYou'> }): NeedsYouController {
|
|
16
|
+
let s: NeedsYouState = { queue: null, loading: false, error: null, briefRequested: false };
|
|
17
|
+
const ls = new Set<() => void>();
|
|
18
|
+
const set = (p: Partial<NeedsYouState>) => { s = { ...s, ...p }; ls.forEach((l) => l()); };
|
|
19
|
+
return {
|
|
20
|
+
getState: () => s,
|
|
21
|
+
requestBriefing: () => set({ briefRequested: true }),
|
|
22
|
+
clearBriefRequest: () => { if (s.briefRequested) set({ briefRequested: false }); },
|
|
23
|
+
subscribe: (l) => { ls.add(l); return () => ls.delete(l); },
|
|
24
|
+
async refresh() {
|
|
25
|
+
set({ loading: true, error: null });
|
|
26
|
+
try { set({ queue: await deps.client.needsYou() }); } catch (e) { set({ error: e instanceof Error ? e.message : String(e) }); } finally { set({ loading: false }); }
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
}
|
package/src/native/push/tab.tsx
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { FoundryTab } from '../components/FoundryTabsShell';
|
|
2
2
|
import { DecisionsScreen } from './DecisionsScreen';
|
|
3
3
|
import type { DecisionsController } from './decisions';
|
|
4
|
+
import type { AttentionController } from '../../corpus/attention/controller';
|
|
5
|
+
import type { NeedsYouController } from './needsYou';
|
|
4
6
|
import type { PushController } from './controller';
|
|
5
7
|
|
|
6
8
|
/** The Decisions tab: pending decisions plus the notifications switch. A deep link `<scheme>://tab/<key>/<decision id>` opens one. */
|
|
7
|
-
export function decisionsTab(controllers: { decisions: DecisionsController; push: PushController }, over: Partial<Pick<FoundryTab, 'key' | 'label'>> = {}): FoundryTab {
|
|
8
|
-
return { key: 'decisions', label: 'Decisions', resetOnLeave: true, ...over, render: ({ route }) => <DecisionsScreen decisions={controllers.decisions} push={controllers.push} focus={route?.id} /> };
|
|
9
|
+
export function decisionsTab(controllers: { decisions: DecisionsController; push: PushController; attention?: AttentionController; needsYou?: NeedsYouController }, over: Partial<Pick<FoundryTab, 'key' | 'label'>> = {}): FoundryTab {
|
|
10
|
+
return { key: 'decisions', label: 'Decisions', resetOnLeave: true, ...over, render: ({ route }) => <DecisionsScreen decisions={controllers.decisions} push={controllers.push} focus={route?.id} attention={controllers.attention} needsYou={controllers.needsYou} /> };
|
|
9
11
|
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
1
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import { useControllerState } from '../components/useControllerState';
|
|
2
3
|
import { View } from 'react-native';
|
|
3
|
-
import { Header } from '@startsimpli/ui-native';
|
|
4
|
+
import { Button, Header } from '@startsimpli/ui-native';
|
|
4
5
|
import { TAB_COPY } from '../../corpus/nav-copy';
|
|
5
6
|
import { projectIdOf } from '../../corpus/ask-projects';
|
|
6
7
|
import type { MeetingController } from '../../corpus/converse/meeting';
|
|
7
8
|
import type { FoundryTab, TabContext } from '../components/FoundryTabsShell';
|
|
8
9
|
import type { NativeCorpusApi } from '../corpus/api';
|
|
9
10
|
import { ConverseScreen } from '../converse/ConverseScreen';
|
|
11
|
+
import { DriveScreen } from '../converse/DriveScreen';
|
|
10
12
|
import type { SpeedStore } from '../converse/speed';
|
|
13
|
+
import { NeedsYouCard } from '../push/NeedsYouCard';
|
|
14
|
+
import type { NeedsYouController } from '../push/needsYou';
|
|
11
15
|
import { AskScreen } from '../screens/ask/AskScreen';
|
|
12
16
|
import { createAskController } from '../screens/ask/controller';
|
|
13
17
|
|
|
@@ -20,6 +24,8 @@ export interface TalkTabOptions {
|
|
|
20
24
|
speed?: SpeedStore | null;
|
|
21
25
|
key?: string;
|
|
22
26
|
label?: string;
|
|
27
|
+
/** What is waiting on the person; drawn above the thread when anything is. Absent when notifications are off. */
|
|
28
|
+
needsYou?: NeedsYouController | null;
|
|
23
29
|
/** The Library tab, where a cited source opens. */
|
|
24
30
|
libraryKey?: string;
|
|
25
31
|
/** The Plan tab, where a cited PROJECT opens. */
|
|
@@ -28,11 +34,27 @@ export interface TalkTabOptions {
|
|
|
28
34
|
|
|
29
35
|
function TalkBody({ opts, ctx }: { opts: TalkTabOptions; ctx: TabContext }) {
|
|
30
36
|
const { api, converse, speed, libraryKey = 'library', planKey } = opts;
|
|
37
|
+
// Answers given in a briefing leave the queue: re-read it as the thread grows.
|
|
38
|
+
const lineCount = useControllerState(converse ? { getState: () => converse.getState().lines.length, subscribe: (l: () => void) => converse.subscribe(l) } : { getState: () => 0, subscribe: () => () => undefined });
|
|
39
|
+
useEffect(() => { if (lineCount > 0) void opts.needsYou?.refresh(); }, [lineCount, opts.needsYou]);
|
|
40
|
+
// DRIVE mode: no per-turn taps. A tapped attention push drops straight into it with the briefing already speaking.
|
|
41
|
+
const [drive, setDrive] = useState(false);
|
|
42
|
+
const briefRequested = useControllerState(opts.needsYou ? { getState: () => opts.needsYou!.getState().briefRequested, subscribe: (l: () => void) => opts.needsYou!.subscribe(l) } : { getState: () => false, subscribe: () => () => undefined });
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
if (!briefRequested || !converse) return;
|
|
45
|
+
opts.needsYou?.clearBriefRequest();
|
|
46
|
+
setDrive(true);
|
|
47
|
+
converse.start();
|
|
48
|
+
void converse.startBriefing();
|
|
49
|
+
}, [briefRequested, converse, opts.needsYou]);
|
|
31
50
|
const ask = useMemo(() => (converse ? null : createAskController({ api: api.ask, scope: api.scope, listProjects: async () => (await api.corpus.listFocusChoices?.()) ?? [] })), [api, converse]);
|
|
51
|
+
if (drive && converse) return <View style={{ flex: 1 }} testID="talk-screen"><DriveScreen controller={converse} onExit={() => setDrive(false)} /></View>;
|
|
32
52
|
return (
|
|
33
53
|
<View style={{ flex: 1 }} testID="talk-screen">
|
|
34
54
|
<Header large testID="talk-header" title={TAB_COPY.talk.label} />
|
|
35
55
|
{/* ONE conversation: notes, questions, to-dos and the relay all go through the same thread, no modes. */}
|
|
56
|
+
{converse && opts.needsYou ? <NeedsYouCard needsYou={opts.needsYou} active={ctx.active} onTalk={() => void converse.startBriefing()} /> : null}
|
|
57
|
+
{converse ? <Button testID="talk-drive" title="Drive mode: hands-free" variant="outline" size="sm" onPress={() => { setDrive(true); converse.start(); }} /> : null}
|
|
36
58
|
{converse ? (
|
|
37
59
|
<ConverseScreen
|
|
38
60
|
controller={converse}
|