diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-05-11 16:08:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 16:08:21 -0500 |
commit | ebcd6333863a2073278fad482981d9898c0f20ca (patch) | |
tree | 9417a5c282fc6ce22af2251f437f02b0700c7714 /src/Navigation.tsx | |
parent | 34d8fa59916d87922c83a6cf93e3e288d43dadcc (diff) | |
download | voidsky-ebcd6333863a2073278fad482981d9898c0f20ca.tar.zst |
[APP-635] Mutelists (#601)
* Add lists and profilelist screens * Implement lists screen and lists-list in profiles * Add empty states to the lists screen * Switch (mostly) from blocklists to mutelists * Rework: create a new moderation screen and move everything related under it * Fix moderation screen on desktop web * Tune the empty state code * Change content moderation modal to content filtering * Add CreateMuteList modal * Implement mutelist creation * Add lists listings * Add the ability to create new mutelists * Add 'add to list' tool * Satisfy the hashtag hyphen haters * Add update/delete/subscribe/unsubscribe to lists * Show which list caused a mute * Add list un/subscribe * Add the mute override when viewing a profile's posts * Update to latest backend * Add simulation tests and tune some behaviors * Fix lint * Bump deps * Fix list refresh after creation * Mute list subscriptions -> Mute lists
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index afc7b39b8..4e0403be9 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -33,11 +33,14 @@ import {useStores} from './state' import {HomeScreen} from './view/screens/Home' import {SearchScreen} from './view/screens/Search' import {NotificationsScreen} from './view/screens/Notifications' +import {ModerationScreen} from './view/screens/Moderation' +import {ModerationMuteListsScreen} from './view/screens/ModerationMuteLists' import {NotFoundScreen} from './view/screens/NotFound' import {SettingsScreen} from './view/screens/Settings' import {ProfileScreen} from './view/screens/Profile' import {ProfileFollowersScreen} from './view/screens/ProfileFollowers' import {ProfileFollowsScreen} from './view/screens/ProfileFollows' +import {ProfileListScreen} from './view/screens/ProfileList' import {PostThreadScreen} from './view/screens/PostThread' import {PostLikedByScreen} from './view/screens/PostLikedBy' import {PostRepostedByScreen} from './view/screens/PostRepostedBy' @@ -49,8 +52,8 @@ import {TermsOfServiceScreen} from './view/screens/TermsOfService' import {CommunityGuidelinesScreen} from './view/screens/CommunityGuidelines' import {CopyrightPolicyScreen} from './view/screens/CopyrightPolicy' import {AppPasswords} from 'view/screens/AppPasswords' -import {MutedAccounts} from 'view/screens/MutedAccounts' -import {BlockedAccounts} from 'view/screens/BlockedAccounts' +import {ModerationMutedAccounts} from 'view/screens/ModerationMutedAccounts' +import {ModerationBlockedAccounts} from 'view/screens/ModerationBlockedAccounts' import {getRoutingInstrumentation} from 'lib/sentry' const navigationRef = createNavigationContainerRef<AllNavigatorParams>() @@ -70,6 +73,19 @@ function commonScreens(Stack: typeof HomeTab) { return ( <> <Stack.Screen name="NotFound" component={NotFoundScreen} /> + <Stack.Screen name="Moderation" component={ModerationScreen} /> + <Stack.Screen + name="ModerationMuteLists" + component={ModerationMuteListsScreen} + /> + <Stack.Screen + name="ModerationMutedAccounts" + component={ModerationMutedAccounts} + /> + <Stack.Screen + name="ModerationBlockedAccounts" + component={ModerationBlockedAccounts} + /> <Stack.Screen name="Settings" component={SettingsScreen} /> <Stack.Screen name="Profile" component={ProfileScreen} /> <Stack.Screen @@ -77,6 +93,7 @@ function commonScreens(Stack: typeof HomeTab) { component={ProfileFollowersScreen} /> <Stack.Screen name="ProfileFollows" component={ProfileFollowsScreen} /> + <Stack.Screen name="ProfileList" component={ProfileListScreen} /> <Stack.Screen name="PostThread" component={PostThreadScreen} /> <Stack.Screen name="PostLikedBy" component={PostLikedByScreen} /> <Stack.Screen name="PostRepostedBy" component={PostRepostedByScreen} /> @@ -91,8 +108,6 @@ function commonScreens(Stack: typeof HomeTab) { /> <Stack.Screen name="CopyrightPolicy" component={CopyrightPolicyScreen} /> <Stack.Screen name="AppPasswords" component={AppPasswords} /> - <Stack.Screen name="MutedAccounts" component={MutedAccounts} /> - <Stack.Screen name="BlockedAccounts" component={BlockedAccounts} /> </> ) } |