about summary refs log tree commit diff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Fix self-threads filter logic (#2091)Eric Bailey2023-12-051-2/+2
|
* Fix some typesPaul Frazee2023-12-051-1/+1
|
* Fix: correctly identify if the screen is focused when handling soft resets ↵Paul Frazee2023-12-051-0/+10
| | | | on post feeds (#2100)
* Fix: distinguish between post media and quotes with the moderation hider (#2075)Paul Frazee2023-12-041-1/+20
| | | | | * Fix: distinguish between post media and quotes with the moderation hider * Type fixes
* Add PWI build flag (#2082)Paul Frazee2023-12-041-0/+1
|
* Maintain some feed data to avoid needless glimmers (#2054)Paul Frazee2023-11-301-2/+3
|
* Fix scuffed web styles caused by overlapping viewport breakpoint boundaries ↵Cλctys2023-11-301-2/+2
| | | | | | | | | (#1985) * fixed lack of styles on 1300px web viewport width by adjusting tablet breakpoints * fixed lack of styles on 800px web viewport width by adjusting mobile breakpoints * changed `maxWidth` values in viewports to `n - 1` format
* Add enter/exit animations to modals on web (#2042)Samuel Newman2023-11-301-11/+11
| | | | | | | * add reanimated layout animations to modals * reorder imports * pass context to scroll handler patches
* Close modals if switching to unauthed account (#2039)Eric Bailey2023-11-291-0/+1
|
* Disable retrying globally (#2038)Eric Bailey2023-11-291-0/+5
|
* Merge branch '2011-link-in-feeds-tab-bar' of ↵Paul Frazee2023-11-291-2/+2
|\ | | | | | | https://github.com/CooperEdmunds/social-app into CooperEdmunds-2011-link-in-feeds-tab-bar
| * Stop adding whats-hot for new usersCooper Edmunds2023-11-291-2/+2
| |
* | Fix state lifecycle management with post-feed query, solving the duplicate ↵Paul Frazee2023-11-292-18/+21
| | | | | | | | | | | | | | key issue (#2034) * Assign keys to feed slices via a counter, to enable duplicate items in the feed if needed * Move post-feed query state into the query's page params to consistently bind their lifecycles
* | Fix infinite query reloading behavior (reset, not invalidate) (#2031)Paul Frazee2023-11-291-2/+2
| | | | | | | | | | * Reset, not invalidate, notification queries * Reset, not invalidate, feed queries
* | Show logged out view when adding accounts (#2020)Ansh2023-11-291-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | * show logged out view when adding accounts * Handle existing signed-in account * Show which account is currently logged in * Fix showing toasts --------- Co-authored-by: Eric Bailey <git@esb.lol>
* | Get more rigorous about getAgent() consistency (#2026)Paul Frazee2023-11-296-54/+35
|/ | | | | * Get more rigorous about getAgent() consistency * Update the feed wrapper API to use getAgent() directly
* Disable RQ structural sharing (#2022)dan2023-11-281-0/+4
|
* Full send Sentry (#2018)Eric Bailey2023-11-281-2/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update build profiles, sentry config * Enable sentry * Ok actually enable in dev * Remove debug * Add TF build * Fix typo * Remove debug * Remove unecessary config * Fix typo * Set env in Expo * Remove scripts * Clarify * Replace invalid character * Align on release/dist * Add build version * Just use package version * Align dist
* Two fixes to react-key generation (#2004)Paul Frazee2023-11-271-2/+3
| | | | | * Fix missing react keys in ListMembers * Fix react key construction for the posts feed
* Nav home after switch accounts (#2002)Eric Bailey2023-11-271-2/+14
|
* Fixes 1731, compare URLs case-insensitive (#1980)Eric Bailey2023-11-221-5/+20
|
* Shadow refactoring and improvements (#1959)dan2023-11-212-0/+3
| | | | | | | | | | | | | | | * Make shadow a type-only concept * Prevent unnecessary init state recalc * Use derived state instead of effects * Batch emitter updates * Use object first seen time instead of dataUpdatedAt * Stop threading dataUpdatedAt through * Use same value consistently
* Hindi Internationalization (#1914)Ansh2023-11-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | * get basic hindi support to work * get web app language switcher in * Refactor i18n implementation and remove unused code * add missing strings * add dropdowns and modals missing strings * complete all hindi translations * fix merge conflicts * fix legeacy persisted state * fix data in RecommendedFeeds * fix lint
* Fix jumpy modal regression (#1945)dan2023-11-161-0/+23
|
* Disable refetchOnWindowFocus on react-query (#1936)Paul Frazee2023-11-161-1/+11
|
* Add a mutation queue to fix race conditions in toggles (#1933)dan2023-11-161-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prototype a queue * Track both current and pending actions * Skip unnecessary actions * Commit last confirmed state to shadow * Thread state through actions over time * Fix the logic to skip redundant mutations * Track status * Extract an abstraction * Fix standalone mutations * Add types * Move to another file * Return stable function * Clean up * Use queue for muting * Use queue for blocking * Convert other follow buttons * Don't export non-queue mutations * Properly handle canceled tasks * Fix copy paste
* Remove deprecated models and mobx usage (react-query refactor) (#1934)Paul Frazee2023-11-167-113/+62
| | | | | | | | | | | | | | | | | | | | | * Update login page to use service query * Update modal to use session instead of store * Move image sizes cache off store * Update settings to no longer use store * Update link-meta fetch to use agent instead of rootstore * Remove deprecated resolveName() * Delete deprecated link-metas cache * Delete deprecated posts cache * Delete all remaining mobx models, including the root store * Strip out unused mobx observer wrappers
* Refactor account-creation to use react-query and a reducer (react-query ↵Paul Frazee2023-11-161-1/+7
| | | | | | | | | refactor) (#1931) * Refactor account-creation to use react-query and a reducer * Add translations * Missing translate
* Close active elems (react-query refactor) (#1926)Paul Frazee2023-11-161-18/+4
| | | | | | | | | * Refactor closeAny and closeAllActiveElements * Add close lightbox * Switch to hooks * Fixes
* Fixes analytics init on web (#1923)Eric Bailey2023-11-151-11/+11
|
* Shell behaviors update (react-query refactor) (#1915)Paul Frazee2023-11-152-45/+47
| | | | | | | | | | | * Move tick-every-minute into a hook/context * Move soft-reset event out of the shell model * Update soft-reset listener on new search page * Implement session-loaded and session-dropped events * Update analytics and push-notifications to use new session system
* Update post embed fetching to use new methods (#1916)Eric Bailey2023-11-151-17/+10
| | | | | * Update post embed fetching to use new methods * Use session agent
* Port Profile Followers/Follows to RQ (#1893)dan2023-11-141-55/+0
| | | | | | | | | | | | | | | | | * Port user followers to RQ * Port user follows to RQ * Start porting FollowButton to RQ * Fix RQ key * Check pending * Fix shadow and pending states * Rm unused * Remove last usage of useFollowProfile
* Fix openCamera, openCropped, lightbox model, and image model usages (#1908)Eric Bailey2023-11-142-16/+3
|
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-144-26/+11
| | | | | | | | | * Move composer state to a context * Rework composer to use RQ --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Factor our feed source model (#1887)Eric Bailey2023-11-131-18/+0
| | | | | | | | | | | | | | | | | | | | | * Refactor first onboarding step * Replace old FeedSourceCard * Clean up CustomFeedEmbed * Remove discover feeds model * Refactor ProfileFeed screen * Remove useCustomFeed * Delete some unused models * Rip out more prefs * Factor out treeView from thread comp * Improve last commit
* More prefs cleanup (#1882)Eric Bailey2023-11-132-80/+0
| | | | | | | | | | | * Update useHomeTabs * Use queryClient to fetch * Replace useHomeTabs and useDesktopRightNavItems * Fix type error * Some cleanup
* Refactor notifications to use react-query (#1878)Paul Frazee2023-11-124-13/+21
| | | | | | | | | | | | | | | | | | | | | | | * Move broadcast channel to lib * Refactor view/com/post/Post and remove temporary 2 components * Add useModerationOpts hook * Refactor notifications to use react-query * Fix: only trigger updates in useModerationOpts when the values have changed * Implement unread notification tracking * Add moderation filtering to notifications * Handle native/push notifications * Remove dead code --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Refactor lists to use new queries (#1875)Paul Frazee2023-11-121-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * Refactor lists queries to react-query * Delete old lists-list model * Implement list, list-members, and list-memberships react-queries * Update CreateOrEditList modal * First pass at my-follows and actor-autocomplete queries * Update ListAddUserModal to use new queries, change to ListAddRemoveUsersModal * Update UserAddRemoveLists modal * Remove old TODO * Fix indent, autocomplete query * Add a todo --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Eric/preferences (#1873)Eric Bailey2023-11-122-107/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add initial preferences query, couple mutations * Remove unused * Clean up labels, migrate getModerationOpts * Add birth date handling * Migrate feed prefs * Migrate thread view prefs * Migrate homeFeed to use existing key name * Fix up saved feeds in response, no impl yet * Migrate saved feeds to new hooks * Clean up more of preferences * Fix PreferencesThreads load state * Fix modal dismissal * Small spacing fix --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Refactor feeds to use react-query (#1862)Paul Frazee2023-11-108-111/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update to react-query v5 * Introduce post-feed react query * Add feed refresh behaviors * Only fetch feeds of visible pages * Implement polling for latest on feeds * Add moderation filtering to slices * Handle block errors * Update feed error messages * Remove old models * Replace simple-feed option with disable-tuner option * Add missing useMemo * Implement the mergefeed and fixes to polling * Correctly handle failed load more state * Improve error and empty state behaviors * Clearer naming
* Push useAnimatedScrollHandler down everywhere to work around bugs (#1866)dan2023-11-102-9/+49
| | | | | | | * Move useOnMainScroll handlers to leaves * Force Feed to always take handlers * Pass handlers from the pager
* Merge pull request #1860 from bluesky-social/eric/startupEric Bailey2023-11-102-31/+31
|\ | | | | Web login/signup and shell
| * Pare down session as much as possibleEric Bailey2023-11-101-1/+4
| |
| * Web login/signup and shellEric Bailey2023-11-091-30/+27
| |