@oxy.so/services 15.1.1 → 15.1.4

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 (228) hide show
  1. package/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  2. package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  3. package/lib/commonjs/assets/assets/fonts/icons/manifest.json +6 -13
  4. package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  5. package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  6. package/lib/commonjs/assets/fonts/icons/manifest.json +6 -13
  7. package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js +5 -3
  8. package/lib/commonjs/ui/components/fileManagement/FileAppAccessSection.js.map +1 -1
  9. package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js +5 -2
  10. package/lib/commonjs/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
  11. package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js +5 -2
  12. package/lib/commonjs/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
  13. package/lib/commonjs/ui/components/signIn/SessionsSection.js +5 -8
  14. package/lib/commonjs/ui/components/signIn/SessionsSection.js.map +1 -1
  15. package/lib/commonjs/ui/components/supervision/PersonPicker.js +5 -3
  16. package/lib/commonjs/ui/components/supervision/PersonPicker.js.map +1 -1
  17. package/lib/commonjs/ui/icons/subsetGlyphMaps.js +1 -8
  18. package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
  19. package/lib/commonjs/ui/illustrations/OxyEmptyState.js +33 -0
  20. package/lib/commonjs/ui/illustrations/OxyEmptyState.js.map +1 -0
  21. package/lib/commonjs/ui/illustrations/ThemedIllustration.js +113 -0
  22. package/lib/commonjs/ui/illustrations/ThemedIllustration.js.map +1 -0
  23. package/lib/commonjs/ui/illustrations/connected-apps.svg +1 -0
  24. package/lib/commonjs/ui/illustrations/connected-apps.svg.json +1 -0
  25. package/lib/commonjs/ui/illustrations/family.svg +1 -0
  26. package/lib/commonjs/ui/illustrations/family.svg.json +1 -0
  27. package/lib/commonjs/ui/illustrations/library.svg +1 -0
  28. package/lib/commonjs/ui/illustrations/library.svg.json +1 -0
  29. package/lib/commonjs/ui/illustrations/people.svg +1 -0
  30. package/lib/commonjs/ui/illustrations/people.svg.json +1 -0
  31. package/lib/commonjs/ui/illustrations/security.svg +1 -0
  32. package/lib/commonjs/ui/illustrations/security.svg.json +1 -0
  33. package/lib/commonjs/ui/illustrations/sessions.svg +1 -0
  34. package/lib/commonjs/ui/illustrations/sessions.svg.json +1 -0
  35. package/lib/commonjs/ui/screens/AccountMembersScreen.js +5 -3
  36. package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
  37. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +5 -10
  38. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
  39. package/lib/commonjs/ui/screens/DomainsScreen.js +5 -3
  40. package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -1
  41. package/lib/commonjs/ui/screens/FileManagementScreen.js +11 -34
  42. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  43. package/lib/commonjs/ui/screens/FileTrashScreen.js +4 -17
  44. package/lib/commonjs/ui/screens/FileTrashScreen.js.map +1 -1
  45. package/lib/commonjs/ui/screens/HistoryViewScreen.js +5 -4
  46. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  47. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +9 -7
  48. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  49. package/lib/commonjs/ui/screens/SupervisionScreen.js +13 -6
  50. package/lib/commonjs/ui/screens/SupervisionScreen.js.map +1 -1
  51. package/lib/commonjs/ui/screens/UserListScreen.js +13 -22
  52. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  53. package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +10 -25
  54. package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -1
  55. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +6 -17
  56. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
  57. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +7 -10
  58. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  59. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +5 -3
  60. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  61. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +5 -15
  62. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  63. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +5 -3
  64. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  65. package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  66. package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  67. package/lib/module/assets/assets/fonts/icons/manifest.json +6 -13
  68. package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  69. package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  70. package/lib/module/assets/fonts/icons/manifest.json +6 -13
  71. package/lib/module/ui/components/fileManagement/FileAppAccessSection.js +5 -3
  72. package/lib/module/ui/components/fileManagement/FileAppAccessSection.js.map +1 -1
  73. package/lib/module/ui/components/organizations/OrganizationClaimReview.js +5 -2
  74. package/lib/module/ui/components/organizations/OrganizationClaimReview.js.map +1 -1
  75. package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js +5 -2
  76. package/lib/module/ui/components/organizations/OrganizationDirectorySearch.js.map +1 -1
  77. package/lib/module/ui/components/signIn/SessionsSection.js +5 -8
  78. package/lib/module/ui/components/signIn/SessionsSection.js.map +1 -1
  79. package/lib/module/ui/components/supervision/PersonPicker.js +5 -3
  80. package/lib/module/ui/components/supervision/PersonPicker.js.map +1 -1
  81. package/lib/module/ui/icons/subsetGlyphMaps.js +1 -8
  82. package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
  83. package/lib/module/ui/illustrations/OxyEmptyState.js +28 -0
  84. package/lib/module/ui/illustrations/OxyEmptyState.js.map +1 -0
  85. package/lib/module/ui/illustrations/ThemedIllustration.js +106 -0
  86. package/lib/module/ui/illustrations/ThemedIllustration.js.map +1 -0
  87. package/lib/module/ui/illustrations/connected-apps.svg +1 -0
  88. package/lib/module/ui/illustrations/connected-apps.svg.json +1 -0
  89. package/lib/module/ui/illustrations/family.svg +1 -0
  90. package/lib/module/ui/illustrations/family.svg.json +1 -0
  91. package/lib/module/ui/illustrations/library.svg +1 -0
  92. package/lib/module/ui/illustrations/library.svg.json +1 -0
  93. package/lib/module/ui/illustrations/people.svg +1 -0
  94. package/lib/module/ui/illustrations/people.svg.json +1 -0
  95. package/lib/module/ui/illustrations/security.svg +1 -0
  96. package/lib/module/ui/illustrations/security.svg.json +1 -0
  97. package/lib/module/ui/illustrations/sessions.svg +1 -0
  98. package/lib/module/ui/illustrations/sessions.svg.json +1 -0
  99. package/lib/module/ui/screens/AccountMembersScreen.js +5 -3
  100. package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
  101. package/lib/module/ui/screens/ConnectedAppsScreen.js +5 -10
  102. package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
  103. package/lib/module/ui/screens/DomainsScreen.js +5 -3
  104. package/lib/module/ui/screens/DomainsScreen.js.map +1 -1
  105. package/lib/module/ui/screens/FileManagementScreen.js +11 -34
  106. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  107. package/lib/module/ui/screens/FileTrashScreen.js +4 -17
  108. package/lib/module/ui/screens/FileTrashScreen.js.map +1 -1
  109. package/lib/module/ui/screens/HistoryViewScreen.js +5 -4
  110. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  111. package/lib/module/ui/screens/PrivacySettingsScreen.js +9 -7
  112. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  113. package/lib/module/ui/screens/SupervisionScreen.js +13 -6
  114. package/lib/module/ui/screens/SupervisionScreen.js.map +1 -1
  115. package/lib/module/ui/screens/UserListScreen.js +13 -22
  116. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  117. package/lib/module/ui/screens/fileManagement/FileListSection.js +10 -24
  118. package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -1
  119. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +6 -17
  120. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
  121. package/lib/module/ui/screens/trust/TrustCenterScreen.js +7 -10
  122. package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  123. package/lib/module/ui/screens/trust/TrustFAQScreen.js +5 -3
  124. package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  125. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +5 -15
  126. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  127. package/lib/module/ui/screens/trust/TrustRulesScreen.js +5 -3
  128. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  129. package/lib/typescript/commonjs/ui/components/fileManagement/FileAppAccessSection.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/ui/components/organizations/OrganizationClaimReview.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/ui/components/organizations/OrganizationDirectorySearch.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/ui/components/signIn/SessionsSection.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/ui/components/supervision/PersonPicker.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
  135. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
  136. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  137. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  138. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +1 -8
  139. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  140. package/lib/typescript/commonjs/ui/illustrations/OxyEmptyState.d.ts +16 -0
  141. package/lib/typescript/commonjs/ui/illustrations/OxyEmptyState.d.ts.map +1 -0
  142. package/lib/typescript/commonjs/ui/illustrations/ThemedIllustration.d.ts +20 -0
  143. package/lib/typescript/commonjs/ui/illustrations/ThemedIllustration.d.ts.map +1 -0
  144. package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -1
  145. package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  146. package/lib/typescript/commonjs/ui/screens/DomainsScreen.d.ts.map +1 -1
  147. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  148. package/lib/typescript/commonjs/ui/screens/FileTrashScreen.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  150. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/ui/screens/SupervisionScreen.d.ts.map +1 -1
  152. package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  156. package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  157. package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
  158. package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  159. package/lib/typescript/module/ui/components/fileManagement/FileAppAccessSection.d.ts.map +1 -1
  160. package/lib/typescript/module/ui/components/organizations/OrganizationClaimReview.d.ts.map +1 -1
  161. package/lib/typescript/module/ui/components/organizations/OrganizationDirectorySearch.d.ts.map +1 -1
  162. package/lib/typescript/module/ui/components/signIn/SessionsSection.d.ts.map +1 -1
  163. package/lib/typescript/module/ui/components/supervision/PersonPicker.d.ts.map +1 -1
  164. package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
  165. package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
  166. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  167. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  168. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +1 -8
  169. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  170. package/lib/typescript/module/ui/illustrations/OxyEmptyState.d.ts +16 -0
  171. package/lib/typescript/module/ui/illustrations/OxyEmptyState.d.ts.map +1 -0
  172. package/lib/typescript/module/ui/illustrations/ThemedIllustration.d.ts +20 -0
  173. package/lib/typescript/module/ui/illustrations/ThemedIllustration.d.ts.map +1 -0
  174. package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -1
  175. package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  176. package/lib/typescript/module/ui/screens/DomainsScreen.d.ts.map +1 -1
  177. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  178. package/lib/typescript/module/ui/screens/FileTrashScreen.d.ts.map +1 -1
  179. package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  180. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  181. package/lib/typescript/module/ui/screens/SupervisionScreen.d.ts.map +1 -1
  182. package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
  183. package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
  184. package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
  185. package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  186. package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  187. package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
  188. package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  189. package/package.json +15 -3
  190. package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  191. package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  192. package/src/assets/fonts/icons/manifest.json +6 -13
  193. package/src/ui/components/fileManagement/FileAppAccessSection.tsx +6 -1
  194. package/src/ui/components/organizations/OrganizationClaimReview.tsx +8 -1
  195. package/src/ui/components/organizations/OrganizationDirectorySearch.tsx +8 -1
  196. package/src/ui/components/signIn/SessionsSection.tsx +4 -4
  197. package/src/ui/components/supervision/PersonPicker.tsx +4 -1
  198. package/src/ui/icons/subsetGlyphMaps.ts +1 -8
  199. package/src/ui/illustrations/OxyEmptyState.tsx +29 -0
  200. package/src/ui/illustrations/ThemedIllustration.tsx +103 -0
  201. package/src/ui/illustrations/__tests__/ThemedIllustration.test.ts +69 -0
  202. package/src/ui/illustrations/connected-apps.svg +1 -0
  203. package/src/ui/illustrations/connected-apps.svg.json +1 -0
  204. package/src/ui/illustrations/family.svg +1 -0
  205. package/src/ui/illustrations/family.svg.json +1 -0
  206. package/src/ui/illustrations/library.svg +1 -0
  207. package/src/ui/illustrations/library.svg.json +1 -0
  208. package/src/ui/illustrations/people.svg +1 -0
  209. package/src/ui/illustrations/people.svg.json +1 -0
  210. package/src/ui/illustrations/security.svg +1 -0
  211. package/src/ui/illustrations/security.svg.json +1 -0
  212. package/src/ui/illustrations/sessions.svg +1 -0
  213. package/src/ui/illustrations/sessions.svg.json +1 -0
  214. package/src/ui/screens/AccountMembersScreen.tsx +6 -3
  215. package/src/ui/screens/ConnectedAppsScreen.tsx +9 -7
  216. package/src/ui/screens/DomainsScreen.tsx +2 -1
  217. package/src/ui/screens/FileManagementScreen.tsx +31 -31
  218. package/src/ui/screens/FileTrashScreen.tsx +5 -9
  219. package/src/ui/screens/HistoryViewScreen.tsx +6 -1
  220. package/src/ui/screens/PrivacySettingsScreen.tsx +11 -6
  221. package/src/ui/screens/SupervisionScreen.tsx +8 -3
  222. package/src/ui/screens/UserListScreen.tsx +16 -22
  223. package/src/ui/screens/fileManagement/FileListSection.tsx +6 -10
  224. package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +19 -18
  225. package/src/ui/screens/trust/TrustCenterScreen.tsx +38 -36
  226. package/src/ui/screens/trust/TrustFAQScreen.tsx +9 -4
  227. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +9 -14
  228. package/src/ui/screens/trust/TrustRulesScreen.tsx +6 -1
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../illustrations/OxyEmptyState';
1
2
  import { PressableScale } from '@oxy.so/bloom/pressable-scale';
2
3
  import { RiCloseLine } from '@oxy.so/bloom/icons/RiCloseLine';
3
4
  import { RiDeleteBinLine } from '@oxy.so/bloom/icons/RiDeleteBinLine';
@@ -1056,23 +1057,22 @@ const FileManagementScreen: React.FC<FileManagementScreenProps> = ({
1056
1057
  if (photos.length === 0) {
1057
1058
  if (hasLoadError) return renderLoadError();
1058
1059
  return (
1059
- <View style={styles.container3}>
1060
- <Ionicons name="images-outline" size={64} color={colors.textTertiary} />
1061
- <Text style={[styles.title, { color: colors.text }]}>
1062
- {t('fileManagement.emptyPhotos.title')}
1063
- </Text>
1064
- <Text style={[styles.text, { color: colors.textSecondary }]}>
1065
- {' '}
1066
- {user?.id === targetUserId
1060
+ <OxyEmptyState
1061
+ style={styles.container3}
1062
+ title={t('fileManagement.emptyPhotos.title')}
1063
+ description={
1064
+ user?.id === targetUserId
1067
1065
  ? t('fileManagement.emptyPhotos.ownDescription')
1068
- : t('fileManagement.emptyPhotos.otherDescription')}{' '}
1069
- </Text>
1070
- {user?.id === targetUserId && (
1071
- <Button onPress={handleFileUpload} loading={uploading || isPickingDocument}>
1072
- {t('fileManagement.uploadPhotos')}
1073
- </Button>
1074
- )}
1075
- </View>
1066
+ : t('fileManagement.emptyPhotos.otherDescription')
1067
+ }
1068
+ footer={
1069
+ user?.id === targetUserId ? (
1070
+ <Button onPress={handleFileUpload} loading={uploading || isPickingDocument}>
1071
+ {t('fileManagement.uploadPhotos')}
1072
+ </Button>
1073
+ ) : undefined
1074
+ }
1075
+ />
1076
1076
  );
1077
1077
  }
1078
1078
 
@@ -1118,22 +1118,22 @@ const FileManagementScreen: React.FC<FileManagementScreenProps> = ({
1118
1118
  hasLoadError ? (
1119
1119
  renderLoadError()
1120
1120
  ) : (
1121
- <View style={styles.container3}>
1122
- <Ionicons name="folder-open-outline" size={64} color={colors.textTertiary} />
1123
- <Text style={[styles.title, { color: colors.text }]}>
1124
- {t('fileManagement.emptyFiles.title')}
1125
- </Text>
1126
- <Text style={[styles.text, { color: colors.textSecondary }]}>
1127
- {user?.id === targetUserId
1121
+ <OxyEmptyState
1122
+ style={styles.container3}
1123
+ title={t('fileManagement.emptyFiles.title')}
1124
+ description={
1125
+ user?.id === targetUserId
1128
1126
  ? t('fileManagement.emptyFiles.ownDescription')
1129
- : t('fileManagement.emptyFiles.otherDescription')}
1130
- </Text>
1131
- {user?.id === targetUserId && (
1132
- <Button onPress={handleFileUpload} loading={uploading || isPickingDocument}>
1133
- {t('fileManagement.uploadFiles')}
1134
- </Button>
1135
- )}
1136
- </View>
1127
+ : t('fileManagement.emptyFiles.otherDescription')
1128
+ }
1129
+ footer={
1130
+ user?.id === targetUserId ? (
1131
+ <Button onPress={handleFileUpload} loading={uploading || isPickingDocument}>
1132
+ {t('fileManagement.uploadFiles')}
1133
+ </Button>
1134
+ ) : undefined
1135
+ }
1136
+ />
1137
1137
  );
1138
1138
 
1139
1139
  // Bloom renders the shared action group and primary selection CTA.
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../illustrations/OxyEmptyState';
1
2
  import type React from 'react';
2
3
  import { type ComponentRef, useCallback, useMemo, useRef, useState } from 'react';
3
4
  import { View, type ScrollView, StyleSheet } from 'react-native';
@@ -179,15 +180,10 @@ const FileTrashScreen: React.FC<BaseScreenProps & { userId?: string }> = ({ user
179
180
  descriptionColor={colors.textSecondary}
180
181
  />
181
182
  ) : trashQuery.isLoading || !ownerId ? null : (
182
- <View style={styles.container}>
183
- <Ionicons name="trash-outline" size={64} color={colors.textTertiary} />
184
- <Text style={[styles.title, { color: colors.text }]}>
185
- {t('fileManagement.trashView.emptyTitle')}
186
- </Text>
187
- <Text style={[styles.text, { color: colors.textSecondary }]}>
188
- {t('fileManagement.trashView.emptyDescription')}
189
- </Text>
190
- </View>
183
+ <OxyEmptyState
184
+ title={t('fileManagement.trashView.emptyTitle')}
185
+ description={t('fileManagement.trashView.emptyDescription')}
186
+ />
191
187
  );
192
188
 
193
189
  return (
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../illustrations/OxyEmptyState';
1
2
  import React, { useState, useCallback } from 'react';
2
3
  import { View } from 'react-native';
3
4
  import type { BaseScreenProps } from '../types/navigation';
@@ -135,7 +136,11 @@ const HistoryViewScreen: React.FC<BaseScreenProps> = ({ onClose, goBack }) => {
135
136
  </GroupedSection>
136
137
  <GroupedSection title={t('history.recent') || 'Recent History'}>
137
138
  {isLoading ? null : history.length === 0 ? (
138
- <Text style={styles.mutedText}>{t('history.empty') || 'No history yet'}</Text>
139
+ <OxyEmptyState
140
+ art="security"
141
+ variant="compact"
142
+ title={t('history.empty') || 'No history yet'}
143
+ />
139
144
  ) : (
140
145
  history.map((item) => (
141
146
  <GroupedSectionItem
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../illustrations/OxyEmptyState';
1
2
  import React, { useCallback, useEffect } from 'react';
2
3
  import { skip, useAction, useRecord } from '@oxy.so/bloom-data';
3
4
  import { View } from 'react-native';
@@ -432,9 +433,11 @@ const PrivacySettingsScreen: React.FC<BaseScreenProps> = ({ onClose, goBack }) =
432
433
  {/* Blocked Users */}
433
434
  <GroupedSection title={t('privacySettings.sections.blockedUsers') || 'BLOCKED USERS'}>
434
435
  {isLoadingUsers ? null : blockedUsers.length === 0 ? (
435
- <Text style={styles.mutedText}>
436
- {t('privacySettings.noBlockedUsers') || 'No blocked users'}
437
- </Text>
436
+ <OxyEmptyState
437
+ art="security"
438
+ variant="compact"
439
+ title={t('privacySettings.noBlockedUsers') || 'No blocked users'}
440
+ />
438
441
  ) : (
439
442
  blockedUsers.map((blocked) => {
440
443
  const { userId, displayName, avatar } = extractUserInfo(blocked, 'blockedId');
@@ -465,9 +468,11 @@ const PrivacySettingsScreen: React.FC<BaseScreenProps> = ({ onClose, goBack }) =
465
468
  {/* Restricted Users */}
466
469
  <GroupedSection title={t('privacySettings.sections.restrictedUsers') || 'RESTRICTED USERS'}>
467
470
  {isLoadingUsers ? null : restrictedUsers.length === 0 ? (
468
- <Text style={styles.mutedText}>
469
- {t('privacySettings.noRestrictedUsers') || 'No restricted users'}
470
- </Text>
471
+ <OxyEmptyState
472
+ art="security"
473
+ variant="compact"
474
+ title={t('privacySettings.noRestrictedUsers') || 'No restricted users'}
475
+ />
471
476
  ) : (
472
477
  restrictedUsers.map((restricted) => {
473
478
  const { userId, displayName, avatar } = extractUserInfo(restricted, 'restrictedId');
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../illustrations/OxyEmptyState';
1
2
  import { useEffect, useMemo, useRef, useState } from 'react';
2
3
  import { ScrollView, View, StyleSheet } from 'react-native';
3
4
  import { skip } from '@oxy.so/bloom-data';
@@ -259,7 +260,7 @@ function SupervisionBody({
259
260
  </>
260
261
  ) : (
261
262
  <>
262
- <Text>{t('supervision.notActive')}</Text>
263
+ <OxyEmptyState art="family" variant="compact" title={t('supervision.notActive')} />
263
264
  {state.value.children.length === 0 ? (
264
265
  <Button onPress={() => setAddingGuardian(!addingGuardian)}>
265
266
  {t('supervision.invite')}
@@ -366,7 +367,9 @@ function SupervisionBody({
366
367
  </View>
367
368
  ))
368
369
  )}
369
- {contacts.value?.items.length === 0 ? <Text>{t('supervision.noContacts')}</Text> : null}
370
+ {contacts.value?.items.length === 0 ? (
371
+ <OxyEmptyState art="family" variant="compact" title={t('supervision.noContacts')} />
372
+ ) : null}
370
373
  {guardianForChild ? (
371
374
  <>
372
375
  <Button onPress={() => setAddingContact(!addingContact)}>
@@ -408,7 +411,9 @@ function SupervisionBody({
408
411
  </Button>
409
412
  ))
410
413
  )}
411
- {purchases.value?.items.length === 0 ? <Text>{t('supervision.noPurchases')}</Text> : null}
414
+ {purchases.value?.items.length === 0 ? (
415
+ <OxyEmptyState art="family" variant="compact" title={t('supervision.noPurchases')} />
416
+ ) : null}
412
417
  {purchases.value?.nextCursor ? (
413
418
  <Button onPress={() => setCursor(purchases.value?.nextCursor ?? undefined)}>
414
419
  {t('supervision.more')}
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../illustrations/OxyEmptyState';
1
2
  import { Search } from '@oxy.so/bloom/search';
2
3
  import { RiSearchLine } from '@oxy.so/bloom/icons/RiSearchLine';
3
4
  import type React from 'react';
@@ -206,34 +207,27 @@ const UserListScreen: React.FC<UserListScreenProps> = ({ userId, mode, sort, nav
206
207
 
207
208
  const renderEmpty = useCallback(() => {
208
209
  if (isLoading || (normalizedSearch && (hasMore || isLoadingMore) && !error)) return null;
209
- if (normalizedSearch)
210
- return (
211
- <View style={styles.section}>
212
- <Text>{t('userList.noSearchResults')}</Text>
213
- </View>
214
- );
210
+ if (normalizedSearch) {
211
+ return <OxyEmptyState art="people" variant="compact" title={t('userList.noSearchResults')} />;
212
+ }
215
213
  return (
216
- <View style={[styles.stack, styles.emptyContainer]}>
217
- <Ionicons
218
- name={mode === 'followers' ? 'people-outline' : 'heart-outline'}
219
- size={EMPTY_ICON_SIZE}
220
- color={bloomTheme.colors.textSecondary}
221
- />
222
- <Text role="heading" aria-level={6} style={themed.text}>
223
- {mode === 'followers'
214
+ <OxyEmptyState
215
+ art="people"
216
+ title={
217
+ mode === 'followers'
224
218
  ? t('userList.noFollowers') || 'No followers yet'
225
- : t('userList.noFollowing') || 'Not following anyone'}
226
- </Text>
227
- <Text style={themed.mutedText}>
228
- {mode === 'followers'
219
+ : t('userList.noFollowing') || 'Not following anyone'
220
+ }
221
+ description={
222
+ mode === 'followers'
229
223
  ? t('userList.noFollowersDesc') ||
230
224
  'When people follow this user, they will appear here.'
231
225
  : t('userList.noFollowingDesc') ||
232
- 'When this user follows people, they will appear here.'}
233
- </Text>
234
- </View>
226
+ 'When this user follows people, they will appear here.'
227
+ }
228
+ />
235
229
  );
236
- }, [isLoading, mode, bloomTheme, t, normalizedSearch, hasMore, isLoadingMore, error, themed]);
230
+ }, [error, hasMore, isLoading, isLoadingMore, mode, normalizedSearch, t]);
237
231
 
238
232
  const title =
239
233
  mode === 'followers'
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../../illustrations/OxyEmptyState';
1
2
  import { SpinnerIcon } from '@oxy.so/bloom/loading';
2
3
  import type React from 'react';
3
4
  import { View, ScrollView, RefreshControl, StyleSheet } from 'react-native';
@@ -74,16 +75,11 @@ const FileListSection: React.FC<FileListSectionProps> = ({
74
75
  scrollEventThrottle={250}
75
76
  >
76
77
  {filteredFiles.length === 0 && searchQuery.length > 0 ? (
77
- <View style={styles.container}>
78
- <Ionicons name="search" size={64} color={colors.textTertiary} />
79
- <Text style={[styles.title, { color: colors.text }]}>
80
- {t('fileManagement.noResults.title')}
81
- </Text>
82
- <Text style={[styles.text, { color: colors.textSecondary }]}>
83
- {t('fileManagement.noResults.description', { query: searchQuery })}
84
- </Text>
85
- <Button onPress={onClearSearch}>{t('fileManagement.clearSearch')}</Button>
86
- </View>
78
+ <OxyEmptyState
79
+ title={t('fileManagement.noResults.title')}
80
+ description={t('fileManagement.noResults.description', { query: searchQuery })}
81
+ action={{ label: t('fileManagement.clearSearch'), onPress: onClearSearch }}
82
+ />
87
83
  ) : filteredFiles.length === 0 ? (
88
84
  renderEmptyState()
89
85
  ) : (
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../../illustrations/OxyEmptyState';
1
2
  import { PressableScale } from '@oxy.so/bloom/pressable-scale';
2
3
  import { SpinnerIcon } from '@oxy.so/bloom/loading';
3
4
  import { Button } from '@oxy.so/bloom/button';
@@ -530,24 +531,24 @@ const PhotoPickerView: React.FC<PhotoPickerViewProps> = ({
530
531
  />
531
532
  </View>
532
533
  ) : isEmpty && !loading ? (
533
- <View style={styles.centered2}>
534
- <View style={styles.container2}>
535
- <MaterialCommunityIcons name="image-outline" size={64} color="#FFFFFF" />
536
- </View>
537
- <Text style={styles.title2}>{t('fileManagement.photoPicker.emptyTitle')}</Text>
538
- <Text style={styles.text}>{t('fileManagement.photoPicker.emptySubtitle')}</Text>
539
- {isOwner && allowUpload && (
540
- <Button
541
- appearance="solid"
542
- tone="accent"
543
- onPress={onUpload}
544
- loading={uploading || isPickingDocument}
545
- icon={<Ionicons name="cloud-upload" size={18} />}
546
- >
547
- {t('fileManagement.uploadPhoto')}
548
- </Button>
549
- )}
550
- </View>
534
+ <OxyEmptyState
535
+ style={styles.centered2}
536
+ title={t('fileManagement.photoPicker.emptyTitle')}
537
+ description={t('fileManagement.photoPicker.emptySubtitle')}
538
+ footer={
539
+ isOwner && allowUpload ? (
540
+ <Button
541
+ appearance="solid"
542
+ tone="accent"
543
+ onPress={onUpload}
544
+ loading={uploading || isPickingDocument}
545
+ icon={<Ionicons name="cloud-upload" size={18} />}
546
+ >
547
+ {t('fileManagement.uploadPhoto')}
548
+ </Button>
549
+ ) : undefined
550
+ }
551
+ />
551
552
  ) : (
552
553
  <FlatList
553
554
  key={`cols-${columns}`}
@@ -15,6 +15,7 @@ import { useOxy } from '../../context/oxyRuntimeContext';
15
15
  import { trustTierLabel } from '@oxy.so/core';
16
16
  import { trustStanding } from '../../data/trust';
17
17
  import { createTokenStyles } from '@oxy.so/bloom/theme';
18
+ import { OxyEmptyState } from '../../illustrations/OxyEmptyState';
18
19
 
19
20
  const TrustCenterScreen: React.FC<BaseScreenProps> = ({ navigate }) => {
20
21
  const themed = useThemedStyles();
@@ -106,43 +107,44 @@ const TrustCenterScreen: React.FC<BaseScreenProps> = ({ navigate }) => {
106
107
  </GroupedSection>
107
108
 
108
109
  {/* Reputation history */}
109
- <GroupedSection title={t('trust.center.history') || 'Reputation History'}>
110
- {transactions.length === 0 ? (
111
- <GroupedSectionItem
112
- icon={<SettingsIcon name="history" color={bloomTheme.colors.textTertiary} />}
113
- title={t('trust.center.noHistory') || 'No reputation history yet.'}
114
- showChevron={false}
115
- disabled
116
- />
117
- ) : (
118
- transactions.map((entry) => (
119
- <GroupedSectionItem
120
- key={entry.id}
121
- icon={
122
- <SettingsIcon
123
- name={entry.points > 0 ? 'plus-circle' : 'minus-circle'}
124
- color={entry.points > 0 ? bloomTheme.colors.success : bloomTheme.colors.error}
125
- />
126
- }
127
- title={
128
- entry.reason ||
129
- entry.actionType ||
130
- t('trust.center.noDescription') ||
131
- 'No description'
132
- }
133
- description={`${entry.category}${
134
- entry.createdAt ? ` · ${new Date(entry.createdAt).toLocaleString()}` : ''
135
- }`}
136
- rightElement={
137
- <Chip variant="subtle" size="sm" color={entry.points > 0 ? 'success' : 'error'}>
138
- {`${entry.points > 0 ? '+' : ''}${entry.points}`}
139
- </Chip>
140
- }
141
- showChevron={false}
110
+ {!isLoading && !error ? (
111
+ <GroupedSection title={t('trust.center.history') || 'Reputation History'}>
112
+ {transactions.length === 0 ? (
113
+ <OxyEmptyState
114
+ variant="compact"
115
+ art="security"
116
+ title={t('trust.center.noHistory') || 'No reputation history yet.'}
142
117
  />
143
- ))
144
- )}
145
- </GroupedSection>
118
+ ) : (
119
+ transactions.map((entry) => (
120
+ <GroupedSectionItem
121
+ key={entry.id}
122
+ icon={
123
+ <SettingsIcon
124
+ name={entry.points > 0 ? 'plus-circle' : 'minus-circle'}
125
+ color={entry.points > 0 ? bloomTheme.colors.success : bloomTheme.colors.error}
126
+ />
127
+ }
128
+ title={
129
+ entry.reason ||
130
+ entry.actionType ||
131
+ t('trust.center.noDescription') ||
132
+ 'No description'
133
+ }
134
+ description={`${entry.category}${
135
+ entry.createdAt ? ` · ${new Date(entry.createdAt).toLocaleString()}` : ''
136
+ }`}
137
+ rightElement={
138
+ <Chip variant="subtle" size="sm" color={entry.points > 0 ? 'success' : 'error'}>
139
+ {`${entry.points > 0 ? '+' : ''}${entry.points}`}
140
+ </Chip>
141
+ }
142
+ showChevron={false}
143
+ />
144
+ ))
145
+ )}
146
+ </GroupedSection>
147
+ ) : null}
146
148
 
147
149
  {error ? (
148
150
  <Text style={[styles.text2, { color: bloomTheme.colors.error }]}>{error}</Text>
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../../illustrations/OxyEmptyState';
1
2
  import React, { useState, useMemo, useCallback } from 'react';
2
3
  import { View } from 'react-native';
3
4
  import type { BaseScreenProps } from '../../types/navigation';
@@ -72,10 +73,14 @@ const TrustFAQScreen: React.FC<BaseScreenProps> = () => {
72
73
 
73
74
  <View style={styles.section2}>
74
75
  {filteredFaqs.length === 0 ? (
75
- <Text style={styles.mutedText}>
76
- {t('trust.faq.noResults', { query: search }) ||
77
- `No FAQ items found matching "${search}"`}
78
- </Text>
76
+ <OxyEmptyState
77
+ art="security"
78
+ variant="compact"
79
+ title={
80
+ t('trust.faq.noResults', { query: search }) ||
81
+ `No FAQ items found matching "${search}"`
82
+ }
83
+ />
79
84
  ) : (
80
85
  <Accordion type="single" value={expanded} onValueChange={handleAccordionChange}>
81
86
  {filteredFaqs.map((faq) => (
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../../illustrations/OxyEmptyState';
1
2
  import { GroupedSection, GroupedSectionItem } from '@oxy.so/bloom/grouped-section';
2
3
  import type React from 'react';
3
4
  import { useCallback, useEffect, useMemo, useState } from 'react';
@@ -141,20 +142,14 @@ const TrustLeaderboardScreen: React.FC<BaseScreenProps> = ({ navigate }) => {
141
142
  style={styles.section}
142
143
  ItemSeparatorComponent={ItemSeparator}
143
144
  ListEmptyComponent={
144
- <View style={[styles.stack2, styles.emptyContainer]}>
145
- <Ionicons
146
- name="trophy-outline"
147
- size={EMPTY_ICON_SIZE}
148
- color={bloomTheme.colors.textSecondary}
149
- />
150
- <Text role="heading" aria-level={6} style={themed.text}>
151
- {t('trust.leaderboard.empty') || 'No leaderboard data'}
152
- </Text>
153
- <Text style={themed.mutedText3}>
154
- {t('trust.leaderboard.emptyDesc') ||
155
- 'Top contributors will appear here as the community grows.'}
156
- </Text>
157
- </View>
145
+ <OxyEmptyState
146
+ art="people"
147
+ title={t('trust.leaderboard.empty') || 'No leaderboard data'}
148
+ description={
149
+ t('trust.leaderboard.emptyDesc') ||
150
+ 'Top contributors will appear here as the community grows.'
151
+ }
152
+ />
158
153
  }
159
154
  />
160
155
  </View>
@@ -1,3 +1,4 @@
1
+ import { OxyEmptyState } from '../../illustrations/OxyEmptyState';
1
2
  import type React from 'react';
2
3
  import { useMemo } from 'react';
3
4
  import { View } from 'react-native';
@@ -72,7 +73,11 @@ const TrustRulesScreen: React.FC<BaseScreenProps> = () => {
72
73
  {isLoading ? null : error ? (
73
74
  <Text style={styles.mutedText}>{error}</Text>
74
75
  ) : rules.length === 0 ? (
75
- <Text style={styles.mutedText}>{t('trust.rules.empty') || 'No rules found.'}</Text>
76
+ <OxyEmptyState
77
+ art="security"
78
+ variant="compact"
79
+ title={t('trust.rules.empty') || 'No rules found.'}
80
+ />
76
81
  ) : (
77
82
  <View style={styles.section}>
78
83
  {groupedRules.map(({ category, items }) => (