Skip to content

Commit e2e6c5a

Browse files
harperreedclaude
andcommitted
feat: Update feedback text to include clickable Google Form link
- Split feedback text across all 13 language translations into three parts - Made "feedback" text a clickable link to Google Form while keeping email visible - Updated WelcomeModal.tsx to use i18n translations with new feedback structure - Updated about.tsx to use i18n translations with new feedback structure - Updated help.tsx to use new feedback link structure - Maintains internationalization support across all supported languages 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent c5f7fca commit e2e6c5a

File tree

15 files changed

+94
-55
lines changed

15 files changed

+94
-55
lines changed

packages/chat/app/about.tsx

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,22 @@ import {
44
Text,
55
useTheme,
66
} from "react-native-paper";
7+
import { useTranslation } from 'react-i18next';
78
import PageLayout from "./components/PageLayout";
89

910
export default function AboutScreen() {
1011
const theme = useTheme();
12+
const { t } = useTranslation();
1113
const handleNamePress = (name: string) => {
1214
Linking.openURL(`https://en.wikipedia.org/wiki/${name}`).catch((err) =>
1315
console.error("Failed to open Wikipedia:", err),
1416
);
1517
};
1618

19+
const handleFeedbackPress = () => {
20+
Linking.openURL("https://docs.google.com/forms/d/e/1FAIpQLSfkRKAA3BGZldZTnJmv2qAEuvVSwnRF4YSw_50jrBd69b1rzg/viewform");
21+
};
22+
1723
const handleEmailPress = () => {
1824
Linking.openURL("mailto:[email protected]");
1925
};
@@ -43,39 +49,42 @@ export default function AboutScreen() {
4349
<PageLayout>
4450
<Surface style={styles.centered} elevation={1}>
4551
<Text variant="displaySmall" style={styles.title}>
46-
About
52+
{t('about')}
4753
</Text>
4854

4955
<Text variant="bodyLarge" style={styles.paragraph}>
50-
Orbiting was created by{" "}
51-
<Text
52-
variant="bodyLarge"
53-
style={styles.link}
54-
onPress={() => handleNamePress("Christine_Sun_Kim")}
55-
>
56-
Christine Sun Kim
57-
</Text>{" "}
58-
and{" "}
59-
<Text
60-
variant="bodyLarge"
61-
style={styles.link}
62-
onPress={() => handleNamePress("Harper_Reed")}
63-
>
64-
Harper Reed
65-
</Text>
66-
. It was inspired by the need to communicate with people in
67-
the same space, but with different communications needs.
56+
{t('aboutText', {
57+
author1: (
58+
<Text
59+
variant="bodyLarge"
60+
style={styles.link}
61+
onPress={() => handleNamePress("Christine_Sun_Kim")}
62+
>
63+
Christine Sun Kim
64+
</Text>
65+
),
66+
author2: (
67+
<Text
68+
variant="bodyLarge"
69+
style={styles.link}
70+
onPress={() => handleNamePress("Harper_Reed")}
71+
>
72+
Harper Reed
73+
</Text>
74+
)
75+
})}
6876
</Text>
6977

7078
<Text variant="bodyLarge" style={styles.paragraph}>
71-
Please send us feedback. We want it!{" "}
79+
{t('feedbackText')}{" "}
7280
<Text
7381
variant="bodyLarge"
7482
style={styles.link}
75-
onPress={handleEmailPress}
83+
onPress={handleFeedbackPress}
7684
>
77-
85+
{t('feedbackLink')}
7886
</Text>
87+
{t('feedbackTextContinue')}
7988
</Text>
8089
</Surface>
8190
</PageLayout>

packages/chat/app/components/WelcomeModal.tsx

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ import React, { useState, useEffect } from "react";
22
import { Modal, Portal, Text, Button, useTheme } from "react-native-paper";
33
import { StyleSheet, View, Platform, Linking } from "react-native";
44
import Cookies from "js-cookie";
5+
import { useTranslation } from 'react-i18next';
56
import { InstallPWA } from "./InstallPWA";
67

78
const WELCOME_COOKIE = "orbiting-welcome-shown";
89

910
export function WelcomeModal() {
1011
const [visible, setVisible] = useState(false);
1112
const theme = useTheme();
13+
const { t } = useTranslation();
1214

1315
useEffect(() => {
1416
if (Platform.OS === "web") {
@@ -41,6 +43,10 @@ export function WelcomeModal() {
4143
}
4244
};
4345

46+
const handleFeedbackPress = () => {
47+
Linking.openURL("https://docs.google.com/forms/d/e/1FAIpQLSfkRKAA3BGZldZTnJmv2qAEuvVSwnRF4YSw_50jrBd69b1rzg/viewform");
48+
};
49+
4450
const handleEmailPress = () => {
4551
Linking.openURL("mailto:[email protected]");
4652
};
@@ -99,64 +105,61 @@ export function WelcomeModal() {
99105
onDismiss={hideModal}
100106
contentContainerStyle={styles.modalContainer as any}
101107
>
102-
<Text style={styles.title as any}>Welcome to Orbiting</Text>
108+
<Text style={styles.title as any}>{t('welcomeToOrbiting')}</Text>
103109

104110
<Text style={styles.content as any}>
105-
A simple messaging app for your eyeballs. You can use it to
106-
type and display the message to those around you. Display a
107-
message loud and clear.
111+
{t('appDescription')}
108112
</Text>
109113

110114
<Text style={styles.subtitle as any}>
111-
Orbiting is simple to use.
115+
{t('quickStartGuide')}
112116
</Text>
113117

114118
<View style={styles.listItem as any}>
115119
<Text style={styles.content as any}>
116-
• Tap and start typing. Your message will display loud
117-
and clear!
120+
{t('tapAndTypeDesc')}
118121
</Text>
119122
</View>
120123
<View style={styles.listItem as any}>
121124
<Text style={styles.content as any}>
122-
To clear the display - ⬅️ swipe left
125+
{t('swipeLeftDesc')} - {t('swipeLeft')}
123126
</Text>
124127
</View>
125128
<View style={styles.listItem as any}>
126129
<Text style={styles.content as any}>
127-
To view the menu and settings - ➡️ swipe right
130+
{t('swipeRightDesc')} - {t('swipeRight')}
128131
</Text>
129132
</View>
130133
<View style={styles.listItem as any}>
131134
<Text style={styles.content as any}>
132-
To display the history - ⬆️ swipe up
135+
{t('swipeUpDesc')} - {t('swipeUp')}
133136
</Text>
134137
</View>
135138
<View style={styles.listItem as any}>
136139
<Text style={styles.content as any}>
137-
You can use it on desktop or mobile
140+
{t('crossPlatformDesc')}
138141
</Text>
139142
</View>
140143

141144
<View style={styles.divider as any} />
142145

143146
<Text style={styles.content as any}>
144-
Please send us feedback. We want it!{" "}
145-
<Text style={styles.link as any} onPress={handleEmailPress}>
146-
147+
{t('feedbackText')}{" "}
148+
<Text style={styles.link as any} onPress={handleFeedbackPress}>
149+
{t('feedbackLink')}
147150
</Text>
151+
{t('feedbackTextContinue')}
148152
</Text>
149153

150154
{Platform.OS === "web" && (
151155
<Text style={styles.content as any}>
152-
💡 Pro tip: Install Orbiting as an app on your device
153-
for the best experience!
156+
💡 {t('addToHomescreenDesc')}
154157
</Text>
155158
)}
156159

157160
<View style={styles.buttonContainer as any}>
158161
<Button mode="contained" onPress={hideModal}>
159-
Get Started
162+
{t('welcome')}
160163
</Button>
161164
{Platform.OS === "web" && <InstallPWA />}
162165
</View>

packages/chat/app/help.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export default function HelpScreen() {
1818
Linking.openURL(`https://en.wikipedia.org/wiki/${name}`);
1919
};
2020

21+
const handleFeedbackPress = () => {
22+
Linking.openURL("https://docs.google.com/forms/d/e/1FAIpQLSfkRKAA3BGZldZTnJmv2qAEuvVSwnRF4YSw_50jrBd69b1rzg/viewform");
23+
};
24+
2125
const handleEmailPress = () => {
2226
Linking.openURL("mailto:[email protected]");
2327
};
@@ -225,9 +229,10 @@ export default function HelpScreen() {
225229
</Text>
226230
<Text style={styles.paragraph}>
227231
{t('feedbackText')}{" "}
228-
<Text style={styles.link} onPress={handleEmailPress}>
229-
{t('feedbackEmail')}
232+
<Text style={styles.link} onPress={handleFeedbackPress}>
233+
{t('feedbackLink')}
230234
</Text>
235+
{t('feedbackTextContinue')}
231236
</Text>
232237
</Surface>
233238
</View>

packages/chat/app/i18n/translations/bn.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ export const bn = {
9292
textWrappingDesc: "বার্তা স্বয়ংক্রিয়ভাবে স্পেসে র‍্যাপ হয়",
9393
aboutText:
9494
"Orbiting {{author1}} এবং {{author2}} দ্বারা তৈরি করা হয়েছে। এটি একই স্থানে থাকা কিন্তু ভিন্ন যোগাযোগ প্রয়োজন রয়েছে এমন লোকেদের সাথে যোগাযোগ করার প্রয়োজনীয়তা থেকে অনুপ্রাণিত হয়েছিল।",
95-
feedbackText: "অনুগ্রহ করে আমাদের প্রতিক্রিয়া পাঠান। আমরা এটি চাই!",
95+
feedbackText: "অনুগ্রহ করে আমাদের",
96+
feedbackLink: "প্রতিক্রিয়া",
97+
feedbackTextContinue: " পাঠান। আমরা এটি চাই! [email protected]",
9698
feedbackEmail: "[email protected]",
9799
},
98100
};

packages/chat/app/i18n/translations/de.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ export const de = {
9696
"Nachrichten werden automatisch bei Leerzeichen umgebrochen",
9797
aboutText:
9898
"Orbiting wurde von {{author1}} und {{author2}} erstellt. Es wurde inspiriert von der Notwendigkeit, mit Menschen im gleichen Raum zu kommunizieren, die jedoch unterschiedliche Kommunikationsbedürfnisse haben.",
99-
feedbackText: "Bitte sende uns Feedback. Wir freuen uns darauf!",
99+
feedbackText: "Bitte sende uns",
100+
feedbackLink: "Feedback",
101+
feedbackTextContinue: ". Wir freuen uns darauf! [email protected]",
100102
feedbackEmail: "[email protected]",
101103
},
102104
};

packages/chat/app/i18n/translations/en.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ export const en = {
9191
textWrapping: 'Text Wrapping',
9292
textWrappingDesc: 'Messages automatically wrap on whitespace',
9393
aboutText: 'Orbiting was created by {{author1}} and {{author2}}. It was inspired by the need to communicate with people in the same space, but with different communications needs.',
94-
feedbackText: 'Please send us feedback. We want it!',
94+
feedbackText: 'Please send us',
95+
feedbackLink: 'feedback',
96+
feedbackTextContinue: '. We want it! [email protected]',
9597
feedbackEmail: '[email protected]'
9698
}
9799
};

packages/chat/app/i18n/translations/es.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export const es = {
8686
textWrapping: 'Ajuste de texto',
8787
textWrappingDesc: 'Los mensajes se ajustan automáticamente en los espacios',
8888
aboutText: 'Orbiting fue creado por {{author1}} y {{author2}}. Se inspiró en la necesidad de comunicarse con personas en el mismo espacio, pero con diferentes necesidades de comunicación.',
89-
feedbackText: '¡Por favor, envíanos tus comentarios. ¡Los queremos!',
89+
feedbackText: 'Por favor, envíanos tus',
90+
feedbackLink: 'comentarios',
91+
feedbackTextContinue: '. ¡Los queremos! [email protected]',
9092
feedbackEmail: '[email protected]'
9193
}
9294
};

packages/chat/app/i18n/translations/fr.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ export const fr = {
9696
"Les messages reviennent automatiquement à la ligne aux espaces",
9797
aboutText:
9898
"Orbiting a été créé par {{author1}} et {{author2}}. Il a été inspiré par le besoin de communiquer avec des personnes dans le même espace, mais ayant des besoins de communication différents.",
99-
feedbackText:
100-
"Veuillez nous envoyer vos commentaires. Nous les voulons !",
99+
feedbackText: "Veuillez nous envoyer vos",
100+
feedbackLink: "commentaires",
101+
feedbackTextContinue: ". Nous les voulons ! [email protected]",
101102
feedbackEmail: "[email protected]",
102103
},
103104
};

packages/chat/app/i18n/translations/hi.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export const hi = {
8686
textWrapping: 'टेक्स्ट रैपिंग',
8787
textWrappingDesc: 'संदेश स्वचालित रूप से खाली स्थान पर रैप हो जाते हैं',
8888
aboutText: 'Orbiting {{author1}} और {{author2}} द्वारा बनाया गया था। यह एक ही स्थान में, लेकिन अलग-अलग संचार आवश्यकताओं वाले लोगों के साथ संवाद करने की आवश्यकता से प्रेरित था।',
89-
feedbackText: 'कृपया हमें प्रतिक्रिया भेजें। हम इसे चाहते हैं!',
89+
feedbackText: 'कृपया हमें',
90+
feedbackLink: 'प्रतिक्रिया',
91+
feedbackTextContinue: ' भेजें। हम इसे चाहते हैं! [email protected]',
9092
feedbackEmail: '[email protected]'
9193
}
9294
};

packages/chat/app/i18n/translations/id.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ export const id = {
9090
textWrappingDesc: "Pesan secara otomatis terpotong pada spasi",
9191
aboutText:
9292
"Orbiting dibuat oleh {{author1}} dan {{author2}}. Ini terinspirasi oleh kebutuhan untuk berkomunikasi dengan orang-orang dalam ruang yang sama, tetapi dengan kebutuhan komunikasi yang berbeda.",
93-
feedbackText:
94-
"Silakan kirimkan umpan balik kepada kami. Kami menginginkannya!",
93+
feedbackText: "Silakan kirimkan",
94+
feedbackLink: "umpan balik",
95+
feedbackTextContinue: " kepada kami. Kami menginginkannya! [email protected]",
9596
feedbackEmail: "[email protected]",
9697
},
9798
};

0 commit comments

Comments
 (0)