Skip to content

Commit 84ee16b

Browse files
committed
feat: Add teaser for reconnect friends
1 parent e571ae1 commit 84ee16b

File tree

9 files changed

+30
-3
lines changed

9 files changed

+30
-3
lines changed

backend/src/types/user.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export enum EIntention {
77
FRIENDSHIP = "friendship",
88
CASUAL = "casual",
99
RELATIONSHIP = "relationship",
10+
RECONNECT_FRIENDS = "reconnect_friends",
1011
}
1112

1213
export enum EDateMode {

backend/swagger.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

mobile/api/gen/src/models/CreateUserDTO.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export const CreateUserDTOIntentionsEnum = {
154154
friendship: "friendship",
155155
casual: "casual",
156156
relationship: "relationship",
157+
reconnect_friends: "reconnect_friends",
157158
} as const;
158159
export type CreateUserDTOIntentionsEnum =
159160
(typeof CreateUserDTOIntentionsEnum)[keyof typeof CreateUserDTOIntentionsEnum];

mobile/api/gen/src/models/UpdateUserDTO.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export const UpdateUserDTOIntentionsEnum = {
160160
friendship: "friendship",
161161
casual: "casual",
162162
relationship: "relationship",
163+
reconnect_friends: "reconnect_friends",
163164
} as const;
164165
export type UpdateUserDTOIntentionsEnum =
165166
(typeof UpdateUserDTOIntentionsEnum)[keyof typeof UpdateUserDTOIntentionsEnum];

mobile/api/gen/src/models/UserPrivateDTO.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export const UserPrivateDTOIntentionsEnum = {
159159
friendship: "friendship",
160160
casual: "casual",
161161
relationship: "relationship",
162+
reconnect_friends: "reconnect_friends",
162163
} as const;
163164
export type UserPrivateDTOIntentionsEnum =
164165
(typeof UserPrivateDTOIntentionsEnum)[keyof typeof UserPrivateDTOIntentionsEnum];

mobile/api/gen/src/models/UserPublicDTO.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const UserPublicDTOIntentionsEnum = {
6969
friendship: "friendship",
7070
casual: "casual",
7171
relationship: "relationship",
72+
reconnect_friends: "reconnect_friends",
7273
} as const;
7374
export type UserPublicDTOIntentionsEnum =
7475
(typeof UserPublicDTOIntentionsEnum)[keyof typeof UserPublicDTOIntentionsEnum];

mobile/localization/de.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ export const de: Language = {
130130
casual: "Casual",
131131
casualDescription:
132132
"Offen für was Lockeres. Bitte beachte, dass dies keine offene Einladung ist - bleib respektvoll und taste dich langsam voran.",
133+
reconnectFriends: "Mit Freunden reconnecten",
134+
reconnectFriendsDescription:
135+
"Laufe mehr deiner Freunde zufällig über den Weg (<b>bald verfügbar</b>).",
133136
friendship: "Freundschaft",
134137
friendshipDescription: "Offen für neue platonische Freundschaften.",
135138
relationship: "Beziehung",

mobile/localization/en.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ export const en = {
130130
relationship: "Relationship",
131131
relationshipDescription:
132132
"Open to something serious such as a long-term relationship.",
133+
reconnectFriends: "Reconnect with friends",
134+
reconnectFriendsDescription:
135+
"Cross paths with more of your friends (<b>coming soon</b>).",
133136
friendship: "Friendship",
134137
friendshipDescription: "Open to making new friends.",
135138
iAmA: "I am a",

mobile/screens/onboarding/IntentionChoice.tsx

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
import { Subtitle } from "@/GlobalStyles";
12
import { MainStackParamList } from "@/MainStack.navigator";
23
import { UserPrivateDTOIntentionsEnum } from "@/api/gen/src";
34
import { OButtonWide } from "@/components/OButtonWide/OButtonWide";
45
import { OPageContainer } from "@/components/OPageContainer/OPageContainer";
56
import { EACTION_USER, useUserContext } from "@/context/UserContext";
6-
import { TR, i18n } from "@/localization/translate.service";
7+
import { TR, formatBoldText, i18n } from "@/localization/translate.service";
78
import { saveOnboardingState } from "@/services/storage.service";
89
import * as React from "react";
9-
import { StyleSheet, View } from "react-native";
10+
import { StyleSheet, Text, View } from "react-native";
1011
import { NativeStackScreenProps } from "react-native-screens/native-stack";
1112
import { ROUTES } from "../routes";
1213

@@ -83,6 +84,21 @@ const IntentionChoice = ({
8384
onPress={() => toggleIntention("friendship")}
8485
/>
8586
</View>
87+
88+
<View style={styles.optionContainer}>
89+
<OButtonWide
90+
text={i18n.t(TR.reconnectFriends)}
91+
filled={isSelected(
92+
UserPrivateDTOIntentionsEnum.reconnect_friends,
93+
)}
94+
variant="dark"
95+
disabled={true}
96+
onPress={() => toggleIntention("reconnect_friends")}
97+
/>
98+
<Text style={[Subtitle, styles.subtitle]}>
99+
{formatBoldText(i18n.t(TR.reconnectFriendsDescription))}
100+
</Text>
101+
</View>
86102
</OPageContainer>
87103
);
88104
};

0 commit comments

Comments
 (0)