Commit Graph

691 Commits

Author SHA1 Message Date
Paul Frazee e6bb5ef4b5 Rework account creation and login views 2023-03-14 13:03:43 -05:00
Paul Frazee 8eb0898dc5 Tune the logged out web view 2023-03-14 08:37:34 -05:00
Paul Frazee 2f46d52c1f Rework logged out state to preserve routing and work for web 2023-03-13 23:30:12 -05:00
Paul Frazee 9a471eedd5 Notification count fixes 2023-03-13 21:46:16 -05:00
Paul Frazee 54d3dc472c Add /support and /support/privacy 2023-03-13 20:34:01 -05:00
Paul Frazee 874a528fcc Move to expo and react-navigation (#288)
* WIP - adding expo

* WIP - adding expo 2

* Fix tsc

* Finish adding expo

* Disable the 'require cycle' warning

* Tweak plist

* Modify some dependency versions to make expo happy

* Fix icon fill

* Get Web compiling for expo

* 1.7

* Switch to react-navigation in expo2 (#287)

* WIP Switch to react-navigation

* WIP Switch to react-navigation 2

* WIP Switch to react-navigation 3

* Convert all screens to react navigation

* Update BottomBar for react navigation

* Update mobile menu to be react-native drawer

* Fixes to drawer and bottombar

* Factor out some helpers

* Replace the navigation model with react-navigation

* Restructure the shell folder and fix the header positioning

* Restore the error boundary

* Fix tsc

* Implement not-found page

* Remove react-native-gesture-handler (no longer used)

* Handle notifee card presses

* Handle all navigations from the state layer

* Fix drawer behaviors

* Fix two linking issues

* Switch to our react-native-progress fork to fix an svg rendering issue

* Get Web working with react-navigation

* Refactor routes and navigation for a bit more clarity

* Remove dead code

* Rework Web shell to left/right nav to make this easier

* Fix ViewHeader for desktop web

* Hide profileheader back btn on desktop web

* Move the compose button to the left nav

* Implement reply prompt in threads for desktop web

* Composer refactors

* Factor out all platform-specific text input behaviors from the composer

* Small fix

* Update the web build to use tiptap for the composer

* Tune up the mention autocomplete dropdown

* Simplify the default avatar and banner

* Fixes to link cards in web composer

* Fix dropdowns on web

* Tweak load latest on desktop

* Add web beta message and feedback link

* Fix up links in desktop web
2023-03-13 16:01:43 -05:00
Paul Frazee 68268312ae No longer a beta 2023-03-08 13:03:59 -06:00
Paul Frazee 150db9bcc3 Fix lint 2023-03-07 17:18:49 -06:00
Paul Frazee f297ad6946 Another set of UI updates (FAB returns, a few others) (#281)
* Bring back the FAB and move compose out of the footer

* Increase the touch target sizes of the header back btns (close #279)

* Trigger 'load more' sooner (close #280)
2023-03-07 17:17:44 -06:00
Paul Frazee 30b01ade2c Big batch of UI updates (#276)
* Replace react-native-root-toast with a custom toast that fits the visual style

* Tune dark mode colors

* Tune colors a bit more

* Move the reply prompt to a fixed position in the footer

* Fully hide muted posts but give a control to show anyway (close #270)

* Improve thread rendering (better clarity on reply lines)

* Add follower/following counts to side menu

* Fix issues with display name overflows
2023-03-07 15:52:24 -06:00
Paul Frazee 1044c8bb8b Handle-change modal with custom domain support (#273)
* Dont append the server's domain name when a custom domain is used

* Update the settings look & feel and add a tool to remove accounts from the switcher

* Try not rendering the bottomsheet when no modal is active.

There are cases where the bottomsheet decides to show itself when
it's not supposed to. It seems obvious to do what this change is
doing -- just dont render bottomsheet if no modal is active -- but
previously we experienced issues with that approach. This time it
seems to be working, so we're gonna yolo try it.

* Implement a handle-change modal with support for custom domains (closes #65)
2023-03-06 21:37:48 -06:00
Paul Frazee d6568c33e0 Fix typo 2023-03-06 15:46:44 -06:00
Paul Frazee 42f88d13bc Fix: fetch follows before everything else to avoid rendering follow buttons wrongly 2023-03-06 15:40:52 -06:00
Paul Frazee 77db31b913 Tune the menu's dark mode bg color 2023-03-06 15:39:58 -06:00
Paul Frazee 75f34c5bb8 Fix the darkmode icon in the menu 2023-03-06 15:38:52 -06:00
Paul Frazee e574c8404a Onboarding tweaks (#272)
* Small fix to side menu rendering

* Change onboarding to use an explicit 'is onboarding' mode to more clearly control the flow

* Add a progress bar to the welcome banner

* Dont show the 'unfollow button' on posts in weird times (close #271)

* Improve the empty state of the feed

* Only suggest recent posts
2023-03-06 15:34:22 -06:00
Paul Frazee be4bb79502 Show replies in the main feed if they have 2 or more upvotes (#269) 2023-03-06 14:49:42 -06:00
Paul Frazee 9f29bd78c9 Factor out the bottom bar and layer it under the side menu (close #243) (#268) 2023-03-06 11:59:06 -06:00
Paul Frazee 87ac7c42cd 1.6 2023-03-06 10:55:45 -06:00
Paul Frazee c6d1aa2c9c Look & feel updates: replace the "FAB" with a footer menu item, update the side menu (#263)
* Remove old tab controls from the mobile shell

* Add 'compose' and 'profile' to the footer; remove the FAB

* Fix lint

* Tune the footer icons

* Tune the 'current' state of footer icons

* Add 2xl text styles

* Tune the footer icons a bit more

* Fix lint

* More footer tuning
2023-03-06 10:54:56 -06:00
Paul Frazee 7417ea3714 1.5 2023-03-03 14:44:00 -08:00
Paul Frazee 4e42d05f56 Add an x button to the search to clear the input 2023-03-03 14:38:59 -08:00
Paul Frazee d5e3fa2d4a Turn links to posts into quote posts (#262)
* Turn links to posts into quote posts

* Fix lint
2023-03-03 16:30:33 -06:00
arcalinea 44cc4c58dd New user constants (#260)
* update users

* update

* With constructed intro feed, only grab 20 random suggested users to avoid perf issues

* Don't 'check for latest' in the feed with the suggestions feed

* Show/hide the welcome banner on account change (close #257)

---------

Co-authored-by: Jay Graber <arcalinea@gmail.com>
Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-03-03 15:37:17 -06:00
Paul Frazee 33be8a1d59 Move the translate item to the top of the menu 2023-03-03 13:19:00 -08:00
Paul Frazee 6488aade12 Add translate link to post menu (#261)
* Add a google translate menu item to posts

* Fix: make sure the dropdown menu is always visible (when low on the screen)
2023-03-03 15:13:31 -06:00
Paul Frazee c9441963a5 Remove replies from the home feed (#259)
* Remove replies from the home feed (close #252)

* Increase the 'load more' threshhold
2023-03-03 14:43:18 -06:00
Paul Frazee d7b8394b14 Fix dark mode ellipsis on posts 2023-03-03 12:05:38 -08:00
Paul Frazee 98e3b96b23 Edit profile fixes (#258)
* Fix: only clear banner or avi when requested in edit profile

* Set the default snap points to 90% to ensure the modal never fails to raise
2023-03-03 14:02:40 -06:00
Paul Frazee 401739a4b0 1.4 2023-03-02 17:02:46 -08:00
Ansh c1126bf5d5 72-delete-avatar-and-cover (#255)
* allow to delete profile pic

* allow for removing banner
2023-03-02 18:53:18 -06:00
Ansh 645aad0833 make authorAvatar optional prop (#254) 2023-03-02 18:51:13 -06:00
Paul Frazee 08178f01b1 Minor improvements to web autocomplete in composer 2023-03-02 16:43:19 -08:00
Ansh ee7fca7381 73-post-embeds (#253)
* update api to 0.1.3

* add repost modal with reposting functionality

* add quote post UI

* allow creation and view of quote posts

* Validate the post record before rendering a quote post

* Use createdAt in quote posts for now

* add web modal support

* Tune the quote post rendering

* Make did and declarationCid optional in postmeta

* Make did and declarationCid optional in postmeta

* dont allow image or link preview if quote post

* Handle no-text quote posts

* Tune the repost modal

* Tweak composer post text

* Fix lint

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-03-02 18:09:48 -06:00
Paul Frazee 5a59784fe7 Quick fixes to dark mode character counter colors 2023-03-02 13:59:44 -08:00
Paul Frazee 34cc7cb5f8 Increase network timeouts (closes #248) (#249)
* Increase network timeouts (close #248)

* Fix: on post error only update the ext link card if it's in use
2023-03-02 13:31:16 -06:00
Paul Frazee 9e9a446c03 Trim whitespace from the invite code (close #245) (#247) 2023-03-02 12:42:52 -06:00
Ansh d1dacfa8b0 New onboarding (#241)
* delete old onboarding files and code

* add custom FollowButton component to Post, FeedItem, & ProfileCard

* move building suggested feed into helper lib

* show suggested posts/feed if follower list is empty

* Update tsconfig.json

* add pagination to getting new onboarding

* remove unnecessary console log

* fix naming, add better null check for combinedCursor

* In locally-combined feeds, correctly produce an undefined cursor when out of data

* Minor refactors of the suggested posts lib functions

* Show 'follow button' style of post meta in certain conditions only

* Only show follow btn in posts on the main feed and the discovery feed

* Add a welcome notice to the home feed

* Tune the timing of when the welcome banner shows or hides

* Make the follow button an observer (closes #244)

* Update postmeta to keep the follow btn after press until next render

* A couple of fixes that ensure consistent welcome screen

* Fix lint

* Rework the welcome banner

* Fix cache invalidation of follows model on user switch

* Show welcome banner while loading

* Update the home onboarding feed to get top posts from hardcode recommends

* Drop unused helper function

* Update happy path tests

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-03-02 12:21:33 -06:00
Paul Frazee 9bbf9ae7f4 A couple various fixes (#242)
* Fix: set the status bar color for dark mode when logging in

* Add some logging

* Improve read/unread tracking behaviors in notifications
2023-03-01 16:54:50 -06:00
Paul Frazee 1561ff64c4 1.3 2023-03-01 09:13:43 -08:00
Paul Frazee d53caa390b Fixes to dark mode (#238) 2023-03-01 10:35:56 -06:00
Paul Frazee a6e9ebec6e Fix tests for march 1st 2023-03-01 08:35:25 -08:00
Paul Frazee aca5cfd202 Add a temporary lexicon refactor guard (#235)
* Add a temporary lexicon refactor guard

* Fix test

* Fix tsconfig formatting
2023-02-28 11:57:49 -06:00
Paul Frazee 6885bccdff Remove leftover log 2023-02-28 09:08:36 -08:00
Paul Frazee 23bbfebfda Add analytics identify() call with hashed email 2023-02-28 09:03:44 -08:00
Paul Frazee a2c8f727b9 Fix analytics in native build 2023-02-27 11:08:01 -06:00
Paul Frazee dd00191782 Better fix to native modals 2023-02-27 10:59:19 -06:00
Paul Frazee 9b78718276 Fix to native modals 2023-02-27 10:54:44 -06:00
Paul Frazee 9450694742 Fix tsconfig for jsx 2023-02-27 10:52:22 -06:00
Paul Frazee 7712cd2ea0 Fix import 2023-02-27 10:47:39 -06:00