Commit Graph

980 Commits (aa786068cf23547fbd74f270ffead07658955458)

Author SHA1 Message Date
Paul Frazee 5f18931915 Push notification & session management cleanup (#92)
* Add some temporary logging to help suss out the session drop issue

* Fix to session resumption: copy session tokens during a resumeSession attempt

* Factor out notifee display into a lib and add to storybook

* Tune the bg notifications fetch to only get what is needed

* Fix: run account update inside a mobx action

* Remove debugging logs for sessions

* Fixes to bg notifications fetch
2023-01-25 11:31:09 -06:00
Paul Frazee 079e1dbe18 Fix missing config for background fetch 2023-01-24 19:59:40 -06:00
Paul Frazee 869f6c4e0e Initial pass at push notifications + some fixes to the session management (#91)
* Fix: test the session during resume to ensure it's valid

* Don't delete sessions for now

* Add notifee and request notif permissions on first login

* Set unread notifications badge on app icon

* Trigger a notifee card on new notifications

* Experimental: use react-native-background-fetch to check for notifications

* Add missing mocks

* Fix to resumeSession()
2023-01-24 19:32:24 -06:00
Paul Frazee 21f5f4de15 Add basic analytics (#89)
* Add basic analytics

* Fix: add mock for analytics
2023-01-24 13:58:35 -06:00
Paul Frazee f36c956536 Resolve all remaining lint issues (#88)
* Rework 'navIdx' variables from number arrays to strings to avoid equality-check failures in react hooks

* Resolve all remaining lint issues

* Fix tests

* Use node v18 in gh action test
2023-01-24 13:00:11 -06:00
Aryan Goharzad 3a90114f3a more prettier and lint cleanup (#82)
* more prettier and lint cleanup

* Fixes more lint issues

* lint

* ignore more files

* remove todos

* lint
2023-01-24 11:03:18 -06:00
Paul Frazee 9027882fb4 Account switcher (#85)
* Update the account-create and signin views to use the design system.

Also:
- Add borderDark to the theme
- Start to an account selector in the signin flow

* Dark mode fixes in signin ui

* Track multiple active accounts and provide account-switching UI

* Add test tooling for an in-memory pds

* Add complete integration tests for login and the account switcher
2023-01-24 09:06:27 -06:00
Aryan Goharzad 439305b57e Removes white space from around images (#81)
* Removes white space from around images

* Add a subtle border
2023-01-23 20:17:37 -06:00
Aryan Goharzad 06e41167d0 Lints some errors and warnings (#76) 2023-01-20 13:43:28 -06:00
Aryan Goharzad 2fce1637b4 Fixes embed links for twitter and tiktok (#74) 2023-01-20 12:54:30 -06:00
Paul Frazee d4b9ef3b0a Only use cursors supplied by the server (ref #59) 2023-01-20 10:39:00 -06:00
Paul Frazee c4cca8cf6c Sanity check selector swipes 2023-01-20 10:15:59 -06:00
Paul Frazee 56747263df More layout fixes in notifications 2023-01-20 08:40:41 -06:00
Paul Frazee db4109a5ea Spacing fix of expanded notifications 2023-01-20 08:36:15 -06:00
Paul Frazee c2e7dd8f48 Fix font color of expanded notifs 2023-01-20 08:35:35 -06:00
Paul Frazee 620d5bb102 Fix text color in composer 2023-01-19 20:08:43 -06:00
Paul Frazee 142b5dfc1b Fix a case where the 'aborted' error message was getting through 2023-01-19 17:55:00 -06:00
Paul Frazee ddcc719192 Fix: taps on images in the composer now register even when input is focused 2023-01-19 17:46:45 -06:00
Paul Frazee 41f76a68e3 Fix: new post doesnt open images selector 2023-01-19 17:37:24 -06:00
Paul Frazee 570b76a71d Add the ability to paste images into the composer (#56) 2023-01-19 17:36:49 -06:00
Paul Frazee 15589d216f Fix error logs 2023-01-19 17:05:36 -06:00
Paul Frazee 6dcf9f8d5b Fixes to likes list 2023-01-19 16:54:30 -06:00
Paul Frazee a24b29d64b Fixes to reposted-by list 2023-01-19 16:50:16 -06:00
Paul Frazee c11bfc7541 Fixes to follows listing 2023-01-19 16:39:40 -06:00
Paul Frazee aec0f1c3ba Fixes to the followers list view 2023-01-19 16:38:12 -06:00
Paul Frazee 88ab1f171a Update podfile.lock 2023-01-19 16:37:21 -06:00
Paul Frazee 80f58cf9f3 Fix: ensure all views can scroll to the bottom 2023-01-19 15:21:06 -06:00
Paul Frazee 2972fd8372 Update load latest to match sizing and aesthetic better 2023-01-19 15:10:15 -06:00
Paul Frazee 90d6d75af1 Fix html extraction tests 2023-01-19 14:30:33 -06:00
Paul Frazee 8d7566f200 Visual tweaks to post prompts 2023-01-19 14:28:11 -06:00
Paul Frazee 39e996ed8e Fix weird bar at top of composer in dark mode 2023-01-19 14:17:15 -06:00
Paul Frazee 43ef1756c1 Fix bad ref 2023-01-19 14:17:00 -06:00
Paul Frazee 3f95f98ef9 Change post prompt to a set of buttons (#55) 2023-01-19 14:08:53 -06:00
Aryan Goharzad f10a8308d9 Fixes youtube embed issues (#50)
* fixes youtube embed

* move extractMetaHtml test to its own file

* tests cleanup

* Add fallback for youtube meta data

* lint

* Check for youtube in the url domain

* use hostname instead of full url to check for link domain

* checks only for domain
2023-01-19 12:53:11 -06:00
Paul Frazee 9230d52ff5 Improve link meta fetching for bsky links (#54)
* Add share dropdown item to profiles

* Temporary improvement for links to content on the network

* Enlarge text slightly on embed cards
2023-01-19 12:30:28 -06:00
Aryan Goharzad 0536a6afcf Adding action for linting (#51)
* Adding action for linting

* Configuring eslint

* Update lint.yml

* Update lint.yml

* Update lint.yml

* adds yarn jest to package.json

* test report

* debugging tests

* trying force exit

* force exit

* test1

* forceexit

* using another reporter

* jest debugging

* separated lints & tests

* test

* Cleanup

* Add  /src/third-party, /ios, and /android to ignore list
2023-01-19 12:28:52 -06:00
Paul Frazee f969e746f7 Clean up the settings page 2023-01-19 11:49:53 -06:00
Paul Frazee 1c5c2622bf Improve the 'expand avis' animation in the notifications 2023-01-19 11:41:24 -06:00
Paul Frazee d2db9baacc Fix missing key in list 2023-01-19 11:35:37 -06:00
Paul Frazee 74ab6530d4 Add the ability to expand/collapse users in notifications 2023-01-19 11:34:07 -06:00
Paul Frazee 1ed82b6c59 Tune the empty state visuals 2023-01-19 10:50:21 -06:00
Paul Frazee f47751ad42 Tweak compose prompt spacing 2023-01-19 10:40:55 -06:00
Paul Frazee 2798250489 Post layout tweaks (#53)
* Increase left margin on feed and embiggen avis

* Decrease feed margins a bit

* Tweak post bottom margin

* Update loading placeholder to match feed

* Update 'view full thread' positioning

* Update postthread to match feed layout

* Update notifications and individual post to match new layout

* Add missing aborted check
2023-01-19 10:35:57 -06:00
Paul Frazee 6588961d2e Update composer to preview external link cards (#52)
* Fetch external link metadata during compose so the user can preview and remove the embed

* Add missing mocks

* Update tests to match recent changes
2023-01-18 18:14:46 -06:00
Paul Frazee 27ee550d15 Enlarge avatars in the notifications 2023-01-18 17:06:17 -06:00
Paul Frazee bda32c1ceb Remove log 2023-01-18 16:52:00 -06:00
Paul Frazee ebc2033d18 Handle post deletions by removing from active views (close #37) 2023-01-18 16:45:48 -06:00
Paul Frazee ace0e6bfd9 Fix image compression (close #41) 2023-01-18 14:54:55 -06:00
Paul Frazee 1898d5dbaa Keep the composer image selector open after choosing an image 2023-01-18 14:47:59 -06:00
Paul Frazee d0364c09ad Hackfix around 'images too large' issue 2023-01-18 14:47:42 -06:00