refactor(settings): streamline privacy, notifications, help FAQs, and admin preview mode
- Comment out 'Share Anonymous Diagnostics' and 'Offline Content Caching' switches in Privacy & Data - Remove 'Notification Settings' option from Account Settings menu - Update Help & Support FAQs (corrected module unlock steps, clarified offline caching, and added screenshot/multi-device policies) - Align official support email to support@acupedia.in with cross-platform fallback - Remove redundant eye icon toggle from All Modules header; Clinical Preview Mode is now solely controlled via Settings
This commit is contained in:
parent
9e516a32f9
commit
b8473ad5a5
12
.env
12
.env
|
|
@ -17,11 +17,11 @@
|
|||
# old working .env file
|
||||
|
||||
# Production Dev
|
||||
EXPO_PUBLIC_API_URL=https://api.acupedia.in/api
|
||||
EXPO_PUBLIC_STOREFRONT_URL=https://acupedia.in/store
|
||||
EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true
|
||||
# EXPO_PUBLIC_API_URL=https://api.acupedia.in/api
|
||||
# EXPO_PUBLIC_STOREFRONT_URL=https://acupedia.in/store
|
||||
# EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true
|
||||
|
||||
# Local Dev
|
||||
# EXPO_PUBLIC_API_URL=http://localhost:8000/api
|
||||
# EXPO_PUBLIC_STOREFRONT_URL=http://localhost:3000
|
||||
# EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true
|
||||
EXPO_PUBLIC_API_URL=http://localhost:8000/api
|
||||
EXPO_PUBLIC_STOREFRONT_URL=http://localhost:3000
|
||||
EXPO_PUBLIC_CONTENT_PREVIEW_ENABLED=true
|
||||
|
|
@ -7,6 +7,7 @@ import {
|
|||
TouchableOpacity,
|
||||
Alert,
|
||||
Linking,
|
||||
Platform,
|
||||
} from "react-native";
|
||||
import { SafeAreaView } from "react-native-safe-area-context";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
|
|
@ -20,6 +21,8 @@ interface FAQ {
|
|||
answer: string;
|
||||
}
|
||||
|
||||
const SUPPORT_EMAIL = "support@acupedia.in";
|
||||
|
||||
const FAQS: FAQ[] = [
|
||||
{
|
||||
question: "What is Acupedia?",
|
||||
|
|
@ -29,22 +32,37 @@ const FAQS: FAQ[] = [
|
|||
{
|
||||
question: "How do I unlock additional clinical modules?",
|
||||
answer:
|
||||
"You can unlock full clinical libraries and specialized modules by visiting the Subscription tab or selecting any locked module to view tier plans.",
|
||||
"You can unlock full clinical libraries and specialized modules by selecting any locked module in the Library to view available tier plans, or by visiting the Acupedia Web Store.",
|
||||
},
|
||||
{
|
||||
question: "Can I use Acupedia without an internet connection?",
|
||||
answer:
|
||||
"Recently viewed points and clinical content remain temporarily cached on your device during your session. An active internet connection is recommended for full search, media zoom diagrams, and discovering new modules.",
|
||||
},
|
||||
{
|
||||
question: "Why can't I take screenshots or record the screen?",
|
||||
answer:
|
||||
"For clinical content protection and intellectual property security, screenshot capture and screen recording are restricted on mobile devices.",
|
||||
},
|
||||
{
|
||||
question: "Can I use my subscription on multiple devices?",
|
||||
answer:
|
||||
"Yes, you can log in to your Acupedia account across your devices. For security, your active device sessions are managed under your account profile.",
|
||||
},
|
||||
{
|
||||
question: "How do I change or reset my password?",
|
||||
answer:
|
||||
"If you are logged in, navigate to Settings > Change Password. If you are signed out, tap 'Forgot Password' on the login screen to verify your email via OTP.",
|
||||
},
|
||||
{
|
||||
question: "How do I edit my profile information?",
|
||||
answer:
|
||||
"Navigate to the Profile tab or Settings > Edit Profile. You can update your Full Name, Phone Number, and Country.",
|
||||
},
|
||||
{
|
||||
question: "Can I use Acupedia without an internet connection?",
|
||||
answer:
|
||||
"Yes. Once clinical modules and point definitions have been loaded, they remain cached on your device for offline reference in clinical settings.",
|
||||
},
|
||||
{
|
||||
question: "How do I report clinical inaccuracies or suggestions?",
|
||||
answer:
|
||||
"We take clinical accuracy seriously. Please reach out to our editorial and clinical review team directly using the Email Support button below.",
|
||||
"We take clinical accuracy seriously. Please reach out to our editorial and clinical review team directly using the Email Clinical Support button below.",
|
||||
},
|
||||
];
|
||||
|
||||
|
|
@ -52,11 +70,13 @@ export default function HelpSupportScreen() {
|
|||
const [expandedIndex, setExpandedIndex] = useState<number | null>(0);
|
||||
|
||||
const handleContact = () => {
|
||||
Linking.openURL("mailto:support@acupedia.com").catch(() => {
|
||||
Alert.alert(
|
||||
"Contact Support",
|
||||
"Please email our support desk at support@acupedia.com"
|
||||
);
|
||||
Linking.openURL(`mailto:${SUPPORT_EMAIL}`).catch(() => {
|
||||
const msg = `Please email our support desk at ${SUPPORT_EMAIL}`;
|
||||
if (Platform.OS === "web") {
|
||||
window.alert(msg);
|
||||
} else {
|
||||
Alert.alert("Contact Support", msg);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -126,7 +146,7 @@ export default function HelpSupportScreen() {
|
|||
<View style={styles.contactTextContainer}>
|
||||
<Text style={styles.contactLabel}>Email Clinical Support</Text>
|
||||
<Text style={styles.contactSubLabel}>
|
||||
Response typically within 24 hours (support@acupedia.com)
|
||||
Response typically within 24 hours ({SUPPORT_EMAIL})
|
||||
</Text>
|
||||
</View>
|
||||
<Ionicons
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ export default function PrivacySettingsScreen() {
|
|||
</Text>
|
||||
|
||||
<View style={styles.card}>
|
||||
<ProfileMenuItem
|
||||
{/* <ProfileMenuItem
|
||||
icon="analytics-outline"
|
||||
title="Share Anonymous Diagnostics"
|
||||
subtitle="Helps Acupedia improve performance & stability"
|
||||
|
|
@ -88,7 +88,7 @@ export default function PrivacySettingsScreen() {
|
|||
isSwitch
|
||||
switchValue={offlineCacheEnabled}
|
||||
onSwitchChange={setOfflineCacheEnabled}
|
||||
/>
|
||||
/> */}
|
||||
|
||||
<ProfileMenuItem
|
||||
icon="trash-outline"
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@ export const ACCOUNT_SETTINGS: SettingsItem[] = [
|
|||
icon: "lock-closed-outline" as keyof typeof Ionicons.glyphMap,
|
||||
route: "/profile/change-password",
|
||||
},
|
||||
{
|
||||
id: "notification-settings",
|
||||
title: "Notification Settings",
|
||||
subtitle: "Clinical updates & reminder alerts",
|
||||
icon: "notifications-outline" as keyof typeof Ionicons.glyphMap,
|
||||
route: "/settings/notifications",
|
||||
},
|
||||
// {
|
||||
// id: "notification-settings",
|
||||
// title: "Notification Settings",
|
||||
// subtitle: "Clinical updates & reminder alerts",
|
||||
// icon: "notifications-outline" as keyof typeof Ionicons.glyphMap,
|
||||
// route: "/settings/notifications",
|
||||
// },
|
||||
{
|
||||
id: "privacy-settings",
|
||||
title: "Privacy & Data",
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@ export default function ModulesIndexScreen() {
|
|||
</TouchableOpacity>
|
||||
<Text style={styles.headerTitle}>All Modules</Text>
|
||||
<View style={styles.headerActions}>
|
||||
{/* Eye icon preview button removed; preview mode is controlled exclusively via Settings
|
||||
{isPreviewAdmin ? (
|
||||
<TouchableOpacity
|
||||
onPress={() => setContentPreviewEnabled(!preview)}
|
||||
|
|
@ -171,7 +172,7 @@ export default function ModulesIndexScreen() {
|
|||
color={preview ? "#FFFFFF" : Colors.primaryDark}
|
||||
/>
|
||||
</TouchableOpacity>
|
||||
) : null}
|
||||
) : null} */}
|
||||
<TouchableOpacity
|
||||
onPress={() => router.push("/search")}
|
||||
style={styles.searchButton}
|
||||
|
|
|
|||
Loading…
Reference in New Issue