A few more UX tweaks
parent
0b8dd95f2a
commit
37acc9e930
|
@ -110,26 +110,20 @@ export async function DEFAULT_FEEDS(
|
||||||
}
|
}
|
||||||
} else if (serviceUrl.includes('staging')) {
|
} else if (serviceUrl.includes('staging')) {
|
||||||
return {
|
return {
|
||||||
pinned: [
|
pinned: [STAGING_DEFAULT_FEED('whats-hot')],
|
||||||
STAGING_DEFAULT_FEED('skyline'),
|
|
||||||
STAGING_DEFAULT_FEED('whats-hot'),
|
|
||||||
],
|
|
||||||
saved: [
|
saved: [
|
||||||
STAGING_DEFAULT_FEED('bsky-team'),
|
STAGING_DEFAULT_FEED('bsky-team'),
|
||||||
STAGING_DEFAULT_FEED('skyline'),
|
STAGING_DEFAULT_FEED('with-friends'),
|
||||||
STAGING_DEFAULT_FEED('whats-hot'),
|
STAGING_DEFAULT_FEED('whats-hot'),
|
||||||
STAGING_DEFAULT_FEED('hot-classic'),
|
STAGING_DEFAULT_FEED('hot-classic'),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
pinned: [
|
pinned: [STAGING_DEFAULT_FEED('whats-hot')],
|
||||||
STAGING_DEFAULT_FEED('skyline'),
|
|
||||||
STAGING_DEFAULT_FEED('whats-hot'),
|
|
||||||
],
|
|
||||||
saved: [
|
saved: [
|
||||||
STAGING_DEFAULT_FEED('bsky-team'),
|
STAGING_DEFAULT_FEED('bsky-team'),
|
||||||
STAGING_DEFAULT_FEED('skyline'),
|
STAGING_DEFAULT_FEED('with-friends'),
|
||||||
STAGING_DEFAULT_FEED('whats-hot'),
|
STAGING_DEFAULT_FEED('whats-hot'),
|
||||||
STAGING_DEFAULT_FEED('hot-classic'),
|
STAGING_DEFAULT_FEED('hot-classic'),
|
||||||
],
|
],
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {FlatList} from 'view/com/util/Views'
|
||||||
import {Text} from 'view/com/util/text/Text'
|
import {Text} from 'view/com/util/text/Text'
|
||||||
import {isDesktopWeb} from 'platform/detection'
|
import {isDesktopWeb} from 'platform/detection'
|
||||||
import {s} from 'lib/styles'
|
import {s} from 'lib/styles'
|
||||||
import {Link} from 'view/com/util/Link'
|
import {Link, TextLink} from 'view/com/util/Link'
|
||||||
import {CustomFeed} from './CustomFeed'
|
import {CustomFeed} from './CustomFeed'
|
||||||
|
|
||||||
export const SavedFeeds = observer(
|
export const SavedFeeds = observer(
|
||||||
|
@ -52,14 +52,35 @@ export const SavedFeeds = observer(
|
||||||
|
|
||||||
const renderListFooterComponent = useCallback(() => {
|
const renderListFooterComponent = useCallback(() => {
|
||||||
return (
|
return (
|
||||||
<Link
|
<>
|
||||||
style={[styles.footerLink, pal.border]}
|
<Link
|
||||||
href="/settings/saved-feeds">
|
style={[styles.footerLink, pal.border]}
|
||||||
<FontAwesomeIcon icon="cog" size={18} color={pal.colors.icon} />
|
href="/settings/saved-feeds">
|
||||||
<Text type="lg-medium" style={pal.textLight}>
|
<FontAwesomeIcon icon="cog" size={18} color={pal.colors.icon} />
|
||||||
Settings
|
<Text type="lg-medium" style={pal.textLight}>
|
||||||
</Text>
|
Change Order
|
||||||
</Link>
|
</Text>
|
||||||
|
</Link>
|
||||||
|
<View
|
||||||
|
style={[
|
||||||
|
pal.border,
|
||||||
|
!isDesktopWeb && s.flex1,
|
||||||
|
pal.viewLight,
|
||||||
|
styles.empty,
|
||||||
|
]}>
|
||||||
|
<Text type="sm" style={[pal.text]}>
|
||||||
|
Feeds are custom algorithms that users build with a little coding
|
||||||
|
expertise.{' '}
|
||||||
|
<TextLink
|
||||||
|
type="sm"
|
||||||
|
style={pal.link}
|
||||||
|
href="https://github.com/bluesky-social/feed-generator"
|
||||||
|
text="See this guide"
|
||||||
|
/>{' '}
|
||||||
|
for more information.
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}, [pal])
|
}, [pal])
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ const FeedsTabBarDesktop = observer(
|
||||||
) => {
|
) => {
|
||||||
const store = useStores()
|
const store = useStores()
|
||||||
const items = useMemo(
|
const items = useMemo(
|
||||||
() => ['Following', ...store.me.savedFeeds.pinnedFeedNames, 'My feeds'],
|
() => ['Following', ...store.me.savedFeeds.pinnedFeedNames, 'My Feeds'],
|
||||||
[store.me.savedFeeds.pinnedFeedNames],
|
[store.me.savedFeeds.pinnedFeedNames],
|
||||||
)
|
)
|
||||||
const pal = usePalette('default')
|
const pal = usePalette('default')
|
||||||
|
|
|
@ -33,7 +33,7 @@ export const FeedsTabBar = observer(
|
||||||
}, [store])
|
}, [store])
|
||||||
|
|
||||||
const items = useMemo(
|
const items = useMemo(
|
||||||
() => ['Following', ...store.me.savedFeeds.pinnedFeedNames, 'My feeds'],
|
() => ['Following', ...store.me.savedFeeds.pinnedFeedNames, 'My Feeds'],
|
||||||
[store.me.savedFeeds.pinnedFeedNames],
|
[store.me.savedFeeds.pinnedFeedNames],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue