Commit Graph

661 Commits

Author SHA1 Message Date
Paul Frazee b1ffb1e686 Fix to scrolling to posts within a thread (#228)
* Fix: render the entire thread at start so that scrollToIndex works always (close #270)

* Visual fixes to thread 'load more'

* A few small perf improvements to thread rendering

* Fix lint
2023-02-21 15:32:38 -06:00
Paul Frazee f55fbe73c7 A group of notifications fixes (#227)
* Fix: don't group together notifications that can't visually be grouped (close #221)

* Mark all notifications read on PTR

* Small optimization: useCallback and useMemo in posts feed

* Add loading spinner to footer of notifications (close #222)
2023-02-21 10:32:29 -06:00
Aryan Goharzad 1861f95a1f Sanitizes posts on publish and render (#217)
* Sanatizes posts on publish and render

* lint

* lint and added sanitize to thread view as well

* adjusts indices based on replaced text

* Woops, fixes a bug

* bugfix + cleanup

* comment

* lint

* move sanitize text to later in the flow

* undo changes to compose post

* Add RichText library building upon the sanitizePost library method

* Add lodash.clonedeep dep

* Switch to RichText processing on record load & render

* Fix lint

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-02-20 14:09:08 -06:00
Paul Frazee af1396e396 Randomize hard-coded suggested follows (#226)
* Ensure follows are loaded before filtering hardcoded suggestions

* Randomize hard-coded suggested profiles (close #219)
2023-02-20 09:29:18 -06:00
Paul Frazee da41392422 Fixes to notifications (#216)
* Improve push-notification for follows

* Refresh notifications on screen open (close #214)

* Avoid showing loader more than needed in post threads

* Refactor notification polling to handle view-state more effectively

* Delete a bunch of tests taht werent adding value

* Remove the accounts integration test; we'll use the e2e test instead

* Load latest in notifications when the screen is open rather than full refresh
2023-02-17 13:00:57 -06:00
Paul Frazee 70ec76970c Add "follows you" information and sync follow state between views (#215)
* Bump @atproto/api@0.1.2 and update API usage

* Add 'follows you' pill to profile header (close #110)

* Add 'follows you' to followers and follows (close #103)

* Update reposted-by and liked-by views to use the same components as followers and following

* Create a local follows cache MyFollowsModel to keep views in sync (close #205)

* Add incremental hydration to the MyFollows model

* Fix tests

* Update deps

* Fix lint

* Fix to paginated fetches

* Fix reference

* Fix potential state-desync issue
2023-02-16 14:34:04 -06:00
Paul Frazee ad4ccade51 Add feedback link to main menu (close #191) (#212) 2023-02-15 18:14:28 -06:00
Paul Frazee 8db020920f Push notification fixes (#210)
* Fix to when screen analytics events are firing

* Fix: dont trigger update state when backgrounded

* Small fix to notifee API usage

* Fix: properly load notification info for push card
2023-02-15 17:05:14 -06:00
Paul Frazee fb28fb0493 Implement our own lifecycle tracking to ensure it never fires while the app is backgrounded (close #193) (#211) 2023-02-15 16:52:35 -06:00
Paul Frazee 751c5e91a3 Only give the loading spinner on the home feed during PTR (#207)
(cherry picked from commit b7a5da12fdfacef74873b5cf6d75f20d259bde0e)
2023-02-15 13:14:17 -06:00
Paul Frazee b05a3146b7 Fix RN bug that causes home feed not to load more; also fix home feed load view. (#208)
RN has a bug where rendering a flatlist with an empty array appears to break its
virtual list windowing behaviors. See https://stackoverflow.com/a/67873596
2023-02-15 12:48:39 -06:00
Paul Frazee d6f34d8b86 Remove the 'loading' placeholder from images as it degraded feed perf (#202)
* Remove the 'loading' placeholder from images as it degraded feed perf

* Remove references
2023-02-14 17:30:46 -06:00
Paul Frazee e22e5e0fdd UI updates to the floating action button (#201)
* Update FAB to use a plus icon and not drop shadow

* Update FAB positioning to be more consistent in different shell modes

* Animate the FAB's repositioning
2023-02-14 17:30:26 -06:00
Paul Frazee ffd0b62860 Fix to suggested follows: chunk the hardcoded fetches to 25 at a time (close #196) (#198) 2023-02-14 16:55:01 -06:00
Paul Frazee 9b08fb93a0 Show the splash screen during session resumption (close #186) (#199) 2023-02-14 16:54:47 -06:00
Paul Frazee f331fb9c75 Don't show new-content notification for reposts (close #179) (#197) 2023-02-14 16:54:35 -06:00
Paul Frazee 7d162c8101 Fix home feed positioning (closes #189) (#195)
* Fix home feed positioning for floating header

* Fix positioning of errors in home feed

* Fix lint
2023-02-14 15:33:36 -06:00
Paul Frazee 6f98bf8aa5 Fix e2e tests 2023-02-09 16:53:19 -06:00
Paul Frazee 3ad0f3cc4a Bundle of UI modifications (#175)
* Adjust visual balance of SuggestedPosts and WhoToFollow

* Fix bug in the discovery load trigger

* Adjust search header aesthetic and have it scroll away

* More visual balance tweaks on the search page

* Even more visual balance tweaks on the search page

* Hide the footer on scroll in search

* Ditch the composer prompt buttons in the home feed

* Center the view header title

* Hide header on scroll on the home feed
2023-02-09 16:45:37 -06:00
Paul Frazee 22820372df more robust centering of the play button (#181)
Co-authored-by: Aryan Goharzad <arrygoo@gmail.com>
2023-02-09 16:37:59 -06:00
Aryan Goharzad 04b3ebbf63 Adds hardcoded suggested list (#178)
* Adds hardcoded suggested list

* Update suggested-actors-view to support page sizes smaller than the hardcoded list

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-02-09 16:33:35 -06:00
Paul Frazee 70b0dc070a Add scroll-to-top for all screens (#177) 2023-02-09 16:10:22 -06:00
Aryan Goharzad b84c88cd21 151 feat youtube embed iframe (#176)
* youtube embed iframe temp commit

* Fixes styling and code cleanup

* lint

* Now clicking between the pause and settings button doesn't trigger the parent

* use modest branding (less yt logos)

* Stop playing the video once there's a navigation event

* Make sure the iframe is unmounted on any navigation event

* fixes tests

* lint
2023-02-09 12:11:02 -06:00
Paul Frazee 00d41c9168 Rework the search UI and add (#174)
* Add search tab and move icon to footer

* Remove subtitles from view header

* Remove unused code

* Clean up UI of search screen

* Search: give better user feedback to UI state and add a cancel button

* Add WhoToFollow section to search

* Add a temporary SuggestedPosts solution using the patented 'bsky team algo'

* Trigger reload of suggested content in search on open

* Wait five min between reloading discovery content

* Reduce weight of solid search icon in footer

* Fix lint

* Fix tests
2023-02-08 18:01:29 -06:00
Paul Frazee 3c70bdf791 Add 'doesnt use non-exempt encryption' to ios config 2023-02-08 17:23:25 -06:00
Aryan Goharzad 9aca0d4632 151 fix youtube channel embed (#173)
* Fixes embeds for youtube channels

* Tests for youtube extract meta

* lint
2023-02-08 13:04:54 -06:00
Paul Frazee 6ffc92db09 Fix to an edge case with feed re-ordering for threads (#172) 2023-02-08 13:02:10 -06:00
Paul Frazee c2b7796317 Refactor models to use bundleAsync and lock regions (#171) 2023-02-08 11:57:40 -06:00
Paul Frazee 82ea907e8f Fix potential issues with promise guards when an error occurs (#170) 2023-02-08 10:52:47 -06:00
Paul Frazee 51d0ea4750 Merge branch 'main' of github.com:bluesky-social/social-app into main 2023-02-08 10:15:54 -06:00
Paul Frazee 0eaf458874 Bump app ios version to 1.1 (needed after app store submission) 2023-02-08 10:15:52 -06:00
Aryan Goharzad 575cbeb770 Fixes embeds for youtube channels (#169) 2023-02-08 10:10:05 -06:00
Paul Frazee 65f958c128 Wire up ReportAccount and ReportPost (#168) 2023-02-07 18:45:41 -06:00
Paul Frazee 8944160130 Minor aesthetic cleanup in SessionModel 2023-02-07 16:51:55 -06:00
Paul Frazee 759ec8011b Refactor session management to use a new "Agent" API (#165)
* Add the atp-agent implementation (temporarily in this repo)

* Rewrite all session & API management to use the new atp-agent

* Update tests for the atp-agent refactor

* Refactor management of session-related state. Includes:
- More careful management of when state is cleared or fetched
- Debug logging to help trace future issues
- Clearer APIs overall

* Bubble session-expiration events to the user and display a toast to explain

* Switch to the new @atproto/api@0.1.0
2023-02-07 16:04:08 -06:00
Aryan Goharzad 0e160298c8 154 cached image profile (#167)
* Fixes issue where retrying on image upload fails

* Lint, longer test time

* Longer waitfor time in tests

* even longer timeout

* longer timeout

* missed file

* Fixes image cache error on second try for profile screen

* lint

* lint

* lint
2023-02-07 14:29:33 -06:00
Aryan Goharzad 2ac6cae63a Fixes issue where retrying on image upload fails (#166)
* Fixes issue where retrying on image upload fails

* Lint, longer test time

* Longer waitfor time in tests

* even longer timeout

* longer timeout

* missed file

* Update src/view/com/composer/ComposePost.tsx

Co-authored-by: Paul Frazee <pfrazee@gmail.com>

* Update src/view/com/composer/ComposePost.tsx

Co-authored-by: Paul Frazee <pfrazee@gmail.com>

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-02-07 12:38:22 -06:00
Paul Frazee db9c8474bd Fix refresh behavior around a series of models (repost, graph, vote) (#163)
* Fix refresh behavior around a series of models (repost, graph, vote)

* Fix cursor behavior in reposted-by view
2023-02-06 15:11:31 -06:00
Paul Frazee 9e8dc67a5f Remove fallback gradient on external links without thumbs (#164)
* Remove fallback gradient on external links without thumbs

* Remove fallback gradient on external links without thumbs in the composer preview
2023-02-06 15:11:11 -06:00
Aryan Goharzad bc97aad555 87 dark mode edit profile (#162)
* Adds dark mode to delete account screen

* Adds one more missed darkmode

* more fixes
2023-02-06 13:30:34 -06:00
Aryan Goharzad a5b5fdd797 Adds dark mode to delete account screen (#159) 2023-02-06 12:23:54 -06:00
Aryan Goharzad 8e91fc3279 Adds respots under the 'post' tab under profile (#158) 2023-02-06 12:23:01 -06:00
Paul Frazee bf7b961222 More e2e tests (create account) (#150) 2023-02-06 09:57:32 -06:00
Paul Frazee 0e6b53258b Error cleanup (close #79) (#148)
* Avoid surfacing errors to the user when it's not critical

* Remove now-unused GetAssertionsView

* Apply cleanError() consistently

* Give a better error message for Upstream Failures (http status 502)

* Hide errors in notifications because they're not useful
2023-02-03 13:26:58 -06:00
Aryan Goharzad eb1568e0fd Adds detox testing and instructions (#147)
* Adds detox testing and instructions

* lint

* lint
2023-02-03 13:00:04 -06:00
Paul Frazee 2d1e38be72 Calculate image aspect ratio on load (#146)
* Calculate image aspect ratio on load

* Move aspect ratio bounds to constants
2023-02-03 10:55:08 -06:00
Aryan Goharzad cede0c772c Adds more tracking all around the app (#142)
* Adds more tracking all around the app

* more events

* lint

* using better analytics naming

* missed file

* more fixes
2023-02-02 18:48:36 -06:00
Paul Frazee 8b310d91f0 Fix photo & camera permission management (#140)
* Check photo & camera perms and alert the user if not available (close #64)

- Adds perms checks with a prompt to update settings if needed
- Moves initial access of photos in the composer so that the initial prompt
  occurs at an intuitive time.

* Add react-native-permissions test mock

* Fix issue causing multiple access requests

* Use longer var names

* Update podfile.lock

* Lint fix

* Move photo perm request in composer to the gallery btn instead of when the carousel is opened
2023-02-02 18:29:26 -06:00
Paul Frazee 9e71a50a1d Implement account deletion (#141) 2023-02-02 18:28:42 -06:00
Paul Frazee 99272c0ec1 Composer: mention tagging now works in middle of text (close #105) (#139) 2023-02-02 13:13:19 -06:00