mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add labels to a few missing places (#4838)

authored by

Eric Bailey and committed by
GitHub
783fd351 e7b485f1

+60 -18
+1
src/components/dms/BlockedByListDialog.tsx
··· 42 42 <React.Fragment key={block.source.list.uri}> 43 43 {i === 0 ? null : ', '} 44 44 <InlineLinkText 45 + label={block.source.list.name} 45 46 to={listUriToHref(block.source.list.uri)} 46 47 style={[a.text_md, a.leading_snug]}> 47 48 {block.source.list.name}
+2
src/components/dms/MessagesListHeader.tsx
··· 140 140 userBlock?: ModerationCause 141 141 } 142 142 }) { 143 + const {_} = useLingui() 143 144 const t = useTheme() 144 145 const convoState = useConvo() 145 146 const profile = useProfileShadow(profileUnshadowed) ··· 156 157 <View style={[a.flex_1]}> 157 158 <View style={[a.w_full, a.flex_row, a.align_center, a.justify_between]}> 158 159 <Link 160 + label={_(msg`View ${displayName}'s profile`)} 159 161 style={[a.flex_row, a.align_start, a.gap_md, a.flex_1, a.pr_md]} 160 162 to={makeProfileLink(profile)}> 161 163 <View style={[a.pt_2xs]}>
+5 -2
src/components/moderation/LabelPreference.tsx
··· 174 174 disabled?: boolean 175 175 labelerDid?: string 176 176 }) { 177 - const {i18n} = useLingui() 177 + const {_, i18n} = useLingui() 178 178 const t = useTheme() 179 179 const {gtPhone} = useBreakpoints() 180 180 ··· 243 243 ) : isGlobalLabel ? ( 244 244 <Trans> 245 245 Configured in{' '} 246 - <InlineLinkText to="/moderation" style={a.text_sm}> 246 + <InlineLinkText 247 + label={_(msg`moderation settings`)} 248 + to="/moderation" 249 + style={a.text_sm}> 247 250 moderation settings 248 251 </InlineLinkText> 249 252 .
+10 -4
src/components/moderation/LabelsOnMeDialog.tsx
··· 128 128 const t = useTheme() 129 129 const {_} = useLingui() 130 130 const {labeler, strings} = useLabelInfo(label) 131 + const sourceName = labeler 132 + ? sanitizeHandle(labeler.creator.handle, '@') 133 + : label.src 131 134 return ( 132 135 <View 133 136 style={[ ··· 169 172 <Trans> 170 173 Source:{' '} 171 174 <InlineLinkText 175 + label={sourceName} 172 176 to={makeProfileLink( 173 177 labeler ? labeler.creator : {did: label.src, handle: ''}, 174 178 )} 175 179 onPress={() => control.close()}> 176 - {labeler 177 - ? sanitizeHandle(labeler.creator.handle, '@') 178 - : label.src} 180 + {sourceName} 179 181 </InlineLinkText> 180 182 </Trans> 181 183 )} ··· 203 205 const isAccountReport = 'did' in subject 204 206 const agent = useAgent() 205 207 const gate = useGate() 208 + const sourceName = labeler 209 + ? sanitizeHandle(labeler.creator.handle, '@') 210 + : label.src 206 211 207 212 const {mutate, isPending} = useMutation({ 208 213 mutationFn: async () => { ··· 260 265 <Trans> 261 266 This appeal will be sent to{' '} 262 267 <InlineLinkText 268 + label={sourceName} 263 269 to={makeProfileLink( 264 270 labeler ? labeler.creator : {did: label.src, handle: ''}, 265 271 )} 266 272 onPress={() => control.close()} 267 273 style={[a.text_md, a.leading_snug]}> 268 - {labeler ? sanitizeHandle(labeler.creator.handle, '@') : label.src} 274 + {sourceName} 269 275 </InlineLinkText> 270 276 . 271 277 </Trans>
+16 -4
src/screens/Moderation/index.tsx
··· 240 240 )} 241 241 </Button> 242 242 <Divider /> 243 - <Link testID="moderationlistsBtn" to="/moderation/modlists"> 243 + <Link 244 + label={_(msg`View your moderation lists`)} 245 + testID="moderationlistsBtn" 246 + to="/moderation/modlists"> 244 247 {state => ( 245 248 <SubItem 246 249 title={_(msg`Moderation lists`)} ··· 252 255 )} 253 256 </Link> 254 257 <Divider /> 255 - <Link testID="mutedAccountsBtn" to="/moderation/muted-accounts"> 258 + <Link 259 + label={_(msg`View your muted accounts`)} 260 + testID="mutedAccountsBtn" 261 + to="/moderation/muted-accounts"> 256 262 {state => ( 257 263 <SubItem 258 264 title={_(msg`Muted accounts`)} ··· 264 270 )} 265 271 </Link> 266 272 <Divider /> 267 - <Link testID="blockedAccountsBtn" to="/moderation/blocked-accounts"> 273 + <Link 274 + label={_(msg`View your blocked accounts`)} 275 + testID="blockedAccountsBtn" 276 + to="/moderation/blocked-accounts"> 268 277 {state => ( 269 278 <SubItem 270 279 title={_(msg`Blocked accounts`)} ··· 356 365 <Trans> 357 366 Adult content can only be enabled via the Web at{' '} 358 367 <InlineLinkText 368 + label={_(msg`The Bluesky web application`)} 359 369 to="" 360 370 onPress={evt => { 361 371 evt.preventDefault() ··· 569 579 </Trans> 570 580 </Text> 571 581 572 - <InlineLinkText to="https://blueskyweb.zendesk.com/hc/en-us/articles/15835264007693-Data-Privacy"> 582 + <InlineLinkText 583 + label={_(msg`Learn more about what is public on Bluesky.`)} 584 + to="https://blueskyweb.zendesk.com/hc/en-us/articles/15835264007693-Data-Privacy"> 573 585 <Trans>Learn more about what is public on Bluesky.</Trans> 574 586 </InlineLinkText> 575 587 </View>
+8 -2
src/screens/Signup/StepInfo/Policies.tsx
··· 45 45 const els = [] 46 46 if (tos) { 47 47 els.push( 48 - <InlineLinkText key="tos" to={tos}> 48 + <InlineLinkText 49 + label={_(msg`Read the Bluesky Terms of Service`)} 50 + key="tos" 51 + to={tos}> 49 52 {_(msg`Terms of Service`)} 50 53 </InlineLinkText>, 51 54 ) 52 55 } 53 56 if (pp) { 54 57 els.push( 55 - <InlineLinkText key="pp" to={pp}> 58 + <InlineLinkText 59 + label={_(msg`Read the Bluesky Privacy Policy`)} 60 + key="pp" 61 + to={pp}> 56 62 {_(msg`Privacy Policy`)} 57 63 </InlineLinkText>, 58 64 )
+1
src/screens/Signup/index.tsx
··· 166 166 <Text style={[t.atoms.text, !gtMobile && a.text_md]}> 167 167 <Trans>Having trouble?</Trans>{' '} 168 168 <InlineLinkText 169 + label={_(msg`Contact support`)} 169 170 to={FEEDBACK_FORM_URL({email: state.email})} 170 171 style={[!gtMobile && a.text_md]}> 171 172 <Trans>Contact support</Trans>
+10 -3
src/view/com/auth/SplashScreen.web.tsx
··· 132 132 133 133 function Footer() { 134 134 const t = useTheme() 135 + const {_} = useLingui() 135 136 136 137 return ( 137 138 <View ··· 147 148 a.flex_1, 148 149 t.atoms.border_contrast_medium, 149 150 ]}> 150 - <InlineLinkText to="https://bsky.social"> 151 + <InlineLinkText 152 + label={_(msg`Learn more about Bluesky`)} 153 + to="https://bsky.social"> 151 154 <Trans>Business</Trans> 152 155 </InlineLinkText> 153 - <InlineLinkText to="https://bsky.social/about/blog"> 156 + <InlineLinkText 157 + label={_(msg`Read the Bluesky blog`)} 158 + to="https://bsky.social/about/blog"> 154 159 <Trans>Blog</Trans> 155 160 </InlineLinkText> 156 - <InlineLinkText to="https://bsky.social/about/join"> 161 + <InlineLinkText 162 + label={_(msg`See jobs at Bluesky`)} 163 + to="https://bsky.social/about/join"> 157 164 <Trans>Jobs</Trans> 158 165 </InlineLinkText> 159 166
+1 -1
src/view/com/home/HomeHeaderLayoutMobile.tsx
··· 73 73 ]}> 74 74 {IS_DEV && ( 75 75 <> 76 - <Link to="/sys/debug"> 76 + <Link label="View storybook" to="/sys/debug"> 77 77 <ColorPalette size="md" /> 78 78 </Link> 79 79 </>
+1
src/view/com/posts/FeedShutdownMsg.tsx
··· 99 99 <Trans> 100 100 This feed is no longer online. We are showing{' '} 101 101 <InlineLinkText 102 + label={_(msg`The Discover feed`)} 102 103 to="/profile/bsky.app/feed/whats-hot" 103 104 style={[a.text_md]}> 104 105 Discover
+1
src/view/screens/Settings/ExportCarDialog.tsx
··· 94 94 This feature is in beta. You can read more about repository 95 95 exports in{' '} 96 96 <InlineLinkText 97 + label={_(msg`View blogpost for more details`)} 97 98 to="https://docs.bsky.app/blog/repo-export" 98 99 style={[a.text_sm]}> 99 100 this blogpost
+4 -2
src/view/screens/Storybook/Links.tsx
··· 13 13 <H1>Links</H1> 14 14 15 15 <View style={[a.gap_md, a.align_start]}> 16 - <InlineLinkText to="https://google.com" style={[a.text_lg]}> 16 + <InlineLinkText label="foo" to="https://google.com" style={[a.text_lg]}> 17 17 https://google.com 18 18 </InlineLinkText> 19 - <InlineLinkText to="https://google.com" style={[a.text_lg]}> 19 + <InlineLinkText label="foo" to="https://google.com" style={[a.text_lg]}> 20 20 External with custom children (google.com) 21 21 </InlineLinkText> 22 22 <InlineLinkText 23 + label="foo" 23 24 to="https://bsky.social" 24 25 style={[a.text_md, t.atoms.text_contrast_low]}> 25 26 Internal (bsky.social) 26 27 </InlineLinkText> 27 28 <InlineLinkText 29 + label="foo" 28 30 to="https://bsky.app/profile/bsky.app" 29 31 style={[a.text_md]}> 30 32 Internal (bsky.app)