Repository navigation
Open
Description
These were TODO / "for now" / hack comments in packages/mobile. The comment purge deleted them (policy: docs/adr/0001-no-code-comments.md), so they are tracked here instead. Each link points at the original comment on b3133cffff.
Likely live bugs (confirmed in source):
- Mobile useExploreSectionTracking ignores sectionName and records no Explore section impressions; wire up the impression event or rename the hook. (src/screens/explore-screen/hooks/useExploreSectionTracking.ts#L5)
- processTrackFile lets an undefined MIME type through (
if (type && ...)) although the intent is to reject it; reject missing types or confirm the extension check is enough. (src/screens/upload-screen/utils/processTrackFile.ts#L57) - EditCoinDetailsScreen logs
e instanceof Error(a boolean) instead of the error, so coin-detail save failures lose their details; loge. (src/screens/coin-details-screen/EditCoinDetailsScreen.tsx#L332)
Rest:
- Confirm whether listContainer works with flex: 1 (RN sets flexBasis 0) and either use flex or document the actual reason. (src/screens/chat-screen/ChatScreen.tsx#L107)
- Reset the unread separator state explicitly on blur instead of mutating chatFrozenRef.current.unread_message_count. (src/screens/chat-screen/ChatScreen.tsx#L361)
- Type ChatTextInput handleChange linkEntities as LinkEntity[] instead of any[]. (src/screens/chat-screen/ChatTextInput.tsx#L47)
- Add a skeleton loading state to BalanceCard instead of returning null. (src/screens/coin-details-screen/components/BalanceCard.tsx#L310)
- Add a loading state to CoinInfoCard instead of returning null. (src/screens/coin-details-screen/components/CoinInfoCard.tsx#L89)
- Use a theme color with opacity for the graduated badge background instead of a hardcoded rgba. (src/screens/coin-details-screen/components/CoinInsightsCard.tsx#L43)
- Build the coin share URL from the environment's configured public site domain instead of hardcoding https://audius.co. (src/screens/coin-details-screen/components/CoinInsightsOverflowMenu.tsx#L39)
- Widen the SDK uploadFile/updateCoin types to accept React Native { uri, name, type } file objects and drop the as any cast. (src/screens/coin-details-screen/EditCoinDetailsScreen.tsx#L321)
- Fix the Collection route param type to allow undefined params instead of defaulting with params ?? {}. (src/screens/collection-screen/CollectionScreen.tsx#L80)
- Make useDeleteComment entity-agnostic so event comments do not pass eventId as trackId. (src/screens/contest-screen/ContestCommentsList.tsx#L416)
- Use QUERY_KEYS.eventComments instead of the hardcoded ['eventComments', eventId] key. (src/screens/contest-screen/ContestScreen.tsx#L233)
- Await the invalidated queries (refetch promise) to end the refresh spinner instead of a fixed setTimeout. (src/screens/contest-screen/ContestScreen.tsx#L237)
- Build a native Pick Winners flow instead of the drawer deferring artists to the web. (src/screens/contest-screen/ContestScreen.tsx#L286)
- Use the intended size l for the audience filter row per PAY-3430. (src/screens/create-chat-blast-screen/ChatBlastSelectAudienceFields.tsx#L148)
- Use the intended size l for the remix creators filter row (same as PAY-3430). (src/screens/create-chat-blast-screen/ChatBlastSelectAudienceFields.tsx#L205)
- Fix EditTrackFormOverflowMenuDrawer positioning properly instead of padding it with empty text rows. (src/screens/edit-track-screen/EditTrackFormOverflowMenuDrawer.tsx#L37)
- Default share and play_count to true in newTrackMetadata so the unlisted visibility fields do not need patching here. (src/screens/edit-track-screen/util.ts#L28)
- Decide whether mobile supports separate download gating and stop forcing download_conditions to stream_conditions if so. (src/screens/edit-track-screen/util.ts#L82)
- Type the TastemakerNotification analytics object to match NotificationXButton's prop instead of casting to any. (src/screens/notifications-screen/Notifications/TastemakerNotification.tsx#L49)
- Replace the useMemo(() => setValue, []) plus eslint-disable in BpmFilter with a stable setter (ref or useEffectEvent) so the effect deps are honest. (src/screens/search-screen/BpmFilter.tsx#L99)
- Replace the useMemo(() => setValue, []) plus eslint-disable in BpmFilter with a stable setter (ref or useEffectEvent) so the effect deps are honest. (src/screens/search-screen/BpmFilter.tsx#L233)
- Reopen the send-tokens drawer on a navigation transitionEnd/blur event instead of a hardcoded 150ms setTimeout. (src/screens/send-tokens-user-selection-screen/SendTokensUserSelectionScreen.tsx#L98)
- Remove the try/catch 'safe fallback' around returning KeyboardAvoidingView in sign-on layout; a static import can't throw there. (src/screens/sign-on-screen/components/layout.tsx#L95)
- Implement proper sticky header and footer in TopArtistsCardList instead of the fixed 148px footer spacer. (src/screens/sign-on-screen/screens/SelectArtistScreen/TopArtistsCardList.tsx#L50)
- App is past RN 0.74: drop the hardcoded '$' in DownloadSection messages and use Intl currency formatting (enable jsc+intl/Hermes Intl on Android). (src/screens/track-screen/DownloadSection.tsx#L38)
- Fix the label misalignment for sizes other than m in DownloadSection purchased text (C-3709). (src/screens/track-screen/DownloadSection.tsx#L187)
- Narrow TrackScreenDetailsTile's track prop to a shared type instead of Track | SearchTrack. (src/screens/track-screen/TrackScreenDetailsTile.tsx#L174)
Metadata
Metadata
Assignees
Labels
No labels
Activity
chore(mobile): purge comments from packages/mobile (#14806)