add ids to every common screen for web

This commit is contained in:
Samuel Newman
2025-07-08 10:44:45 +03:00
parent ecad83a9ab
commit 3113e19a85
+128 -1
View File
@@ -103,7 +103,7 @@ import {
import {Wizard} from '#/screens/StarterPack/Wizard' import {Wizard} from '#/screens/StarterPack/Wizard'
import TopicScreen from '#/screens/Topic' import TopicScreen from '#/screens/Topic'
import {VideoFeed} from '#/screens/VideoFeed' import {VideoFeed} from '#/screens/VideoFeed'
import {type Theme, useTheme} from '#/alf' import {type Theme, useTheme, web} from '#/alf'
import { import {
EmailDialogScreenID, EmailDialogScreenID,
useEmailDialogControl, useEmailDialogControl,
@@ -150,31 +150,37 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
name="NotFound" name="NotFound"
getComponent={() => NotFoundScreen} getComponent={() => NotFoundScreen}
options={{title: title(msg`Not Found`)}} options={{title: title(msg`Not Found`)}}
getId={web(() => 'not-found')}
/> />
<Stack.Screen <Stack.Screen
name="Lists" name="Lists"
component={ListsScreen} component={ListsScreen}
options={{title: title(msg`Lists`), requireAuth: true}} options={{title: title(msg`Lists`), requireAuth: true}}
getId={web(() => 'lists')}
/> />
<Stack.Screen <Stack.Screen
name="Moderation" name="Moderation"
getComponent={() => ModerationScreen} getComponent={() => ModerationScreen}
options={{title: title(msg`Moderation`), requireAuth: true}} options={{title: title(msg`Moderation`), requireAuth: true}}
getId={web(() => 'moderation')}
/> />
<Stack.Screen <Stack.Screen
name="ModerationModlists" name="ModerationModlists"
getComponent={() => ModerationModlistsScreen} getComponent={() => ModerationModlistsScreen}
options={{title: title(msg`Moderation Lists`), requireAuth: true}} options={{title: title(msg`Moderation Lists`), requireAuth: true}}
getId={web(() => 'moderation-modlists')}
/> />
<Stack.Screen <Stack.Screen
name="ModerationMutedAccounts" name="ModerationMutedAccounts"
getComponent={() => ModerationMutedAccounts} getComponent={() => ModerationMutedAccounts}
options={{title: title(msg`Muted Accounts`), requireAuth: true}} options={{title: title(msg`Muted Accounts`), requireAuth: true}}
getId={web(() => 'moderation-muted-accounts')}
/> />
<Stack.Screen <Stack.Screen
name="ModerationBlockedAccounts" name="ModerationBlockedAccounts"
getComponent={() => ModerationBlockedAccounts} getComponent={() => ModerationBlockedAccounts}
options={{title: title(msg`Blocked Accounts`), requireAuth: true}} options={{title: title(msg`Blocked Accounts`), requireAuth: true}}
getId={web(() => 'moderation-blocked-accounts')}
/> />
<Stack.Screen <Stack.Screen
name="ModerationInteractionSettings" name="ModerationInteractionSettings"
@@ -183,6 +189,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Post Interaction Settings`), title: title(msg`Post Interaction Settings`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'moderation-interaction-settings')}
/> />
<Stack.Screen <Stack.Screen
name="ModerationVerificationSettings" name="ModerationVerificationSettings"
@@ -191,16 +198,19 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Verification Settings`), title: title(msg`Verification Settings`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'moderation-verification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="Settings" name="Settings"
getComponent={() => SettingsScreen} getComponent={() => SettingsScreen}
options={{title: title(msg`Settings`), requireAuth: true}} options={{title: title(msg`Settings`), requireAuth: true}}
getId={web(() => 'settings')}
/> />
<Stack.Screen <Stack.Screen
name="LanguageSettings" name="LanguageSettings"
getComponent={() => LanguageSettingsScreen} getComponent={() => LanguageSettingsScreen}
options={{title: title(msg`Language Settings`), requireAuth: true}} options={{title: title(msg`Language Settings`), requireAuth: true}}
getId={web(() => 'language-settings')}
/> />
<Stack.Screen <Stack.Screen
name="Profile" name="Profile"
@@ -208,6 +218,10 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
options={({route}) => ({ options={({route}) => ({
title: bskyTitle(`@${route.params.name}`, unreadCountLabel), title: bskyTitle(`@${route.params.name}`, unreadCountLabel),
})} })}
getId={web(
(route: React.ComponentProps<typeof ProfileScreen>['route']) =>
`profile-${route.params.name}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="ProfileFollowers" name="ProfileFollowers"
@@ -215,6 +229,11 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
options={({route}) => ({ options={({route}) => ({
title: title(msg`People following @${route.params.name}`), title: title(msg`People following @${route.params.name}`),
})} })}
getId={web(
(
route: React.ComponentProps<typeof ProfileFollowersScreen>['route'],
) => `profile-followers-${route.params.name}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="ProfileFollows" name="ProfileFollows"
@@ -222,6 +241,10 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
options={({route}) => ({ options={({route}) => ({
title: title(msg`People followed by @${route.params.name}`), title: title(msg`People followed by @${route.params.name}`),
})} })}
getId={web(
(route: React.ComponentProps<typeof ProfileFollowsScreen>['route']) =>
`profile-follows-${route.params.name}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="ProfileKnownFollowers" name="ProfileKnownFollowers"
@@ -229,11 +252,22 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
options={({route}) => ({ options={({route}) => ({
title: title(msg`Followers of @${route.params.name} that you know`), title: title(msg`Followers of @${route.params.name} that you know`),
})} })}
getId={web(
(
route: React.ComponentProps<
typeof ProfileKnownFollowersScreen
>['route'],
) => `profile-known-followers-${route.params.name}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="ProfileList" name="ProfileList"
getComponent={() => ProfileListScreen} getComponent={() => ProfileListScreen}
options={{title: title(msg`List`), requireAuth: true}} options={{title: title(msg`List`), requireAuth: true}}
getId={web(
(route: React.ComponentProps<typeof ProfileListScreen>['route']) =>
`profile-list-${route.params.name}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="ProfileSearch" name="ProfileSearch"
@@ -241,6 +275,10 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
options={({route}) => ({ options={({route}) => ({
title: title(msg`Search @${route.params.name}'s posts`), title: title(msg`Search @${route.params.name}'s posts`),
})} })}
getId={web(
(route: React.ComponentProps<typeof ProfileSearchScreen>['route']) =>
`profile-search-${route.params.name}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="PostThread" name="PostThread"
@@ -248,6 +286,10 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
options={({route}) => ({ options={({route}) => ({
title: title(msg`Post by @${route.params.name}`), title: title(msg`Post by @${route.params.name}`),
})} })}
getId={web(
(route: React.ComponentProps<typeof PostThreadScreen>['route']) =>
`post-thread-${route.params.name}-${route.params.rkey}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="PostLikedBy" name="PostLikedBy"
@@ -255,6 +297,10 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
options={({route}) => ({ options={({route}) => ({
title: title(msg`Post by @${route.params.name}`), title: title(msg`Post by @${route.params.name}`),
})} })}
getId={web(
(route: React.ComponentProps<typeof PostLikedByScreen>['route']) =>
`post-liked-by-${route.params.name}-${route.params.rkey}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="PostRepostedBy" name="PostRepostedBy"
@@ -262,6 +308,10 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
options={({route}) => ({ options={({route}) => ({
title: title(msg`Post by @${route.params.name}`), title: title(msg`Post by @${route.params.name}`),
})} })}
getId={web(
(route: React.ComponentProps<typeof PostRepostedByScreen>['route']) =>
`post-reposted-by-${route.params.name}-${route.params.rkey}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="PostQuotes" name="PostQuotes"
@@ -269,41 +319,68 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
options={({route}) => ({ options={({route}) => ({
title: title(msg`Post by @${route.params.name}`), title: title(msg`Post by @${route.params.name}`),
})} })}
getId={web(
(route: React.ComponentProps<typeof PostQuotesScreen>['route']) =>
`post-quotes-${route.params.name}-${route.params.rkey}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="ProfileFeed" name="ProfileFeed"
getComponent={() => ProfileFeedScreen} getComponent={() => ProfileFeedScreen}
options={{title: title(msg`Feed`)}} options={{title: title(msg`Feed`)}}
getId={web(
(route: React.ComponentProps<typeof ProfileFeedScreen>['route']) =>
`profile-feed-${route.params.name}-${route.params.rkey}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="ProfileFeedLikedBy" name="ProfileFeedLikedBy"
getComponent={() => ProfileFeedLikedByScreen} getComponent={() => ProfileFeedLikedByScreen}
options={{title: title(msg`Liked by`)}} options={{title: title(msg`Liked by`)}}
getId={web(
(
route: React.ComponentProps<
typeof ProfileFeedLikedByScreen
>['route'],
) =>
`profile-feed-liked-by-${route.params.name}-${route.params.rkey}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="ProfileLabelerLikedBy" name="ProfileLabelerLikedBy"
getComponent={() => ProfileLabelerLikedByScreen} getComponent={() => ProfileLabelerLikedByScreen}
options={{title: title(msg`Liked by`)}} options={{title: title(msg`Liked by`)}}
getId={web(
(
route: React.ComponentProps<
typeof ProfileLabelerLikedByScreen
>['route'],
) => `profile-labeler-liked-by-${route.params.name}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="Debug" name="Debug"
getComponent={() => Storybook} getComponent={() => Storybook}
options={{title: title(msg`Storybook`), requireAuth: true}} options={{title: title(msg`Storybook`), requireAuth: true}}
getId={web(() => 'storybook')}
/> />
<Stack.Screen <Stack.Screen
name="DebugMod" name="DebugMod"
getComponent={() => DebugModScreen} getComponent={() => DebugModScreen}
options={{title: title(msg`Moderation states`), requireAuth: true}} options={{title: title(msg`Moderation states`), requireAuth: true}}
getId={web(() => 'debug-mod')}
/> />
<Stack.Screen <Stack.Screen
name="SharedPreferencesTester" name="SharedPreferencesTester"
getComponent={() => SharedPreferencesTesterScreen} getComponent={() => SharedPreferencesTesterScreen}
options={{title: title(msg`Shared Preferences Tester`)}} options={{title: title(msg`Shared Preferences Tester`)}}
getId={web(() => 'shared-preferences-tester')}
/> />
<Stack.Screen <Stack.Screen
name="Log" name="Log"
getComponent={() => LogScreen} getComponent={() => LogScreen}
options={{title: title(msg`Log`), requireAuth: true}} options={{title: title(msg`Log`), requireAuth: true}}
getId={web(() => 'log')}
/> />
<Stack.Screen <Stack.Screen
name="Support" name="Support"
@@ -334,11 +411,13 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
name="AppPasswords" name="AppPasswords"
getComponent={() => AppPasswordsScreen} getComponent={() => AppPasswordsScreen}
options={{title: title(msg`App Passwords`), requireAuth: true}} options={{title: title(msg`App Passwords`), requireAuth: true}}
getId={web(() => 'app-passwords')}
/> />
<Stack.Screen <Stack.Screen
name="SavedFeeds" name="SavedFeeds"
getComponent={() => SavedFeeds} getComponent={() => SavedFeeds}
options={{title: title(msg`Edit My Feeds`), requireAuth: true}} options={{title: title(msg`Edit My Feeds`), requireAuth: true}}
getId={web(() => 'saved-feeds')}
/> />
<Stack.Screen <Stack.Screen
name="PreferencesFollowingFeed" name="PreferencesFollowingFeed"
@@ -347,11 +426,13 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Following Feed Preferences`), title: title(msg`Following Feed Preferences`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'following-feed-preferences')}
/> />
<Stack.Screen <Stack.Screen
name="PreferencesThreads" name="PreferencesThreads"
getComponent={() => ThreadPreferencesScreen} getComponent={() => ThreadPreferencesScreen}
options={{title: title(msg`Threads Preferences`), requireAuth: true}} options={{title: title(msg`Threads Preferences`), requireAuth: true}}
getId={web(() => 'threads-preferences')}
/> />
<Stack.Screen <Stack.Screen
name="PreferencesExternalEmbeds" name="PreferencesExternalEmbeds"
@@ -360,6 +441,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`External Media Preferences`), title: title(msg`External Media Preferences`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'external-media-preferences')}
/> />
<Stack.Screen <Stack.Screen
name="AccessibilitySettings" name="AccessibilitySettings"
@@ -368,6 +450,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Accessibility Settings`), title: title(msg`Accessibility Settings`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'accessibility-settings')}
/> />
<Stack.Screen <Stack.Screen
name="AppearanceSettings" name="AppearanceSettings"
@@ -376,6 +459,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Appearance`), title: title(msg`Appearance`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'appearance-settings')}
/> />
<Stack.Screen <Stack.Screen
name="AccountSettings" name="AccountSettings"
@@ -384,6 +468,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Account`), title: title(msg`Account`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'account-settings')}
/> />
<Stack.Screen <Stack.Screen
name="PrivacyAndSecuritySettings" name="PrivacyAndSecuritySettings"
@@ -392,6 +477,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Privacy and Security`), title: title(msg`Privacy and Security`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'privacy-and-security-settings')}
/> />
<Stack.Screen <Stack.Screen
name="ActivityPrivacySettings" name="ActivityPrivacySettings"
@@ -400,11 +486,13 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Privacy and Security`), title: title(msg`Privacy and Security`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'activity-privacy-settings')}
/> />
<Stack.Screen <Stack.Screen
name="NotificationSettings" name="NotificationSettings"
getComponent={() => NotificationSettingsScreen} getComponent={() => NotificationSettingsScreen}
options={{title: title(msg`Notification settings`), requireAuth: true}} options={{title: title(msg`Notification settings`), requireAuth: true}}
getId={web(() => 'notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="ReplyNotificationSettings" name="ReplyNotificationSettings"
@@ -413,6 +501,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Reply notifications`), title: title(msg`Reply notifications`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'reply-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="MentionNotificationSettings" name="MentionNotificationSettings"
@@ -421,6 +510,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Mention notifications`), title: title(msg`Mention notifications`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'mention-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="QuoteNotificationSettings" name="QuoteNotificationSettings"
@@ -429,6 +519,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Quote notifications`), title: title(msg`Quote notifications`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'quote-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="LikeNotificationSettings" name="LikeNotificationSettings"
@@ -437,6 +528,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Like notifications`), title: title(msg`Like notifications`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'like-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="RepostNotificationSettings" name="RepostNotificationSettings"
@@ -445,6 +537,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Repost notifications`), title: title(msg`Repost notifications`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'repost-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="NewFollowerNotificationSettings" name="NewFollowerNotificationSettings"
@@ -453,6 +546,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`New follower notifications`), title: title(msg`New follower notifications`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'new-follower-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="LikesOnRepostsNotificationSettings" name="LikesOnRepostsNotificationSettings"
@@ -461,6 +555,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Likes of your reposts notifications`), title: title(msg`Likes of your reposts notifications`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'likes-on-reposts-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="RepostsOnRepostsNotificationSettings" name="RepostsOnRepostsNotificationSettings"
@@ -469,6 +564,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Reposts of your reposts notifications`), title: title(msg`Reposts of your reposts notifications`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'reposts-on-reposts-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="ActivityNotificationSettings" name="ActivityNotificationSettings"
@@ -477,6 +573,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Activity notifications`), title: title(msg`Activity notifications`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'activity-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="MiscellaneousNotificationSettings" name="MiscellaneousNotificationSettings"
@@ -485,6 +582,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Miscellaneous notifications`), title: title(msg`Miscellaneous notifications`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'miscellaneous-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="ContentAndMediaSettings" name="ContentAndMediaSettings"
@@ -493,6 +591,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Content and Media`), title: title(msg`Content and Media`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'content-and-media-settings')}
/> />
<Stack.Screen <Stack.Screen
name="InterestsSettings" name="InterestsSettings"
@@ -501,6 +600,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Your interests`), title: title(msg`Your interests`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'interests-settings')}
/> />
<Stack.Screen <Stack.Screen
name="AboutSettings" name="AboutSettings"
@@ -509,6 +609,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`About`), title: title(msg`About`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'about-settings')}
/> />
<Stack.Screen <Stack.Screen
name="AppIconSettings" name="AppIconSettings"
@@ -517,66 +618,91 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`App Icon`), title: title(msg`App Icon`),
requireAuth: true, requireAuth: true,
}} }}
getId={web(() => 'app-icon-settings')}
/> />
<Stack.Screen <Stack.Screen
name="Hashtag" name="Hashtag"
getComponent={() => HashtagScreen} getComponent={() => HashtagScreen}
options={{title: title(msg`Hashtag`)}} options={{title: title(msg`Hashtag`)}}
getId={web(
(route: React.ComponentProps<typeof HashtagScreen>['route']) =>
`hashtag-${route.params.tag}-${route.params.author ?? 'all'}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="Topic" name="Topic"
getComponent={() => TopicScreen} getComponent={() => TopicScreen}
options={{title: title(msg`Topic`)}} options={{title: title(msg`Topic`)}}
getId={web(
(route: React.ComponentProps<typeof TopicScreen>['route']) =>
`topic-${route.params.topic}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="MessagesConversation" name="MessagesConversation"
getComponent={() => MessagesConversationScreen} getComponent={() => MessagesConversationScreen}
options={{title: title(msg`Chat`), requireAuth: true}} options={{title: title(msg`Chat`), requireAuth: true}}
getId={web(
(
route: React.ComponentProps<
typeof MessagesConversationScreen
>['route'],
) => `conversation-${route.params.conversation}`,
)}
/> />
<Stack.Screen <Stack.Screen
name="MessagesSettings" name="MessagesSettings"
getComponent={() => MessagesSettingsScreen} getComponent={() => MessagesSettingsScreen}
options={{title: title(msg`Chat settings`), requireAuth: true}} options={{title: title(msg`Chat settings`), requireAuth: true}}
getId={web(() => 'chat-settings')}
/> />
<Stack.Screen <Stack.Screen
name="MessagesInbox" name="MessagesInbox"
getComponent={() => MessagesInboxScreen} getComponent={() => MessagesInboxScreen}
options={{title: title(msg`Chat request inbox`), requireAuth: true}} options={{title: title(msg`Chat request inbox`), requireAuth: true}}
getId={web(() => 'chat-inbox')}
/> />
<Stack.Screen <Stack.Screen
name="NotificationsActivityList" name="NotificationsActivityList"
getComponent={() => NotificationsActivityListScreen} getComponent={() => NotificationsActivityListScreen}
options={{title: title(msg`Notifications`), requireAuth: true}} options={{title: title(msg`Notifications`), requireAuth: true}}
getId={web(() => 'notifications-activity-list')}
/> />
<Stack.Screen <Stack.Screen
name="LegacyNotificationSettings" name="LegacyNotificationSettings"
getComponent={() => LegacyNotificationSettingsScreen} getComponent={() => LegacyNotificationSettingsScreen}
options={{title: title(msg`Notification settings`), requireAuth: true}} options={{title: title(msg`Notification settings`), requireAuth: true}}
getId={web(() => 'legacy-notification-settings')}
/> />
<Stack.Screen <Stack.Screen
name="Feeds" name="Feeds"
getComponent={() => FeedsScreen} getComponent={() => FeedsScreen}
options={{title: title(msg`Feeds`)}} options={{title: title(msg`Feeds`)}}
getId={web(() => 'feeds')}
/> />
<Stack.Screen <Stack.Screen
name="StarterPack" name="StarterPack"
getComponent={() => StarterPackScreen} getComponent={() => StarterPackScreen}
options={{title: title(msg`Starter Pack`)}} options={{title: title(msg`Starter Pack`)}}
// leave id blank
/> />
<Stack.Screen <Stack.Screen
name="StarterPackShort" name="StarterPackShort"
getComponent={() => StarterPackScreenShort} getComponent={() => StarterPackScreenShort}
options={{title: title(msg`Starter Pack`)}} options={{title: title(msg`Starter Pack`)}}
// leave id blank
/> />
<Stack.Screen <Stack.Screen
name="StarterPackWizard" name="StarterPackWizard"
getComponent={() => Wizard} getComponent={() => Wizard}
options={{title: title(msg`Create a starter pack`), requireAuth: true}} options={{title: title(msg`Create a starter pack`), requireAuth: true}}
// leave id blank
/> />
<Stack.Screen <Stack.Screen
name="StarterPackEdit" name="StarterPackEdit"
getComponent={() => Wizard} getComponent={() => Wizard}
options={{title: title(msg`Edit your starter pack`), requireAuth: true}} options={{title: title(msg`Edit your starter pack`), requireAuth: true}}
// leave id blank
/> />
<Stack.Screen <Stack.Screen
name="VideoFeed" name="VideoFeed"
@@ -585,6 +711,7 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) {
title: title(msg`Video Feed`), title: title(msg`Video Feed`),
requireAuth: true, requireAuth: true,
}} }}
// native only, no id needed
/> />
</> </>
) )