@startsimpli/integrations 0.2.103 → 0.2.104

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 (29) hide show
  1. package/package.json +2 -2
  2. package/src/native/__tests__/design-screens.test.tsx +97 -0
  3. package/src/native/__tests__/ux-polish.test.tsx +4 -2
  4. package/src/native/app/FoundryApp.tsx +2 -2
  5. package/src/native/app/__tests__/launch.test.ts +4 -1
  6. package/src/native/app/entity/EntityTab.tsx +13 -18
  7. package/src/native/app/icon.tsx +6 -1
  8. package/src/native/app/launch.ts +4 -0
  9. package/src/native/app/screens/RecordScreen.tsx +37 -30
  10. package/src/native/app/screens/SignInScreen.tsx +4 -3
  11. package/src/native/components/FoundryTabsShell.tsx +8 -5
  12. package/src/native/components/MoreTabList.tsx +20 -25
  13. package/src/native/components/NoteDetailScreen.tsx +49 -57
  14. package/src/native/components/NotesListScreen.tsx +13 -19
  15. package/src/native/components/__tests__/notes-screens.test.tsx +7 -7
  16. package/src/native/home/HomeScreen.tsx +15 -12
  17. package/src/native/screens/ask/AskScreen.tsx +20 -22
  18. package/src/native/screens/connect-claude/ConnectClaudeScreen.tsx +68 -61
  19. package/src/native/screens/connections/ConnectionsScreens.tsx +46 -42
  20. package/src/native/screens/library/LibraryDetailScreen.tsx +35 -49
  21. package/src/native/screens/library/LibraryListScreen.tsx +13 -21
  22. package/src/native/screens/planning/PlanningScreens.tsx +49 -26
  23. package/src/native/tracker/TodoGlyph.tsx +11 -0
  24. package/src/native/tracker/TrackerDetailScreen.tsx +34 -39
  25. package/src/native/tracker/TrackerListScreen.tsx +28 -19
  26. package/src/native/tracker/__tests__/format.test.ts +3 -3
  27. package/src/native/tracker/format.ts +8 -7
  28. package/src/native/voice/format.ts +0 -3
  29. package/src/native/screens/shared/PressableCard.tsx +0 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startsimpli/integrations",
3
- "version": "0.2.103",
3
+ "version": "0.2.104",
4
4
  "description": "Provider-agnostic types, API clients, hooks, and UI primitives for email + calendar integrations across StartSimpli apps, plus foundry customer email (subpath ./comms).",
5
5
  "license": "MIT",
6
6
  "homepage": "https://startsimpli.com",
@@ -48,7 +48,7 @@
48
48
  "@tanstack/react-query": ">=5.0.0",
49
49
  "@startsimpli/llm": ">=0.4.0",
50
50
  "react-native": ">=0.74.0",
51
- "@startsimpli/ui-native": ">=0.1.0",
51
+ "@startsimpli/ui-native": ">=0.1.10",
52
52
  "react-native-safe-area-context": ">=4.0.0",
53
53
  "@startsimpli/auth": "^0.4.49",
54
54
  "@startsimpli/utils": "^0.4.17",
@@ -0,0 +1,97 @@
1
+ /** startsim-o1xg5: the screens speak the shared design language (row primitives, detail scaffold, tinted status, sections). */
2
+ import { describe, expect, it, vi } from 'vitest';
3
+ import { act, allText, flat, hostById, maybeById, render, darkTheme } from '../../../../ui-native/test/render';
4
+ import { NoteDetailScreen } from '../components/NoteDetailScreen';
5
+ import { NotesListScreen } from '../components/NotesListScreen';
6
+ import { MoreTabList } from '../components/MoreTabList';
7
+ import { createFakeNativeCorpusApi } from '../corpus/fake';
8
+ import { createTrackerController } from '../tracker/controller';
9
+ import { TrackerDetailScreen } from '../tracker/TrackerDetailScreen';
10
+ import { TrackerListScreen } from '../tracker/TrackerListScreen';
11
+ import { rowParts } from '../tracker/format';
12
+ import { createVoiceNotesController } from '../voice/controller';
13
+ import { createFakeVoiceApi } from '../voice/fake';
14
+
15
+ const settle = () => act(async () => { await new Promise((res) => setTimeout(res, 0)); });
16
+ const NOW = Date.parse('2026-11-05T00:00:00Z');
17
+ const hasChevron = (n: any) => n.findAll((x: any) => x.type === 'Svg').length > 0;
18
+
19
+ describe('Notes list rows', () => {
20
+ async function mount() {
21
+ const controller = createVoiceNotesController({ api: createFakeVoiceApi(), pollMs: 60_000 });
22
+ const r = render(<NotesListScreen controller={controller} onOpen={vi.fn()} />);
23
+ await act(async () => { await controller.start?.(); });
24
+ await settle();
25
+ return r;
26
+ }
27
+ it('a ready note has no status badge; a failed or transcribing one does', async () => {
28
+ const r = await mount();
29
+ expect(allText(r)).toContain('Failed');
30
+ expect(allText(r)).toContain('Transcribing...');
31
+ expect(allText(r)).not.toContain('Ready');
32
+ });
33
+ it('rows are pressable with a disclosure chevron and a microphone tile', async () => {
34
+ const r = await mount();
35
+ const row = hostById(r, 'note-row-n1');
36
+ expect(row.props.accessibilityRole).toBe('button');
37
+ expect(hasChevron(row)).toBe(true);
38
+ });
39
+ it('the title is a large title', async () => {
40
+ const r = await mount();
41
+ const title = hostById(r, 'notes-header').findAll((n: any) => n.type === 'Text')[0];
42
+ expect(flat(title.props.style).fontSize).toBeGreaterThanOrEqual(28);
43
+ });
44
+ });
45
+
46
+ describe('To-dos', () => {
47
+ it('rowParts splits the due line from who / project and flags overdue', () => {
48
+ const item: any = { id: 'x', title: 't', status: 'open', dueAt: '2026-11-04T00:00:00Z', ownerName: 'Quinn' };
49
+ expect(rowParts(item, '287A', NOW)).toEqual({ due: 'Overdue · Nov 4', overdue: true, who: 'Quinn · 287A' });
50
+ expect(rowParts({ ...item, dueAt: null }, undefined, NOW)).toEqual({ due: null, overdue: false, who: 'Quinn' });
51
+ });
52
+ it('an open to-do shows no "Open" badge, an overdue one reads in the danger tone', async () => {
53
+ const api = createFakeNativeCorpusApi({});
54
+ const controller = createTrackerController({ api, now: () => NOW });
55
+ const r = render(<TrackerListScreen controller={controller} onOpen={vi.fn()} now={() => NOW} />, darkTheme);
56
+ await act(async () => { await controller.start(); });
57
+ await settle();
58
+ expect(allText(r)).not.toMatch(/(^|[^a-z])Open($|[^a-z])/);
59
+ const overdue = r.root.findAll((n: any) => n.type === 'Text' && String(n.props.children).startsWith('Overdue ·'));
60
+ expect(flat(overdue[0].props.style).color).toBe(darkTheme.tones.danger.fg);
61
+ });
62
+ it('the detail is hero, facts, then the action, and reopens in the same scaffold', async () => {
63
+ const api = createFakeNativeCorpusApi({});
64
+ const r = render(<TrackerDetailScreen api={api} id="c1" onBack={vi.fn()} now={() => NOW} />);
65
+ await settle(); await settle();
66
+ const text = allText(r);
67
+ expect(text.indexOf('Finish exhibit list')).toBeLessThan(text.indexOf('Owner'));
68
+ expect(text.indexOf('Owner')).toBeLessThan(text.indexOf('Mark done'));
69
+ expect(maybeById(r, 'todo-toggle')).toHaveLength(1);
70
+ });
71
+ });
72
+
73
+ describe('Note detail', () => {
74
+ it('uses the scaffold: hero with the project tag, to-dos as rows, project section, delete in the footer', async () => {
75
+ const controller = createVoiceNotesController({ api: createFakeVoiceApi(), pollMs: 60_000 });
76
+ const r = render(<NoteDetailScreen controller={controller} noteId="n1" onBack={vi.fn()} />);
77
+ await settle(); await settle();
78
+ const text = allText(r);
79
+ expect(text.indexOf('Voice note')).toBeLessThan(text.indexOf('Finish exhibit list'));
80
+ expect(text).toContain('Project');
81
+ expect(text.indexOf('Project')).toBeLessThan(text.indexOf('Delete note'));
82
+ expect(maybeById(r, 'note-delete')).toHaveLength(1);
83
+ });
84
+ });
85
+
86
+ describe('More list', () => {
87
+ it('one grouped row per overflow tab, each with an icon tile and a chevron', () => {
88
+ const tabs: any[] = [{ key: 'library', label: 'Library', description: 'Documents' }, { key: 'weird-key', label: 'Weird' }];
89
+ const open = vi.fn();
90
+ const r = render(<MoreTabList tabs={tabs} onOpen={open} />);
91
+ expect(allText(r)).toContain('Library');
92
+ expect(allText(r)).toContain('Documents');
93
+ for (const k of ['library', 'weird-key']) expect(hasChevron(hostById(r, `more-row-${k}`))).toBe(true);
94
+ act(() => { hostById(r, 'more-row-library').props.onPress(); });
95
+ expect(open).toHaveBeenCalledWith('library');
96
+ });
97
+ });
@@ -93,7 +93,9 @@ describe('detail screens (bd .13)', () => {
93
93
  await settle();
94
94
  const back = hostById(r, 'note-back');
95
95
  expect(back.props.accessibilityLabel).toBe('Back');
96
- expect(texts(back).join('')).toBe('‹');
96
+ // The chevron is a drawn icon (no text glyph) and there is no text label beside it.
97
+ expect(texts(back).join('')).toBe('');
98
+ expect(back.findAll((n: any) => n.type === 'Svg')).toHaveLength(1);
97
99
  press(back);
98
100
  expect(onBack).toHaveBeenCalled();
99
101
  });
@@ -102,7 +104,7 @@ describe('detail screens (bd .13)', () => {
102
104
  const controller = createVoiceNotesController({ api: createFakeVoiceApi(), pollMs: 60_000 });
103
105
  const r = render(<NoteDetailScreen controller={controller} noteId="nope" onBack={vi.fn()} />);
104
106
  await settle();
105
- expect(texts(hostById(r, 'note-back')).join('')).toBe('‹');
107
+ expect(texts(hostById(r, 'note-back')).join('')).toBe('');
106
108
  expect(allText(r)).toContain('no longer available');
107
109
  });
108
110
 
@@ -27,7 +27,7 @@ export interface FoundryAppProps {
27
27
  screens?: Record<string, ScreenFactory>;
28
28
  }
29
29
 
30
- function Themed({ mode, children }: { mode: FoundryAppConfig['theme']['mode']; children: ReactNode }) {
30
+ function Themed({ mode, children }: { mode: FoundryAppConfig['theme']['mode'] | 'light' | 'dark'; children: ReactNode }) {
31
31
  const scheme = useColorScheme();
32
32
  const dark = mode === 'dark' || (mode === 'system' && scheme !== 'light');
33
33
  return (
@@ -116,7 +116,7 @@ function Root({ config, device, registry }: { config: FoundryAppConfig; device:
116
116
  }, [nav, services, restoreStore, launch.fake]);
117
117
 
118
118
  return (
119
- <Themed mode={config.theme.mode}>
119
+ <Themed mode={launch.scheme ?? config.theme.mode}>
120
120
  {auth === 'unknown' || (auth === 'signedIn' && !nav) ? <Spinner /> : null}
121
121
  {auth === 'signedOut' ? <SignInScreen strings={strings} notice={expired ? strings.sessionExpired : null} onSignIn={(e, p) => services.session.signIn(e, p)} /> : null}
122
122
  {auth === 'signedIn' && nav && !showDiag ? (
@@ -7,7 +7,7 @@ const args = (o: Record<string, string>) => (k: string) => o[k];
7
7
 
8
8
  describe('readLaunch', () => {
9
9
  it('a plain launch is real mode with nothing to open', () => {
10
- expect(readLaunch(args({}), config)).toEqual({ fake: false, scenario: 'normal', target: null, autostop: null });
10
+ expect(readLaunch(args({}), config)).toEqual({ fake: false, scenario: 'normal', target: null, autostop: null, scheme: null });
11
11
  });
12
12
  it('-tgFakeTabs with -tgTab and -tgDetail', () => {
13
13
  expect(readLaunch(args({ tgFakeTabs: '1', tgTab: 'tracker', tgDetail: 'c1' }), config)).toMatchObject({ fake: true, target: { tab: 'tracker', id: 'c1' } });
@@ -20,6 +20,9 @@ describe('readLaunch', () => {
20
20
  it('-tgFakeState and -tgAutostop', () => {
21
21
  expect(readLaunch(args({ tgFakeTabs: '1', tgFakeState: 'empty', tgAutostop: '30' }), config)).toMatchObject({ scenario: 'empty', autostop: 30 });
22
22
  expect(readLaunch(args({ tgAutostop: 'x' }), config).autostop).toBeNull();
23
+ expect(readLaunch(args({ tgScheme: 'light' }), config).scheme).toBe('light');
24
+ expect(readLaunch(args({ tgScheme: 'dark' }), config).scheme).toBe('dark');
25
+ expect(readLaunch(args({ tgScheme: 'neon' }), config).scheme).toBeNull();
23
26
  });
24
27
  it('an app with no notes tab ignores the notes arguments', () => {
25
28
  const none = resolveFoundryApp({ app: { name: 'A' }, tenant: { url: 'http://x' }, features: { notes: false } });
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useMemo, useState } from 'react';
2
- import { ScrollView, View } from 'react-native';
3
- import { Alert, DataList, Header, ListRow, Spinner, StatusChip, Text, useTheme } from '@startsimpli/ui-native';
2
+ import { View } from 'react-native';
3
+ import { Alert, DataList, DetailScreen, Header, IconTile, ListRow, StatusChip } from '@startsimpli/ui-native';
4
4
  import type { TenantEntity } from '../../../corpus/entities';
5
5
  import type { FoundryTab, TabContext } from '../../components/FoundryTabsShell';
6
6
  import { useControllerState } from '../../components/useControllerState';
@@ -18,7 +18,7 @@ function EntityList({ api, type, spec, onOpen }: { api: Api; type: string; spec:
18
18
  const plural = spec.plural ?? `${spec.label}s`;
19
19
  return (
20
20
  <View style={{ flex: 1 }} testID={`entity-${type}-screen`}>
21
- <Header title={plural} subtitle={state.count !== null ? `${state.count}` : undefined} />
21
+ <Header large title={plural} subtitle={state.count !== null ? `${state.count}` : undefined} />
22
22
  <DataList<EntityRowView>
23
23
  testID={`entity-${type}-list`}
24
24
  data={rows}
@@ -26,6 +26,7 @@ function EntityList({ api, type, spec, onOpen }: { api: Api; type: string; spec:
26
26
  renderItem={({ item }) => (
27
27
  <View testID={`entity-${item.id}`}>
28
28
  <ListRow
29
+ leading={<IconTile icon="note" tone="info" />}
29
30
  title={item.title}
30
31
  subtitle={item.subtitle}
31
32
  trailing={item.status ? <StatusChip status={item.status} /> : undefined}
@@ -48,7 +49,6 @@ function EntityList({ api, type, spec, onOpen }: { api: Api; type: string; spec:
48
49
  }
49
50
 
50
51
  function EntityDetail({ api, spec, id, onBack }: { api: Api; spec: FoundryEntityType; id: string; onBack: () => void }) {
51
- const theme = useTheme();
52
52
  const [entity, setEntity] = useState<TenantEntity | null>(null);
53
53
  const [error, setError] = useState<string | null>(null);
54
54
  useEffect(() => {
@@ -60,20 +60,15 @@ function EntityDetail({ api, spec, id, onBack }: { api: Api; spec: FoundryEntity
60
60
  }, [api, id]);
61
61
  const row = entity ? entityRow(entity, spec) : null;
62
62
  return (
63
- <View style={{ flex: 1 }}>
64
- <Header testID="entity-detail" title={row?.title ?? spec.label} subtitle={row?.subtitle} onBack={onBack} />
65
- <ScrollView contentContainerStyle={{ padding: theme.spacing.lg, gap: theme.spacing.md }}>
66
- {error ? <Alert variant="destructive">{error}</Alert> : null}
67
- {!entity && !error ? <Spinner /> : null}
68
- {row?.status ? <StatusChip status={row.status} /> : null}
69
- {entity ? entityFields(entity).map((f) => (
70
- <View key={f.key} style={{ gap: 2 }}>
71
- <Text variant="caption">{f.label}</Text>
72
- <Text selectable>{f.value}</Text>
73
- </View>
74
- )) : null}
75
- </ScrollView>
76
- </View>
63
+ <DetailScreen
64
+ title={spec.label}
65
+ onBack={onBack}
66
+ headerTestID="entity-detail"
67
+ loading={!entity && !error}
68
+ unavailable={!entity && error ? { title: 'Could not load this record', description: error } : undefined}
69
+ hero={row ? { eyebrow: spec.label, title: row.title, subtitle: row.subtitle, tags: row.status ? <StatusChip status={row.status} /> : undefined } : undefined}
70
+ meta={entity ? entityFields(entity).map((f) => ({ label: f.label, value: f.value, wide: f.value.length > 24 })) : undefined}
71
+ />
77
72
  );
78
73
  }
79
74
 
@@ -1,7 +1,12 @@
1
1
  import { Text } from 'react-native';
2
+ import { ICON_PATHS, Icon, type IconName } from '@startsimpli/ui-native';
2
3
  import type { FoundryTab } from '../components/FoundryTabsShell';
3
4
 
4
- /** A tab icon from a glyph string (an emoji or symbol in the config), drawn in the bar's active/inactive colour. */
5
+ /**
6
+ * A tab icon from the config's `icon`: a name from the shared icon set (`"mic"`, `"link"`), else a glyph string (an
7
+ * emoji or symbol), drawn in the bar's active/inactive colour.
8
+ */
5
9
  export function glyphIcon(glyph: string): NonNullable<FoundryTab['icon']> {
10
+ if (glyph in ICON_PATHS) return ({ color, active }) => <Icon name={glyph as IconName} size={24} color={color} strokeWidth={active ? 2.3 : 1.9} />;
6
11
  return ({ color }) => <Text style={{ color, fontSize: 20, lineHeight: 24 }}>{glyph}</Text>;
7
12
  }
@@ -11,12 +11,15 @@ import type { FoundryAppConfig } from './config/types';
11
11
  * -tgTab <key> -tgDetail <id> open a tab, optionally on one record
12
12
  * -tgNote <id> open that note (device, real data)
13
13
  * -tgAutostop N start a timed recording after sign-in
14
+ * -tgScheme light|dark override the config's theme mode (simulator checks of the light theme)
14
15
  */
15
16
  export interface LaunchArgs {
16
17
  fake: boolean;
17
18
  scenario: FakeScenario;
18
19
  target: TabLink | null;
19
20
  autostop: number | null;
21
+ /** Overrides `config.theme.mode`. */
22
+ scheme: 'light' | 'dark' | null;
20
23
  }
21
24
 
22
25
  export function readLaunch(get: (key: string) => unknown, config: Pick<FoundryAppConfig, 'tabs'>): LaunchArgs {
@@ -38,5 +41,6 @@ export function readLaunch(get: (key: string) => unknown, config: Pick<FoundryAp
38
41
  scenario: readFakeScenario((k) => str(k)),
39
42
  target,
40
43
  autostop: Number.isFinite(n) && n > 0 ? n : null,
44
+ scheme: str('tgScheme') === 'light' ? 'light' : str('tgScheme') === 'dark' ? 'dark' : null,
41
45
  };
42
46
  }
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useRef, useState } from 'react';
2
2
  import { Pressable, View } from 'react-native';
3
- import { Alert, Badge, Button, ListRow, Progress, Screen, Text, useTheme } from '@startsimpli/ui-native';
3
+ import { Alert, Button, Header, IconTile, ListRow, RecordButton, Screen, SectionHeader, StatusChip, Text, typeStyle, useTheme } from '@startsimpli/ui-native';
4
4
  import type { VoiceNote } from '../../../corpus/voice';
5
5
  import { noteSections } from '../../voice/sections';
6
6
  import { meterFraction } from '../../recording/levels';
@@ -49,45 +49,52 @@ export function RecordScreen({ recording, strings, onOpenDiagnostics, onSignOut
49
49
  const mm = String(Math.floor(elapsed / 60000)).padStart(2, '0');
50
50
  const ss = String(Math.floor(elapsed / 1000) % 60).padStart(2, '0');
51
51
  const isRecording = state.phase === 'recording';
52
- const big = { height: 220, borderRadius: 110, alignSelf: 'center' as const, width: 220, justifyContent: 'center' as const };
52
+ const phase = isRecording ? 'recording' : state.phase === 'uploading' ? 'busy' : 'idle';
53
53
 
54
54
  return (
55
- <Screen scroll>
56
- <Pressable onLongPress={onOpenDiagnostics} delayLongPress={600} testID="title" style={{ marginTop: 16 }}>
57
- <Text variant="heading">{strings.appName}</Text>
55
+ <Screen scroll contentContainerStyle={{ paddingHorizontal: 0 }}>
56
+ <Pressable onLongPress={onOpenDiagnostics} delayLongPress={600} testID="title">
57
+ <Header large title={strings.appName} titleTestID="go-title" />
58
58
  </Pressable>
59
59
 
60
- <View style={{ marginVertical: 28, gap: 14 }}>
61
- {isRecording ? (
62
- <>
63
- <Button title={strings.stop} variant="destructive" size="lg" style={big} onPress={() => { void recorder.stop(); }} testID="stop" />
64
- <Text variant="heading" style={{ textAlign: 'center' }} testID="timer">{mm}:{ss}</Text>
65
- <Progress value={meterFraction(state.levelDb ?? -160) * 100} />
66
- </>
67
- ) : (
68
- <Button title={strings.go} size="lg" style={big} disabled={state.phase === 'uploading'} onPress={() => { void recorder.go(); }} testID="go" />
69
- )}
60
+ <View style={{ paddingHorizontal: theme.layout.gutter, paddingVertical: theme.spacing.xl, gap: theme.spacing.md }}>
61
+ <RecordButton
62
+ testID={isRecording ? 'stop' : 'go'}
63
+ phase={phase}
64
+ label={strings.go}
65
+ stopLabel={strings.stop}
66
+ level={isRecording ? meterFraction(state.levelDb ?? -160) : 0}
67
+ onPress={() => { void (isRecording ? recorder.stop() : recorder.go()); }}
68
+ />
69
+ {isRecording ? <Text testID="timer" style={[typeStyle(theme, 'largeTitle'), { textAlign: 'center', fontVariant: ['tabular-nums'] }]}>{mm}:{ss}</Text> : null}
70
70
  {state.phase === 'uploading' ? <Text variant="muted" style={{ textAlign: 'center' }}>{strings.sending}</Text> : null}
71
71
  {state.phase === 'sent' ? <Text variant="muted" style={{ textAlign: 'center' }} testID="status">{strings.sent}</Text> : null}
72
72
  {state.phase === 'queued' ? <Text variant="muted" style={{ textAlign: 'center' }} testID="status">{strings.queued}</Text> : null}
73
73
  </View>
74
74
 
75
- {state.warning === 'no-audio' ? <Alert variant="destructive" style={{ marginBottom: 12 }}>{strings.noAudio}</Alert> : null}
76
- {state.permission === 'denied' ? (
77
- <Alert variant="destructive" style={{ marginBottom: 12 }}>
78
- <Text>{strings.micDenied}</Text>
79
- <Button title={strings.openSettings} variant="outline" onPress={() => { void permissions.openSettings(); }} testID="open-settings" />
80
- </Alert>
81
- ) : null}
82
- {state.error ? <Alert variant="destructive" style={{ marginBottom: 12 }}>{state.error}</Alert> : null}
75
+ <View style={{ paddingHorizontal: theme.layout.gutter, gap: theme.spacing.sm }}>
76
+ {state.warning === 'no-audio' ? <Alert variant="destructive">{strings.noAudio}</Alert> : null}
77
+ {state.permission === 'denied' ? (
78
+ <Alert variant="destructive">
79
+ <Text>{strings.micDenied}</Text>
80
+ <Button title={strings.openSettings} variant="outline" onPress={() => { void permissions.openSettings(); }} testID="open-settings" />
81
+ </Alert>
82
+ ) : null}
83
+ {state.error ? <Alert variant="destructive">{state.error}</Alert> : null}
83
84
 
84
- <Text style={{ marginTop: 16, fontWeight: '600', fontSize: 18 }}>{strings.recent}</Text>
85
- {notes.length === 0 ? <Text variant="muted">{strings.noNotes}</Text> : null}
86
- {notes.map((n) => (
87
- <ListRow key={n.id} title={n.title} subtitle={noteSections(n)[0]?.summary || undefined}
88
- trailing={<Badge label={statusLabel(n)} variant={n.status === 'ready' ? 'success' : n.status === 'failed' ? 'destructive' : 'secondary'} />} />
89
- ))}
90
- <Button title={strings.signOut} variant="outline" onPress={onSignOut} style={{ marginTop: theme.spacing.lg }} />
85
+ <SectionHeader title={strings.recent} />
86
+ {notes.length === 0 ? <Text variant="muted">{strings.noNotes}</Text> : null}
87
+ {notes.map((n) => (
88
+ <ListRow
89
+ key={n.id}
90
+ leading={<IconTile icon="mic" tone={n.status === 'failed' ? 'danger' : n.status === 'ready' ? 'neutral' : 'info'} />}
91
+ title={n.title}
92
+ subtitle={noteSections(n)[0]?.summary || undefined}
93
+ trailing={n.status === 'ready' ? undefined : <StatusChip status={n.status === 'failed' ? 'failed' : 'processing'} label={statusLabel(n)} />}
94
+ />
95
+ ))}
96
+ <Button title={strings.signOut} variant="outline" onPress={onSignOut} style={{ marginTop: theme.spacing.lg }} />
97
+ </View>
91
98
  </Screen>
92
99
  );
93
100
  }
@@ -1,9 +1,10 @@
1
1
  import { useState } from 'react';
2
2
  import { View } from 'react-native';
3
- import { Alert, Button, Input, Screen, Text } from '@startsimpli/ui-native';
3
+ import { Alert, Button, Input, Screen, Text, useTheme } from '@startsimpli/ui-native';
4
4
  import type { FoundryStrings } from '../strings';
5
5
 
6
6
  export function SignInScreen({ strings, notice, onSignIn }: { strings: FoundryStrings; /** Why the person is here again (session expired). */ notice?: string | null; onSignIn: (email: string, password: string) => Promise<void> }) {
7
+ const theme = useTheme();
7
8
  const [email, setEmail] = useState('');
8
9
  const [password, setPassword] = useState('');
9
10
  const [busy, setBusy] = useState(false);
@@ -22,8 +23,8 @@ export function SignInScreen({ strings, notice, onSignIn }: { strings: FoundrySt
22
23
  };
23
24
 
24
25
  return (
25
- <Screen style={{ justifyContent: 'center', gap: 12 }}>
26
- <Text variant="heading">{strings.signInTitle}</Text>
26
+ <Screen style={{ justifyContent: 'center', gap: theme.spacing.md }}>
27
+ <Text variant="largeTitle" style={{ marginBottom: theme.spacing.sm }}>{strings.signInTitle}</Text>
27
28
  {notice ? <View testID="session-expired"><Alert variant="default">{notice}</Alert></View> : null}
28
29
  <Input value={email} onChangeText={setEmail} placeholder={strings.email} autoCapitalize="none" keyboardType="email-address" autoCorrect={false} testID="email" />
29
30
  <Input value={password} onChangeText={setPassword} placeholder={strings.password} secureTextEntry testID="password" />
@@ -1,7 +1,7 @@
1
1
  import { useMemo, useState, useSyncExternalStore, type ReactNode } from 'react';
2
2
  import { Pressable, Text, View } from 'react-native';
3
3
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
4
- import { TabBar, useTheme, type TabItem } from '@startsimpli/ui-native';
4
+ import { Icon, TabBar, iconForTab, useTheme, type TabItem } from '@startsimpli/ui-native';
5
5
  import { createTabsNavigator, type Route, type TabsNavigator } from '../shell/navigator';
6
6
  import { DEFAULT_MAX_VISIBLE, MORE_KEY, planTabs } from '../shell/overflow';
7
7
  import { MoreTabList } from './MoreTabList';
@@ -89,8 +89,10 @@ export function FoundryTabsShell({ tabs, initialTab, initialDetail, navigator, m
89
89
  const choose = (key: string) => { setMoreAt(null); nav.select(key); };
90
90
  const inMore = moreOpen || overflowKeys.has(state.activeKey);
91
91
 
92
- const items: TabItem[] = primary.map(({ key, label, icon }) => ({ key, label, icon }));
93
- if (overflow.length) items.push({ key: MORE_KEY, label: moreLabel });
92
+ // A tab without its own icon gets the shared one for its key (a dot for an unknown key), so every bar has glyphs.
93
+ const defaultIcon = (key: string): TabItem['icon'] => ({ color, active }) => <Icon name={iconForTab(key)} size={24} color={color} strokeWidth={active ? 2.3 : 1.9} />;
94
+ const items: TabItem[] = primary.map(({ key, label, icon }) => ({ key, label, icon: icon ?? defaultIcon(key) }));
95
+ if (overflow.length) items.push({ key: MORE_KEY, label: moreLabel, icon: defaultIcon(MORE_KEY) });
94
96
 
95
97
  return (
96
98
  <View style={{ flex: 1, backgroundColor: theme.colors.background }}>
@@ -112,9 +114,10 @@ export function FoundryTabsShell({ tabs, initialTab, initialDetail, navigator, m
112
114
  {strip ? (
113
115
  <Pressable
114
116
  testID="more-back" accessibilityRole="button" accessibilityLabel={`Back to ${moreLabel}`} onPress={openMore}
115
- style={{ paddingTop: insets.top + theme.spacing.xs, paddingHorizontal: theme.spacing.md, paddingBottom: theme.spacing.xs }}
117
+ style={({ pressed }) => ({ paddingTop: insets.top + theme.spacing.xs, paddingHorizontal: theme.spacing.sm, minHeight: theme.layout.tapTarget + insets.top, flexDirection: 'row', alignItems: 'center', opacity: pressed ? 0.5 : 1 })}
116
118
  >
117
- <Text numberOfLines={1} style={{ color: theme.colors.primary, fontSize: theme.fontSizes.base }}>{`\u2039 ${moreLabel}`}</Text>
119
+ <Icon name="chevronLeft" size={22} strokeWidth={2.4} color={theme.colors.primary} />
120
+ <Text numberOfLines={1} style={{ color: theme.colors.primary, fontSize: theme.fontSizes.base }}>{moreLabel}</Text>
118
121
  </Pressable>
119
122
  ) : null}
120
123
  {t.render(ctx)}
@@ -1,34 +1,29 @@
1
- import { useSafeAreaInsets } from 'react-native-safe-area-context';
2
- import { Pressable, ScrollView, Text, View } from 'react-native';
3
- import { useTheme } from '@startsimpli/ui-native';
1
+ import { ScrollView, View } from 'react-native';
2
+ import { Header, Icon, IconTile, ListRow, Section, iconForTab, useTheme } from '@startsimpli/ui-native';
4
3
  import type { FoundryTab } from './FoundryTabsShell';
4
+ import { useSafeAreaInsets } from 'react-native-safe-area-context';
5
5
 
6
- /** The list behind the More tab: one row per overflow tab (icon, label, optional description). */
6
+ /** The list behind the More tab: one grouped row per overflow tab (icon, label, optional description). */
7
7
  export function MoreTabList({ tabs, onOpen, title = 'More' }: { tabs: FoundryTab[]; onOpen(key: string): void; title?: string }) {
8
8
  const theme = useTheme();
9
9
  const insets = useSafeAreaInsets();
10
- const { colors, spacing, fontSizes } = theme;
11
10
  return (
12
- <View style={{ flex: 1, backgroundColor: colors.background }} testID="more-list">
13
- <Text accessibilityRole="header" style={{ color: colors.foreground, fontSize: fontSizes.xl, fontWeight: '700', padding: spacing.md, paddingTop: insets.top + spacing.md }}>{title}</Text>
14
- <ScrollView>
15
- {tabs.map((t) => (
16
- <Pressable
17
- key={t.key}
18
- testID={`more-row-${t.key}`}
19
- accessibilityRole="button"
20
- accessibilityLabel={t.label}
21
- onPress={() => onOpen(t.key)}
22
- style={{ flexDirection: 'row', alignItems: 'center', gap: spacing.md, paddingHorizontal: spacing.md, paddingVertical: spacing.md, borderTopWidth: 1, borderTopColor: colors.border }}
23
- >
24
- {t.icon ? <View style={{ width: 28, alignItems: 'center' }}>{t.icon({ active: false, color: colors.mutedForeground })}</View> : null}
25
- <View style={{ flex: 1 }}>
26
- <Text numberOfLines={1} style={{ color: colors.foreground, fontSize: fontSizes.base }}>{t.label}</Text>
27
- {t.description ? <Text numberOfLines={2} style={{ color: colors.mutedForeground, fontSize: fontSizes.sm }}>{t.description}</Text> : null}
28
- </View>
29
- <Text style={{ color: colors.mutedForeground, fontSize: fontSizes.lg }}>{'›'}</Text>
30
- </Pressable>
31
- ))}
11
+ <View style={{ flex: 1, backgroundColor: theme.surface.grouped, paddingTop: insets.top }} testID="more-list">
12
+ <Header large title={title} background={theme.surface.grouped} />
13
+ <ScrollView contentContainerStyle={{ paddingHorizontal: theme.layout.gutter, paddingBottom: theme.layout.sectionGap }}>
14
+ <Section>
15
+ {tabs.map((t) => (
16
+ <ListRow
17
+ key={t.key}
18
+ testID={`more-row-${t.key}`}
19
+ accessibilityLabel={t.label}
20
+ leading={<IconTile icon={t.icon ? t.icon({ active: true, color: theme.tones.info.fg }) : iconForTab(t.key)} tone="info" />}
21
+ title={t.label}
22
+ subtitle={t.description}
23
+ onPress={() => onOpen(t.key)}
24
+ />
25
+ ))}
26
+ </Section>
32
27
  </ScrollView>
33
28
  </View>
34
29
  );