@startsimpli/integrations 0.2.178 → 0.2.180

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 (69) hide show
  1. package/package.json +3 -3
  2. package/src/__tests__/converse-handoff.test.ts +129 -0
  3. package/src/__tests__/converse-meeting.test.ts +41 -0
  4. package/src/__tests__/converse-relay.test.ts +19 -3
  5. package/src/__tests__/home-brief.test.tsx +12 -24
  6. package/src/__tests__/home-needs-your-call.test.tsx +13 -16
  7. package/src/__tests__/plan-shell.test.tsx +160 -0
  8. package/src/__tests__/relay-cli.test.ts +36 -1
  9. package/src/components/DocumentDetail.tsx +15 -4
  10. package/src/components/documentText.ts +24 -0
  11. package/src/components/index.ts +1 -0
  12. package/src/components/pages/LibraryPage.tsx +4 -0
  13. package/src/components/pages/PlanningPage.tsx +20 -10
  14. package/src/components/pages/TrackerPage.tsx +16 -3
  15. package/src/components/pages/home/DueSoonLine.tsx +28 -0
  16. package/src/components/pages/home/HomeBriefPage.tsx +19 -52
  17. package/src/components/pages/home/index.ts +1 -3
  18. package/src/components/pages/plan/ProjectsPage.tsx +54 -0
  19. package/src/components/pages/plan/TalkPage.tsx +48 -0
  20. package/src/components/pages/plan/TimelinePage.tsx +33 -0
  21. package/src/components/pages/plan/index.ts +6 -0
  22. package/src/corpus/converse/handle.ts +10 -3
  23. package/src/corpus/converse/handled-asks.ts +29 -0
  24. package/src/corpus/converse/handoff.ts +52 -0
  25. package/src/corpus/converse/index.ts +4 -2
  26. package/src/corpus/converse/meeting.ts +23 -7
  27. package/src/corpus/converse/relay.ts +8 -4
  28. package/src/corpus/converse/store.ts +2 -0
  29. package/src/corpus/converse/transcript.ts +9 -0
  30. package/src/corpus/converse/types.ts +14 -0
  31. package/src/corpus/index.ts +2 -0
  32. package/src/corpus/nav-copy.ts +31 -0
  33. package/src/corpus/view-text.ts +3 -2
  34. package/src/native/__tests__/design-screens.test.tsx +3 -2
  35. package/src/native/app/FoundryApp.tsx +1 -1
  36. package/src/native/app/__tests__/plan-talk-registry.test.tsx +74 -0
  37. package/src/native/app/briefingServices.ts +1 -0
  38. package/src/native/app/config/defaults.ts +8 -2
  39. package/src/native/app/config/types.ts +1 -1
  40. package/src/native/app/converseServices.ts +1 -0
  41. package/src/native/app/registry.tsx +26 -6
  42. package/src/native/app/services.ts +3 -2
  43. package/src/native/components/NoteDetailScreen.tsx +16 -4
  44. package/src/native/components/__tests__/notes-screens.test.tsx +8 -8
  45. package/src/native/converse/ConverseScreen.tsx +24 -5
  46. package/src/native/converse/__tests__/liveScreen.test.tsx +15 -2
  47. package/src/native/home/HomeScreen.tsx +20 -7
  48. package/src/native/home/controller.ts +15 -5
  49. package/src/native/home/tab.tsx +31 -6
  50. package/src/native/plan/NewProjectRow.tsx +30 -0
  51. package/src/native/plan/PlanTab.tsx +105 -0
  52. package/src/native/plan/ProjectTodos.tsx +24 -0
  53. package/src/native/plan/TimelineScreen.tsx +68 -0
  54. package/src/native/plan/__tests__/plan-tab.test.tsx +76 -0
  55. package/src/native/plan/index.ts +5 -0
  56. package/src/native/plan/timeline.ts +56 -0
  57. package/src/native/recording/__tests__/recorderAudio.test.ts +10 -2
  58. package/src/native/recording/recorderAudio.ts +6 -2
  59. package/src/native/screens/__tests__/tabs.test.tsx +13 -0
  60. package/src/native/screens/ask/AskScreen.tsx +4 -2
  61. package/src/native/screens/library/LibraryDetailScreen.tsx +11 -4
  62. package/src/native/screens/planning/PlanningScreens.tsx +30 -13
  63. package/src/native/screens/tabs.tsx +5 -4
  64. package/src/native/talk/TalkTab.tsx +62 -0
  65. package/src/native/talk/__tests__/talk-tab.test.tsx +57 -0
  66. package/src/native/tracker/TrackerListScreen.tsx +7 -3
  67. package/src/native/tracker/tab.tsx +33 -8
  68. package/src/components/pages/home/DueAcrossProjects.tsx +0 -76
  69. package/src/components/pages/home/RecentNotes.tsx +0 -69
@@ -1,69 +0,0 @@
1
- /**
2
- * RECENT NOTES, each with the actions that came out of it (bd startsim-cpzoz).
3
- * A row is the note's title, when, and "N to-dos · M open"; opening it shows the
4
- * summary and the to-dos themselves, each linking back to the full note. The
5
- * join (`actionsByNote`) is done by the caller; this only draws it.
6
- */
7
- import * as React from 'react';
8
-
9
- import { stripMarkdown } from '../../Markdown';
10
- import type { NoteActions } from '../../../corpus/note-actions';
11
- import type { Commitment, SourceDocument } from '../../../corpus/types';
12
- import { CompactItemRow } from './CompactItemRow';
13
- import { dueDay, localDate } from '../../../corpus/today';
14
- import { daysBetween } from '../../../corpus/due-groups';
15
-
16
- export interface RecentNote { doc: SourceDocument; actions: NoteActions }
17
-
18
- export function RecentNotes({
19
- notes, projectNames = {}, now, timeZone, onOpenNote, onOpenItem,
20
- }: {
21
- notes: RecentNote[];
22
- projectNames?: Record<string, string>;
23
- now: number;
24
- timeZone?: string;
25
- onOpenNote?: (documentId: string) => void;
26
- onOpenItem?: (item: Commitment) => void;
27
- }) {
28
- if (!notes.length) return <p className="text-sm text-gray-500">No notes yet. Record one, or connect a meeting source.</p>;
29
- const today = localDate(now, timeZone);
30
- return (
31
- <ul className="divide-y divide-gray-100 rounded-lg border border-gray-200 bg-white">
32
- {notes.map(({ doc, actions }) => (
33
- <li key={doc.id}>
34
- <details className="group">
35
- <summary className="flex cursor-pointer list-none items-center gap-3 px-4 py-3">
36
- <span className="min-w-0 flex-1 truncate text-sm font-medium text-gray-900">{doc.title || 'Untitled note'}</span>
37
- <span className="shrink-0 text-xs text-gray-500">
38
- {actions.tasks.length === 0 ? 'no to-dos' : `${actions.tasks.length} to-do${actions.tasks.length === 1 ? '' : 's'} · ${actions.open} open`}
39
- </span>
40
- <span className="w-20 shrink-0 text-right text-xs text-gray-500">
41
- {doc.occurredAt ? new Date(doc.occurredAt).toLocaleDateString(undefined, { month: 'short', day: 'numeric' }) : ''}
42
- </span>
43
- </summary>
44
- <div className="space-y-3 px-4 pb-4">
45
- {doc.summary ? <p className="whitespace-pre-line text-sm text-gray-700">{stripMarkdown(doc.summary)}</p> : null}
46
- {actions.tasks.length ? (
47
- <ul>
48
- {actions.tasks.map((item) => {
49
- const due = dueDay(item.dueAt, timeZone);
50
- return (
51
- <CompactItemRow
52
- key={item.externalId} item={item} due={due} days={due ? daysBetween(today, due) : null}
53
- project={item.focusId ? projectNames[item.focusId] : undefined} onOpen={onOpenItem}
54
- />
55
- );
56
- })}
57
- </ul>
58
- ) : null}
59
- {actions.statements ? <p className="text-xs text-gray-500">{actions.statements} decision{actions.statements === 1 ? '' : 's'} or question{actions.statements === 1 ? '' : 's'} noted</p> : null}
60
- {onOpenNote ? (
61
- <button type="button" className="text-sm text-blue-700 underline" onClick={() => onOpenNote(doc.id)}>Open the full note</button>
62
- ) : null}
63
- </div>
64
- </details>
65
- </li>
66
- ))}
67
- </ul>
68
- );
69
- }