@agimon-ai/po-native 0.0.1-alpha.10 → 0.0.1-alpha.12
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 +12 -12
- package/src/app/App.tsx +32 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-native",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.12",
|
|
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.
|
|
33
|
-
"@agimon-ai/po-expo-signing": "0.0.1-alpha.
|
|
34
|
-
"@agimon-ai/po-identity": "0.0.2-alpha.
|
|
35
|
-
"@agimon-ai/po-native-components": "0.0.0-alpha.
|
|
36
|
-
"@agimon-ai/po-native-dashboard": "0.0.0-alpha.
|
|
37
|
-
"@agimon-ai/po-template-advanced": "0.0.0-alpha.
|
|
38
|
-
"@agimon-ai/po-template-elegant": "0.0.0-alpha.
|
|
39
|
-
"@agimon-ai/po-voice": "0.0.0-alpha.
|
|
40
|
-
"@agimon-ai/po-web-components": "0.0.0-alpha.
|
|
41
|
-
"@agimon-ai/po-web-dashboard": "0.0.0-alpha.
|
|
42
|
-
"@agimon-ai/po-web-security": "0.0.0-alpha.
|
|
32
|
+
"@agimon-ai/po-core": "0.0.0-alpha.132",
|
|
33
|
+
"@agimon-ai/po-expo-signing": "0.0.1-alpha.12",
|
|
34
|
+
"@agimon-ai/po-identity": "0.0.2-alpha.79",
|
|
35
|
+
"@agimon-ai/po-native-components": "0.0.0-alpha.132",
|
|
36
|
+
"@agimon-ai/po-native-dashboard": "0.0.0-alpha.4",
|
|
37
|
+
"@agimon-ai/po-template-advanced": "0.0.0-alpha.132",
|
|
38
|
+
"@agimon-ai/po-template-elegant": "0.0.0-alpha.132",
|
|
39
|
+
"@agimon-ai/po-voice": "0.0.0-alpha.132",
|
|
40
|
+
"@agimon-ai/po-web-components": "0.0.0-alpha.132",
|
|
41
|
+
"@agimon-ai/po-web-dashboard": "0.0.0-alpha.132",
|
|
42
|
+
"@agimon-ai/po-web-security": "0.0.0-alpha.132",
|
|
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.0",
|
package/src/app/App.tsx
CHANGED
|
@@ -11,6 +11,7 @@ import type {
|
|
|
11
11
|
import {
|
|
12
12
|
ActivityIcon,
|
|
13
13
|
Button,
|
|
14
|
+
ComputerRow,
|
|
14
15
|
CountBadge,
|
|
15
16
|
ChevronRightIcon,
|
|
16
17
|
EmptyState,
|
|
@@ -644,6 +645,17 @@ function SessionRoute({
|
|
|
644
645
|
const busy = useActivityBusy(sessionId) > 0;
|
|
645
646
|
// Approvals and failed background work wait in Activity, so its button wears their count.
|
|
646
647
|
const waiting = useStore(sessionsStore, (state) => activityWaitingCount(state.byId[sessionId]?.summary));
|
|
648
|
+
// Other sessions waiting on the person, by the Home tab's reading, so the way back wears their count.
|
|
649
|
+
const elsewhere = useStore(
|
|
650
|
+
sessionsStore,
|
|
651
|
+
(state) =>
|
|
652
|
+
Object.entries(state.byId).filter(
|
|
653
|
+
([id, item]) =>
|
|
654
|
+
id !== sessionId &&
|
|
655
|
+
!item.summary.dormant &&
|
|
656
|
+
(item.summary.awaitingInput || (item.summary.pendingApprovalCount ?? 0) > 0),
|
|
657
|
+
).length,
|
|
658
|
+
);
|
|
647
659
|
// Only this session's entry: another session's summary push must not re-render the open conversation.
|
|
648
660
|
const entry = useRailEntry(sessionId);
|
|
649
661
|
const card = useMemo(() => (entry === undefined ? undefined : railSessionStatus(entry, Date.now())), [entry]);
|
|
@@ -979,9 +991,21 @@ function SessionRoute({
|
|
|
979
991
|
...sessionOptions,
|
|
980
992
|
// A round chevron like the Activity button opposite; the stock back button spelled out the "Tabs" route.
|
|
981
993
|
headerLeft: () => (
|
|
982
|
-
<Button
|
|
983
|
-
|
|
984
|
-
|
|
994
|
+
<Button
|
|
995
|
+
variant="ghost"
|
|
996
|
+
size="icon"
|
|
997
|
+
accessibilityLabel={
|
|
998
|
+
elsewhere > 0
|
|
999
|
+
? `Back, ${String(elsewhere)} other ${elsewhere === 1 ? 'session' : 'sessions'} waiting for you`
|
|
1000
|
+
: 'Back'
|
|
1001
|
+
}
|
|
1002
|
+
onPress={() => navigation.goBack()}
|
|
1003
|
+
>
|
|
1004
|
+
<View>
|
|
1005
|
+
<View style={styles.backChevron}>
|
|
1006
|
+
<ChevronRightIcon color="hi" />
|
|
1007
|
+
</View>
|
|
1008
|
+
<CountBadge count={elsewhere} style={styles.activityBadge} />
|
|
985
1009
|
</View>
|
|
986
1010
|
</Button>
|
|
987
1011
|
),
|
|
@@ -1937,22 +1961,19 @@ function SessionsRoute({
|
|
|
1937
1961
|
<Sheet open={choosingGeneralHost} onOpenChange={setChoosingGeneralHost}>
|
|
1938
1962
|
<SheetContent>
|
|
1939
1963
|
<SheetHeader>
|
|
1940
|
-
<SheetTitle>
|
|
1964
|
+
<SheetTitle>Start a session on</SheetTitle>
|
|
1941
1965
|
</SheetHeader>
|
|
1942
1966
|
<SheetBody>
|
|
1943
1967
|
{hostStates.map(({ host, status }) => (
|
|
1944
|
-
<
|
|
1968
|
+
<ComputerRow
|
|
1945
1969
|
key={host.id}
|
|
1946
|
-
|
|
1947
|
-
|
|
1970
|
+
name={host.displayName ?? new URL(host.origin).hostname}
|
|
1971
|
+
status={status}
|
|
1948
1972
|
onPress={() => {
|
|
1949
1973
|
setChoosingGeneralHost(false);
|
|
1950
1974
|
setNewSession({ hostId: host.id });
|
|
1951
1975
|
}}
|
|
1952
|
-
|
|
1953
|
-
{host.displayName ?? new URL(host.origin).hostname}
|
|
1954
|
-
{status === 'connected' ? '' : ' · Unavailable'}
|
|
1955
|
-
</Button>
|
|
1976
|
+
/>
|
|
1956
1977
|
))}
|
|
1957
1978
|
</SheetBody>
|
|
1958
1979
|
</SheetContent>
|