custom social-app service view
This commit is contained in:
BIN
ios/assets/splash/illustration-mobile-dark.png
Normal file
BIN
ios/assets/splash/illustration-mobile-dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
BIN
ios/assets/splash/illustration-mobile.png
Normal file
BIN
ios/assets/splash/illustration-mobile.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
@@ -1,16 +1,13 @@
|
|||||||
diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/Profile/Header/ProfileHeaderStandard.tsx
|
--- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx 2026-02-16 03:00:07
|
||||||
--- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx
|
+++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx 2026-02-16 03:02:25
|
||||||
+++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx
|
@@ -1,5 +1,5 @@
|
||||||
@@ -1,25 +1,27 @@
|
|
||||||
import {memo, useMemo, useState} from 'react'
|
import {memo, useMemo, useState} from 'react'
|
||||||
-import {View} from 'react-native'
|
-import {View} from 'react-native'
|
||||||
+import {Image, Pressable, View} from 'react-native'
|
+import {Image, Pressable, View} from 'react-native'
|
||||||
import {
|
import {
|
||||||
type AppBskyActorDefs,
|
type AppBskyActorDefs,
|
||||||
moderateProfile,
|
moderateProfile,
|
||||||
type ModerationDecision,
|
@@ -9,9 +9,11 @@
|
||||||
type ModerationOpts,
|
|
||||||
type RichText as RichTextAPI,
|
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {msg, Trans} from '@lingui/macro'
|
import {msg, Trans} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
@@ -22,8 +19,7 @@ diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/
|
|||||||
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
import {sanitizeDisplayName} from '#/lib/strings/display-names'
|
||||||
import {sanitizeHandle} from '#/lib/strings/handles'
|
import {sanitizeHandle} from '#/lib/strings/handles'
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {type Shadow, useProfileShadow} from '#/state/cache/profile-shadow'
|
@@ -20,7 +22,7 @@
|
||||||
import {
|
|
||||||
useProfileBlockMutationQueue,
|
useProfileBlockMutationQueue,
|
||||||
useProfileFollowMutationQueue,
|
useProfileFollowMutationQueue,
|
||||||
} from '#/state/queries/profile'
|
} from '#/state/queries/profile'
|
||||||
@@ -31,10 +27,12 @@ diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/
|
|||||||
+import {useAgent, useRequireAuth, useSession} from '#/state/session'
|
+import {useAgent, useRequireAuth, useSession} from '#/state/session'
|
||||||
import {ProfileMenu} from '#/view/com/profile/ProfileMenu'
|
import {ProfileMenu} from '#/view/com/profile/ProfileMenu'
|
||||||
import {atoms as a, platform, useBreakpoints, useTheme} from '#/alf'
|
import {atoms as a, platform, useBreakpoints, useTheme} from '#/alf'
|
||||||
@@ -45,6 +47,71 @@
|
import {SubscribeProfileButton} from '#/components/activity-notifications/SubscribeProfileButton'
|
||||||
|
@@ -45,6 +47,83 @@
|
||||||
|
import {ProfileHeaderMetrics} from './Metrics'
|
||||||
import {ProfileHeaderShell} from './Shell'
|
import {ProfileHeaderShell} from './Shell'
|
||||||
import {AnimatedProfileHeaderSuggestedFollows} from './SuggestedFollows'
|
import {ProfileHeaderSuggestedFollows} from './SuggestedFollows'
|
||||||
|
+
|
||||||
+const SERVICE_FAVICONS: Record<string, any> = {
|
+const SERVICE_FAVICONS: Record<string, any> = {
|
||||||
+ 'syui.ai': require('../../../../assets/favicons/syui.ai.png'),
|
+ 'syui.ai': require('../../../../assets/favicons/syui.ai.png'),
|
||||||
+ 'bsky.app': require('../../../../assets/favicons/bsky.app.png'),
|
+ 'bsky.app': require('../../../../assets/favicons/bsky.app.png'),
|
||||||
@@ -78,20 +76,32 @@ diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/
|
|||||||
+ key={service}
|
+ key={service}
|
||||||
+ onPress={() =>
|
+ onPress={() =>
|
||||||
+ openLink(
|
+ openLink(
|
||||||
+ `https://syui.ai/@${profile.handle}/at/service/${service}`,
|
+ `https://at.syu.is/@${profile.handle}/at/service/${service}`,
|
||||||
+ )
|
+ )
|
||||||
+ }
|
+ }
|
||||||
+ style={[a.flex_row, a.align_center, a.gap_xs]}>
|
+ style={[
|
||||||
|
+ a.flex_row,
|
||||||
|
+ a.align_center,
|
||||||
|
+ a.gap_xs,
|
||||||
|
+ a.rounded_full,
|
||||||
|
+ t.atoms.bg_contrast_50,
|
||||||
|
+ {paddingVertical: 6, paddingHorizontal: 10},
|
||||||
|
+ ]}>
|
||||||
+ <Image
|
+ <Image
|
||||||
+ source={
|
+ source={
|
||||||
+ SERVICE_FAVICONS[service] || {
|
+ SERVICE_FAVICONS[service] || {
|
||||||
+ uri: `https://www.google.com/s2/favicons?domain=${service}&sz=32`,
|
+ uri: `https://www.google.com/s2/favicons?domain=${service}&sz=32`,
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ style={{width: 16, height: 16, borderRadius: 4}}
|
+ style={{width: 14, height: 14, borderRadius: 3}}
|
||||||
+ accessibilityIgnoresInvertColors
|
+ accessibilityIgnoresInvertColors
|
||||||
+ />
|
+ />
|
||||||
+ <Text style={[a.text_xs, {color: t.palette.primary_500}]}>
|
+ <Text
|
||||||
|
+ style={[
|
||||||
|
+ a.text_xs,
|
||||||
|
+ a.font_medium,
|
||||||
|
+ t.atoms.text_contrast_medium,
|
||||||
|
+ ]}>
|
||||||
+ {service}
|
+ {service}
|
||||||
+ </Text>
|
+ </Text>
|
||||||
+ </Pressable>
|
+ </Pressable>
|
||||||
@@ -99,11 +109,10 @@ diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/
|
|||||||
+ </View>
|
+ </View>
|
||||||
+ )
|
+ )
|
||||||
+}
|
+}
|
||||||
+
|
|
||||||
interface Props {
|
interface Props {
|
||||||
profile: AppBskyActorDefs.ProfileViewDetailed
|
profile: AppBskyActorDefs.ProfileViewDetailed
|
||||||
descriptionRT: RichTextAPI | null
|
@@ -151,6 +230,7 @@
|
||||||
@@ -150,6 +217,7 @@
|
|
||||||
{!isPlaceholderProfile && !isBlockedUser && (
|
{!isPlaceholderProfile && !isBlockedUser && (
|
||||||
<View style={a.gap_md}>
|
<View style={a.gap_md}>
|
||||||
<ProfileHeaderMetrics profile={profile} />
|
<ProfileHeaderMetrics profile={profile} />
|
||||||
|
|||||||
50
ios/patching/040-social-app-ios-hide-composer-prompt.patch
Normal file
50
ios/patching/040-social-app-ios-hide-composer-prompt.patch
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
--- a/src/view/com/posts/PostFeed.tsx 2026-02-16 02:19:59
|
||||||
|
+++ b/src/view/com/posts/PostFeed.tsx 2026-02-16 02:20:13
|
||||||
|
@@ -519,16 +519,17 @@
|
||||||
|
key: 'liveEventFeedsAndTrendingBanner-' + sliceIndex,
|
||||||
|
})
|
||||||
|
// Show composer prompt for Discover and Following feeds
|
||||||
|
- if (
|
||||||
|
- hasSession &&
|
||||||
|
- (feedUriOrActorDid === DISCOVER_FEED_URI ||
|
||||||
|
- feed === 'following')
|
||||||
|
- ) {
|
||||||
|
- arr.push({
|
||||||
|
- type: 'composerPrompt',
|
||||||
|
- key: 'composerPrompt-' + sliceIndex,
|
||||||
|
- })
|
||||||
|
- }
|
||||||
|
+ // Disabled: hide composer prompt
|
||||||
|
+ // if (
|
||||||
|
+ // hasSession &&
|
||||||
|
+ // (feedUriOrActorDid === DISCOVER_FEED_URI ||
|
||||||
|
+ // feed === 'following')
|
||||||
|
+ // ) {
|
||||||
|
+ // arr.push({
|
||||||
|
+ // type: 'composerPrompt',
|
||||||
|
+ // key: 'composerPrompt-' + sliceIndex,
|
||||||
|
+ // })
|
||||||
|
+ // }
|
||||||
|
} else if (sliceIndex === 15) {
|
||||||
|
if (areVideoFeedsEnabled && !trendingVideoDisabled) {
|
||||||
|
arr.push({
|
||||||
|
@@ -545,12 +546,13 @@
|
||||||
|
} else if (feedKind === 'following') {
|
||||||
|
if (sliceIndex === 0) {
|
||||||
|
// Show composer prompt for Following feed
|
||||||
|
- if (hasSession) {
|
||||||
|
- arr.push({
|
||||||
|
- type: 'composerPrompt',
|
||||||
|
- key: 'composerPrompt-' + sliceIndex,
|
||||||
|
- })
|
||||||
|
- }
|
||||||
|
+ // Disabled: hide composer prompt
|
||||||
|
+ // if (hasSession) {
|
||||||
|
+ // arr.push({
|
||||||
|
+ // type: 'composerPrompt',
|
||||||
|
+ // key: 'composerPrompt-' + sliceIndex,
|
||||||
|
+ // })
|
||||||
|
+ // }
|
||||||
|
}
|
||||||
|
} else if (feedKind === 'profile') {
|
||||||
|
if (sliceIndex === 5) {
|
||||||
14
ios/patching/041-social-app-ios-splash-signin-button.patch
Normal file
14
ios/patching/041-social-app-ios-splash-signin-button.patch
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
--- a/src/view/com/auth/SplashScreen.tsx 2026-02-16 02:55:08
|
||||||
|
+++ b/src/view/com/auth/SplashScreen.tsx 2026-02-16 02:55:16
|
||||||
|
@@ -118,8 +118,9 @@
|
||||||
|
accessibilityHint={_(
|
||||||
|
msg`Opens flow to sign in to your existing Bluesky account`,
|
||||||
|
)}
|
||||||
|
- size="large">
|
||||||
|
- <ButtonText style={{color: 'white'}}>
|
||||||
|
+ size="large"
|
||||||
|
+ color="primary">
|
||||||
|
+ <ButtonText>
|
||||||
|
<Trans>Sign in</Trans>
|
||||||
|
</ButtonText>
|
||||||
|
</Button>
|
||||||
@@ -47,6 +47,8 @@ PATCH_FILES_IOS=(
|
|||||||
"037-social-app-ios-disable-contacts-nux.patch"
|
"037-social-app-ios-disable-contacts-nux.patch"
|
||||||
"038-social-app-ios-profile-services.patch"
|
"038-social-app-ios-profile-services.patch"
|
||||||
"039-social-app-ios-hide-feed-controls.patch"
|
"039-social-app-ios-hide-feed-controls.patch"
|
||||||
|
"040-social-app-ios-hide-composer-prompt.patch"
|
||||||
|
"041-social-app-ios-splash-signin-button.patch"
|
||||||
)
|
)
|
||||||
|
|
||||||
function ios-env() {
|
function ios-env() {
|
||||||
|
|||||||
Reference in New Issue
Block a user