about summary refs log tree commit diff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Set start time on YouTube embeds (#2565)Mary2024-01-181-2/+4
| | | | | | | * fix: set start time on yt embeds * fix: re-encode to be on the safe side * chore: fix embed tests
* Use new palette values for main palette (#2566)Eric Bailey2024-01-181-54/+56
| | | | | * Use new palette values for main palette * Drawer bg in dark mode
* Fix the fallback to discover behavior on the home feed (#2546)Paul Frazee2024-01-161-1/+2
|
* Add a new home feed-api wrapper and give a header indicating the fallback ↵Paul Frazee2024-01-152-1/+89
| | | | | | | | | behavior (#2534) * Add a new home feed-api wrapper and give a header indicating the fallback behavior * Sneak in a quick fix: use the correct text color in the delete modal * Use imported constant
* Add accept-language header (#2457)Cooper Edmunds2024-01-152-14/+28
|
* Use the RichText facets when copying post text (#2481)Mary2024-01-101-0/+29
| | | | | * feat: serialize rich text to string * feat: wire richTextToString to copy post text
* remove deprecated search.bsky.social code (#2461)bnewbold2024-01-101-69/+0
|
* Reduce polling (#2465)Paul Frazee2024-01-101-2/+30
| | | | | | | | | | | | | * Move profile and preference polling to polls-on-foreground * Refetch prefs on feeds screen refresh since polling no longer occurs * Reduce notifications polling by 50% if there's already an unread * Disable feed polling if we know we have content * Disable the hard refresh after 1 hour in case it's the cause of the random feed refresh bug * Fix types
* support intl tenor links (#2438)Hailey2024-01-081-2/+5
| | | | | * support intl tenor links * update test cases
* Additional embed sources and external-media consent controls (#2424)Paul Frazee2024-01-044-47/+305
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add apple music embed * add vimeo embed * add logic for tenor and giphy embeds * keep it simple, use playerUri for images too * add gif embed player * lint, fix tests * remove links that can't produce a thumb * Revert "remove links that can't produce a thumb" This reverts commit 985b92b4e622db936bb0c79fdf324099b9c8fcd8. * Revert "Revert "remove links that can't produce a thumb"" This reverts commit 4895ded8b5120c4fc52b43ae85c9a01ea0b1a733. * Revert "Revert "Revert "remove links that can't produce a thumb""" This reverts commit 36d04b517ba5139e1639f2eda28d7f9aaa2dbfb6. * properly obtain giphy metadata regardless of used url * test fixes * adjust gif player * add all twitch embed types * support m.youtube links * few logic adjustments * adjust spotify player height * prefetch gif before showing * use memory-disk cache policy on gifs * use `disk` cachePolicy on ios - can't start/stop animation * support pause/play on web * onLoad fix * remove extra pressable, add accessibility, fix scale issues * improve size of embed * add settings * fix(?) settings * add source to embed player params * update tests * better naming and settings options * consent modal * fix test id * why is webstorm adding .tsx * web modal * simplify types * adjust snap points * remove unnecessary yt embed library. just use the webview always * remove now useless WebGifStill 😭 * more type cleanup * more type cleanup * combine parse and prefs check in one memo * improve dimensions of youtube shorts * oops didn't commit the test 🫥 * add shorts as separate embed type * fix up schema * shorts modal * hide gif details * support localized spotify embeds * more cleanup * improve look and accessibility of gif embeds * Update routing for the external embeds settings page * Update and simplify the external embed preferences screen * Update copy in embedconsent modal and add 'allow all' button --------- Co-authored-by: Hailey <me@haileyok.com>
* New user home feed fixes (#2421)Paul Frazee2024-01-042-3/+3
| | | | | | | * Readd discover to default feeds for new users * Fallback just to discover in home when mergefeed is disabled * Always provide a cursor with mergefeed (no 'end of feed' condition)
* Update IS_PROD check (#2337)Eric Bailey2024-01-031-2/+3
| | | | | | | * Update IS_PROD check to work now and after federation * Use correct sandbox PDS * Just use simple check for now
* Fix: Web design issues (#2377) (#2410)Eric Bailey2024-01-031-0/+1
| | | | | | | * Fix web design issues * Fix Right Nav width design issue Co-authored-by: Rahul Yadav <52163880+rahulyadav5524@users.noreply.github.com>
* Multiple improvements to link cards and quote posts (#2398)Paul Frazee2024-01-032-6/+6
| | | | | | | | | | | | | | | * fix canvas * fix external link embed styles * Use the same link-card style on web and mobile and give a little more height on desktop to the card images * Use dark border on link embeds to match quote post style * Fix the highlighting behavior on linkcards and quoteposts --------- Co-authored-by: Hailey <me@haileyok.com>
* ensure no more than four assets, show toast if moreHailey2023-12-291-1/+6
|
* Remove patched color scheme code (#2340)Eric Bailey2023-12-271-30/+2
|
* Protect against react key duplicates (close #2278) (#2309)Paul Frazee2023-12-271-9/+10
| | | | | * Fix duplicate react keys in post search * Protect against duplicate react keys in feeds
* use the window hostname on web for twitch embeds (#2311)Hailey2023-12-261-1/+6
|
* Apply post-hide to quote posts (#2302)Paul Frazee2023-12-241-1/+30
|
* Hide posts tool (#2299)Eric Bailey2023-12-242-0/+36
| | | | | | | | | | | | | * Set up hidden posts persisted state * Wrap moderatePost * Integrate hidden posts into moderation * Complete hide-post behaviors --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Bump react-native to 0.73.1, expo to 50 (#2214)Eric Bailey2023-12-231-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump to react-native@0.73, bump expo@next Includes bumps for all expo deps and dev dependencies. Updates react-native patch and others, and removes the babel-preset-expo patch. * Remove duplicate Splash ref * Bump more deps * Properly install expo-notifications * Bump webview dep * Bump packages according to expo fix; remove pager-view patch as it is no longer needed * Don't access expo-camera from Web * Fix crypto dep on web * Fix some type issues * Build esnext modules to support dynamic imports --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* 3rd party embed player (#2217)Hailey2023-12-212-29/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement embed player for YT, spotify, and twitch * fix: handle blur event * fix: use video dimensions for twitch * fix: remove hack (?) * fix: remove origin whitelist (?) * fix: prevent ads from opening in browser * fix: handle embeds that don't have a thumb * feat: handle dark/light mode * fix: ts warning * fix: adjust height of no-thumb label * fix: adjust height of no-thumb label * fix: remove debug log, set collapsable to false for player view * fix: fix dimensions "flash" * chore: remove old youtube link test * tests: add tests * fix: thumbless embed position when loading * fix: remove background from webview * cleanup embeds (almost) * more refactoring - Use separate layers for player and overlay to prevent weird sizing issues - Be sure the image is not visible under the player - Clean up some * cleanup styles * parse youtube shorts urls * remove debug * add soundcloud tracks and sets (playlists) * move logic into `ExternalLinkEmbed` * border radius for yt player on native * fix styling on web * allow scrolling in webview on android * remove unnecessary check * autoplay yt on web * fix tests after adding autoplay * move `useNavigation` to top of component --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* fix Create Account metrics (#2242)Ansh2023-12-181-1/+0
|
* Log post creation failures (#2205)Eric Bailey2023-12-141-0/+6
|
* 🤫 (#2211)Eric Bailey2023-12-142-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add new assets * Add splashiness * Add butter icon, spread it * Cream together eggs, sugar, and vanilla * Hi, I'd like to place and order. Yeah, none pizza with left beef, plz. * test * Refine animation * tweak * tweak * tweak * Tweak * Simplify * Cleanup * Fix android logo --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
* PWI behavior updates (#2207)Paul Frazee2023-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable PWI * Disable access to feeds on PWI * Remove feeds nav item from drawer when signed out * Replace discover feed on home with a CTA * Wire up the sign in and create account buttons to go straight to their respective screens * Give a custom ScreenHider interface for no-pwi * Add side borders on desktop to the screen hider * Filter accounts in the autocomplete according to mod settings * Trim replies in the post thread that are pwi opt-out * Show 'learn more' on the content hider when no-override is enabled * Apply the moderation filter on profile cards * Disable post search on logged-out view * Update locale files * Bump api pkg * Ensure feeds with no posts don't show as NSFPublic * Fix types --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Make scroll handling contextual (#2200)dan2023-12-132-125/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add an intermediate List component * Fix type * Add onScrolledDownChange * Port pager to use onScrolledDownChange * Fix on mobile * Don't pass down onScroll (replacement TBD) * Remove resetMainScroll * Replace onMainScroll with MainScrollProvider * Hook ScrollProvider to pager * Fix the remaining special case * Optimize a bit * Enforce that onScroll cannot be passed * Keep value updated even if no handler * Also memo it
* Memoize usePalette (#2201)dan2023-12-131-34/+38
|
* Go back to content-driven slice keys in feeds (#2190)Paul Frazee2023-12-122-11/+11
| | | | | * Go back to deterministic react keys * Quick fix to cases when custom feeds serve empty responses
* Fix View Full Thread (#2181)dan2023-12-121-5/+5
|
* Stub broadcast channel for unspported contexts (#2175)Eric Bailey2023-12-123-12/+15
|
* Fix scroll on native (#2170)dan2023-12-112-42/+41
|
* Fix scroll on profile lists/feeds (#2168)dan2023-12-112-41/+42
|
* Reduce calls to getFeedGenerator and getFeed (#2166)Paul Frazee2023-12-112-19/+11
| | | | | | | | | | | * Reduce calls to getFeedGenerator by the mergefeed * Dont run end-of-follows mergefeed requests until actually at the end of the feed * build AWS container --------- Co-authored-by: Jake Gold <jake@blueskyweb.xyz>
* Add "Who can reply" controls [WIP] (#1954)Paul Frazee2023-12-102-1/+52
| | | | | | | | | | | | | | | | | | | | | * Add threadgating * UI improvements * More ui work * Remove comment * Tweak colors * Add missing keys * Tweak sizing * Only show composer option on non-reply * Flex wrap fix * Move the threadgate control to the top of the composer
* Remove (#2156)Eric Bailey2023-12-092-6/+0
|
* Multiple notifications fixes (#2154)Paul Frazee2023-12-091-2/+1
| | | | | | | | | | | | | | | * Dont reset notifications feed on push notification event * Dont separate notifications by read state to avoid jank * On notifications screen focus, check latest and only rerender if not scrolled down * Reuse the cached notifs page when its not stale * Bump ios build number * Improve comments * Change the 'mark all read' condition to avoid firing too early
* Use new filter for Posts tab on profile (#2150)Eric Bailey2023-12-081-1/+1
| | | | | | | * Use new filter for Posts tab on profile * Update deps * Remove log
* Fixes issue with (#2119)Ansh2023-12-071-3/+3
| | | | | | | | | | | * Allow going directly to password input screen when switching accounts and password is required * Revise state handling * Handle logged out states, enable clearing requestedAccount --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Add more breadcrumbs (#2141)Eric Bailey2023-12-072-2/+13
|
* Grab-bag of post-feed improvements (#2140)Paul Frazee2023-12-071-2/+5
| | | | | | | * Sanity check against cases where empty pages may occur * Use the mergefeed as an emergency fallback to an empty feed * Check for new posts on focus
* Navigate Home on account switch (#2138)dan2023-12-071-12/+7
|
* Improve account switching on mobile (#2135)Eric Bailey2023-12-071-1/+9
| | | | | * Improve account switching on mobile * Clarify comment
* Fix: remove replies to deleted and blocked posts from feeds (#2130)Paul Frazee2023-12-071-0/+13
|
* Disable sentry in dev (#2128)Eric Bailey2023-12-071-1/+1
|
* Move analytics out of critical path (#2117)dan2023-12-063-88/+90
| | | | | | | | | * Remove analytics provider, simplify hook * Fix wrong import being used by feed * Remove early bind * Create client lazy on first use
* Move analytics out of init (#2115)dan2023-12-062-18/+23
| | | | | | | | | | | | | * Remove listenSessionLoaded from analytics * Move analytics init call to navigation ready * Remove zod dependency from analytics * Mirror changes on the web * Delete listenSessionLoaded * Only set up listeners once
* Split notification init, add cleanup (#2102)dan2023-12-061-84/+77
| | | | | | | | | | | | | | | | | | | * Inline never-imported export * Remove pretense at handling cleanup * Extract per-session listener to a function * Split notifications.init() from notifications.onSessionLoaded() * Tweak forked code to be more similar * Remove unnecessary guards * Split notifications.onSessionLoaded in two * Always use getAgent() * Remove dep on listenSessionLoaded, add cleanup
* Check Analytics (#2106)Ansh2023-12-061-7/+3
| | | | | | | | | | | * fix sign in event tracking * add missing analytics events * add more missing analytics * fix like and unrepost event tracking * reset onEndReachedThreshold
* Throttle non-critical Sentry messages (#2110)dan2023-12-061-0/+1
| | | | | * Throttle non-critical Sentry messages * Run all timers in tests