@umituz/react-native-settings 5.3.37 → 5.3.39
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/dist/account.d.ts +27 -0
- package/dist/application/ports/ISettingsRepository.d.ts +45 -0
- package/dist/domains/about/domain/entities/AppInfo.d.ts +76 -0
- package/dist/domains/about/domain/repositories/IAboutRepository.d.ts +19 -0
- package/dist/domains/about/index.d.ts +10 -0
- package/dist/domains/about/infrastructure/repositories/AboutRepository.d.ts +18 -0
- package/dist/domains/about/presentation/components/AboutContent.d.ts +14 -0
- package/dist/domains/about/presentation/components/AboutHeader.d.ts +21 -0
- package/dist/domains/about/presentation/components/AboutSection.d.ts +14 -0
- package/dist/domains/about/presentation/components/AboutSettingItem.d.ts +39 -0
- package/dist/domains/about/presentation/hooks/useAboutInfo.d.ts +2 -0
- package/dist/domains/about/presentation/hooks/useAboutInfo.types.d.ts +29 -0
- package/dist/domains/about/presentation/screens/AboutScreen.d.ts +21 -0
- package/dist/domains/about/presentation/screens/AboutScreenContent.d.ts +15 -0
- package/dist/domains/about/utils/AppInfoFactory.d.ts +9 -0
- package/dist/domains/appearance/data/colorPalettes.d.ts +25 -0
- package/dist/domains/appearance/hooks/useAppearance.d.ts +11 -0
- package/dist/domains/appearance/hooks/useAppearanceActions.d.ts +9 -0
- package/dist/domains/appearance/index.d.ts +9 -0
- package/dist/domains/appearance/presentation/components/AppearanceHeader.d.ts +18 -0
- package/dist/domains/appearance/presentation/components/AppearancePreview.d.ts +21 -0
- package/dist/domains/appearance/presentation/components/AppearanceSection.d.ts +16 -0
- package/dist/domains/appearance/presentation/components/ColorPicker.d.ts +15 -0
- package/dist/domains/appearance/presentation/components/CustomColorsSection.d.ts +25 -0
- package/dist/domains/appearance/presentation/components/ThemeModeSection.d.ts +24 -0
- package/dist/domains/appearance/presentation/components/ThemeOption.d.ts +20 -0
- package/dist/domains/appearance/presentation/components/index.d.ts +6 -0
- package/dist/domains/appearance/presentation/screens/AppearanceScreen.d.ts +16 -0
- package/dist/domains/appearance/types/index.d.ts +48 -0
- package/dist/domains/cloud-sync/index.d.ts +6 -0
- package/dist/domains/cloud-sync/presentation/components/CloudSyncSetting.d.ts +14 -0
- package/dist/domains/dev/index.d.ts +14 -0
- package/dist/domains/dev/presentation/components/DevSettingsSection.d.ts +34 -0
- package/dist/domains/dev/presentation/components/EnvViewerSetting.d.ts +20 -0
- package/dist/domains/dev/presentation/components/StorageClearSetting.d.ts +13 -0
- package/dist/domains/dev/presentation/screens/EnvViewerScreen.d.ts +12 -0
- package/dist/domains/dev/types.d.ts +22 -0
- package/dist/domains/disclaimer/index.d.ts +17 -0
- package/dist/domains/disclaimer/presentation/components/DisclaimerCard.d.ts +14 -0
- package/dist/domains/disclaimer/presentation/components/DisclaimerModal.d.ts +12 -0
- package/dist/domains/disclaimer/presentation/components/DisclaimerSetting.d.ts +34 -0
- package/dist/domains/disclaimer/presentation/screens/DisclaimerScreen.d.ts +27 -0
- package/dist/domains/faqs/domain/entities/FAQEntity.d.ts +21 -0
- package/dist/domains/faqs/domain/services/FAQSearchService.d.ts +12 -0
- package/dist/domains/faqs/index.d.ts +8 -0
- package/dist/domains/faqs/presentation/components/FAQCategory.d.ts +21 -0
- package/dist/domains/faqs/presentation/components/FAQEmptyState.d.ts +20 -0
- package/dist/domains/faqs/presentation/components/FAQItem.d.ts +24 -0
- package/dist/domains/faqs/presentation/components/FAQSearchBar.d.ts +18 -0
- package/dist/domains/faqs/presentation/components/index.d.ts +11 -0
- package/dist/domains/faqs/presentation/hooks/index.d.ts +5 -0
- package/dist/domains/faqs/presentation/hooks/useFAQExpansion.d.ts +12 -0
- package/dist/domains/faqs/presentation/hooks/useFAQSearch.d.ts +12 -0
- package/dist/domains/faqs/presentation/screens/FAQScreen.d.ts +33 -0
- package/dist/domains/feedback/domain/entities/FeedbackEntity.d.ts +25 -0
- package/dist/domains/feedback/domain/repositories/IFeedbackRepository.d.ts +20 -0
- package/dist/domains/feedback/index.d.ts +10 -0
- package/dist/domains/feedback/presentation/components/FeedbackForm.d.ts +7 -0
- package/dist/domains/feedback/presentation/components/FeedbackForm.styles.d.ts +62 -0
- package/dist/domains/feedback/presentation/components/FeedbackFormProps.d.ts +26 -0
- package/dist/domains/feedback/presentation/components/FeedbackModal.d.ts +23 -0
- package/dist/domains/feedback/presentation/components/SupportSection.d.ts +62 -0
- package/dist/domains/feedback/presentation/hooks/useFeedbackForm.d.ts +19 -0
- package/dist/domains/feedback/presentation/screens/FeatureRequestScreen.d.ts +2 -0
- package/dist/domains/gamification/components/AchievementCard.d.ts +23 -0
- package/dist/domains/gamification/components/AchievementItem.d.ts +7 -0
- package/dist/domains/gamification/components/AchievementToast.d.ts +21 -0
- package/dist/domains/gamification/components/GamificationScreen/AchievementsList.d.ts +17 -0
- package/dist/domains/gamification/components/GamificationScreen/GamificationScreen.d.ts +11 -0
- package/dist/domains/gamification/components/GamificationScreen/GamificationScreenWithConfig.d.ts +11 -0
- package/dist/domains/gamification/components/GamificationScreen/StatsGrid.d.ts +16 -0
- package/dist/domains/gamification/components/GamificationScreen/index.d.ts +17 -0
- package/dist/domains/gamification/components/GamificationScreen/styles.d.ts +40 -0
- package/dist/domains/gamification/components/GamificationScreen/types.d.ts +42 -0
- package/dist/domains/gamification/components/LevelProgress.d.ts +27 -0
- package/dist/domains/gamification/components/PointsBadge.d.ts +16 -0
- package/dist/domains/gamification/components/StatsCard.d.ts +20 -0
- package/dist/domains/gamification/components/StreakDisplay.d.ts +21 -0
- package/dist/domains/gamification/components/index.d.ts +14 -0
- package/dist/domains/gamification/components/styles/achievementItemStyles.d.ts +71 -0
- package/dist/domains/gamification/components/types/AchievementItemProps.d.ts +22 -0
- package/dist/domains/gamification/hooks/useGamification.d.ts +22 -0
- package/dist/domains/gamification/index.d.ts +13 -0
- package/dist/domains/gamification/store/gamificationStore.d.ts +6 -0
- package/dist/domains/gamification/types/index.d.ts +99 -0
- package/dist/domains/gamification/utils/calculations.d.ts +10 -0
- package/dist/domains/legal/domain/entities/LegalConfig.d.ts +28 -0
- package/dist/domains/legal/domain/services/ContentValidationService.d.ts +19 -0
- package/dist/domains/legal/domain/services/StyleCacheService.d.ts +38 -0
- package/dist/domains/legal/domain/services/UrlHandlerService.d.ts +32 -0
- package/dist/domains/legal/index.d.ts +8 -0
- package/dist/domains/legal/presentation/components/LegalDocumentsList.d.ts +21 -0
- package/dist/domains/legal/presentation/components/LegalItem.d.ts +35 -0
- package/dist/domains/legal/presentation/components/LegalScreenHeader.d.ts +12 -0
- package/dist/domains/legal/presentation/components/LegalSection.d.ts +14 -0
- package/dist/domains/legal/presentation/screens/LegalContentScreen.d.ts +19 -0
- package/dist/domains/legal/presentation/screens/LegalScreen.d.ts +24 -0
- package/dist/domains/legal/presentation/screens/PrivacyPolicyScreen.d.ts +15 -0
- package/dist/domains/legal/presentation/screens/TermsOfServiceScreen.d.ts +15 -0
- package/dist/domains/localization/domain/repositories/ILocalizationRepository.d.ts +16 -0
- package/dist/domains/localization/index.d.ts +16 -0
- package/dist/domains/localization/infrastructure/components/LanguageSwitcher.d.ts +19 -0
- package/dist/domains/localization/infrastructure/components/LanguageSwitcher.styles.d.ts +37 -0
- package/dist/domains/localization/infrastructure/components/useLanguageNavigation.d.ts +4 -0
- package/dist/domains/localization/infrastructure/components/useLanguageSwitcher.d.ts +13 -0
- package/dist/domains/localization/infrastructure/config/DeviceLocale.d.ts +10 -0
- package/dist/domains/localization/infrastructure/config/I18nInitializer.d.ts +14 -0
- package/dist/domains/localization/infrastructure/config/LanguageQuery.d.ts +10 -0
- package/dist/domains/localization/infrastructure/config/LocaleMapping.d.ts +5 -0
- package/dist/domains/localization/infrastructure/config/NamespaceResolver.d.ts +11 -0
- package/dist/domains/localization/infrastructure/config/ResourceBuilder.d.ts +10 -0
- package/dist/domains/localization/infrastructure/config/TranslationLoader.d.ts +16 -0
- package/dist/domains/localization/infrastructure/config/constants/defaultLanguages.d.ts +6 -0
- package/dist/domains/localization/infrastructure/config/i18n.d.ts +7 -0
- package/dist/domains/localization/infrastructure/config/languages.d.ts +7 -0
- package/dist/domains/localization/infrastructure/hooks/useLanguageSelection.d.ts +11 -0
- package/dist/domains/localization/infrastructure/hooks/useLocalization.d.ts +12 -0
- package/dist/domains/localization/infrastructure/hooks/useTranslation.d.ts +23 -0
- package/dist/domains/localization/infrastructure/repository/LanguageRepository.d.ts +18 -0
- package/dist/domains/localization/infrastructure/storage/LanguageInitializer.d.ts +20 -0
- package/dist/domains/localization/infrastructure/storage/LanguageSwitcher.d.ts +16 -0
- package/dist/domains/localization/infrastructure/storage/LocalizationStore.d.ts +6 -0
- package/dist/domains/localization/infrastructure/storage/localizationStoreUtils.d.ts +44 -0
- package/dist/domains/localization/infrastructure/storage/types/Language.d.ts +12 -0
- package/dist/domains/localization/infrastructure/storage/types/LocalizationState.d.ts +22 -0
- package/dist/domains/localization/presentation/components/LanguageItem.d.ts +23 -0
- package/dist/domains/localization/presentation/components/LanguageItem.styles.d.ts +30 -0
- package/dist/domains/localization/presentation/components/LanguageSection.d.ts +15 -0
- package/dist/domains/localization/presentation/providers/LocalizationManager.d.ts +12 -0
- package/dist/domains/localization/presentation/screens/LanguageSelectionScreen.d.ts +7 -0
- package/dist/domains/localization/presentation/screens/LanguageSelectionScreen.styles.d.ts +7 -0
- package/dist/domains/localization/presentation/screens/LanguageSelectionScreen.types.d.ts +26 -0
- package/dist/domains/notifications/index.d.ts +46 -0
- package/dist/domains/notifications/infrastructure/config/notificationsConfig.d.ts +19 -0
- package/dist/domains/notifications/infrastructure/hooks/useNotificationSettings.d.ts +8 -0
- package/dist/domains/notifications/infrastructure/services/NotificationBadgeManager.d.ts +4 -0
- package/dist/domains/notifications/infrastructure/services/NotificationManager.d.ts +23 -0
- package/dist/domains/notifications/infrastructure/services/NotificationPermissions.d.ts +5 -0
- package/dist/domains/notifications/infrastructure/services/NotificationScheduler.d.ts +7 -0
- package/dist/domains/notifications/infrastructure/services/NotificationService.d.ts +31 -0
- package/dist/domains/notifications/infrastructure/services/types.d.ts +147 -0
- package/dist/domains/notifications/infrastructure/storage/UnifiedNotificationStore.d.ts +42 -0
- package/dist/domains/notifications/infrastructure/utils/idGenerator.d.ts +6 -0
- package/dist/domains/notifications/infrastructure/utils/triggerBuilder.d.ts +6 -0
- package/dist/domains/notifications/presentation/components/NotificationsSection.d.ts +16 -0
- package/dist/domains/notifications/presentation/components/RemindersNavRow.d.ts +12 -0
- package/dist/domains/notifications/presentation/components/RemindersNavRow.styles.d.ts +34 -0
- package/dist/domains/notifications/presentation/components/SettingRow.d.ts +14 -0
- package/dist/domains/notifications/presentation/hooks/useNotificationSettingsUI.d.ts +13 -0
- package/dist/domains/notifications/presentation/hooks/useTimePicker.d.ts +21 -0
- package/dist/domains/notifications/presentation/screens/NotificationSettingsScreen.d.ts +12 -0
- package/dist/domains/notifications/presentation/screens/NotificationSettingsScreen.styles.d.ts +26 -0
- package/dist/domains/notifications/presentation/screens/NotificationsScreen.d.ts +18 -0
- package/dist/domains/notifications/quietHours/infrastructure/hooks/useQuietHoursActions.d.ts +13 -0
- package/dist/domains/notifications/quietHours/presentation/components/QuietHoursCard.d.ts +14 -0
- package/dist/domains/notifications/reminders/infrastructure/config/reminderPresets.d.ts +24 -0
- package/dist/domains/notifications/reminders/infrastructure/hooks/useReminderActions.d.ts +11 -0
- package/dist/domains/notifications/reminders/presentation/components/FormButton.d.ts +12 -0
- package/dist/domains/notifications/reminders/presentation/components/FrequencySelector.d.ts +14 -0
- package/dist/domains/notifications/reminders/presentation/components/ReminderForm.constants.d.ts +28 -0
- package/dist/domains/notifications/reminders/presentation/components/ReminderForm.d.ts +7 -0
- package/dist/domains/notifications/reminders/presentation/components/ReminderForm.styles.d.ts +31 -0
- package/dist/domains/notifications/reminders/presentation/components/ReminderItem.d.ts +20 -0
- package/dist/domains/notifications/reminders/presentation/components/TimePresetSelector.d.ts +20 -0
- package/dist/domains/notifications/reminders/presentation/components/WeekdaySelector.d.ts +11 -0
- package/dist/domains/notifications/reminders/presentation/screens/ReminderListScreen.d.ts +13 -0
- package/dist/domains/rating/application/services/RatingService.d.ts +33 -0
- package/dist/domains/rating/domain/entities/Rating.d.ts +15 -0
- package/dist/domains/rating/domain/entities/RatingConfig.d.ts +120 -0
- package/dist/domains/rating/index.d.ts +12 -0
- package/dist/domains/rating/infrastructure/storage/RatingStorage.d.ts +50 -0
- package/dist/domains/rating/presentation/components/RatingPromptModal.d.ts +16 -0
- package/dist/domains/rating/presentation/components/StarRating.d.ts +13 -0
- package/dist/domains/rating/presentation/hooks/useAppRating.d.ts +9 -0
- package/dist/domains/video-tutorials/index.d.ts +18 -0
- package/dist/domains/video-tutorials/presentation/components/VideoTutorialCard.d.ts +13 -0
- package/dist/domains/video-tutorials/presentation/components/VideoTutorialSection.d.ts +25 -0
- package/dist/domains/video-tutorials/presentation/screens/VideoTutorialsScreen.d.ts +25 -0
- package/dist/domains/video-tutorials/types/index.d.ts +26 -0
- package/dist/index.d.ts +41 -0
- package/dist/infrastructure/repositories/SettingsRepository.d.ts +12 -0
- package/dist/infrastructure/services/SettingsService.d.ts +14 -0
- package/dist/infrastructure/utils/configFactory.d.ts +39 -0
- package/dist/infrastructure/utils/constants/textLimits.d.ts +16 -0
- package/dist/infrastructure/utils/sanitizers.d.ts +13 -0
- package/dist/infrastructure/utils/validation/core.d.ts +8 -0
- package/dist/infrastructure/utils/validation/formValidators.d.ts +26 -0
- package/dist/infrastructure/utils/validation/index.d.ts +5 -0
- package/dist/infrastructure/utils/validators.d.ts +21 -0
- package/dist/presentation/components/SettingsFooter.d.ts +7 -0
- package/dist/presentation/components/SettingsItemCard.d.ts +22 -0
- package/dist/presentation/components/SettingsNavigationItem.d.ts +67 -0
- package/dist/presentation/components/SettingsSection.d.ts +6 -0
- package/dist/presentation/components/settings/SettingsItemCardContent.d.ts +12 -0
- package/dist/presentation/components/settings/SettingsItemCardRightElement.d.ts +11 -0
- package/dist/presentation/components/settings/SettingsItemCardSection.d.ts +5 -0
- package/dist/presentation/hooks/mutations/useSettingsMutations.d.ts +20 -0
- package/dist/presentation/hooks/queries/useSettingsQuery.d.ts +7 -0
- package/dist/presentation/hooks/useSettings.d.ts +26 -0
- package/dist/presentation/hooks/useSettingsScreenConfig.d.ts +41 -0
- package/dist/presentation/navigation/SettingsStackNavigator.d.ts +9 -0
- package/dist/presentation/navigation/hooks/index.d.ts +5 -0
- package/dist/presentation/navigation/hooks/useNavigationHandlers.d.ts +14 -0
- package/dist/presentation/navigation/hooks/useSettingsNavigation.d.ts +22 -0
- package/dist/presentation/navigation/hooks/useSettingsScreens.d.ts +12 -0
- package/dist/presentation/navigation/types.d.ts +135 -0
- package/dist/presentation/navigation/utils/index.d.ts +5 -0
- package/dist/presentation/navigation/utils/navigationHelpers.d.ts +13 -0
- package/dist/presentation/navigation/utils/navigationTranslations.d.ts +35 -0
- package/dist/presentation/screens/AppearanceScreen.d.ts +6 -0
- package/dist/presentation/screens/SettingsScreen.d.ts +49 -0
- package/dist/presentation/screens/components/SettingsContent.d.ts +3 -0
- package/dist/presentation/screens/components/SettingsHeader.d.ts +8 -0
- package/dist/presentation/screens/components/sections/CustomSettingsList.d.ts +7 -0
- package/dist/presentation/screens/components/sections/FeatureSettingsSection.d.ts +13 -0
- package/dist/presentation/screens/components/sections/IdentitySettingsSection.d.ts +12 -0
- package/dist/presentation/screens/components/sections/ProfileSectionLoader.d.ts +17 -0
- package/dist/presentation/screens/components/sections/SupportSettingsSection.d.ts +13 -0
- package/dist/presentation/screens/components/types/SettingsContentProps.d.ts +47 -0
- package/dist/presentation/screens/components/utils/featureChecker.d.ts +10 -0
- package/dist/presentation/screens/hooks/useFeatureDetection.d.ts +28 -0
- package/dist/presentation/screens/hooks/useSettingsScreen.d.ts +36 -0
- package/dist/presentation/screens/types/BaseTypes.d.ts +11 -0
- package/dist/presentation/screens/types/ContentConfig.d.ts +76 -0
- package/dist/presentation/screens/types/CustomSection.d.ts +38 -0
- package/dist/presentation/screens/types/SettingsConfig.d.ts +122 -0
- package/dist/presentation/screens/types/SettingsTranslations.d.ts +159 -0
- package/dist/presentation/screens/types/UserFeatureConfig.d.ts +178 -0
- package/dist/presentation/screens/types/index.d.ts +11 -0
- package/dist/presentation/screens/utils/normalizeConfig.d.ts +68 -0
- package/dist/presentation/utils/accountConfigUtils.d.ts +34 -0
- package/dist/presentation/utils/config-creators/base-configs.d.ts +26 -0
- package/dist/presentation/utils/config-creators/feature-configs.d.ts +17 -0
- package/dist/presentation/utils/config-creators/index.d.ts +7 -0
- package/dist/presentation/utils/config-creators/support-configs.d.ts +19 -0
- package/dist/presentation/utils/config-creators/types.d.ts +20 -0
- package/dist/presentation/utils/faqTranslator.d.ts +3 -0
- package/dist/presentation/utils/index.d.ts +8 -0
- package/dist/presentation/utils/screenFactory.d.ts +26 -0
- package/dist/presentation/utils/settingsConfigFactory.d.ts +33 -0
- package/dist/presentation/utils/userProfileUtils.d.ts +20 -0
- package/dist/utils/appUtils.d.ts +4 -0
- package/dist/utils/devUtils.d.ts +31 -0
- package/dist/utils/errorUtils.d.ts +22 -0
- package/dist/utils/hooks/useAsyncStateUpdate.d.ts +35 -0
- package/dist/utils/hooks/useMountSafety.d.ts +1 -0
- package/package.json +1 -1
- package/src/domains/feedback/presentation/components/FeedbackForm.styles.ts +26 -12
- package/src/domains/feedback/presentation/components/FeedbackForm.tsx +1 -1
- package/src/domains/feedback/presentation/screens/FeatureRequestScreen.tsx +450 -0
- package/src/presentation/navigation/hooks/useSettingsScreens.ts +29 -9
- package/src/presentation/navigation/types.ts +1 -0
- package/src/presentation/screens/components/sections/SupportSettingsSection.tsx +1 -1
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
import React, { useState, useMemo } from "react";
|
|
2
|
+
import {
|
|
3
|
+
View,
|
|
4
|
+
StyleSheet,
|
|
5
|
+
TouchableOpacity,
|
|
6
|
+
ScrollView,
|
|
7
|
+
FlatList,
|
|
8
|
+
Image,
|
|
9
|
+
} from "react-native";
|
|
10
|
+
import {
|
|
11
|
+
AtomicText,
|
|
12
|
+
AtomicIcon,
|
|
13
|
+
AtomicButton,
|
|
14
|
+
} from "@umituz/react-native-design-system/atoms";
|
|
15
|
+
import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
|
|
16
|
+
import { ScreenLayout } from "@umituz/react-native-design-system/layouts";
|
|
17
|
+
import { FeedbackModal } from "../components/FeedbackModal";
|
|
18
|
+
import type { FeedbackType, FeedbackRating } from "../../domain/entities/FeedbackEntity";
|
|
19
|
+
|
|
20
|
+
interface FeatureRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
votes: number;
|
|
25
|
+
status: 'planned' | 'review' | 'completed';
|
|
26
|
+
comments: number;
|
|
27
|
+
userAvatars: string[];
|
|
28
|
+
voted: 'up' | 'down' | null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const MOCK_REQUESTS: FeatureRequest[] = [
|
|
32
|
+
{
|
|
33
|
+
id: "1",
|
|
34
|
+
title: "AI Music Generation",
|
|
35
|
+
description: "Add the ability to generate background tracks for videos using simple text prompts or mood selectors.",
|
|
36
|
+
votes: 1250,
|
|
37
|
+
status: 'planned',
|
|
38
|
+
comments: 24,
|
|
39
|
+
userAvatars: ["https://i.pravatar.cc/100?u=1", "https://i.pravatar.cc/100?u=2"],
|
|
40
|
+
voted: null,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "2",
|
|
44
|
+
title: "Couple Video Templates",
|
|
45
|
+
description: "Specific cinematic transition templates designed for couples' vlogs and anniversary montages.",
|
|
46
|
+
votes: 842,
|
|
47
|
+
status: 'review',
|
|
48
|
+
comments: 8,
|
|
49
|
+
userAvatars: ["https://i.pravatar.cc/100?u=3"],
|
|
50
|
+
voted: null,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "3",
|
|
54
|
+
title: "4K Export Support",
|
|
55
|
+
description: "Allow users to export generated AI videos in high-quality 4K resolution.",
|
|
56
|
+
votes: 2100,
|
|
57
|
+
status: 'completed',
|
|
58
|
+
comments: 42,
|
|
59
|
+
userAvatars: ["https://i.pravatar.cc/100?u=4", "https://i.pravatar.cc/100?u=5"],
|
|
60
|
+
voted: null,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "4",
|
|
64
|
+
title: "Dark Mode Editor",
|
|
65
|
+
description: "Make the entire editing interface dark for better focus during late-night creative sessions.",
|
|
66
|
+
votes: 156,
|
|
67
|
+
status: 'planned',
|
|
68
|
+
comments: 5,
|
|
69
|
+
userAvatars: ["https://i.pravatar.cc/100?u=6"],
|
|
70
|
+
voted: null,
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
export const FeatureRequestScreen: React.FC<any> = ({ config, texts }) => {
|
|
75
|
+
const tokens = useAppDesignTokens();
|
|
76
|
+
const [requests, setRequests] = useState(MOCK_REQUESTS);
|
|
77
|
+
const [activeTab, setActiveTab] = useState<'all' | 'my' | 'roadmap'>('all');
|
|
78
|
+
const [isModalVisible, setIsModalVisible] = useState(false);
|
|
79
|
+
|
|
80
|
+
// Use passed translations if available
|
|
81
|
+
const t = config?.translations || {};
|
|
82
|
+
const screenTitle = t.screen_title || "Feedback & Features";
|
|
83
|
+
const trendingTitle = t.trending || "Trending Requests";
|
|
84
|
+
const bannerTitle = t.banner?.title || "Community Active";
|
|
85
|
+
const bannerSub = t.banner?.subtitle || "1.2k users voting right now";
|
|
86
|
+
const newIdeaLabel = t.new_idea || "NEW IDEA?";
|
|
87
|
+
|
|
88
|
+
const tabLabels = {
|
|
89
|
+
all: t.tabs?.all || "All Requests",
|
|
90
|
+
my: t.tabs?.my || "My Feedback",
|
|
91
|
+
roadmap: t.tabs?.roadmap || "Roadmap",
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const statusLabels = {
|
|
95
|
+
planned: t.status?.planned || "Planned",
|
|
96
|
+
review: t.status?.review || "Under Review",
|
|
97
|
+
completed: t.status?.completed || "Completed",
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const handleVote = (id: string, type: 'up' | 'down') => {
|
|
101
|
+
setRequests(prev => prev.map(req => {
|
|
102
|
+
if (req.id === id) {
|
|
103
|
+
// Simplified voting logic for mock
|
|
104
|
+
let newVotes = req.votes;
|
|
105
|
+
if (req.voted === type) {
|
|
106
|
+
newVotes -= type === 'up' ? 1 : -1;
|
|
107
|
+
return { ...req, votes: newVotes, voted: null };
|
|
108
|
+
} else {
|
|
109
|
+
if (req.voted !== null) {
|
|
110
|
+
newVotes += type === 'up' ? 2 : -2;
|
|
111
|
+
} else {
|
|
112
|
+
newVotes += type === 'up' ? 1 : -1;
|
|
113
|
+
}
|
|
114
|
+
return { ...req, votes: newVotes, voted: type };
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return req;
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const getStatusColor = (status: FeatureRequest['status']) => {
|
|
122
|
+
switch (status) {
|
|
123
|
+
case 'planned': return '#3b82f6';
|
|
124
|
+
case 'review': return '#f59e0b';
|
|
125
|
+
case 'completed': return '#10b981';
|
|
126
|
+
default: return tokens.colors.textSecondary;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const renderRequestItem = ({ item }: { item: FeatureRequest }) => (
|
|
131
|
+
<View style={[styles.card, { backgroundColor: tokens.colors.surfaceSecondary, borderColor: tokens.colors.borderLight }]}>
|
|
132
|
+
<View style={styles.voteColumn}>
|
|
133
|
+
<TouchableOpacity onPress={() => handleVote(item.id, 'up')}>
|
|
134
|
+
<AtomicIcon
|
|
135
|
+
name="chevron-up"
|
|
136
|
+
size="md"
|
|
137
|
+
color={item.voted === 'up' ? "primary" : "textSecondary" as any}
|
|
138
|
+
/>
|
|
139
|
+
</TouchableOpacity>
|
|
140
|
+
<AtomicText style={[styles.voteCount, { color: item.voted === 'up' ? tokens.colors.primary : tokens.colors.textPrimary }]}>
|
|
141
|
+
{item.votes}
|
|
142
|
+
</AtomicText>
|
|
143
|
+
<TouchableOpacity onPress={() => handleVote(item.id, 'down')}>
|
|
144
|
+
<AtomicIcon
|
|
145
|
+
name="chevron-down"
|
|
146
|
+
size="md"
|
|
147
|
+
color={item.voted === 'down' ? "primary" : "textSecondary" as any}
|
|
148
|
+
/>
|
|
149
|
+
</TouchableOpacity>
|
|
150
|
+
</View>
|
|
151
|
+
|
|
152
|
+
<View style={styles.cardContent}>
|
|
153
|
+
<View style={styles.cardHeader}>
|
|
154
|
+
<AtomicText style={styles.cardTitle}>{item.title}</AtomicText>
|
|
155
|
+
<View style={[styles.statusBadge, { backgroundColor: getStatusColor(item.status) + '20', borderColor: getStatusColor(item.status) + '40' }]}>
|
|
156
|
+
<AtomicText style={[styles.statusText, { color: getStatusColor(item.status) }]}>
|
|
157
|
+
{(statusLabels[item.status] || item.status).toUpperCase()}
|
|
158
|
+
</AtomicText>
|
|
159
|
+
</View>
|
|
160
|
+
</View>
|
|
161
|
+
|
|
162
|
+
<AtomicText style={[styles.cardDescription, { color: tokens.colors.textSecondary }]}>
|
|
163
|
+
{item.description}
|
|
164
|
+
</AtomicText>
|
|
165
|
+
|
|
166
|
+
<View style={styles.cardFooter}>
|
|
167
|
+
<View style={styles.avatarGroup}>
|
|
168
|
+
{item.userAvatars.map((url, i) => (
|
|
169
|
+
<Image key={i} source={{ uri: url }} style={[styles.avatar, { borderColor: tokens.colors.surfaceSecondary }]} />
|
|
170
|
+
))}
|
|
171
|
+
{item.comments > 5 && (
|
|
172
|
+
<View style={[styles.avatarMore, { backgroundColor: tokens.colors.surfaceVariant }]}>
|
|
173
|
+
<AtomicText style={styles.avatarMoreText}>+{item.comments}</AtomicText>
|
|
174
|
+
</View>
|
|
175
|
+
)}
|
|
176
|
+
</View>
|
|
177
|
+
<AtomicText style={[styles.commentCount, { color: tokens.colors.textTertiary }]}>
|
|
178
|
+
{item.comments} {t.comment_count?.replace('{{count}}', '') || 'comments'}
|
|
179
|
+
</AtomicText>
|
|
180
|
+
</View>
|
|
181
|
+
</View>
|
|
182
|
+
</View>
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
const header = (
|
|
186
|
+
<View style={styles.header}>
|
|
187
|
+
<AtomicText style={styles.headerTitle}>{screenTitle}</AtomicText>
|
|
188
|
+
<TouchableOpacity
|
|
189
|
+
style={[styles.addButton, { backgroundColor: tokens.colors.primary }]}
|
|
190
|
+
onPress={() => setIsModalVisible(true)}
|
|
191
|
+
>
|
|
192
|
+
<AtomicIcon name="plus" size="sm" color="onPrimary" />
|
|
193
|
+
</TouchableOpacity>
|
|
194
|
+
</View>
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
return (
|
|
198
|
+
<ScreenLayout header={header} edges={['top', 'bottom']}>
|
|
199
|
+
<View style={styles.tabsContainer}>
|
|
200
|
+
{(['all', 'my', 'roadmap'] as const).map((tab) => (
|
|
201
|
+
<TouchableOpacity
|
|
202
|
+
key={tab}
|
|
203
|
+
onPress={() => setActiveTab(tab)}
|
|
204
|
+
style={[styles.tab, activeTab === tab && { borderBottomColor: tokens.colors.primary }]}
|
|
205
|
+
>
|
|
206
|
+
<AtomicText style={[styles.tabLabel, activeTab === tab && { color: tokens.colors.primary, fontWeight: '700' }]}>
|
|
207
|
+
{tabLabels[tab]}
|
|
208
|
+
</AtomicText>
|
|
209
|
+
</TouchableOpacity>
|
|
210
|
+
))}
|
|
211
|
+
</View>
|
|
212
|
+
|
|
213
|
+
<ScrollView style={styles.container} showsVerticalScrollIndicator={false}>
|
|
214
|
+
<View style={[styles.banner, { backgroundColor: tokens.colors.primary + '10', borderColor: tokens.colors.primary + '20' }]}>
|
|
215
|
+
<View style={styles.bannerIconContainer}>
|
|
216
|
+
<AtomicIcon name="users" size="lg" color="primary" />
|
|
217
|
+
<View style={styles.pulseDot} />
|
|
218
|
+
</View>
|
|
219
|
+
<View>
|
|
220
|
+
<AtomicText style={styles.bannerTitle}>{bannerTitle}</AtomicText>
|
|
221
|
+
<AtomicText style={[styles.bannerSub, { color: tokens.colors.textSecondary }]}>
|
|
222
|
+
{bannerSub}
|
|
223
|
+
</AtomicText>
|
|
224
|
+
</View>
|
|
225
|
+
</View>
|
|
226
|
+
|
|
227
|
+
<AtomicText style={styles.sectionTitle}>{trendingTitle}</AtomicText>
|
|
228
|
+
|
|
229
|
+
<FlatList
|
|
230
|
+
data={requests}
|
|
231
|
+
renderItem={renderRequestItem}
|
|
232
|
+
keyExtractor={item => item.id}
|
|
233
|
+
scrollEnabled={false}
|
|
234
|
+
contentContainerStyle={styles.listContent}
|
|
235
|
+
/>
|
|
236
|
+
</ScrollView>
|
|
237
|
+
|
|
238
|
+
{isModalVisible && (
|
|
239
|
+
<FeedbackModal
|
|
240
|
+
visible={isModalVisible}
|
|
241
|
+
onClose={() => setIsModalVisible(false)}
|
|
242
|
+
title={texts.title}
|
|
243
|
+
onSubmit={async (data: any) => {
|
|
244
|
+
console.log("Submitted:", data);
|
|
245
|
+
setIsModalVisible(false);
|
|
246
|
+
// Add to mock list for "live" feel
|
|
247
|
+
const newReq: FeatureRequest = {
|
|
248
|
+
id: Date.now().toString(),
|
|
249
|
+
title: data.title || "New Request",
|
|
250
|
+
description: data.description,
|
|
251
|
+
votes: 1,
|
|
252
|
+
status: 'review',
|
|
253
|
+
comments: 0,
|
|
254
|
+
userAvatars: ["https://i.pravatar.cc/100?u=me"],
|
|
255
|
+
voted: 'up',
|
|
256
|
+
};
|
|
257
|
+
setRequests(prev => [newReq, ...prev]);
|
|
258
|
+
}}
|
|
259
|
+
texts={texts}
|
|
260
|
+
initialType="feature_request"
|
|
261
|
+
/>
|
|
262
|
+
)}
|
|
263
|
+
|
|
264
|
+
<View style={styles.floatingHint}>
|
|
265
|
+
<View style={[styles.hintBadge, { backgroundColor: tokens.colors.primary }]}>
|
|
266
|
+
<AtomicText style={styles.hintText}>{newIdeaLabel}</AtomicText>
|
|
267
|
+
</View>
|
|
268
|
+
</View>
|
|
269
|
+
</ScreenLayout>
|
|
270
|
+
);
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
const styles = StyleSheet.create({
|
|
274
|
+
container: {
|
|
275
|
+
padding: 16,
|
|
276
|
+
},
|
|
277
|
+
header: {
|
|
278
|
+
flexDirection: 'row',
|
|
279
|
+
alignItems: 'center',
|
|
280
|
+
justifyContent: 'space-between',
|
|
281
|
+
paddingHorizontal: 16,
|
|
282
|
+
paddingVertical: 12,
|
|
283
|
+
},
|
|
284
|
+
headerTitle: {
|
|
285
|
+
fontSize: 20,
|
|
286
|
+
fontWeight: '800',
|
|
287
|
+
},
|
|
288
|
+
addButton: {
|
|
289
|
+
width: 36,
|
|
290
|
+
height: 36,
|
|
291
|
+
borderRadius: 12,
|
|
292
|
+
alignItems: 'center',
|
|
293
|
+
justifyContent: 'center',
|
|
294
|
+
},
|
|
295
|
+
tabsContainer: {
|
|
296
|
+
flexDirection: 'row',
|
|
297
|
+
paddingHorizontal: 16,
|
|
298
|
+
borderBottomWidth: 1,
|
|
299
|
+
borderBottomColor: 'rgba(255,255,255,0.05)',
|
|
300
|
+
},
|
|
301
|
+
tab: {
|
|
302
|
+
paddingVertical: 12,
|
|
303
|
+
paddingHorizontal: 16,
|
|
304
|
+
borderBottomWidth: 2,
|
|
305
|
+
borderBottomColor: 'transparent',
|
|
306
|
+
},
|
|
307
|
+
tabLabel: {
|
|
308
|
+
fontSize: 14,
|
|
309
|
+
fontWeight: '600',
|
|
310
|
+
color: 'rgba(255,255,255,0.5)',
|
|
311
|
+
},
|
|
312
|
+
banner: {
|
|
313
|
+
flexDirection: 'row',
|
|
314
|
+
alignItems: 'center',
|
|
315
|
+
padding: 16,
|
|
316
|
+
borderRadius: 16,
|
|
317
|
+
borderWidth: 1,
|
|
318
|
+
gap: 12,
|
|
319
|
+
marginBottom: 20,
|
|
320
|
+
},
|
|
321
|
+
bannerIconContainer: {
|
|
322
|
+
position: 'relative',
|
|
323
|
+
},
|
|
324
|
+
pulseDot: {
|
|
325
|
+
position: 'absolute',
|
|
326
|
+
top: 0,
|
|
327
|
+
right: 0,
|
|
328
|
+
width: 8,
|
|
329
|
+
height: 8,
|
|
330
|
+
borderRadius: 4,
|
|
331
|
+
backgroundColor: '#10b981',
|
|
332
|
+
},
|
|
333
|
+
bannerTitle: {
|
|
334
|
+
fontSize: 14,
|
|
335
|
+
fontWeight: '700',
|
|
336
|
+
},
|
|
337
|
+
bannerSub: {
|
|
338
|
+
fontSize: 12,
|
|
339
|
+
},
|
|
340
|
+
sectionTitle: {
|
|
341
|
+
fontSize: 18,
|
|
342
|
+
fontWeight: '700',
|
|
343
|
+
marginBottom: 16,
|
|
344
|
+
},
|
|
345
|
+
listContent: {
|
|
346
|
+
gap: 12,
|
|
347
|
+
paddingBottom: 40,
|
|
348
|
+
},
|
|
349
|
+
card: {
|
|
350
|
+
flexDirection: 'row',
|
|
351
|
+
padding: 16,
|
|
352
|
+
borderRadius: 16,
|
|
353
|
+
borderWidth: 1,
|
|
354
|
+
gap: 12,
|
|
355
|
+
},
|
|
356
|
+
voteColumn: {
|
|
357
|
+
alignItems: 'center',
|
|
358
|
+
gap: 4,
|
|
359
|
+
width: 40,
|
|
360
|
+
},
|
|
361
|
+
voteCount: {
|
|
362
|
+
fontSize: 13,
|
|
363
|
+
fontWeight: '800',
|
|
364
|
+
},
|
|
365
|
+
cardContent: {
|
|
366
|
+
flex: 1,
|
|
367
|
+
gap: 8,
|
|
368
|
+
},
|
|
369
|
+
cardHeader: {
|
|
370
|
+
flexDirection: 'row',
|
|
371
|
+
justifyContent: 'space-between',
|
|
372
|
+
alignItems: 'flex-start',
|
|
373
|
+
gap: 8,
|
|
374
|
+
},
|
|
375
|
+
cardTitle: {
|
|
376
|
+
fontSize: 15,
|
|
377
|
+
fontWeight: '700',
|
|
378
|
+
flex: 1,
|
|
379
|
+
},
|
|
380
|
+
statusBadge: {
|
|
381
|
+
paddingHorizontal: 8,
|
|
382
|
+
paddingVertical: 2,
|
|
383
|
+
borderRadius: 8,
|
|
384
|
+
borderWidth: 1,
|
|
385
|
+
},
|
|
386
|
+
statusText: {
|
|
387
|
+
fontSize: 9,
|
|
388
|
+
fontWeight: '900',
|
|
389
|
+
},
|
|
390
|
+
cardDescription: {
|
|
391
|
+
fontSize: 13,
|
|
392
|
+
lineHeight: 18,
|
|
393
|
+
},
|
|
394
|
+
cardFooter: {
|
|
395
|
+
flexDirection: 'row',
|
|
396
|
+
alignItems: 'center',
|
|
397
|
+
justifyContent: 'space-between',
|
|
398
|
+
marginTop: 4,
|
|
399
|
+
},
|
|
400
|
+
avatarGroup: {
|
|
401
|
+
flexDirection: 'row',
|
|
402
|
+
alignItems: 'center',
|
|
403
|
+
},
|
|
404
|
+
avatar: {
|
|
405
|
+
width: 24,
|
|
406
|
+
height: 24,
|
|
407
|
+
borderRadius: 12,
|
|
408
|
+
borderWidth: 2,
|
|
409
|
+
marginLeft: -8,
|
|
410
|
+
},
|
|
411
|
+
avatarMore: {
|
|
412
|
+
width: 24,
|
|
413
|
+
height: 24,
|
|
414
|
+
borderRadius: 12,
|
|
415
|
+
alignItems: 'center',
|
|
416
|
+
justifyContent: 'center',
|
|
417
|
+
marginLeft: -8,
|
|
418
|
+
borderWidth: 2,
|
|
419
|
+
borderColor: 'transparent',
|
|
420
|
+
},
|
|
421
|
+
avatarMoreText: {
|
|
422
|
+
fontSize: 8,
|
|
423
|
+
fontWeight: '800',
|
|
424
|
+
},
|
|
425
|
+
commentCount: {
|
|
426
|
+
fontSize: 11,
|
|
427
|
+
},
|
|
428
|
+
floatingHint: {
|
|
429
|
+
position: 'absolute',
|
|
430
|
+
bottom: 40,
|
|
431
|
+
right: 16,
|
|
432
|
+
zIndex: 100,
|
|
433
|
+
},
|
|
434
|
+
hintBadge: {
|
|
435
|
+
paddingHorizontal: 12,
|
|
436
|
+
paddingVertical: 6,
|
|
437
|
+
borderRadius: 20,
|
|
438
|
+
shadowColor: '#000',
|
|
439
|
+
shadowOffset: { width: 0, height: 4 },
|
|
440
|
+
shadowOpacity: 0.3,
|
|
441
|
+
shadowRadius: 4,
|
|
442
|
+
elevation: 8,
|
|
443
|
+
},
|
|
444
|
+
hintText: {
|
|
445
|
+
color: '#fff',
|
|
446
|
+
fontSize: 10,
|
|
447
|
+
fontWeight: '900',
|
|
448
|
+
textTransform: 'uppercase',
|
|
449
|
+
}
|
|
450
|
+
});
|
|
@@ -13,6 +13,7 @@ import { AboutScreen } from "../../../domains/about";
|
|
|
13
13
|
import { LegalScreen } from "../../../domains/legal";
|
|
14
14
|
import { GamificationScreen } from "../../../domains/gamification";
|
|
15
15
|
import { VideoTutorialsScreen } from "../../../domains/video-tutorials";
|
|
16
|
+
import { FeatureRequestScreen } from "../../../domains/feedback/presentation/screens/FeatureRequestScreen";
|
|
16
17
|
import {
|
|
17
18
|
createScreenWithProps,
|
|
18
19
|
convertAdditionalScreen,
|
|
@@ -56,7 +57,8 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
|
|
|
56
57
|
accountConfig,
|
|
57
58
|
} = props;
|
|
58
59
|
|
|
59
|
-
const translations = config?.translations
|
|
60
|
+
const translations = config?.translations;
|
|
61
|
+
const featureTranslations = translations?.features;
|
|
60
62
|
|
|
61
63
|
return useMemo(() => {
|
|
62
64
|
const settingsMainScreen = createScreenWithProps(
|
|
@@ -105,10 +107,10 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
|
|
|
105
107
|
!!(faqData && faqData.categories?.length > 0),
|
|
106
108
|
() => createScreenWithProps("FAQ", FAQScreen, {
|
|
107
109
|
categories: faqData!.categories,
|
|
108
|
-
searchPlaceholder:
|
|
109
|
-
emptySearchTitle:
|
|
110
|
-
emptySearchMessage:
|
|
111
|
-
headerTitle:
|
|
110
|
+
searchPlaceholder: featureTranslations?.faqs?.searchPlaceholder || "",
|
|
111
|
+
emptySearchTitle: featureTranslations?.faqs?.emptySearchTitle || "",
|
|
112
|
+
emptySearchMessage: featureTranslations?.faqs?.emptySearchMessage || "",
|
|
113
|
+
headerTitle: featureTranslations?.faqs?.headerTitle || "",
|
|
112
114
|
})
|
|
113
115
|
);
|
|
114
116
|
|
|
@@ -117,8 +119,8 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
|
|
|
117
119
|
const gamificationScreen = createScreenWithProps("Gamification", GamificationScreen as any, { config: gamificationConfig });
|
|
118
120
|
|
|
119
121
|
const languageScreen = createScreenWithProps("LanguageSelection", LanguageSelectionScreen, {
|
|
120
|
-
headerTitle:
|
|
121
|
-
searchPlaceholder:
|
|
122
|
+
headerTitle: featureTranslations?.language?.title || "",
|
|
123
|
+
searchPlaceholder: featureTranslations?.languageSelection?.searchPlaceholder || "",
|
|
122
124
|
});
|
|
123
125
|
|
|
124
126
|
const accountScreen = createConditionalScreen(
|
|
@@ -128,7 +130,24 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
|
|
|
128
130
|
|
|
129
131
|
const videoTutorialScreen = createScreenWithProps("VideoTutorial", VideoTutorialsScreen as any, {
|
|
130
132
|
...videoTutorialConfig,
|
|
131
|
-
title: videoTutorialConfig?.title ||
|
|
133
|
+
title: videoTutorialConfig?.title || featureTranslations?.videoTutorial?.title || "",
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
const featureRequestScreen = createScreenWithProps("FeatureRequest", FeatureRequestScreen, {
|
|
137
|
+
config: config?.feedback,
|
|
138
|
+
texts: {
|
|
139
|
+
feedbackTypes: [
|
|
140
|
+
{ type: 'general', label: translations?.feedbackModal?.types?.general || 'General' },
|
|
141
|
+
{ type: 'bug_report', label: translations?.feedbackModal?.types?.bugReport || 'Bug Report' },
|
|
142
|
+
{ type: 'feature_request', label: translations?.feedbackModal?.types?.featureRequest || 'Feature Request' },
|
|
143
|
+
{ type: 'improvement', label: translations?.feedbackModal?.types?.improvement || 'Improvement' },
|
|
144
|
+
{ type: 'other', label: translations?.feedbackModal?.types?.other || 'Other' },
|
|
145
|
+
],
|
|
146
|
+
ratingLabel: translations?.feedbackModal?.ratingLabel || 'How would you rate your experience?',
|
|
147
|
+
descriptionPlaceholder: translations?.feedbackModal?.descriptionPlaceholder || 'Tell us more...',
|
|
148
|
+
submitButton: translations?.feedbackModal?.submitButton || 'Submit',
|
|
149
|
+
submittingButton: translations?.feedbackModal?.submittingButton || 'Submitting...',
|
|
150
|
+
}
|
|
132
151
|
});
|
|
133
152
|
|
|
134
153
|
return combineScreens(
|
|
@@ -138,7 +157,8 @@ export const useSettingsScreens = (props: UseSettingsScreensProps): StackScreen[
|
|
|
138
157
|
gamificationScreen,
|
|
139
158
|
languageScreen,
|
|
140
159
|
accountScreen,
|
|
141
|
-
videoTutorialScreen
|
|
160
|
+
videoTutorialScreen,
|
|
161
|
+
featureRequestScreen
|
|
142
162
|
);
|
|
143
163
|
}, [
|
|
144
164
|
translations,
|
|
@@ -45,7 +45,7 @@ export const SupportSettingsSection: React.FC<SupportSettingsSectionProps> = ({
|
|
|
45
45
|
description: normalizedConfig.feedback.config?.description || translations?.features?.feedback?.description,
|
|
46
46
|
initialType: normalizedConfig.feedback.config?.initialType,
|
|
47
47
|
onSubmit: normalizedConfig.feedback.config?.onSubmit,
|
|
48
|
-
onPress:
|
|
48
|
+
onPress: () => navigation.navigate("FeatureRequest"),
|
|
49
49
|
}
|
|
50
50
|
}}
|
|
51
51
|
ratingConfig={{
|