@agimon-ai/po-native 0.0.1-alpha.47 → 0.0.1-alpha.49

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.
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-native",
3
- "version": "0.0.1-alpha.47",
3
+ "version": "0.0.1-alpha.49",
4
4
  "description": "Po for iOS and Android",
5
5
  "homepage": "https://agimon.ai",
6
6
  "bugs": {
@@ -29,17 +29,17 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@agimon-ai/po-core": "0.0.0-alpha.167",
33
- "@agimon-ai/po-expo-signing": "0.0.1-alpha.47",
34
- "@agimon-ai/po-identity": "0.0.2-alpha.114",
35
- "@agimon-ai/po-native-components": "0.0.0-alpha.167",
36
- "@agimon-ai/po-native-dashboard": "0.0.0-alpha.39",
37
- "@agimon-ai/po-template-advanced": "0.0.0-alpha.167",
38
- "@agimon-ai/po-template-elegant": "0.0.0-alpha.167",
39
- "@agimon-ai/po-voice": "0.0.0-alpha.167",
40
- "@agimon-ai/po-web-components": "0.0.0-alpha.167",
41
- "@agimon-ai/po-web-dashboard": "0.0.0-alpha.167",
42
- "@agimon-ai/po-web-security": "0.0.0-alpha.167",
32
+ "@agimon-ai/po-core": "0.0.0-alpha.169",
33
+ "@agimon-ai/po-expo-signing": "0.0.1-alpha.49",
34
+ "@agimon-ai/po-identity": "0.0.2-alpha.116",
35
+ "@agimon-ai/po-native-components": "0.0.0-alpha.169",
36
+ "@agimon-ai/po-native-dashboard": "0.0.0-alpha.41",
37
+ "@agimon-ai/po-template-advanced": "0.0.0-alpha.169",
38
+ "@agimon-ai/po-template-elegant": "0.0.0-alpha.169",
39
+ "@agimon-ai/po-voice": "0.0.0-alpha.169",
40
+ "@agimon-ai/po-web-components": "0.0.0-alpha.169",
41
+ "@agimon-ai/po-web-dashboard": "0.0.0-alpha.169",
42
+ "@agimon-ai/po-web-security": "0.0.0-alpha.169",
43
43
  "@better-auth/expo": "1.7.12",
44
44
  "@config-plugins/react-native-webrtc": "15.0.2",
45
45
  "@earendil-works/chord": "1.5.1",
@@ -1,8 +1,9 @@
1
- import { Button, fontOf, Panel } from '@agimon-ai/po-native-components';
2
- import { Text } from 'react-native';
3
- import { StyleSheet } from 'react-native-unistyles';
1
+ import { CtaCard } from '@agimon-ai/po-native-components';
4
2
 
5
- /** Gentle account ask, not a failure alarm. Mockup fidelity awaits human approval. */
3
+ import renewArtwork from '../../assets/cta-renew.png';
4
+ import signInArtwork from '../../assets/cta-sign-in.png';
5
+
6
+ /** Gentle account ask, not a failure alarm. */
6
7
  export function GrantNotice({
7
8
  busy = false,
8
9
  notice,
@@ -13,57 +14,27 @@ export function GrantNotice({
13
14
  onRenew: () => void;
14
15
  }) {
15
16
  return (
16
- <Panel style={styles.panel}>
17
- <Text accessibilityRole="header" style={styles.title}>
18
- Shared work is waiting
19
- </Text>
20
- <Text style={styles.body}>
21
- The part on another host is paused. Work here can continue. Renew its permission whenever you are ready.
22
- </Text>
23
- {notice ? (
24
- <Text accessibilityLiveRegion="polite" style={styles.body}>
25
- {notice}
26
- </Text>
27
- ) : null}
28
- <Button variant="secondary" size="lg" disabled={busy} onPress={onRenew}>
29
- {busy ? 'Renewing permission' : 'Renew permission'}
30
- </Button>
31
- </Panel>
17
+ <CtaCard
18
+ artwork={renewArtwork}
19
+ title="Shared work is paused"
20
+ description="The part on another host needs its permission renewed. Work here carries on."
21
+ action="Renew permission"
22
+ loading={busy}
23
+ notice={notice}
24
+ onAction={onRenew}
25
+ />
32
26
  );
33
27
  }
34
28
 
35
- /** Storyboard v4's Home ask while this phone has paired computers but no account. Never a failure. */
29
+ /** Home ask while this phone has paired computers but no account. Never a failure. */
36
30
  export function SignInAsk({ onSignIn }: { onSignIn: () => void }) {
37
31
  return (
38
- <Panel style={styles.panel}>
39
- <Text accessibilityRole="header" style={styles.title}>
40
- Your Po Cloud sessions can live here too
41
- </Text>
42
- <Text style={styles.body}>Sign in whenever you are ready. Paired computers keep working.</Text>
43
- <Button variant="secondary" size="lg" onPress={onSignIn}>
44
- Sign in with Po
45
- </Button>
46
- </Panel>
32
+ <CtaCard
33
+ artwork={signInArtwork}
34
+ title="Your cloud sessions, here too"
35
+ description="Sign in to Po Cloud. Paired computers stay as they are."
36
+ action="Sign in with Po"
37
+ onAction={onSignIn}
38
+ />
47
39
  );
48
40
  }
49
- const styles = StyleSheet.create((theme) => ({
50
- panel: {
51
- padding: theme.spacing(4),
52
- gap: theme.spacing(3),
53
- borderColor: theme.colors['edge-magenta'],
54
- backgroundColor: theme.colors['tint-magenta'],
55
- },
56
- title: {
57
- fontFamily: fontOf(theme.fontFamily.sans),
58
- fontSize: theme.fontSize.lg,
59
- lineHeight: theme.lineHeight.lg,
60
- fontWeight: theme.fontWeight.semibold,
61
- color: theme.colors.magenta,
62
- },
63
- body: {
64
- fontFamily: fontOf(theme.fontFamily.sans),
65
- fontSize: theme.fontSize.base,
66
- lineHeight: theme.lineHeight.base,
67
- color: theme.colors.text,
68
- },
69
- }));
@@ -19,7 +19,7 @@ const ASK = {
19
19
  ],
20
20
  };
21
21
 
22
- const meta = {
22
+ export const meta = {
23
23
  title: 'Native/Screens/Session',
24
24
  component: SessionScreen,
25
25
  tags: ['style-system', 'mockup', 'native'],
@@ -227,3 +227,29 @@ export const WorkflowParent = { render: () => <WorkflowFocusTarget state="parent
227
227
  export const WorkflowStep = { render: () => <WorkflowFocusTarget state="step" /> };
228
228
  export const WorkflowApproval = { render: () => <WorkflowFocusTarget state="approval" /> };
229
229
  export const WorkflowHistory = { render: () => <WorkflowFocusTarget state="history" /> };
230
+
231
+ // Embedded PNG, no host or network access. Existing conversation fixtures stay unchanged.
232
+ const AVATAR =
233
+ 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAABaCAIAAACwpMoFAAAAvklEQVR42u3RMRGAMBBFwaijpkZE6qsRETmRgQ4qanT8m515Ct6Ob5caNywALMACLMACLMACDFiABViABViABRiwACsQ+F1TjQMMWIAFWIAFWIAFGLAAC7AAC7AACzBgAVYi8DNLjQMMWIAFWIAFWIAFGLAAC7AAC7AACzBgAVYi8LpuNQ4wYAEWYAEWYAEWYMACLMACLMACLMCABViJwMdZahxgwAIswAIswAIswIAFWIAFWIAFWIABC7AC+wHcDRCDtrTwhwAAAABJRU5ErkJggg==';
234
+ const AVATAR_ENTRIES: TimelineEntry[] = [
235
+ {
236
+ id: 'avatar',
237
+ role: 'assistant',
238
+ text: 'The recorded profile image.',
239
+ author: { name: 'Bea', initials: 'BE', icon: AVATAR },
240
+ },
241
+ {
242
+ id: 'missing-avatar',
243
+ role: 'assistant',
244
+ text: 'A profile without an image keeps its initials.',
245
+ author: { name: 'Reviewer', initials: 'RE' },
246
+ },
247
+ {
248
+ id: 'failed-avatar',
249
+ role: 'assistant',
250
+ text: 'An unreadable image falls back to initials.',
251
+ author: { name: 'Ponytail', initials: 'PO', icon: 'data:image/png;base64,invalid' },
252
+ },
253
+ ];
254
+ export const AvatarsDark = { render: () => <Full scheme="dark" entries={AVATAR_ENTRIES} /> };
255
+ export const AvatarsLight = { render: () => <Full scheme="light" entries={AVATAR_ENTRIES} /> };