Remove scenes (#36)

* Remove scenes from the main menu

* Remove scenes from the profile view

* Remove 'scenes explainer' from onboarding flow

* Remove scene-related modals

* Remove member/membership code

* Remove all scenes-related items from notifications

* Remove scene-related code from posts feed

* Remove scene-related API helpers

* Update tests
This commit is contained in:
Paul Frazee
2023-01-17 10:11:30 -06:00
committed by GitHub
parent 5abcc8e336
commit bf1092ad86
29 changed files with 18 additions and 1714 deletions
+2 -23
View File
@@ -11,10 +11,9 @@ import {
import {TabView, SceneMap, Route, TabBarProps} from 'react-native-tab-view'
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
import {Text} from '../util/text/Text'
import {UserGroupIcon} from '../../lib/icons'
import {useStores} from '../../../state'
import {s} from '../../lib/styles'
import {SCENE_EXPLAINER, TABS_EXPLAINER} from '../../lib/assets'
import {TABS_EXPLAINER} from '../../lib/assets'
import {TABS_ENABLED} from '../../../build-flags'
const Intro = () => (
@@ -28,25 +27,7 @@ const Intro = () => (
Welcome to <Text style={[s.bold, s.blue3, {fontSize: 56}]}>Bluesky</Text>
</Text>
<Text style={[styles.explainerDesc, {fontSize: 24}]}>
Let's do a quick tour through the new features.
</Text>
</View>
)
const Scenes = () => (
<View style={styles.explainer}>
<View style={styles.explainerIcon}>
<View style={s.flex1} />
<UserGroupIcon style={s.black} size="48" />
<View style={s.flex1} />
</View>
<Text style={styles.explainerHeading}>Scenes</Text>
<Text style={styles.explainerDesc}>
Scenes are invite-only groups of users. Follow them to see what's trending
with the scene's members.
</Text>
<Text style={styles.explainerDesc}>
<Image source={SCENE_EXPLAINER} style={styles.explainerImg} />
This is an early beta. Your feedback is appreciated!
</Text>
</View>
)
@@ -74,7 +55,6 @@ const Tabs = () => (
const SCENE_MAP = {
intro: Intro,
scenes: Scenes,
tabs: Tabs,
}
const renderScene = SceneMap(SCENE_MAP)
@@ -85,7 +65,6 @@ export const FeatureExplainer = () => {
const [index, setIndex] = useState(0)
const routes = [
{key: 'intro', title: 'Intro'},
{key: 'scenes', title: 'Scenes'},
TABS_ENABLED ? {key: 'tabs', title: 'Tabs'} : undefined,
].filter(Boolean)