@startsimpli/integrations 0.2.102 → 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 (50) hide show
  1. package/package.json +4 -4
  2. package/src/__tests__/focus-standings.test.tsx +119 -0
  3. package/src/components/pages/PlanningPage.tsx +16 -4
  4. package/src/corpus/client.ts +5 -0
  5. package/src/corpus/entity-query.ts +67 -4
  6. package/src/corpus/index.ts +4 -2
  7. package/src/corpus/standings.ts +75 -0
  8. package/src/corpus/types.ts +6 -0
  9. package/src/native/__tests__/design-screens.test.tsx +97 -0
  10. package/src/native/__tests__/ux-polish.test.tsx +4 -2
  11. package/src/native/app/FoundryApp.tsx +2 -2
  12. package/src/native/app/__tests__/launch.test.ts +4 -1
  13. package/src/native/app/entity/EntityTab.tsx +13 -18
  14. package/src/native/app/icon.tsx +6 -1
  15. package/src/native/app/launch.ts +4 -0
  16. package/src/native/app/screens/RecordScreen.tsx +37 -30
  17. package/src/native/app/screens/SignInScreen.tsx +4 -3
  18. package/src/native/components/FoundryTabsShell.tsx +8 -5
  19. package/src/native/components/MoreTabList.tsx +20 -25
  20. package/src/native/components/NoteDetailScreen.tsx +49 -57
  21. package/src/native/components/NotesListScreen.tsx +13 -19
  22. package/src/native/components/__tests__/notes-screens.test.tsx +7 -7
  23. package/src/native/corpus/__tests__/counts.test.ts +82 -0
  24. package/src/native/corpus/__tests__/display.test.ts +37 -0
  25. package/src/native/corpus/api.ts +35 -2
  26. package/src/native/corpus/counts.ts +16 -0
  27. package/src/native/corpus/display.ts +62 -0
  28. package/src/native/corpus/fake-counts.ts +59 -0
  29. package/src/native/corpus/fake-tenant.ts +31 -3
  30. package/src/native/home/HomeScreen.tsx +15 -12
  31. package/src/native/home/__tests__/controller.test.ts +24 -11
  32. package/src/native/home/controller.ts +23 -17
  33. package/src/native/index.ts +3 -1
  34. package/src/native/screens/ask/AskScreen.tsx +20 -22
  35. package/src/native/screens/connect-claude/ConnectClaudeScreen.tsx +68 -61
  36. package/src/native/screens/connections/ConnectionsScreens.tsx +46 -42
  37. package/src/native/screens/library/LibraryDetailScreen.tsx +35 -49
  38. package/src/native/screens/library/LibraryListScreen.tsx +13 -21
  39. package/src/native/screens/planning/PlanningScreens.tsx +49 -26
  40. package/src/native/screens/planning/__tests__/controller.test.ts +17 -23
  41. package/src/native/screens/planning/controller.ts +18 -26
  42. package/src/native/tracker/TodoGlyph.tsx +11 -0
  43. package/src/native/tracker/TrackerDetailScreen.tsx +34 -39
  44. package/src/native/tracker/TrackerListScreen.tsx +28 -19
  45. package/src/native/tracker/__tests__/detail.test.ts +17 -0
  46. package/src/native/tracker/__tests__/format.test.ts +3 -3
  47. package/src/native/tracker/detail.ts +32 -19
  48. package/src/native/tracker/format.ts +8 -7
  49. package/src/native/voice/format.ts +0 -3
  50. package/src/native/screens/shared/PressableCard.tsx +0 -14
@@ -69,12 +69,13 @@ export function statusText(status: CommitmentStatus): string {
69
69
  return { open: 'Open', blocked: 'Blocked', done: 'Done', dropped: 'Dropped' }[status] ?? status;
70
70
  }
71
71
 
72
- /** One line under a to-do's title: due date, owner, project. */
73
- export function rowSubtitle(item: Commitment, projectTitle: string | undefined, now: number): string {
72
+ /** The facts under a to-do's title, apart: when it is due (and whether that has passed) and who / which project. */
73
+ export function rowParts(item: Commitment, projectTitle: string | undefined, now: number): { due: string | null; overdue: boolean; who: string } {
74
74
  const due = formatDue(item.dueAt, now);
75
- return [
76
- due ? `${isOverdueAt(item, now) ? 'Overdue · ' : 'Due '}${due}` : null,
77
- item.ownerName || null,
78
- projectTitle || null,
79
- ].filter(Boolean).join(' · ');
75
+ const overdue = isOverdueAt(item, now);
76
+ return {
77
+ due: due ? `${overdue ? 'Overdue · ' : 'Due '}${due}` : null,
78
+ overdue,
79
+ who: [item.ownerName || null, projectTitle || null].filter(Boolean).join(' · '),
80
+ };
80
81
  }
@@ -31,6 +31,3 @@ export function deleteNoteMessage(status: VoiceStatus): string {
31
31
  ? 'The recording, transcript and summary are removed for good. To-dos taken from this note stay in your to-do list, under their projects.'
32
32
  : 'The recording and this failed attempt are removed for good.';
33
33
  }
34
-
35
- export const statusVariant = (status: VoiceStatus) =>
36
- status === 'ready' ? 'success' : status === 'failed' ? 'destructive' : 'secondary';
@@ -1,14 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import { Pressable } from 'react-native';
3
- import { Card } from '@startsimpli/ui-native';
4
-
5
- /** A `Card` that can be tapped. (ui-native has no pressable card yet; this wraps its `Card`.) */
6
- export function PressableCard({ onPress, testID, children }: { onPress?: () => void; testID?: string; children: ReactNode }) {
7
- const body = <Card>{children}</Card>;
8
- if (!onPress) return <Pressable testID={testID} disabled>{body}</Pressable>;
9
- return (
10
- <Pressable testID={testID} accessibilityRole="button" onPress={onPress} style={({ pressed }) => ({ opacity: pressed ? 0.7 : 1 })}>
11
- {body}
12
- </Pressable>
13
- );
14
- }