Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen for searching user's posts #7622

Open
wants to merge 3 commits into
base: samuel/search-lang-select-revamp
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions __e2e__/flows/curate-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ appId: xyz.blueskyweb.app
id: "profileView"
- tapOn:
id: "profileHeaderDropdownBtn"
- tapOn: "Add to Lists"
- tapOn: "Add to lists"
- assertVisible:
id: "userAddRemoveListsModal"
- tapOn:
Expand All @@ -179,7 +179,7 @@ appId: xyz.blueskyweb.app
id: "userAddRemoveListsModal"
- tapOn:
id: "profileHeaderDropdownBtn"
- tapOn: "Add to Lists"
- tapOn: "Add to lists"
- assertVisible:
id: "userAddRemoveListsModal"
- tapOn:
Expand Down
4 changes: 2 additions & 2 deletions __e2e__/flows/profile-screen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ appId: xyz.blueskyweb.app
# Can mute/unmute another user
- tapOn:
id: "profileHeaderDropdownBtn"
- tapOn: "Mute Account"
- tapOn: "Mute account"
- assertVisible: "Account Muted"
- tapOn:
id: "profileHeaderDropdownBtn"
- tapOn: "Unmute Account"
- tapOn: "Unmute account"
- assertNotVisible: "Account Muted"
1 change: 1 addition & 0 deletions bskyweb/cmd/bskyweb/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ func serve(cctx *cli.Context) error {
e.GET("/profile/:handleOrDID/follows", server.WebGeneric)
e.GET("/profile/:handleOrDID/followers", server.WebGeneric)
e.GET("/profile/:handleOrDID/known-followers", server.WebGeneric)
e.GET("/profile/:handleOrDID/search", server.WebGeneric)
e.GET("/profile/:handleOrDID/lists/:rkey", server.WebGeneric)
e.GET("/profile/:handleOrDID/feed/:rkey", server.WebGeneric)
e.GET("/profile/:handleOrDID/feed/:rkey/liked-by", server.WebGeneric)
Expand Down
8 changes: 8 additions & 0 deletions src/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
import {useTheme} from '#/alf'
import {router} from '#/routes'
import {Referrer} from '../modules/expo-bluesky-swiss-army'
import {ProfileSearchScreen} from './screens/Profile/ProfileSearch'
import {AboutSettingsScreen} from './screens/Settings/AboutSettings'
import {AccessibilitySettingsScreen} from './screens/Settings/AccessibilitySettings'
import {AccountSettingsScreen} from './screens/Settings/AccountSettings'
Expand Down Expand Up @@ -198,6 +199,13 @@
getComponent={() => ProfileListScreen}
options={{title: title(msg`List`), requireAuth: true}}
/>
<Stack.Screen
name="ProfileSearch"
getComponent={() => ProfileSearchScreen}
options={{
title: title(msg`Search posts`),
}}
/>
<Stack.Screen
name="PostThread"
getComponent={() => PostThreadScreen}
Expand Down Expand Up @@ -540,7 +548,7 @@
contentStyle: t.atoms.bg,
}}>
<MyProfileTab.Screen
// @ts-ignore // TODO: fix this broken type in ProfileScreen

Check warning on line 551 in src/Navigation.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
name="MyProfile"
getComponent={() => ProfileScreen}
initialParams={{
Expand Down Expand Up @@ -753,7 +761,7 @@
}
navigationRef.addListener('state', handler)

// @ts-ignore I dont know what would make typescript happy but I have a life -prf

Check warning on line 764 in src/Navigation.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
navigationRef.navigate(name, params)
}),
timeout(1e3),
Expand Down Expand Up @@ -819,11 +827,11 @@
resetToTab('NotificationsTab')
} else {
resetToTab('HomeTab')
// @ts-ignore matchPath doesnt give us type-checked output -prf

Check warning on line 830 in src/Navigation.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
navigate(name, params)
}
} else {
// @ts-ignore matchPath doesnt give us type-checked output -prf

Check warning on line 834 in src/Navigation.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
navigate(name, params)
}
}
Expand All @@ -836,7 +844,7 @@
didInit = true

const initMs = Math.round(
// @ts-ignore Emitted by Metro in the bundle prelude

Check warning on line 847 in src/Navigation.tsx

View workflow job for this annotation

GitHub Actions / Run linters

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
performance.now() - global.__BUNDLE_START_TIME__,
)
console.log(`Time to first paint: ${initMs} ms`)
Expand Down
1 change: 1 addition & 0 deletions src/lib/routes/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type CommonNavigatorParams = {
ProfileFollowers: {name: string}
ProfileFollows: {name: string}
ProfileKnownFollowers: {name: string}
ProfileSearch: {name: string; q?: string}
ProfileList: {name: string; rkey: string}
PostThread: {name: string; rkey: string}
PostLikedBy: {name: string; rkey: string}
Expand Down
20 changes: 10 additions & 10 deletions src/locale/locales/an/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ msgstr "Anyade esta canal a las tuyas canals"

#: src/view/com/profile/ProfileMenu.tsx:243
#: src/view/com/profile/ProfileMenu.tsx:246
msgid "Add to Lists"
msgid "Add to lists"
msgstr "Anyadir a listas"

#: src/view/com/feeds/FeedSourceCard.tsx:269
Expand Down Expand Up @@ -1022,12 +1022,12 @@ msgstr "Blocar cuenta"

#: src/view/com/profile/ProfileMenu.tsx:280
#: src/view/com/profile/ProfileMenu.tsx:287
msgid "Block Account"
msgid "Block account"
msgstr "Blocar cuenta"

#: src/view/com/profile/ProfileMenu.tsx:324
#: src/view/com/util/forms/PostDropdownBtnMenuItems.tsx:739
msgid "Block Account?"
msgid "Block account?"
msgstr "Blocar la cuenta?"

#: src/view/screens/ProfileList.tsx:639
Expand Down Expand Up @@ -2927,7 +2927,7 @@ msgstr "Sigue 7 cuentas"

#: src/view/com/profile/ProfileMenu.tsx:222
#: src/view/com/profile/ProfileMenu.tsx:233
msgid "Follow Account"
msgid "Follow account"
msgstr "Seguir cuenta"

#: src/screens/StarterPack/StarterPackScreen.tsx:428
Expand Down Expand Up @@ -4114,7 +4114,7 @@ msgstr "Silenciar {truncatedTag}"

#: src/view/com/profile/ProfileMenu.tsx:259
#: src/view/com/profile/ProfileMenu.tsx:266
msgid "Mute Account"
msgid "Mute account"
msgstr "Silenciar la cuenta"

#: src/view/screens/ProfileList.tsx:627
Expand Down Expand Up @@ -5575,7 +5575,7 @@ msgstr "Denunciar"

#: src/view/com/profile/ProfileMenu.tsx:299
#: src/view/com/profile/ProfileMenu.tsx:302
msgid "Report Account"
msgid "Report account"
msgstr "Denunciar cuenta"

#: src/components/dms/ConvoMenu.tsx:197
Expand Down Expand Up @@ -7351,12 +7351,12 @@ msgstr "Desblocar cuenta"

#: src/view/com/profile/ProfileMenu.tsx:279
#: src/view/com/profile/ProfileMenu.tsx:285
msgid "Unblock Account"
msgid "Unblock account"
msgstr "Desblocar cuenta"

#: src/screens/Profile/Header/ProfileHeaderStandard.tsx:277
#: src/view/com/profile/ProfileMenu.tsx:323
msgid "Unblock Account?"
msgid "Unblock account?"
msgstr "Desblocar cuenta?"

#: src/view/com/util/post-ctrls/RepostButton.web.tsx:72
Expand All @@ -7379,7 +7379,7 @@ msgstr "Deixar de seguir a {0}"

#: src/view/com/profile/ProfileMenu.tsx:221
#: src/view/com/profile/ProfileMenu.tsx:231
msgid "Unfollow Account"
msgid "Unfollow account"
msgstr "Deixar de seguir a esta cuenta"

#: src/screens/Profile/components/ProfileFeedHeader.tsx:514
Expand Down Expand Up @@ -7412,7 +7412,7 @@ msgstr "Deixar de silenciar {truncatedTag}"

#: src/view/com/profile/ProfileMenu.tsx:258
#: src/view/com/profile/ProfileMenu.tsx:264
msgid "Unmute Account"
msgid "Unmute account"
msgstr "Deixar de silenciar cuenta"

#: src/components/TagMenu/index.tsx:223
Expand Down
20 changes: 10 additions & 10 deletions src/locale/locales/ast/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ msgstr ""

#: src/view/com/profile/ProfileMenu.tsx:243
#: src/view/com/profile/ProfileMenu.tsx:246
msgid "Add to Lists"
msgid "Add to lists"
msgstr "Amestar a Llistes"

#: src/view/com/feeds/FeedSourceCard.tsx:269
Expand Down Expand Up @@ -1061,12 +1061,12 @@ msgstr "Bloquiar la cuenta"

#: src/view/com/profile/ProfileMenu.tsx:280
#: src/view/com/profile/ProfileMenu.tsx:287
msgid "Block Account"
msgid "Block account"
msgstr "Bloquiar la cuenta"

#: src/view/com/profile/ProfileMenu.tsx:324
#: src/view/com/util/forms/PostDropdownBtnMenuItems.tsx:739
msgid "Block Account?"
msgid "Block account?"
msgstr "¿Quies bloquiar la cuenta?"

#: src/view/screens/ProfileList.tsx:639
Expand Down Expand Up @@ -3091,7 +3091,7 @@ msgstr ""

#: src/view/com/profile/ProfileMenu.tsx:222
#: src/view/com/profile/ProfileMenu.tsx:233
msgid "Follow Account"
msgid "Follow account"
msgstr ""

#: src/screens/StarterPack/StarterPackScreen.tsx:428
Expand Down Expand Up @@ -4327,7 +4327,7 @@ msgstr ""

#: src/view/com/profile/ProfileMenu.tsx:259
#: src/view/com/profile/ProfileMenu.tsx:266
msgid "Mute Account"
msgid "Mute account"
msgstr ""

#: src/view/screens/ProfileList.tsx:627
Expand Down Expand Up @@ -5926,7 +5926,7 @@ msgstr ""

#: src/view/com/profile/ProfileMenu.tsx:299
#: src/view/com/profile/ProfileMenu.tsx:302
msgid "Report Account"
msgid "Report account"
msgstr ""

#: src/components/dms/ConvoMenu.tsx:197
Expand Down Expand Up @@ -7835,12 +7835,12 @@ msgstr "Desbloquiar la cuenta"

#: src/view/com/profile/ProfileMenu.tsx:279
#: src/view/com/profile/ProfileMenu.tsx:285
msgid "Unblock Account"
msgid "Unblock account"
msgstr ""

#: src/screens/Profile/Header/ProfileHeaderStandard.tsx:277
#: src/view/com/profile/ProfileMenu.tsx:323
msgid "Unblock Account?"
msgid "Unblock account?"
msgstr "¿Quies desbloquiar la cuenta?"

#: src/view/com/util/post-ctrls/RepostButton.web.tsx:72
Expand All @@ -7863,7 +7863,7 @@ msgstr ""

#: src/view/com/profile/ProfileMenu.tsx:221
#: src/view/com/profile/ProfileMenu.tsx:231
msgid "Unfollow Account"
msgid "Unfollow account"
msgstr ""

#: src/screens/Profile/components/ProfileFeedHeader.tsx:514
Expand Down Expand Up @@ -7895,7 +7895,7 @@ msgstr ""

#: src/view/com/profile/ProfileMenu.tsx:258
#: src/view/com/profile/ProfileMenu.tsx:264
msgid "Unmute Account"
msgid "Unmute account"
msgstr ""

#: src/components/TagMenu/index.tsx:223
Expand Down
20 changes: 10 additions & 10 deletions src/locale/locales/ca/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ msgstr "Afegeix aquest canal als teus canals"

#: src/view/com/profile/ProfileMenu.tsx:243
#: src/view/com/profile/ProfileMenu.tsx:246
msgid "Add to Lists"
msgid "Add to lists"
msgstr "Afegeix a les llistes"

#: src/view/com/feeds/FeedSourceCard.tsx:269
Expand Down Expand Up @@ -1290,12 +1290,12 @@ msgstr "Bloqueja el compte"

#: src/view/com/profile/ProfileMenu.tsx:280
#: src/view/com/profile/ProfileMenu.tsx:287
msgid "Block Account"
msgid "Block account"
msgstr "Bloqueja el compte"

#: src/view/com/profile/ProfileMenu.tsx:324
#: src/view/com/util/forms/PostDropdownBtnMenuItems.tsx:739
msgid "Block Account?"
msgid "Block account?"
msgstr "Vols bloquejar el compte?"

#: src/view/screens/ProfileList.tsx:639
Expand Down Expand Up @@ -3719,7 +3719,7 @@ msgstr "Segueix 7 comptes"

#: src/view/com/profile/ProfileMenu.tsx:222
#: src/view/com/profile/ProfileMenu.tsx:233
msgid "Follow Account"
msgid "Follow account"
msgstr "Segueix el compte"

#: src/screens/StarterPack/StarterPackScreen.tsx:428
Expand Down Expand Up @@ -5206,7 +5206,7 @@ msgstr "Silencia {truncatedTag}"

#: src/view/com/profile/ProfileMenu.tsx:259
#: src/view/com/profile/ProfileMenu.tsx:266
msgid "Mute Account"
msgid "Mute account"
msgstr "Silenciar el compte"

#: src/view/screens/ProfileList.tsx:627
Expand Down Expand Up @@ -7091,7 +7091,7 @@ msgstr "Informa"

#: src/view/com/profile/ProfileMenu.tsx:299
#: src/view/com/profile/ProfileMenu.tsx:302
msgid "Report Account"
msgid "Report account"
msgstr "Informa del compte"

#: src/components/dms/ConvoMenu.tsx:197
Expand Down Expand Up @@ -9508,12 +9508,12 @@ msgstr "Desbloqueja el compte"

#: src/view/com/profile/ProfileMenu.tsx:279
#: src/view/com/profile/ProfileMenu.tsx:285
msgid "Unblock Account"
msgid "Unblock account"
msgstr "Desbloqueja el compte"

#: src/screens/Profile/Header/ProfileHeaderStandard.tsx:277
#: src/view/com/profile/ProfileMenu.tsx:323
msgid "Unblock Account?"
msgid "Unblock account?"
msgstr "Vols desbloquejar el compte?"

#: src/view/com/util/post-ctrls/RepostButton.web.tsx:72
Expand All @@ -9540,7 +9540,7 @@ msgstr "Deixa de seguir a {0}"

#: src/view/com/profile/ProfileMenu.tsx:221
#: src/view/com/profile/ProfileMenu.tsx:231
msgid "Unfollow Account"
msgid "Unfollow account"
msgstr "Deixa de seguir el compte"

#: src/view/com/auth/create/state.ts:262
Expand Down Expand Up @@ -9576,7 +9576,7 @@ msgstr "Deixa de silenciar {truncatedTag}"

#: src/view/com/profile/ProfileMenu.tsx:258
#: src/view/com/profile/ProfileMenu.tsx:264
msgid "Unmute Account"
msgid "Unmute account"
msgstr "Deixa de silenciar el compte"

#: src/components/TagMenu/index.tsx:223
Expand Down
Loading
Loading