@oxy.so/services 14.21.0 → 14.23.0
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/lib/commonjs/ui/components/OxyConsentScreen.js +3 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/components/PeableButton.js +7 -1
- package/lib/commonjs/ui/components/PeableButton.js.map +1 -1
- package/lib/commonjs/ui/components/accountSettings/AccountCategoriesSection.js +5 -1
- package/lib/commonjs/ui/components/accountSettings/AccountCategoriesSection.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +4 -2
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/primitives.js +3 -2
- package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js +3 -3
- package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js +4 -4
- package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationClaims.js +3 -3
- package/lib/commonjs/ui/components/organizations/OrganizationClaims.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js +4 -4
- package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationSettings.js +3 -3
- package/lib/commonjs/ui/components/organizations/OrganizationSettings.js.map +1 -1
- package/lib/commonjs/ui/components/organizations/OrganizationTypePicker.js +3 -3
- package/lib/commonjs/ui/components/organizations/OrganizationTypePicker.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +20 -12
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +9 -9
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +11 -34
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/utils/persistedDataVersion.js +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js +4 -2
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/module/ui/components/PeableButton.js +8 -2
- package/lib/module/ui/components/PeableButton.js.map +1 -1
- package/lib/module/ui/components/accountSettings/AccountCategoriesSection.js +6 -2
- package/lib/module/ui/components/accountSettings/AccountCategoriesSection.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js +5 -3
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/primitives.js +4 -3
- package/lib/module/ui/components/authChooser/primitives.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileAppAccessSection.js +3 -3
- package/lib/module/ui/components/fileManagement/FileAppAccessSection.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaimReview.js +4 -4
- package/lib/module/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationClaims.js +3 -3
- package/lib/module/ui/components/organizations/OrganizationClaims.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js +4 -4
- package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationSettings.js +3 -3
- package/lib/module/ui/components/organizations/OrganizationSettings.js.map +1 -1
- package/lib/module/ui/components/organizations/OrganizationTypePicker.js +3 -3
- package/lib/module/ui/components/organizations/OrganizationTypePicker.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +21 -13
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +10 -10
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +11 -34
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/utils/persistedDataVersion.js +1 -1
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/PeableButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/accountSettings/AccountCategoriesSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/persistedDataVersion.d.ts +1 -1
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/PeableButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/accountSettings/AccountCategoriesSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +1 -1
- package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/persistedDataVersion.d.ts +1 -1
- package/package.json +7 -7
- package/src/ui/components/OxyConsentScreen.tsx +10 -3
- package/src/ui/components/PeableButton.tsx +6 -3
- package/src/ui/components/accountSettings/AccountCategoriesSection.tsx +6 -2
- package/src/ui/components/authChooser/AccountsMenuView.tsx +5 -5
- package/src/ui/components/authChooser/primitives.tsx +5 -4
- package/src/ui/components/fileManagement/FileAppAccessSection.tsx +4 -4
- package/src/ui/components/organizations/OrganizationClaimReview.tsx +5 -5
- package/src/ui/components/organizations/OrganizationClaims.tsx +4 -4
- package/src/ui/components/organizations/OrganizationDirectorySearch.tsx +6 -6
- package/src/ui/components/organizations/OrganizationSettings.tsx +5 -5
- package/src/ui/components/organizations/OrganizationTypePicker.tsx +4 -4
- package/src/ui/screens/AvatarCropScreen.tsx +31 -20
- package/src/ui/screens/ProfileScreen.tsx +13 -12
- package/src/ui/screens/UserListScreen.tsx +12 -33
- package/src/ui/utils/persistedDataVersion.ts +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { RiCloseLine } from '@oxy.so/bloom/icons/RiCloseLine';
|
|
1
2
|
import type React from 'react';
|
|
2
3
|
import { useCallback, useState } from 'react';
|
|
3
4
|
import { View } from 'react-native';
|
|
4
|
-
import { Button
|
|
5
|
+
import { Button } from '@oxy.so/bloom/button';
|
|
5
6
|
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
6
7
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
7
8
|
import {
|
|
@@ -120,7 +121,10 @@ export const AccountCategoriesSection: React.FC<AccountCategoriesSectionProps> =
|
|
|
120
121
|
{t('accounts.settings.categories.makePrimary')}
|
|
121
122
|
</Button>
|
|
122
123
|
) : null}
|
|
123
|
-
<
|
|
124
|
+
<Button
|
|
125
|
+
appearance="plain"
|
|
126
|
+
tone="neutral"
|
|
127
|
+
icon={RiCloseLine}
|
|
124
128
|
size="xs"
|
|
125
129
|
disabled={disabled}
|
|
126
130
|
onPress={() => toggle(id)}
|
|
@@ -5,7 +5,7 @@ import { View } from 'react-native-css/components';
|
|
|
5
5
|
import Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';
|
|
6
6
|
import MaterialCommunityIcons from '../../icons/MaterialCommunityIcons';
|
|
7
7
|
import { Avatar } from '@oxy.so/bloom/avatar';
|
|
8
|
-
import { Button
|
|
8
|
+
import { Button } from '@oxy.so/bloom/button';
|
|
9
9
|
import { RiSparklingFill } from '@oxy.so/bloom/icons/RiSparklingFill';
|
|
10
10
|
import { PressableScale } from '@oxy.so/bloom/pressable-scale';
|
|
11
11
|
import { UsageCard } from '@oxy.so/bloom/usage-card';
|
|
@@ -327,13 +327,13 @@ const AccountsMenuView: React.FC<AccountsMenuViewProps> = ({
|
|
|
327
327
|
|
|
328
328
|
{/* FOOTER. */}
|
|
329
329
|
<View className="flex-row items-center justify-center gap-space-12 px-space-12 pt-space-12 pb-space-8">
|
|
330
|
-
<
|
|
330
|
+
<Button appearance="plain" size="sm" linkTone="secondary" onPress={menu.onPrivacy}>
|
|
331
331
|
{t('accountMenu.privacy')}
|
|
332
|
-
</
|
|
332
|
+
</Button>
|
|
333
333
|
<Text className="text-bodySmall text-text-tertiary">·</Text>
|
|
334
|
-
<
|
|
334
|
+
<Button appearance="plain" size="sm" linkTone="secondary" onPress={menu.onTerms}>
|
|
335
335
|
{t('accountMenu.terms')}
|
|
336
|
-
</
|
|
336
|
+
</Button>
|
|
337
337
|
</View>
|
|
338
338
|
</View>
|
|
339
339
|
);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import type React from 'react';
|
|
8
|
-
import {
|
|
8
|
+
import { Button } from '@oxy.so/bloom/button';
|
|
9
9
|
import { authChooserStyles as styles } from './styles';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -16,7 +16,7 @@ import { authChooserStyles as styles } from './styles';
|
|
|
16
16
|
* behind "Having trouble?". Keeping them all on one component is what stops an
|
|
17
17
|
* alternative from quietly growing into a co-equal button again.
|
|
18
18
|
*
|
|
19
|
-
* Bloom's `
|
|
19
|
+
* Bloom's plain `Button` in the secondary link tone at `sm`: no fill or border, the
|
|
20
20
|
* secondary text colour, underlined under a pointer, and Bloom's link hit slop
|
|
21
21
|
* for the touch target. The vertical padding keeps the stack's old rhythm.
|
|
22
22
|
*/
|
|
@@ -26,7 +26,8 @@ export const SubtleLink: React.FC<{
|
|
|
26
26
|
disabled?: boolean;
|
|
27
27
|
testID?: string;
|
|
28
28
|
}> = ({ label, onPress, disabled, testID }) => (
|
|
29
|
-
<
|
|
29
|
+
<Button
|
|
30
|
+
appearance="plain"
|
|
30
31
|
linkTone="secondary"
|
|
31
32
|
size="sm"
|
|
32
33
|
onPress={onPress}
|
|
@@ -36,5 +37,5 @@ export const SubtleLink: React.FC<{
|
|
|
36
37
|
testID={testID}
|
|
37
38
|
>
|
|
38
39
|
{label}
|
|
39
|
-
</
|
|
40
|
+
</Button>
|
|
40
41
|
);
|
|
@@ -3,7 +3,7 @@ import { useCallback, useState } from 'react';
|
|
|
3
3
|
import { ActivityIndicator, View } from 'react-native';
|
|
4
4
|
import { Avatar } from '@oxy.so/bloom/avatar';
|
|
5
5
|
import { Button } from '@oxy.so/bloom/button';
|
|
6
|
-
import {
|
|
6
|
+
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
7
7
|
import { surfaces } from '@oxy.so/bloom/surfaces';
|
|
8
8
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
9
9
|
import { toast } from '@oxy.so/bloom/toast';
|
|
@@ -79,9 +79,9 @@ export const FileAppAccessSection: React.FC<FileAppAccessSectionProps> = ({ file
|
|
|
79
79
|
{t('fileManagement.appAccess.empty')}
|
|
80
80
|
</Text>
|
|
81
81
|
) : (
|
|
82
|
-
<
|
|
82
|
+
<GroupedSection>
|
|
83
83
|
{apps.map((app) => (
|
|
84
|
-
<
|
|
84
|
+
<GroupedSectionItem
|
|
85
85
|
key={app.applicationId}
|
|
86
86
|
icon={<Avatar source={app.icon} name={app.name} size={APP_ICON_SIZE} />}
|
|
87
87
|
title={app.name}
|
|
@@ -104,7 +104,7 @@ export const FileAppAccessSection: React.FC<FileAppAccessSectionProps> = ({ file
|
|
|
104
104
|
}
|
|
105
105
|
/>
|
|
106
106
|
))}
|
|
107
|
-
</
|
|
107
|
+
</GroupedSection>
|
|
108
108
|
)}
|
|
109
109
|
</View>
|
|
110
110
|
);
|
|
@@ -5,7 +5,7 @@ import { isHttpRequestError } from '@oxy.so/core';
|
|
|
5
5
|
import type { OrganizationClaimReview as OrganizationClaimReviewInput } from '@oxy.so/contracts';
|
|
6
6
|
import { organizationClaimReviewCheck, parseContract } from '@oxy.so/contracts/client';
|
|
7
7
|
import { Button } from '@oxy.so/bloom/button';
|
|
8
|
-
import {
|
|
8
|
+
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
9
9
|
import { TextField, TextFieldInput } from '@oxy.so/bloom/text-field';
|
|
10
10
|
import { Text } from '@oxy.so/bloom/typography';
|
|
11
11
|
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
@@ -17,14 +17,14 @@ export function OrganizationClaimReview() {
|
|
|
17
17
|
const { user, canUsePrivateApi } = useOxy();
|
|
18
18
|
const [open, setOpen] = useState(false);
|
|
19
19
|
return (
|
|
20
|
-
<
|
|
21
|
-
<
|
|
20
|
+
<GroupedSection>
|
|
21
|
+
<GroupedSectionItem
|
|
22
22
|
title={t('organizationDirectory.review.title')}
|
|
23
23
|
disabled={!canUsePrivateApi}
|
|
24
24
|
onPress={() => setOpen((value) => !value)}
|
|
25
25
|
/>
|
|
26
26
|
{open && user?.kind === 'personal' && canUsePrivateApi ? <ReviewQueue key={user.id} /> : null}
|
|
27
|
-
</
|
|
27
|
+
</GroupedSection>
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
function ReviewQueue() {
|
|
@@ -78,7 +78,7 @@ function ReviewQueue() {
|
|
|
78
78
|
<View className="gap-space-16 p-space-16">
|
|
79
79
|
{claims.length === 0 ? <Text>{t('organizationDirectory.review.empty')}</Text> : null}
|
|
80
80
|
{claims.map((claim) => (
|
|
81
|
-
<
|
|
81
|
+
<GroupedSectionItem
|
|
82
82
|
key={claim.id}
|
|
83
83
|
title={
|
|
84
84
|
organizations.data?.find((item) => item.requestedAccountId === claim.accountId)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import { useInfiniteQuery, useQuery } from '@tanstack/react-query';
|
|
3
3
|
import { Button } from '@oxy.so/bloom/button';
|
|
4
|
-
import {
|
|
4
|
+
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
5
5
|
import { Text } from '@oxy.so/bloom/typography';
|
|
6
6
|
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
7
7
|
import { useI18n } from '../../hooks/useI18n';
|
|
@@ -38,7 +38,7 @@ export function OrganizationClaims() {
|
|
|
38
38
|
});
|
|
39
39
|
if (!enabled || (!requests.isError && claims.length === 0)) return null;
|
|
40
40
|
return (
|
|
41
|
-
<
|
|
41
|
+
<GroupedSection title={t('organizationDirectory.requests')}>
|
|
42
42
|
{requests.isError ? (
|
|
43
43
|
<View>
|
|
44
44
|
<Text accessibilityRole="alert">{t('organizationDirectory.requestError')}</Text>
|
|
@@ -47,7 +47,7 @@ export function OrganizationClaims() {
|
|
|
47
47
|
) : null}
|
|
48
48
|
{!requests.isError &&
|
|
49
49
|
claims.map((claim) => (
|
|
50
|
-
<
|
|
50
|
+
<GroupedSectionItem
|
|
51
51
|
key={claim.id}
|
|
52
52
|
title={
|
|
53
53
|
organizations.data?.find((item) => item.requestedAccountId === claim.accountId)
|
|
@@ -62,6 +62,6 @@ export function OrganizationClaims() {
|
|
|
62
62
|
{t('organizationDirectory.loadMore')}
|
|
63
63
|
</Button>
|
|
64
64
|
) : null}
|
|
65
|
-
</
|
|
65
|
+
</GroupedSection>
|
|
66
66
|
);
|
|
67
67
|
}
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from '@oxy.so/contracts/client';
|
|
18
18
|
import { Avatar } from '@oxy.so/bloom/avatar';
|
|
19
19
|
import { Button } from '@oxy.so/bloom/button';
|
|
20
|
-
import {
|
|
20
|
+
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
21
21
|
import { TextField, TextFieldInput } from '@oxy.so/bloom/text-field';
|
|
22
22
|
import { Text } from '@oxy.so/bloom/typography';
|
|
23
23
|
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
@@ -225,7 +225,7 @@ function OrganizationDirectorySearchContent({
|
|
|
225
225
|
};
|
|
226
226
|
if (selected)
|
|
227
227
|
return (
|
|
228
|
-
<
|
|
228
|
+
<GroupedSection title={selected.name}>
|
|
229
229
|
<View className="gap-space-16 p-space-16">
|
|
230
230
|
<Text>{t(`organizationDirectory.${selected.claimStatus}`)}</Text>
|
|
231
231
|
{selected.status === 'inactive' ? (
|
|
@@ -284,7 +284,7 @@ function OrganizationDirectorySearchContent({
|
|
|
284
284
|
{t('organizationDirectory.back')}
|
|
285
285
|
</Button>
|
|
286
286
|
</View>
|
|
287
|
-
</
|
|
287
|
+
</GroupedSection>
|
|
288
288
|
);
|
|
289
289
|
return (
|
|
290
290
|
<View className="gap-space-16">
|
|
@@ -307,11 +307,11 @@ function OrganizationDirectorySearchContent({
|
|
|
307
307
|
</View>
|
|
308
308
|
) : null}
|
|
309
309
|
{results.data ? (
|
|
310
|
-
<
|
|
310
|
+
<GroupedSection title={t('organizationDirectory.title')}>
|
|
311
311
|
{results.data.pages
|
|
312
312
|
.flatMap((page) => page.items)
|
|
313
313
|
.map((organization) => (
|
|
314
|
-
<
|
|
314
|
+
<GroupedSectionItem
|
|
315
315
|
key={organization.accountId}
|
|
316
316
|
title={organization.name}
|
|
317
317
|
description={[
|
|
@@ -333,7 +333,7 @@ function OrganizationDirectorySearchContent({
|
|
|
333
333
|
{t('organizationDirectory.loadMore')}
|
|
334
334
|
</Button>
|
|
335
335
|
) : null}
|
|
336
|
-
</
|
|
336
|
+
</GroupedSection>
|
|
337
337
|
) : null}
|
|
338
338
|
{results.isSuccess && query === search.trim() ? (
|
|
339
339
|
<>
|
|
@@ -5,7 +5,7 @@ import type { Organization, OrganizationType, UpdateOrganization } from '@oxy.so
|
|
|
5
5
|
import { updateOrganizationCheck, checkContract } from '@oxy.so/contracts/client';
|
|
6
6
|
import { Button } from '@oxy.so/bloom/button';
|
|
7
7
|
import { toast } from '@oxy.so/bloom/toast';
|
|
8
|
-
import {
|
|
8
|
+
import { GroupedSection } from '@oxy.so/bloom/grouped-section';
|
|
9
9
|
import { TextField, TextFieldInput } from '@oxy.so/bloom/text-field';
|
|
10
10
|
import { Text } from '@oxy.so/bloom/typography';
|
|
11
11
|
import { useOxy } from '../../context/oxyRuntimeContext';
|
|
@@ -36,10 +36,10 @@ export function OrganizationSettings({
|
|
|
36
36
|
);
|
|
37
37
|
if (!canUpdate || !canUsePrivateApi)
|
|
38
38
|
return (
|
|
39
|
-
<
|
|
39
|
+
<GroupedSection title={t('organizationDirectory.title')}>
|
|
40
40
|
<Text>{t(`organizationDirectory.types.${organization.data.organizationType}`)}</Text>
|
|
41
41
|
<Text>{t('organizationDirectory.readonly')}</Text>
|
|
42
|
-
</
|
|
42
|
+
</GroupedSection>
|
|
43
43
|
);
|
|
44
44
|
return (
|
|
45
45
|
<OrganizationForm
|
|
@@ -71,7 +71,7 @@ function OrganizationForm({ organization }: { organization: Organization }) {
|
|
|
71
71
|
},
|
|
72
72
|
});
|
|
73
73
|
return (
|
|
74
|
-
<
|
|
74
|
+
<GroupedSection title={t('organizationDirectory.title')}>
|
|
75
75
|
<View className="gap-space-16 p-space-16">
|
|
76
76
|
<TextField>
|
|
77
77
|
<TextFieldInput
|
|
@@ -123,6 +123,6 @@ function OrganizationForm({ organization }: { organization: Organization }) {
|
|
|
123
123
|
{t('organizationDirectory.save')}
|
|
124
124
|
</Button>
|
|
125
125
|
</View>
|
|
126
|
-
</
|
|
126
|
+
</GroupedSection>
|
|
127
127
|
);
|
|
128
128
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OrganizationType } from '@oxy.so/contracts';
|
|
2
2
|
import { ORGANIZATION_TYPES } from '@oxy.so/contracts/client';
|
|
3
|
-
import {
|
|
3
|
+
import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
|
|
4
4
|
import { Text } from '@oxy.so/bloom/typography';
|
|
5
5
|
import { useI18n } from '../../hooks/useI18n';
|
|
6
6
|
|
|
@@ -15,9 +15,9 @@ export function OrganizationTypePicker({
|
|
|
15
15
|
}) {
|
|
16
16
|
const { t } = useI18n();
|
|
17
17
|
return (
|
|
18
|
-
<
|
|
18
|
+
<GroupedSection title={t('organizationDirectory.type')}>
|
|
19
19
|
{ORGANIZATION_TYPES.map((type) => (
|
|
20
|
-
<
|
|
20
|
+
<GroupedSectionItem
|
|
21
21
|
key={type}
|
|
22
22
|
title={t(`organizationDirectory.types.${type}`)}
|
|
23
23
|
accessibilityLabel={t(`organizationDirectory.types.${type}`)}
|
|
@@ -27,6 +27,6 @@ export function OrganizationTypePicker({
|
|
|
27
27
|
rightElement={value === type ? <Text>✓</Text> : undefined}
|
|
28
28
|
/>
|
|
29
29
|
))}
|
|
30
|
-
</
|
|
30
|
+
</GroupedSection>
|
|
31
31
|
);
|
|
32
32
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SpinnerIcon } from '@oxy.so/bloom/loading';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Button } from '@oxy.so/bloom/button';
|
|
3
|
+
import { HeaderActions } from '@oxy.so/bloom/page-header';
|
|
4
|
+
|
|
4
5
|
import { RiAddLine } from '@oxy.so/bloom/icons/RiAddLine';
|
|
5
6
|
import { RiSubtractLine } from '@oxy.so/bloom/icons/RiSubtractLine';
|
|
6
7
|
/**
|
|
@@ -1093,36 +1094,46 @@ const AvatarCropScreen: React.FC<AvatarCropScreenProps> = ({
|
|
|
1093
1094
|
className="absolute bottom-4 left-0 right-0 items-center"
|
|
1094
1095
|
style={styles.footerPointerEvents}
|
|
1095
1096
|
>
|
|
1096
|
-
<
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1097
|
+
<HeaderActions
|
|
1098
|
+
actions={[
|
|
1099
|
+
{
|
|
1100
|
+
id: 'zoom-out',
|
|
1101
|
+
group: 'zoom',
|
|
1102
|
+
label: t('editProfile.crop.zoomOut'),
|
|
1103
|
+
icon: RiSubtractLine,
|
|
1104
|
+
labelVisibility: 'hidden',
|
|
1105
|
+
overflow: 'never',
|
|
1106
|
+
disabled: zoomOutDisabled,
|
|
1107
|
+
onPress: () => applyZoom(-1),
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
id: 'zoom-in',
|
|
1111
|
+
group: 'zoom',
|
|
1112
|
+
label: t('editProfile.crop.zoomIn'),
|
|
1113
|
+
icon: RiAddLine,
|
|
1114
|
+
labelVisibility: 'hidden',
|
|
1115
|
+
overflow: 'never',
|
|
1116
|
+
disabled: zoomInDisabled,
|
|
1117
|
+
onPress: () => applyZoom(1),
|
|
1118
|
+
},
|
|
1119
|
+
]}
|
|
1120
|
+
/>
|
|
1112
1121
|
</View>
|
|
1113
1122
|
) : null}
|
|
1114
1123
|
</View>
|
|
1115
1124
|
|
|
1116
1125
|
<View style={styles.helperBlock}>
|
|
1117
1126
|
<Text style={styles.helper}>{t('editProfile.crop.helper')}</Text>
|
|
1118
|
-
<
|
|
1127
|
+
<Button
|
|
1128
|
+
appearance="plain"
|
|
1129
|
+
linkTone="primary"
|
|
1119
1130
|
accessibilityLabel={t('editProfile.crop.a11yReset')}
|
|
1120
1131
|
onPress={resetTransform}
|
|
1121
1132
|
disabled={!isModified || isProcessing}
|
|
1122
1133
|
size="sm"
|
|
1123
1134
|
>
|
|
1124
1135
|
{t('editProfile.crop.resetToCenter')}
|
|
1125
|
-
</
|
|
1136
|
+
</Button>
|
|
1126
1137
|
</View>
|
|
1127
1138
|
</View>
|
|
1128
1139
|
);
|
|
@@ -4,8 +4,8 @@ import { View, StyleSheet } from 'react-native';
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import type { BaseScreenProps } from '../types/navigation';
|
|
6
6
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
7
|
-
import { Button
|
|
8
|
-
|
|
7
|
+
import { Button } from '@oxy.so/bloom/button';
|
|
8
|
+
|
|
9
9
|
import { RiSettings3Line } from '@oxy.so/bloom/icons/RiSettings3Line';
|
|
10
10
|
import { PressableScale } from '@oxy.so/bloom/pressable-scale';
|
|
11
11
|
import { useSurfaceFill } from '@oxy.so/bloom/styles';
|
|
@@ -277,14 +277,13 @@ const ProfileScreen: React.FC<ProfileScreenProps> = ({ userId, username, navigat
|
|
|
277
277
|
>
|
|
278
278
|
{t('editProfile.title') || 'Edit Profile'}
|
|
279
279
|
</Button>
|
|
280
|
-
<
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
</ButtonGroup>
|
|
280
|
+
<Button
|
|
281
|
+
appearance="outline"
|
|
282
|
+
tone="neutral"
|
|
283
|
+
icon={RiSettings3Line}
|
|
284
|
+
accessibilityLabel={t('accountMenu.settings') || 'Settings'}
|
|
285
|
+
onPress={() => navigate?.('Preferences')}
|
|
286
|
+
/>
|
|
288
287
|
</View>
|
|
289
288
|
) : (
|
|
290
289
|
<FollowButton
|
|
@@ -332,7 +331,9 @@ const ProfileScreen: React.FC<ProfileScreenProps> = ({ userId, username, navigat
|
|
|
332
331
|
))}
|
|
333
332
|
</View>
|
|
334
333
|
{websiteUrl ? (
|
|
335
|
-
<
|
|
334
|
+
<Button
|
|
335
|
+
appearance="plain"
|
|
336
|
+
linkTone="primary"
|
|
336
337
|
size="sm"
|
|
337
338
|
href={websiteUrl}
|
|
338
339
|
style={{ alignSelf: 'flex-start', paddingLeft: 0, paddingRight: 0 }}
|
|
@@ -341,7 +342,7 @@ const ProfileScreen: React.FC<ProfileScreenProps> = ({ userId, username, navigat
|
|
|
341
342
|
icon={<Ionicons name="link-outline" size={INFO_ICON_SIZE} />}
|
|
342
343
|
>
|
|
343
344
|
{profile?.website}
|
|
344
|
-
</
|
|
345
|
+
</Button>
|
|
345
346
|
) : null}
|
|
346
347
|
<View style={styles.statsRow}>
|
|
347
348
|
{!isLoadingCounts && followingCount !== null ? (
|
|
@@ -7,7 +7,7 @@ import type { BaseScreenProps } from '../types/navigation';
|
|
|
7
7
|
import { useTheme } from '@oxy.so/bloom/theme';
|
|
8
8
|
import { H6, Text } from '@oxy.so/bloom/typography';
|
|
9
9
|
import { Button } from '@oxy.so/bloom/button';
|
|
10
|
-
import {
|
|
10
|
+
import { ListItem } from '@oxy.so/bloom/list';
|
|
11
11
|
import FollowButton from '../components/FollowButton';
|
|
12
12
|
import Ionicons from '../icons/Ionicons';
|
|
13
13
|
import { useI18n } from '../hooks/useI18n';
|
|
@@ -156,35 +156,17 @@ const UserListScreen: React.FC<UserListScreenProps> = ({ userId, mode, sort, nav
|
|
|
156
156
|
const handle = getAccountFallbackHandle(item);
|
|
157
157
|
|
|
158
158
|
return (
|
|
159
|
-
<
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<Text variant="body-medium" numberOfLines={1}>
|
|
171
|
-
{displayName}
|
|
172
|
-
</Text>
|
|
173
|
-
{handle ? (
|
|
174
|
-
<Text className="text-text-secondary text-sm mt-space-2" numberOfLines={1}>
|
|
175
|
-
{item.username ? `@${handle}` : handle}
|
|
176
|
-
</Text>
|
|
177
|
-
) : null}
|
|
178
|
-
{description ? (
|
|
179
|
-
<Text className="text-text-secondary text-sm mt-space-4" numberOfLines={2}>
|
|
180
|
-
{description}
|
|
181
|
-
</Text>
|
|
182
|
-
) : null}
|
|
183
|
-
</View>
|
|
184
|
-
}
|
|
185
|
-
/>
|
|
186
|
-
{!isCurrentUser && itemUserId ? <FollowButton userId={itemUserId} size="sm" /> : null}
|
|
187
|
-
</View>
|
|
159
|
+
<ListItem
|
|
160
|
+
person={{
|
|
161
|
+
name: displayName,
|
|
162
|
+
subtitle: handle ? (item.username ? `@${handle}` : handle) : undefined,
|
|
163
|
+
avatar: item.avatar ? oxyServices.assets.publicUrl(item.avatar, 'thumb') : undefined,
|
|
164
|
+
}}
|
|
165
|
+
supporting={description || undefined}
|
|
166
|
+
supportingLines={2}
|
|
167
|
+
onPress={() => handleUserPress(item)}
|
|
168
|
+
trailing={!isCurrentUser && itemUserId ? <FollowButton userId={itemUserId} /> : null}
|
|
169
|
+
/>
|
|
188
170
|
);
|
|
189
171
|
},
|
|
190
172
|
[handleUserPress, currentUserId, oxyServices],
|
|
@@ -335,9 +317,6 @@ const styles = StyleSheet.create({
|
|
|
335
317
|
listContent: {
|
|
336
318
|
flexGrow: 1,
|
|
337
319
|
},
|
|
338
|
-
userInfo: {
|
|
339
|
-
flex: 1,
|
|
340
|
-
},
|
|
341
320
|
emptyContainer: {
|
|
342
321
|
flex: 1,
|
|
343
322
|
justifyContent: 'center',
|