Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

show misclass button by the same logic as feedContext (#8445)

authored by

Samuel Newman and committed by
GitHub
40f97d05 442de4ab

+16 -12
+16 -12
src/components/PostControls/PostMenu/PostMenuItems.tsx
··· 26 26 type CommonNavigatorParams, 27 27 type NavigationProp, 28 28 } from '#/lib/routes/types' 29 - import {logEvent} from '#/lib/statsig/statsig' 29 + import {logEvent, useGate} from '#/lib/statsig/statsig' 30 30 import {richTextToString} from '#/lib/strings/rich-text-helpers' 31 31 import {toShareUrl} from '#/lib/strings/url-helpers' 32 32 import {getTranslatorLink} from '#/locale/helpers' ··· 397 397 openLink(url) 398 398 } 399 399 400 + const gate = useGate() 401 + const isDiscoverDebugUser = 402 + IS_INTERNAL || 403 + DISCOVER_DEBUG_DIDS[currentAccount?.did || ''] || 404 + gate('debug_show_feedcontext') 405 + 400 406 return ( 401 407 <> 402 408 <Menu.Outer> ··· 472 478 </> 473 479 )} 474 480 475 - {hasSession && 476 - IS_INTERNAL && 477 - DISCOVER_DEBUG_DIDS[currentAccount?.did ?? ''] && ( 478 - <Menu.Item 479 - testID="postDropdownReportMisclassificationBtn" 480 - label={_(msg`Assign topic for algo`)} 481 - onPress={onReportMisclassification}> 482 - <Menu.ItemText>{_(msg`Assign topic for algo`)}</Menu.ItemText> 483 - <Menu.ItemIcon icon={AtomIcon} position="right" /> 484 - </Menu.Item> 485 - )} 481 + {isDiscoverDebugUser && ( 482 + <Menu.Item 483 + testID="postDropdownReportMisclassificationBtn" 484 + label={_(msg`Assign topic for algo`)} 485 + onPress={onReportMisclassification}> 486 + <Menu.ItemText>{_(msg`Assign topic for algo`)}</Menu.ItemText> 487 + <Menu.ItemIcon icon={AtomIcon} position="right" /> 488 + </Menu.Item> 489 + )} 486 490 487 491 {hasSession && ( 488 492 <>