about summary refs log tree commit diff
path: root/src/state/models
Commit message (Collapse)AuthorAgeFilesLines
* MobX removal take 2 (#5381)Mary2024-09-253-566/+0
| | | | | | | | | * mobx removal take 2 * Actually rm mobx --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Pre-fill alt text with 10-million card post (#5389)Eric Bailey2024-09-172-13/+24
| | | | | | | | | | | | | * Pre-fill alt text with 10-million card post (#5377) * Clean up type * Tweak alt copy * Add pt translation, fix typo --------- Co-authored-by: Calvin <clavin@users.noreply.github.com>
* Share Extension/Intents (#2587)Hailey2024-02-271-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add native ios code outside of ios project * helper script * going to be a lot of these commits to squash...backing up * save * start of an expo plugin * create info.plist * copy the view controller * maybe working * working * wait working now * working plugin * use current scheme * update intent path * use better params * support text in uri * build * use better encoding * handle images * cleanup ios plugin * android * move bash script to /scripts * handle cases where loaded data is uiimage rather than uri * remove unnecessary logic, allow more than 4 images and just take first 4 * android build plugin * limit images to four on android * use js for plugins, no need to build * revert changes to app config * use correct scheme on android * android readme * move ios extension to /modules * remove unnecessary event * revert typo * plugin readme * scripts readme * add configurable scheme to .env, default to `bluesky` * remove debug * revert .gitignore change * add comment about updating .env to app.config.js for those modifying scheme * modify .env * update android module to use the proper url * update ios extension * remove comment * parse and validate incoming image uris * fix types * rm oops * fix a few typos
* Update tests to get them passing again (#2853)Paul Frazee2024-02-121-0/+146
|
* Clean up some sentry logs (#2630)Eric Bailey2024-01-251-1/+1
| | | | | | | * Change prop name for sentry ingestion * Fix test * Add default object
* Remove deprecated models and mobx usage (react-query refactor) (#1934)Paul Frazee2023-11-169-604/+0
| | | | | | | | | | | | | | | | | | | | | * 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-223/+0
| | | | | | | | | refactor) (#1931) * Refactor account-creation to use react-query and a reducer * Add translations * Missing translate
* Refactor app passwords to use react-query (#1932)Paul Frazee2023-11-161-57/+0
|
* Refactor invites modal (#1930)Eric Bailey2023-11-161-43/+1
| | | | | | | * Refactor invites modal * Replace in drawer * Delete stuff from me model
* Close active elems (react-query refactor) (#1926)Paul Frazee2023-11-161-13/+0
| | | | | | | | | * Refactor closeAny and closeAllActiveElements * Add close lightbox * Switch to hooks * Fixes
* Misc cleanup (#1925)Eric Bailey2023-11-158-883/+0
| | | | | | | | | | | | | * Remove unused prefs * Cleanup * Remove my-follows cache * Replace moderationOpts in ProfileCard comp * Replace moderationOpts in FeedSlice * Remove preferences model
* Factor lightbox out into hook/context (#1919)Paul Frazee2023-11-151-48/+1
|
* Remove post thread (#1920)Eric Bailey2023-11-153-482/+0
| | | | | | | * Delete post-thread model * Remove post-thread-item * Remove unused types
* Shell behaviors update (react-query refactor) (#1915)Paul Frazee2023-11-151-11/+1
| | | | | | | | | | | * 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
* Search page (#1912)Eric Bailey2023-11-151-69/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Desktop web work * Mobile search * Dedupe suggestions * Clean up and reorg * Cleanup * Cleanup * Use Pager * Delete unused code * Fix conflicts * Remove search ui model * Soft reset * Fix scrollable results, remove observer * Use correct ScrollView * Clean up layout --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Post PostLikedBy and PostRepostedBy to RQ (#1913)dan2023-11-152-271/+0
| | | | | * Port PostRepostedBy to RQ * Port PostLikedBy to RQ
* Port Profile Followers/Follows to RQ (#1893)dan2023-11-142-242/+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
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-143-63/+7
| | | | | | | | | * Move composer state to a context * Rework composer to use RQ --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Update Muted and Blocked accounts screens (react-query refactor) (#1892)Paul Frazee2023-11-132-214/+0
| | | | | | | * Add my-blocked-accounts and my-muted-accounts queries * Update ProfileCard to use the profile shadow cache and useModerationOpts * Update blocked accounts and muted accounts screens
* Profile cleanup (react-query refactor) (#1891)Paul Frazee2023-11-131-306/+0
| | | | | | | | | * Only fetch profile tab content when focused * Fix keys * Add missing behaviors to post tabs * Delete old profile mobx model
* Factor our feed source model (#1887)Eric Bailey2023-11-135-784/+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 profile refactor updates (#1886)Paul Frazee2023-11-131-3/+2
| | | | | | | | | | | * Update the profile avatar lightbox * Update profile editor * Add dynamic likes tab * Add dynamic feeds and lists tabs * Implement lists listing on profiles
* More prefs cleanup (#1882)Eric Bailey2023-11-132-17/+3
| | | | | | | | | | | * 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-123-699/+0
| | | | | | | | | | | | | | | | | | | | | | | * 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 My Feeds (#1877)Eric Bailey2023-11-123-310/+0
| | | | | | | * Refactor My Feeds screen * Remove unused feed UI models * Add back PTR
* Refactor lists to use new queries (#1875)Paul Frazee2023-11-125-885/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-124-435/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-104-531/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix type errors (#1867)Eric Bailey2023-11-101-0/+4
|
* Pare down session as much as possibleEric Bailey2023-11-102-456/+7
|
* Web login/signup and shellEric Bailey2023-11-091-2/+9
|
* Add modal state provider, replace usage except methods (#1833)Eric Bailey2023-11-082-234/+3
| | | | | | | | | | | | | * Add modal state provider, replace usage except methods * Replace easy spots * Fix sticky spots * Replace final usages * Memorize context objects * Add more warnings
* State layer cleanup: move alt-text-required into preferences and fix a bug ↵Paul Frazee2023-11-081-6/+1
| | | | | | | in reminders (#1845) * Move alt-text-required into preferences * Fix bug: reminders now using new onboarding state
* Move language preferences to new persistence + context (#1837)Paul Frazee2023-11-081-134/+2
|
* Move invite-state to new persistence + context and replace the notifications ↵Paul Frazee2023-11-084-96/+1
| | | | with just showing uses in the modal (#1840)
* Move muted threads to new persistence + context (#1838)Paul Frazee2023-11-086-75/+2
|
* Move onboarding state to new persistence + reducer context (#1835)Paul Frazee2023-11-083-115/+4
|
* Move require alt-text to new persistence + context (#1839)Paul Frazee2023-11-081-13/+0
|
* Move reminders to new persisted state layer (#1834)Paul Frazee2023-11-074-96/+11
|
* Add persistent state provider (#1830)Eric Bailey2023-11-072-34/+0
| | | | | | | | | | | | | | | | | | | | | | | | | * Add persistent state provider * Catch write error * Handle read errors, update error msgs * Fix lint * Don't provide initial state to loader * Remove colorMode from shell state * Idea: hook into persisted context from other files * Migrate settings to new hook * Rework persisted state to split individual contexts * Tweak persisted schema and validation --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Extract shell state into separate context (#1824)Eric Bailey2023-11-071-26/+0
| | | | | | | | | | | | | | | | | * WIP * Add shell state * Integrate new shell state for drawer and minimal shell mode * Replace isDrawerSwipeDisabled * Split shell state into separate contexts to avoid needless re-renders * Fix typo --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Fix removal of old lists from saved feeds (#1823)Eric Bailey2023-11-063-7/+20
| | | | | * Fix removal of old lists from saved feeds * Fix saved feed removal race condition
* Remove old loggerEric Bailey2023-11-041-115/+0
|
* Replace all logs with new loggerEric Bailey2023-11-0426-77/+92
|
* Merge pull request #1813 from ↵Eric Bailey2023-11-0423-64/+82
|\ | | | | | | | | bluesky-social/eric/app-903-extract-logger-into-singleton Add new logger
| * Fix other error logs while I'm at itEric Bailey2023-11-0418-33/+43
| |
| * Fix immediate TS errorsEric Bailey2023-11-047-29/+37
| |
| * Add new loggerEric Bailey2023-11-041-2/+2
| |
* | ListAddUser modal UX improvements (#1809)Paul Frazee2023-11-031-0/+2
|/ | | | | | | * typo * Add loading state to ListAddUser * Improve UI/UX of ListAddUser
* Improved list and feed errors (#1798)Paul Frazee2023-11-032-7/+52
| | | | | | | | | * Fix error-state rendering of ProfileList * Unsave/unpin lists on delete * Improve handling of failing feedgens * Only show 'remove' btn on feed DNE