@oxy.so/services 14.21.0 → 14.22.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.
Files changed (96) hide show
  1. package/lib/commonjs/ui/components/OxyConsentScreen.js +3 -1
  2. package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
  3. package/lib/commonjs/ui/components/PeableButton.js +7 -1
  4. package/lib/commonjs/ui/components/PeableButton.js.map +1 -1
  5. package/lib/commonjs/ui/components/accountSettings/AccountCategoriesSection.js +5 -1
  6. package/lib/commonjs/ui/components/accountSettings/AccountCategoriesSection.js.map +1 -1
  7. package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +4 -2
  8. package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
  9. package/lib/commonjs/ui/components/authChooser/primitives.js +3 -2
  10. package/lib/commonjs/ui/components/authChooser/primitives.js.map +1 -1
  11. package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js +3 -3
  12. package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js.map +1 -1
  13. package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js +4 -4
  14. package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
  15. package/lib/commonjs/ui/components/organizations/OrganizationClaims.js +3 -3
  16. package/lib/commonjs/ui/components/organizations/OrganizationClaims.js.map +1 -1
  17. package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js +4 -4
  18. package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
  19. package/lib/commonjs/ui/components/organizations/OrganizationSettings.js +3 -3
  20. package/lib/commonjs/ui/components/organizations/OrganizationSettings.js.map +1 -1
  21. package/lib/commonjs/ui/components/organizations/OrganizationTypePicker.js +3 -3
  22. package/lib/commonjs/ui/components/organizations/OrganizationTypePicker.js.map +1 -1
  23. package/lib/commonjs/ui/screens/AvatarCropScreen.js +20 -12
  24. package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
  25. package/lib/commonjs/ui/screens/ProfileScreen.js +9 -9
  26. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  27. package/lib/commonjs/ui/screens/UserListScreen.js +13 -9
  28. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  29. package/lib/commonjs/ui/utils/persistedDataVersion.js +1 -1
  30. package/lib/module/ui/components/OxyConsentScreen.js +4 -2
  31. package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
  32. package/lib/module/ui/components/PeableButton.js +8 -2
  33. package/lib/module/ui/components/PeableButton.js.map +1 -1
  34. package/lib/module/ui/components/accountSettings/AccountCategoriesSection.js +6 -2
  35. package/lib/module/ui/components/accountSettings/AccountCategoriesSection.js.map +1 -1
  36. package/lib/module/ui/components/authChooser/AccountsMenuView.js +5 -3
  37. package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
  38. package/lib/module/ui/components/authChooser/primitives.js +4 -3
  39. package/lib/module/ui/components/authChooser/primitives.js.map +1 -1
  40. package/lib/module/ui/components/fileManagement/FileAppAccessSection.js +3 -3
  41. package/lib/module/ui/components/fileManagement/FileAppAccessSection.js.map +1 -1
  42. package/lib/module/ui/components/organizations/OrganizationClaimReview.js +4 -4
  43. package/lib/module/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
  44. package/lib/module/ui/components/organizations/OrganizationClaims.js +3 -3
  45. package/lib/module/ui/components/organizations/OrganizationClaims.js.map +1 -1
  46. package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js +4 -4
  47. package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
  48. package/lib/module/ui/components/organizations/OrganizationSettings.js +3 -3
  49. package/lib/module/ui/components/organizations/OrganizationSettings.js.map +1 -1
  50. package/lib/module/ui/components/organizations/OrganizationTypePicker.js +3 -3
  51. package/lib/module/ui/components/organizations/OrganizationTypePicker.js.map +1 -1
  52. package/lib/module/ui/screens/AvatarCropScreen.js +21 -13
  53. package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
  54. package/lib/module/ui/screens/ProfileScreen.js +10 -10
  55. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  56. package/lib/module/ui/screens/UserListScreen.js +13 -9
  57. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  58. package/lib/module/ui/utils/persistedDataVersion.js +1 -1
  59. package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -1
  60. package/lib/typescript/commonjs/ui/components/PeableButton.d.ts.map +1 -1
  61. package/lib/typescript/commonjs/ui/components/accountSettings/AccountCategoriesSection.d.ts.map +1 -1
  62. package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts +1 -1
  63. package/lib/typescript/commonjs/ui/components/authChooser/primitives.d.ts.map +1 -1
  64. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  65. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  66. package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  67. package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
  68. package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
  69. package/lib/typescript/commonjs/ui/utils/persistedDataVersion.d.ts +1 -1
  70. package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -1
  71. package/lib/typescript/module/ui/components/PeableButton.d.ts.map +1 -1
  72. package/lib/typescript/module/ui/components/accountSettings/AccountCategoriesSection.d.ts.map +1 -1
  73. package/lib/typescript/module/ui/components/authChooser/primitives.d.ts +1 -1
  74. package/lib/typescript/module/ui/components/authChooser/primitives.d.ts.map +1 -1
  75. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  76. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  77. package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  78. package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
  79. package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
  80. package/lib/typescript/module/ui/utils/persistedDataVersion.d.ts +1 -1
  81. package/package.json +7 -7
  82. package/src/ui/components/OxyConsentScreen.tsx +10 -3
  83. package/src/ui/components/PeableButton.tsx +6 -3
  84. package/src/ui/components/accountSettings/AccountCategoriesSection.tsx +6 -2
  85. package/src/ui/components/authChooser/AccountsMenuView.tsx +5 -5
  86. package/src/ui/components/authChooser/primitives.tsx +5 -4
  87. package/src/ui/components/fileManagement/FileAppAccessSection.tsx +4 -4
  88. package/src/ui/components/organizations/OrganizationClaimReview.tsx +5 -5
  89. package/src/ui/components/organizations/OrganizationClaims.tsx +4 -4
  90. package/src/ui/components/organizations/OrganizationDirectorySearch.tsx +6 -6
  91. package/src/ui/components/organizations/OrganizationSettings.tsx +5 -5
  92. package/src/ui/components/organizations/OrganizationTypePicker.tsx +4 -4
  93. package/src/ui/screens/AvatarCropScreen.tsx +31 -20
  94. package/src/ui/screens/ProfileScreen.tsx +13 -12
  95. package/src/ui/screens/UserListScreen.tsx +30 -25
  96. package/src/ui/utils/persistedDataVersion.ts +1 -1
@@ -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 { SettingsListGroup, SettingsListItem } from '@oxy.so/bloom/settings-list';
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
- <SettingsListGroup>
21
- <SettingsListItem
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
- </SettingsListGroup>
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
- <SettingsListItem
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 { SettingsListGroup, SettingsListItem } from '@oxy.so/bloom/settings-list';
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
- <SettingsListGroup title={t('organizationDirectory.requests')}>
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
- <SettingsListItem
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
- </SettingsListGroup>
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 { SettingsListGroup, SettingsListItem } from '@oxy.so/bloom/settings-list';
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
- <SettingsListGroup title={selected.name}>
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
- </SettingsListGroup>
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
- <SettingsListGroup title={t('organizationDirectory.title')}>
310
+ <GroupedSection title={t('organizationDirectory.title')}>
311
311
  {results.data.pages
312
312
  .flatMap((page) => page.items)
313
313
  .map((organization) => (
314
- <SettingsListItem
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
- </SettingsListGroup>
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 { SettingsListGroup } from '@oxy.so/bloom/settings-list';
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
- <SettingsListGroup title={t('organizationDirectory.title')}>
39
+ <GroupedSection title={t('organizationDirectory.title')}>
40
40
  <Text>{t(`organizationDirectory.types.${organization.data.organizationType}`)}</Text>
41
41
  <Text>{t('organizationDirectory.readonly')}</Text>
42
- </SettingsListGroup>
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
- <SettingsListGroup title={t('organizationDirectory.title')}>
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
- </SettingsListGroup>
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 { SettingsListGroup, SettingsListItem } from '@oxy.so/bloom/settings-list';
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
- <SettingsListGroup title={t('organizationDirectory.type')}>
18
+ <GroupedSection title={t('organizationDirectory.type')}>
19
19
  {ORGANIZATION_TYPES.map((type) => (
20
- <SettingsListItem
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
- </SettingsListGroup>
30
+ </GroupedSection>
31
31
  );
32
32
  }
@@ -1,6 +1,7 @@
1
1
  import { SpinnerIcon } from '@oxy.so/bloom/loading';
2
- import { LinkButton } from '@oxy.so/bloom/button';
3
- import { ButtonGroup, ButtonGroupItem } from '@oxy.so/bloom/button-group';
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
- <ButtonGroup>
1097
- <ButtonGroupItem
1098
- iconOnly
1099
- leadingIcon={RiSubtractLine}
1100
- accessibilityLabel={t('editProfile.crop.zoomOut')}
1101
- disabled={zoomOutDisabled}
1102
- onPress={() => applyZoom(-1)}
1103
- />
1104
- <ButtonGroupItem
1105
- iconOnly
1106
- leadingIcon={RiAddLine}
1107
- accessibilityLabel={t('editProfile.crop.zoomIn')}
1108
- disabled={zoomInDisabled}
1109
- onPress={() => applyZoom(1)}
1110
- />
1111
- </ButtonGroup>
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
- <LinkButton
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
- </LinkButton>
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, LinkButton } from '@oxy.so/bloom/button';
8
- import { ButtonGroup, ButtonGroupItem } from '@oxy.so/bloom/button-group';
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
- <ButtonGroup>
281
- <ButtonGroupItem
282
- iconOnly
283
- leadingIcon={RiSettings3Line}
284
- accessibilityLabel={t('accountMenu.settings') || 'Settings'}
285
- onPress={() => navigate?.('Preferences')}
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
- <LinkButton
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
- </LinkButton>
345
+ </Button>
345
346
  ) : null}
346
347
  <View style={styles.statsRow}>
347
348
  {!isLoadingCounts && followingCount !== null ? (
@@ -7,7 +7,8 @@ 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 { ContactRow } from '@oxy.so/bloom/chat-people';
10
+ import { Avatar } from '@oxy.so/bloom/avatar';
11
+ import { Item } from '@oxy.so/bloom/item';
11
12
  import FollowButton from '../components/FollowButton';
12
13
  import Ionicons from '../icons/Ionicons';
13
14
  import { useI18n } from '../hooks/useI18n';
@@ -157,32 +158,36 @@ const UserListScreen: React.FC<UserListScreenProps> = ({ userId, mode, sort, nav
157
158
 
158
159
  return (
159
160
  <View className="px-screen-margin flex-row items-center gap-space-12">
160
- <ContactRow
161
- id={itemUserId || displayName}
162
- name={displayName}
163
- subtitle={handle ? (item.username ? `@${handle}` : handle) : undefined}
164
- avatar={item.avatar ? oxyServices.assets.publicUrl(item.avatar, 'thumb') : undefined}
165
- horizontalInset={0}
166
- style={{ flex: 1 }}
161
+ <Item
162
+ leading={
163
+ <Avatar
164
+ name={displayName}
165
+ source={
166
+ item.avatar ? oxyServices.assets.publicUrl(item.avatar, 'thumb') : undefined
167
+ }
168
+ size={44}
169
+ />
170
+ }
171
+ style={{ flex: 1, paddingLeft: 0, paddingRight: 0 }}
172
+ accessibilityLabel={displayName}
167
173
  onPress={() => handleUserPress(item)}
168
- identitySlot={
169
- <View style={styles.userInfo}>
170
- <Text variant="body-medium" numberOfLines={1}>
171
- {displayName}
174
+ >
175
+ <View style={styles.userInfo}>
176
+ <Text variant="body-medium" numberOfLines={1}>
177
+ {displayName}
178
+ </Text>
179
+ {handle ? (
180
+ <Text className="text-text-secondary text-sm mt-space-2" numberOfLines={1}>
181
+ {item.username ? `@${handle}` : handle}
172
182
  </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
- />
183
+ ) : null}
184
+ {description ? (
185
+ <Text className="text-text-secondary text-sm mt-space-4" numberOfLines={2}>
186
+ {description}
187
+ </Text>
188
+ ) : null}
189
+ </View>
190
+ </Item>
186
191
  {!isCurrentUser && itemUserId ? <FollowButton userId={itemUserId} size="sm" /> : null}
187
192
  </View>
188
193
  );
@@ -6,4 +6,4 @@
6
6
  * `__tests__/hooks/persistedDataVersion.test.ts` keeps it equal to `package.json`'s `version`, so a
7
7
  * release cannot forget it.
8
8
  */
9
- export const SERVICES_PERSISTED_DATA_VERSION = '14.21.0';
9
+ export const SERVICES_PERSISTED_DATA_VERSION = '14.22.0';