about summary refs log tree commit diff
path: root/src/view/com/auth
Commit message (Collapse)AuthorAgeFilesLines
...
* PWI: Refactor Shell (#1989)dan2023-11-241-94/+0
| | | | | | | | | | | | | | | | | | | * Vendor createNativeStackNavigator for further tweaks * Completely disable withAuthRequired * Render LoggedOut for protected routes * Move web shell into the navigator * Simplify the logic * Add login modal * Delete withAuthRequired * Reset app state on session change * Move TS suppression
* [PWI] Clean up logged out screen (#1978)Eric Bailey2023-11-222-78/+86
| | | | | * Clean up logged out screen * Better responsive styles
* Shadow refactoring and improvements (#1959)dan2023-11-212-6/+2
| | | | | | | | | | | | | | | * 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
* PWI Base (#1964)Eric Bailey2023-11-214-45/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Base work for public view * Make default moderation settings more restrictive * Fix type * Handle showing sign-in on authed actions * Fix hoc logic * Simplify prefs logic * Remove duplicate method * Add todo * Clean up RepostButton.web * Fix x button color * Add todo * Retain existing label prefs for now, use separate logged out settings * Clean up useAuthedMethod, rename to useRequireAuth * Add todos * Move dismiss logic to withAuthRequired * Ooops add web * Block public view in prod * Add todo * Fix bad import
* Re-wrap forgot pw success in layout (#1966)Eric Bailey2023-11-211-1/+6
|
* Hindi Internationalization (#1914)Ansh2023-11-203-69/+89
| | | | | | | | | | | | | | | | | | | | | | * 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
* Add a mutation queue to fix race conditions in toggles (#1933)dan2023-11-161-21/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-1613-71/+46
| | | | | | | | | | | | | | | | | | | | | * 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-166-106/+359
| | | | | | | | | refactor) (#1931) * Refactor account-creation to use react-query and a reducer * Add translations * Missing translate
* Misc cleanup (#1925)Eric Bailey2023-11-151-4/+3
| | | | | | | | | | | | | * Remove unused prefs * Cleanup * Remove my-follows cache * Replace moderationOpts in ProfileCard comp * Replace moderationOpts in FeedSlice * Remove preferences model
* Fix onboarding follows (#1922)Eric Bailey2023-11-151-2/+1
|
* Add Shadow type (#1900)Paul Frazee2023-11-141-2/+9
|
* Refactor onboarding suggested follows (#1897)Eric Bailey2023-11-142-63/+152
| | | | | | | | | | | | | * Refactor onboarding suggested follows * Fix error state, track call * Remove todo * Use flatmap * Add additional try catch * Remove todo
* Factor our feed source model (#1887)Eric Bailey2023-11-132-43/+43
| | | | | | | | | | | | | | | | | | | | | * 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
* Eric/preferences (#1873)Eric Bailey2023-11-121-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Pare down session as much as possibleEric Bailey2023-11-102-5/+3
|
* Remove error states, just best effortEric Bailey2023-11-101-6/+3
|
* Follow conventions for query, use isDirty flag in session store to avoid ↵Eric Bailey2023-11-101-2/+2
| | | | unneccessary writes
* CommentsEric Bailey2023-11-092-1/+1
|
* Web login/signup and shellEric Bailey2023-11-098-79/+79
|
* Refactor post threads to use react query (#1851)Paul Frazee2023-11-091-0/+8
| | | | | | | | | | | | | | | | | | | * Add post and post-thread queries * Update PostThread components to use new queries * Move from normalized cache to shadow cache model * Merge post shadow into the post automatically * Remove dead code * Remove old temporary session * Fix: set agent on session creation * Temporarily double-login * Handle post-thread uri resolution errors
* Internationalization & localization (#1822)Ansh2023-11-0915-914/+1060
| | | | | | | | | | | | | | | | | | | | | | | | | * install and setup lingui * setup dynamic locale activation and async loading * first pass of automated replacement of text messages * add some more documentaton * fix nits * add `es` and `hi`locales for testing purposes * make accessibilityLabel localized * compile and extract new messages * fix merge conflicts * fix eslint warning * change instructions from sending email to opening PR * fix comments
* Add modal state provider, replace usage except methods (#1833)Eric Bailey2023-11-082-7/+9
| | | | | | | | | | | | | * Add modal state provider, replace usage except methods * Replace easy spots * Fix sticky spots * Replace final usages * Memorize context objects * Add more warnings
* Move onboarding state to new persistence + reducer context (#1835)Paul Frazee2023-11-085-42/+55
|
* Extract shell state into separate context (#1824)Eric Bailey2023-11-072-4/+8
| | | | | | | | | | | | | | | | | * 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>
* Replace all logs with new loggerEric Bailey2023-11-041-9/+8
|
* Fix other error logs while I'm at itEric Bailey2023-11-041-4/+4
|
* Fix max-height issuesPaul Frazee2023-11-021-1/+8
|
* Make choose account form scrollableflicknow2023-11-011-2/+3
|
* Lists updates: curate lists and blocklists (#1689)Paul Frazee2023-11-012-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add lists screen * Update Lists screen and List create/edit modal to support curate lists * Rework the ProfileList screen and add curatelist support * More ProfileList progress * Update list modals * Rename mutelists to modlists * Layout updates/fixes * More layout fixes * Modal fixes * List list screen updates * Update feed page to give more info * Layout fixes to ListAddUser modal * Layout fixes to FlatList and Feed on desktop * Layout fix to LoadLatestBtn on Web * Handle did resolution before showing the ProfileList screen * Rename the CustomFeed routes to ProfileFeed for consistency * Fix layout issues with the pager and feeds * Factor out some common code * Fix UIs for mobile * Fix user list rendering * Fix: dont bubble custom feed errors in the merge feed * Refactor feed models to reduce usage of the SavedFeeds model * Replace CustomFeedModel with FeedSourceModel which abstracts feed-generators and lists * Add the ability to pin lists * Add pinned lists to mobile * Remove dead code * Rework the ProfileScreenHeader to create more real-estate for action buttons * Improve layout behavior on web mobile breakpoints * Refactor feed & list pages to use new Tabs layout component * Refactor to ProfileSubpageHeader * Implement modlist block and mute * Switch to new api and just modify state on modlist actions * Fix some UI overflows * Fix: dont show edit buttons on lists you dont own * Fix alignment issue on long titles * Improve loading and error states for feeds & lists * Update list dropdown icons for ios * Fetch feed display names in the mergefeed * Improve rendering off offline feeds in the feed-listing page * Update Feeds listing UI to react to changes in saved/pinned state * Refresh list and feed on posts tab press * Fix pinned feed ordering UI * Fixes to list pinning * Remove view=simple qp * Add list to feed tuners * Render richtext * Add list href * Add 'view avatar' * Remove unused import * Fix missing import * Correctly reflect block by list state * Replace the <Tabs> component with the more effective <PagerWithHeader> component * Improve the responsiveness of the PagerWithHeader * Fix visual jank in the feed loading state * Improve performance of the PagerWithHeader * Fix a case that would cause the header to animate too aggressively * Add the ability to scroll to top by tapping the selected tab * Fix unit test runner * Update modlists test * Add curatelist tests * Fix: remove link behavior in ListAddUser modal * Fix some layout jank in the PagerWithHeader on iOS * Simplify ListItems header rendering * Wait for the appview to recognize the list before proceeding with list creation * Fix glitch in the onPageSelecting index of the Pager * Fix until() * Copy fix Co-authored-by: Eric Bailey <git@esb.lol> --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Fix a11y propPaul Frazee2023-10-301-2/+2
|
* Improved accessibility and interaction for waitlist Link in `Step2` componentBryan Lee2023-10-151-3/+9
|
* Improve typeahead search with inclusion of followed users (temporary ↵Paul Frazee2023-10-051-1/+1
| | | | | | | | | | | solution) (#1612) * Update follows cache to maintain some user info * Prioritize follows in composer autocomplete * Clean up logic and add new autocomplete to search * Update follow hook
* Fixed a typo on the onboarding recommended screen (#1604)Baasbase2023-10-041-1/+1
|
* Onboarding & feed fixes (#1602)Paul Frazee2023-10-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix: improve the 'end of feed' detection condition * Fix the feeds link on mobile in the empty state * Align the following empty state better on web * Dont autofocus the search input in the search tab * Fix the error boundary render * Add 'end of feed' CTA to following feed * Reduce the default feeds to discover now that we have feed-selection during onboarding * Fix case where loading spinner fails to stop rendering in bottom of feed * Fix: dont show loading spinner at footer of feed when refreshing * Fix: dont fire reminders during onboarding * Optimize adding feeds and update to mirror the api behaviors more closely * Use the lock in preferences to avoid clobbering in-flight updates * Refresh the feed after onboarding to ensure content is visible * Remove the now-incorrect comment * Tune copy
* Improve Device Detection For Better Responsiveness (#1512)Bryan Lee2023-09-281-78/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor `useOnMainScroll` function to use responsive device detection - Replace static `isDesktopWeb` with `useWebMediaQueries` hook to enable dynamic device type detection. - Create `useDeviceLimits` hook to dynamically determine `DY_LIMIT_UP` and `DY_LIMIT_DOWN` based on device type. - Update dependency arrays for the `useCallback` hooks to include new dynamic variables. * Refactor styles to be responsive to device type - Create `useStyles` hook that generates styles object based on device type detected from `useWebMediaQueries`. - Replace static styles object with dynamic styles object generated from `useStyles` hook in components. - This allows `paddingLeft` values for 'ul' and 'ol' styles to adapt to device type dynamically. - This allows `maxWidth` values for 'metaItem'' styles to adapt to device type dynamically. * Remove `isDesktopWeb` in favor of `useWebMediaQueries().isDesktop` * Refactor `SplashScreen` component for responsive design * Revision based on review results * Fix isNative check --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* add suggested follows metrics (#1503)Eric Bailey2023-09-201-0/+3
|
* Onboarding recommended follows (#1457)Ansh2023-09-205-1/+374
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upgrade api package * add RecommendedFollows as a step in onboarding * add list of recommended follows from suggested actor model * remove dead code * hoist suggestedActors into onboarding model * add comments * load more suggested follows on follow * styling changes * add animation * tweak animations * adjust styling slightly * adjust styles on mobile * styling improvements for web * fix text alignment in RecommendedFollows * dedupe inserted suggestions * fix animation duration * Minor spacing tweak --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> and Eric Bailey <git@esb.lol>
* Various release fixes (#1470)Paul Frazee2023-09-181-4/+8
| | | | | | | | | * Fix error state for recommended feeds * Handle failure to set default feeds more safely * Dont return undefined within react-query * Update yarn.lock
* add React Query and hook up to existing functionality (#1358)Ansh2023-09-152-22/+59
| | | | | | | | | | | | | | | | | * add React Query and hook up to existing functionality * wire in remote data, add error message * remove hard-coded feeds * oops fix logic * add loading state * fix loading on mobile --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Give explicit names to MobX observer components (#1413)dan2023-09-0711-222/+247
| | | | | | | | | * Consider observer(...) as components * Add display names to MobX observers * Temporarily suppress nested components * Suppress new false positives for react/prop-types
* Hotfix: Fix unable to enter invite code (#1409)Ansh2023-09-071-2/+0
| | | | | * Remove accessibilityRole from invite code input * remove unused styles
* Update testsPaul Frazee2023-09-051-2/+2
|
* Upgrade to Expo 49 (#1331)Eric Bailey2023-09-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update to expo 49 * update expo-camera to fix console erorrs * run doctor again * fix ts errors * patch @sentry/react-native Getting `cannot read property 'ignoreLogs' of undefined` in this file. Ironically, this may be a cyclical imports problem. LogBox isn't enabled in production, so this patch should only affect dev/test. * fix type error * reinstall newer reanimated * pin expo-dev-client to fix reanimated dev-build issue * fix type errors, fix bad conflict res * Fix to notifications badge z-index on desktop --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Updates to use dynamic/responsive styles on web (#1351)Paul Frazee2023-09-052-5/+2
| | | | | | | | | | | | | | | | | | | * Move most responsive queries to the hook * Fix invalid CSS value * Fixes to tablet render of post thread * Fix overflow issues on web * Fix search header on tablet * Fix QP margin in web composer * Fix: only apply double gutter once to flatlist (close #1368) * Fix styles on discover feeds header * Fix double discover links in multifeed
* Improvements to UI in web logged-out views (#1341)Paul Frazee2023-08-304-113/+135
| | | | | | | * Add LoggedOutLayout for desktop/tablet web * Avoid screen flash in the transition to onboarding * Fix comment
* Fix: remove bottom bar during onboardPaul Frazee2023-08-301-0/+4
|
* Simplify the RecommendedFeeds with breakpoint componentsPaul Frazee2023-08-304-260/+176
|
* Fix types and remove dead codePaul Frazee2023-08-301-7/+0
|
* More fixes to mobile onboardPaul Frazee2023-08-305-159/+242
|