@oxyhq/services 5.4.3 → 5.4.5
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/README.md +14 -0
- package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +41 -0
- package/lib/commonjs/assets/icons/OxyServices.js +1 -1
- package/lib/commonjs/assets/illustrations/HighFive.js +61 -0
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -0
- package/lib/commonjs/core/index.js +24 -5
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/index.js +72 -23
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/node/createAuth.js +95 -0
- package/lib/commonjs/node/createAuth.js.map +1 -0
- package/lib/commonjs/node/index.js +15 -6
- package/lib/commonjs/node/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/ui/components/Avatar.js +3 -3
- package/lib/commonjs/ui/components/Avatar.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +82 -34
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/GroupedSection.js +1 -1
- package/lib/commonjs/ui/components/OxyLogo.js +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +146 -141
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +4 -4
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileCard.js +2 -2
- package/lib/commonjs/ui/components/Section.js +1 -1
- package/lib/commonjs/ui/components/SectionTitle.js +1 -1
- package/lib/commonjs/ui/components/icon/index.js +1 -1
- package/lib/commonjs/ui/components/index.js +12 -12
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +213 -0
- package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/commonjs/ui/components/internal/TextField.js +576 -0
- package/lib/commonjs/ui/components/internal/TextField.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +12 -2
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/index.js +13 -0
- package/lib/commonjs/ui/hooks/index.js.map +1 -0
- package/lib/commonjs/ui/hooks/useFollow.js +184 -0
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -0
- package/lib/commonjs/ui/index.js +44 -12
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/navigation/OxyRouter.js +23 -18
- package/lib/commonjs/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountCenterScreen.js +21 -20
- package/lib/commonjs/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountManagementDemo.js +3 -3
- package/lib/commonjs/ui/screens/AccountManagementDemo.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js +11 -10
- package/lib/commonjs/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js +8 -7
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +6 -5
- package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +12 -14
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/BillingManagementScreen.js +3 -3
- package/lib/commonjs/ui/screens/FeedbackScreen.js +1169 -0
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/FileManagementScreen.js +3 -3
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +3 -3
- package/lib/commonjs/ui/screens/ProfileScreen.js +2 -2
- package/lib/commonjs/ui/screens/SessionManagementScreen.js +2 -2
- package/lib/commonjs/ui/screens/SignInScreen.js +183 -305
- package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SignUpScreen.js +811 -712
- package/lib/commonjs/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +8 -7
- package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +2 -2
- package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/commonjs/ui/store/index.js +267 -0
- package/lib/commonjs/ui/store/index.js.map +1 -0
- package/lib/commonjs/ui/styles/index.js +2 -2
- package/lib/commonjs/ui/styles/theme.js +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/module/assets/assets/illustrations/HighFive.tsx +41 -0
- package/lib/module/assets/icons/OxyServices.js +1 -1
- package/lib/module/assets/icons/OxyServices.js.map +1 -1
- package/lib/module/assets/illustrations/HighFive.js +55 -0
- package/lib/module/assets/illustrations/HighFive.js.map +1 -0
- package/lib/module/core/index.js +24 -5
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/index.js +15 -11
- package/lib/module/index.js.map +1 -1
- package/lib/module/node/createAuth.js +90 -0
- package/lib/module/node/createAuth.js.map +1 -0
- package/lib/module/node/index.js +8 -4
- package/lib/module/node/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/ui/components/Avatar.js +2 -2
- package/lib/module/ui/components/Avatar.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +83 -35
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/GroupedSection.js +1 -1
- package/lib/module/ui/components/GroupedSection.js.map +1 -1
- package/lib/module/ui/components/OxyLogo.js +1 -1
- package/lib/module/ui/components/OxyLogo.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +143 -138
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +4 -4
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/ProfileCard.js +2 -2
- package/lib/module/ui/components/ProfileCard.js.map +1 -1
- package/lib/module/ui/components/Section.js +1 -1
- package/lib/module/ui/components/Section.js.map +1 -1
- package/lib/module/ui/components/SectionTitle.js +1 -1
- package/lib/module/ui/components/SectionTitle.js.map +1 -1
- package/lib/module/ui/components/icon/index.js +1 -1
- package/lib/module/ui/components/icon/index.js.map +1 -1
- package/lib/module/ui/components/index.js +12 -12
- package/lib/module/ui/components/index.js.map +1 -1
- package/lib/module/ui/components/internal/GroupedPillButtons.js +208 -0
- package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -0
- package/lib/module/ui/components/internal/TextField.js +571 -0
- package/lib/module/ui/components/internal/TextField.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +12 -2
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/index.js +4 -0
- package/lib/module/ui/hooks/index.js.map +1 -0
- package/lib/module/ui/hooks/useFollow.js +180 -0
- package/lib/module/ui/hooks/useFollow.js.map +1 -0
- package/lib/module/ui/index.js +21 -10
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/navigation/OxyRouter.js +23 -18
- package/lib/module/ui/navigation/OxyRouter.js.map +1 -1
- package/lib/module/ui/screens/AccountCenterScreen.js +9 -8
- package/lib/module/ui/screens/AccountCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountManagementDemo.js +2 -2
- package/lib/module/ui/screens/AccountManagementDemo.js.map +1 -1
- package/lib/module/ui/screens/AccountOverviewScreen.js +11 -10
- package/lib/module/ui/screens/AccountOverviewScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js +8 -7
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSwitcherScreen.js +6 -5
- package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +12 -14
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/BillingManagementScreen.js +3 -3
- package/lib/module/ui/screens/BillingManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +1164 -0
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -0
- package/lib/module/ui/screens/FileManagementScreen.js +3 -3
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +3 -3
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +2 -2
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SessionManagementScreen.js +2 -2
- package/lib/module/ui/screens/SessionManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/SignInScreen.js +183 -305
- package/lib/module/ui/screens/SignInScreen.js.map +1 -1
- package/lib/module/ui/screens/SignUpScreen.js +810 -712
- package/lib/module/ui/screens/SignUpScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js +8 -7
- package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +2 -2
- package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js +1 -1
- package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
- package/lib/module/ui/store/index.js +255 -0
- package/lib/module/ui/store/index.js.map +1 -0
- package/lib/module/ui/styles/index.js +2 -2
- package/lib/module/ui/styles/index.js.map +1 -1
- package/lib/module/ui/styles/theme.js +1 -1
- package/lib/module/ui/styles/theme.js.map +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/assets/illustrations/HighFive.d.ts +9 -0
- package/lib/typescript/assets/illustrations/HighFive.d.ts.map +1 -0
- package/lib/typescript/core/index.d.ts +16 -3
- package/lib/typescript/core/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +4 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/node/createAuth.d.ts +7 -0
- package/lib/typescript/node/createAuth.d.ts.map +1 -0
- package/lib/typescript/node/index.d.ts +2 -0
- package/lib/typescript/node/index.d.ts.map +1 -1
- package/lib/typescript/types/expo-vector-icons.d.ts +3 -0
- package/lib/typescript/types/express.d.ts +5 -0
- package/lib/typescript/types/react-redux.d.ts +5 -0
- package/lib/typescript/ui/components/FollowButton.d.ts +1 -0
- package/lib/typescript/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts +18 -0
- package/lib/typescript/ui/components/internal/GroupedPillButtons.d.ts.map +1 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts +25 -0
- package/lib/typescript/ui/components/internal/TextField.d.ts.map +1 -0
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/index.d.ts +2 -0
- package/lib/typescript/ui/hooks/index.d.ts.map +1 -0
- package/lib/typescript/ui/hooks/useFollow.d.ts +43 -0
- package/lib/typescript/ui/hooks/useFollow.d.ts.map +1 -0
- package/lib/typescript/ui/index.d.ts +5 -0
- package/lib/typescript/ui/index.d.ts.map +1 -1
- package/lib/typescript/ui/navigation/OxyRouter.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountCenterScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AccountSwitcherScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts +5 -0
- package/lib/typescript/ui/screens/FeedbackScreen.d.ts.map +1 -0
- package/lib/typescript/ui/screens/SignInScreen.d.ts.map +1 -1
- package/lib/typescript/ui/screens/SignUpScreen.d.ts.map +1 -1
- package/lib/typescript/ui/store/index.d.ts +66 -0
- package/lib/typescript/ui/store/index.d.ts.map +1 -0
- package/package.json +10 -25
- package/src/assets/illustrations/HighFive.tsx +41 -0
- package/src/core/index.ts +88 -3
- package/src/index.ts +19 -3
- package/src/node/createAuth.ts +116 -0
- package/src/node/index.ts +4 -0
- package/src/types/expo-vector-icons.d.ts +3 -0
- package/src/types/express.d.ts +5 -0
- package/src/types/react-redux.d.ts +5 -0
- package/src/ui/components/FollowButton.tsx +114 -56
- package/src/ui/components/OxyProvider.tsx +136 -135
- package/src/ui/components/OxySignInButton.tsx +2 -2
- package/src/ui/components/internal/GroupedPillButtons.tsx +253 -0
- package/src/ui/components/internal/TextField.tsx +694 -0
- package/src/ui/context/OxyContext.tsx +12 -2
- package/src/ui/hooks/index.ts +1 -0
- package/src/ui/hooks/useFollow.ts +173 -0
- package/src/ui/index.ts +15 -2
- package/src/ui/navigation/OxyRouter.tsx +8 -3
- package/src/ui/screens/AccountCenterScreen.tsx +17 -15
- package/src/ui/screens/AccountOverviewScreen.tsx +25 -25
- package/src/ui/screens/AccountSettingsScreen.tsx +30 -30
- package/src/ui/screens/AccountSwitcherScreen.tsx +34 -33
- package/src/ui/screens/AppInfoScreen.tsx +153 -155
- package/src/ui/screens/FeedbackScreen.tsx +1042 -0
- package/src/ui/screens/SignInScreen.tsx +181 -224
- package/src/ui/screens/SignUpScreen.tsx +772 -608
- package/src/ui/screens/karma/KarmaCenterScreen.tsx +4 -4
- package/src/ui/store/index.ts +245 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { View, Text, Image, StyleSheet, ActivityIndicator, Platform } from 'react-native';
|
|
5
|
-
import { useThemeColors } from
|
|
6
|
-
import { fontFamilies } from
|
|
5
|
+
import { useThemeColors } from '../styles';
|
|
6
|
+
import { fontFamilies } from '../styles/fonts';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
/**
|
|
9
9
|
* Avatar component that displays either an image or text avatar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","Image","StyleSheet","ActivityIndicator","Platform","useThemeColors","fontFamilies","jsx","_jsx","Avatar","uri","text","name","size","theme","backgroundColor","textColor","style","imageStyle","textStyle","isLoading","colors","bgColor","primary","fontSize","Math","floor","displayText","charAt","toUpperCase","containerStyle","width","height","borderRadius","styles","container","inputBackground","children","color","source","fontFamily","phuduBold","create","overflow","justifyContent","alignItems","fontWeight","OS","undefined"],"sourceRoot":"../../../../src","sources":["ui/components/Avatar.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,KAAK,EAAEC,UAAU,EAA+CC,iBAAiB,EAAEC,QAAQ,QAAQ,cAAc;AACtI,SAASC,cAAc,QAAQ,
|
|
1
|
+
{"version":3,"names":["React","View","Text","Image","StyleSheet","ActivityIndicator","Platform","useThemeColors","fontFamilies","jsx","_jsx","Avatar","uri","text","name","size","theme","backgroundColor","textColor","style","imageStyle","textStyle","isLoading","colors","bgColor","primary","fontSize","Math","floor","displayText","charAt","toUpperCase","containerStyle","width","height","borderRadius","styles","container","inputBackground","children","color","source","fontFamily","phuduBold","create","overflow","justifyContent","alignItems","fontWeight","OS","undefined"],"sourceRoot":"../../../../src","sources":["ui/components/Avatar.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,KAAK,EAAEC,UAAU,EAA+CC,iBAAiB,EAAEC,QAAQ,QAAQ,cAAc;AACtI,SAASC,cAAc,QAAQ,WAAW;AAC1C,SAASC,YAAY,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAkE/C;AACA;AACA;AACA;AACA,MAAMC,MAA6B,GAAGA,CAAC;EACnCC,GAAG;EACHC,IAAI;EACJC,IAAI;EACJC,IAAI,GAAG,EAAE;EACTC,KAAK,GAAG,OAAO;EACfC,e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AAM,CAACC,SAAS,EAAEL,cAAc,EAAE;MAAEf,eAAe,EAAEO;IAAQ,CAAC,EAAEL,KAAK,CAAE;IAAAoB,QAAA,eACjF7B,IAAA,CAACR,IAAI;MAACiB,KAAK,EAAE,CACTiB,MAAM,CAACvB,IAAI,EACX;QACIa,QAAQ;QACRgB,UAAU,EAAElC,YAAY,CAACmC;MAC7B,CAAC,EACD;QAAEH,KAAK,EAAEtB;MAAU,CAAC,EACpBG,SAAS,CACX;MAAAkB,QAAA,EACGV;IAAW,CACV;EAAC,CACL,CAAC;AAEf,CAAC;AAED,MAAMO,MAAM,GAAGhC,UAAU,CAACwC,MAAM,CAAC;EAC7BP,SAAS,EAAE;IACPQ,QAAQ,EAAE,QAAQ;IAClBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDlC,IAAI,EAAE;IACF;IACAmC,UAAU,EAAE1C,QAAQ,CAAC2C,EAAE,KAAK,KAAK,GAAG,MAAM,GAAGC,SAAS,CAAE;EAC5D;AACJ,CAAC,CAAC;AAEF,eAAevC,MAAM","ignoreList":[]}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, {
|
|
3
|
+
import React, { useEffect, useCallback } from 'react';
|
|
4
4
|
import { TouchableOpacity, StyleSheet, Platform, ActivityIndicator } from 'react-native';
|
|
5
5
|
import Animated, { useSharedValue, useAnimatedStyle, withSpring, interpolateColor, Easing, withTiming } from 'react-native-reanimated';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
7
|
+
import { useOxy } from '../context/OxyContext';
|
|
8
|
+
import { fontFamilies } from '../styles/fonts';
|
|
9
|
+
import { toast } from '../../lib/sonner';
|
|
10
|
+
import { toggleFollowUser, setFollowingStatus, clearFollowError, fetchFollowStatus } from '../store';
|
|
9
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
12
|
/**
|
|
11
13
|
* An animated follow button with interactive state changes and preventDefault support
|
|
14
|
+
* Uses Redux for state management to ensure all buttons with the same user ID stay synchronized
|
|
12
15
|
*
|
|
13
16
|
* @example
|
|
14
17
|
* ```tsx
|
|
@@ -57,27 +60,72 @@ const FollowButton = ({
|
|
|
57
60
|
preventParentActions = true,
|
|
58
61
|
onPress
|
|
59
62
|
}) => {
|
|
63
|
+
const dispatch = useDispatch();
|
|
60
64
|
const {
|
|
61
65
|
oxyServices,
|
|
62
66
|
isAuthenticated
|
|
63
67
|
} = useOxy();
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
|
|
69
|
+
// Optimized single selector to prevent multiple re-renders
|
|
70
|
+
const followState = useSelector(state => ({
|
|
71
|
+
isFollowing: state.follow.followingUsers[userId] ?? initiallyFollowing ?? false,
|
|
72
|
+
isLoading: state.follow.loadingUsers[userId] ?? false,
|
|
73
|
+
error: state.follow.errors[userId]
|
|
74
|
+
}));
|
|
75
|
+
|
|
76
|
+
// Whether the follow status has been loaded from the store
|
|
77
|
+
const isStatusKnown = useSelector(state => Object.prototype.hasOwnProperty.call(state.follow.followingUsers, userId));
|
|
78
|
+
const {
|
|
79
|
+
isFollowing,
|
|
80
|
+
isLoading,
|
|
81
|
+
error
|
|
82
|
+
} = followState;
|
|
66
83
|
|
|
67
84
|
// Animation values
|
|
68
|
-
const animationProgress = useSharedValue(
|
|
85
|
+
const animationProgress = useSharedValue(isFollowing ? 1 : 0);
|
|
69
86
|
const scale = useSharedValue(1);
|
|
70
87
|
|
|
88
|
+
// Initialize Redux state with initial value if not already set
|
|
89
|
+
useEffect(() => {
|
|
90
|
+
if (userId && !isStatusKnown) {
|
|
91
|
+
// Set the initial state regardless of whether initiallyFollowing is defined
|
|
92
|
+
const initialState = initiallyFollowing ?? false;
|
|
93
|
+
dispatch(setFollowingStatus({
|
|
94
|
+
userId,
|
|
95
|
+
isFollowing: initialState
|
|
96
|
+
}));
|
|
97
|
+
}
|
|
98
|
+
}, [userId, initiallyFollowing, isStatusKnown, dispatch]);
|
|
99
|
+
|
|
100
|
+
// Fetch latest follow status from backend on mount if authenticated
|
|
101
|
+
// This runs separately and will overwrite the initial state with actual data
|
|
102
|
+
useEffect(() => {
|
|
103
|
+
if (userId && isAuthenticated) {
|
|
104
|
+
dispatch(fetchFollowStatus({
|
|
105
|
+
userId,
|
|
106
|
+
oxyServices
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
}, [userId, oxyServices, isAuthenticated, dispatch]);
|
|
110
|
+
|
|
71
111
|
// Update the animation value when isFollowing changes
|
|
72
112
|
useEffect(() => {
|
|
73
113
|
animationProgress.value = withTiming(isFollowing ? 1 : 0, {
|
|
74
114
|
duration: 300,
|
|
75
115
|
easing: Easing.bezier(0.25, 0.1, 0.25, 1)
|
|
76
116
|
});
|
|
77
|
-
}, [isFollowing
|
|
117
|
+
}, [isFollowing]); // Removed animationProgress from dependencies as it's stable
|
|
118
|
+
|
|
119
|
+
// Show error toast when error occurs
|
|
120
|
+
useEffect(() => {
|
|
121
|
+
if (error) {
|
|
122
|
+
toast.error(error);
|
|
123
|
+
dispatch(clearFollowError(userId));
|
|
124
|
+
}
|
|
125
|
+
}, [error]); // Removed userId and dispatch to prevent unnecessary runs
|
|
78
126
|
|
|
79
|
-
// The button press handler with preventDefault support
|
|
80
|
-
const handlePress = async event => {
|
|
127
|
+
// The button press handler with preventDefault support - memoized to prevent recreation
|
|
128
|
+
const handlePress = useCallback(async event => {
|
|
81
129
|
// Prevent parent actions if enabled (e.g., if inside a link or pressable container)
|
|
82
130
|
if (preventParentActions && event) {
|
|
83
131
|
// For React Native Web compatibility
|
|
@@ -101,7 +149,13 @@ const FollowButton = ({
|
|
|
101
149
|
onPress(event);
|
|
102
150
|
return;
|
|
103
151
|
}
|
|
104
|
-
if (disabled || isLoading
|
|
152
|
+
if (disabled || followState.isLoading) return;
|
|
153
|
+
|
|
154
|
+
// Check if user is authenticated - show toast instead of disabling
|
|
155
|
+
if (!isAuthenticated) {
|
|
156
|
+
toast.error('Please sign in to follow users');
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
105
159
|
|
|
106
160
|
// Touch feedback animation
|
|
107
161
|
scale.value = withSpring(0.95, {
|
|
@@ -109,39 +163,33 @@ const FollowButton = ({
|
|
|
109
163
|
}, () => {
|
|
110
164
|
scale.value = withSpring(1);
|
|
111
165
|
});
|
|
112
|
-
setIsLoading(true);
|
|
113
166
|
try {
|
|
114
|
-
//
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
} else {
|
|
121
|
-
// Follow API call would go here
|
|
122
|
-
// await oxyServices.user.followUser(userId);
|
|
123
|
-
console.log(`Following user: ${userId}`);
|
|
124
|
-
await new Promise(resolve => setTimeout(resolve, 500)); // Simulating API call
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// Toggle following state with animation
|
|
128
|
-
const newFollowingState = !isFollowing;
|
|
129
|
-
setIsFollowing(newFollowingState);
|
|
167
|
+
// Dispatch the async action to follow/unfollow
|
|
168
|
+
const result = await dispatch(toggleFollowUser({
|
|
169
|
+
userId,
|
|
170
|
+
oxyServices,
|
|
171
|
+
isCurrentlyFollowing: followState.isFollowing
|
|
172
|
+
})).unwrap();
|
|
130
173
|
|
|
131
174
|
// Call the callback if provided
|
|
132
175
|
if (onFollowChange) {
|
|
133
|
-
onFollowChange(
|
|
176
|
+
onFollowChange(result.isFollowing);
|
|
134
177
|
}
|
|
135
178
|
|
|
136
179
|
// Show success toast
|
|
137
|
-
toast.success(
|
|
180
|
+
toast.success(result.isFollowing ? 'Following user!' : 'Unfollowed user');
|
|
138
181
|
} catch (error) {
|
|
139
182
|
console.error('Follow action failed:', error);
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
183
|
+
|
|
184
|
+
// Show user-friendly error messages for state mismatches
|
|
185
|
+
const errorMessage = error?.toString() || 'Unknown error';
|
|
186
|
+
if (errorMessage.includes('State synced with backend')) {
|
|
187
|
+
toast.info('Status updated. Please try again.');
|
|
188
|
+
} else {
|
|
189
|
+
toast.error(`Failed to ${followState.isFollowing ? 'unfollow' : 'follow'} user. Please try again.`);
|
|
190
|
+
}
|
|
143
191
|
}
|
|
144
|
-
};
|
|
192
|
+
}, [preventParentActions, onPress, disabled, followState.isLoading, followState.isFollowing, isAuthenticated, scale, dispatch, userId, oxyServices, onFollowChange]);
|
|
145
193
|
|
|
146
194
|
// Animated styles for the button
|
|
147
195
|
const animatedButtonStyle = useAnimatedStyle(() => {
|
|
@@ -208,7 +256,7 @@ const FollowButton = ({
|
|
|
208
256
|
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
209
257
|
activeOpacity: 0.8,
|
|
210
258
|
onPress: handlePress,
|
|
211
|
-
disabled: disabled || isLoading
|
|
259
|
+
disabled: disabled || isLoading,
|
|
212
260
|
children: /*#__PURE__*/_jsx(Animated.View, {
|
|
213
261
|
style: [styles.button, sizeStyles.button, animatedButtonStyle, style],
|
|
214
262
|
children: isLoading && showLoadingState ? /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","useEffect","useCallback","TouchableOpacity","StyleSheet","Platform","ActivityIndicator","Animated","useSharedValue","useAnimatedStyle","withSpring","interpolateColor","Easing","withTiming","useDispatch","useSelector","useOxy","fontFamilies","toast","toggleFollowUser","setFollowingStatus","clearFollowError","fetchFollowStatus","jsx","_jsx","FollowButton","userId","initiallyFollowing","size","onFollowChange","style","textStyle","disabled","showLoadingState","preventParentActions","onPress","dispatch","oxyServices","isAuthenticated","followState","state","isFollowing","follow","followingUsers","isLoading","loadingUsers","error","errors","isStatusKnown","Object","prototype","hasOwnProperty","call","animationProgress","scale","initialState","value","duration","easing","bezier","handlePress","event","OS","preventDefault","stopPropagation","nativeEvent","damping","result","isCurrentlyFollowing","unwrap","success","console","errorMessage","toString","includes","info","animatedButtonStyle","backgroundColor","borderColor","transitionScale","Math","sin","PI","borderWidth","transform","animatedTextStyle","color","getSizeStyles","button","paddingVertical","paddingHorizontal","text","fontSize","sizeStyles","activeOpacity","children","View","styles","Text","create","justifyContent","alignItems","flexDirection","borderRadius","fontFamily","select","web","default","phuduSemiBold","fontWeight","undefined","textAlign"],"sourceRoot":"../../../../src","sources":["ui/components/FollowButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,WAAW,QAAQ,OAAO;AACrD,SACEC,gBAAgB,EAEhBC,UAAU,EAIVC,QAAQ,EACRC,iBAAiB,QACZ,cAAc;AACrB,OAAOC,QAAQ,IACbC,cAAc,EACdC,gBAAgB,EAChBC,UAAU,EACVC,gBAAgB,EAChBC,MAAM,EACNC,UAAU,QACL,yBAAyB;AAChC,SAASC,WAAW,EAAEC,WAAW,QAAQ,aAAa;AACtD,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,YAAY,QAAQ,iBAAiB;AAC9C,SAASC,KAAK,QAAQ,kBAAkB;AACxC,SACEC,gBAAgB,EAChBC,kBAAkB,EAClBC,gBAAgB,EAChBC,iBAAiB,QACZ,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA8DlB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,YAAyC,GAAGA,CAAC;EACjDC,MAAM;EACNC,kBAAkB,GAAG,KAAK;EAC1BC,IAAI,GAAG,QAAQ;EACfC,cAAc;EACdC,KAAK;EACLC,SAAS;EACTC,QAAQ,GAAG,KAAK;EAChBC,gBAAgB,GAAG,IAAI;EACvBC,oBAAoB,GAAG,IAAI;EAC3BC;AACF,CAAC,KAAK;EACJ,MAAMC,QAAQ,GAAGtB,WAAW,CAAC,CA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EAAE;IACJa,UAAU,EAAEnG,QAAQ,CAACoG,MAAM,CAAC;MAC1BC,GAAG,EAAE,OAAO;MACZC,OAAO,EAAE1F,YAAY,CAAC2F;IACxB,CAAC,CAAC;IACFC,UAAU,EAAExG,QAAQ,CAACyD,EAAE,KAAK,KAAK,GAAG,KAAK,GAAGgD,SAAS;IACrDC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAEF,eAAetF,YAAY","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","GroupedItem","jsx","_jsx","GroupedSection","items","theme","children","map","item","index","icon","iconColor","title","subtitle","onPress","isFirst","isLast","length","showChevron","disabled","customContent","id"],"sourceRoot":"../../../../src","sources":["ui/components/GroupedSection.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,OAAOC,WAAW,MAAM,
|
|
1
|
+
{"version":3,"names":["React","View","GroupedItem","jsx","_jsx","GroupedSection","items","theme","children","map","item","index","icon","iconColor","title","subtitle","onPress","isFirst","isLast","length","showChevron","disabled","customContent","id"],"sourceRoot":"../../../../src","sources":["ui/components/GroupedSection.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,OAAOC,WAAW,MAAM,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAmBxC,MAAMC,cAA6C,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAM,CAAC,KAAK;EACxE,oBACIH,IAAA,CAACH,IAAI;IAAAO,QAAA,EACAF,KAAK,CAACG,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,kBACnBP,IAAA,CAACF,WAAW;MAERU,IAAI,EAAEF,IAAI,CAACE,IAAK;MAChBC,SAAS,EAAEH,IAAI,CAACG,SAAU;MAC1BC,KAAK,EAAEJ,IAAI,CAACI,KAAM;MAClBC,QAAQ,EAAEL,IAAI,CAACK,QAAS;MACxBR,KAAK,EAAEA,KAAM;MACbS,OAAO,EAAEN,IAAI,CAACM,OAAQ;MACtBC,OAAO,EAAEN,KAAK,KAAK,CAAE;MACrBO,MAAM,EAAEP,KAAK,KAAKL,KAAK,CAACa,MAAM,GAAG,CAAE;MACnCC,WAAW,EAAEV,IAAI,CAACU,WAAY;MAC9BC,QAAQ,EAAEX,IAAI,CAACW,QAAS;MACxBC,aAAa,EAAEZ,IAAI,CAACY;IAAc,GAX7BZ,IAAI,CAACa,EAYb,CACJ;EAAC,CACA,CAAC;AAEf,CAAC;AAED,eAAelB,cAAc","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Svg, { Path } from 'react-native-svg';
|
|
5
|
-
import { useThemeColors } from
|
|
5
|
+
import { useThemeColors } from '../styles/theme';
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
/**
|
|
8
8
|
* SVG logo component for Oxy
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Svg","Path","useThemeColors","jsx","_jsx","jsxs","_jsxs","OxyLogo","width","height","style","fillColor","secondaryFillColor","theme","themeColors","primaryColor","primary","innerFillColor","background","viewBox","children","d","fill"],"sourceRoot":"../../../../src","sources":["ui/components/OxyLogo.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAYC,IAAI,QAAQ,kBAAkB;AAEpD,SAASC,cAAc,QAAQ,
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","useThemeColors","jsx","_jsx","jsxs","_jsxs","OxyLogo","width","height","style","fillColor","secondaryFillColor","theme","themeColors","primaryColor","primary","innerFillColor","background","viewBox","children","d","fill"],"sourceRoot":"../../../../src","sources":["ui/components/OxyLogo.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAYC,IAAI,QAAQ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