about summary refs log tree commit diff
path: root/src/view/shell/desktop/LeftNav.tsx
Commit message (Collapse)AuthorAgeFilesLines
...
* Invalid handle autocomplete (#2251)Samuel Newman2023-12-201-1/+2
| | | | | * refactor invalid handle check from a previous PR to use util function * add invalid handle check to `prefixMatch`
* Fix: Some display issues (#2219)Hima2023-12-181-2/+1
| | | | | * Update LeftNav.tsx * Update RightNav.tsx
* Some brand, some pwi (#2212)Eric Bailey2023-12-141-31/+35
| | | | | | | | | | | | | | | * Add logo to left nav in logged out * Protect last routes * Hide links in left nav, hide nav * Replace bottom bar for pwi * Remove same links from drawer * Hide reply prompt * Allow search
* PWI behavior updates (#2207)Paul Frazee2023-12-141-19/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable PWI * Disable access to feeds on PWI * Remove feeds nav item from drawer when signed out * Replace discover feed on home with a CTA * Wire up the sign in and create account buttons to go straight to their respective screens * Give a custom ScreenHider interface for no-pwi * Add side borders on desktop to the screen hider * Filter accounts in the autocomplete according to mod settings * Trim replies in the post thread that are pwi opt-out * Show 'learn more' on the content hider when no-override is enabled * Apply the moderation filter on profile cards * Disable post search on logged-out view * Update locale files * Bump api pkg * Ensure feeds with no posts don't show as NSFPublic * Fix types --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Multiple notifications fixes (#2154)Paul Frazee2023-12-091-9/+1
| | | | | | | | | | | | | | | * Dont reset notifications feed on push notification event * Dont separate notifications by read state to avoid jank * On notifications screen focus, check latest and only rerender if not scrolled down * Reuse the cached notifs page when its not stale * Bump ios build number * Improve comments * Change the 'mark all read' condition to avoid firing too early
* Maintain some feed data to avoid needless glimmers (#2054)Paul Frazee2023-11-301-3/+2
|
* Fix infinite query reloading behavior (reset, not invalidate) (#2031)Paul Frazee2023-11-291-1/+1
| | | | | * Reset, not invalidate, notification queries * Reset, not invalidate, feed queries
* [PWI] Shell (#1967)Eric Bailey2023-11-211-89/+104
| | | | | | | | | | | | | | | * Sidebars * Bottom bar * Drawer * Translate * Spacing fix * Fix responsive regression * Fix nit
* Hindi Internationalization (#1914)Ansh2023-11-201-8/+10
| | | | | | | | | | | | | | | | | | | | | | * 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
* Improve notification load behaviors (#1943)Paul Frazee2023-11-161-1/+10
| | | | | | | * Dont use the stale cache for notifs-feed * Add a delay to marking all read to avoid marking upcoming posts as read * Trigger automatic notifications refresh when navigating to the tab, in certain conditions
* Remove deprecated models and mobx usage (react-query refactor) (#1934)Paul Frazee2023-11-161-13/+6
| | | | | | | | | | | | | | | | | | | | | * 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
* Shell behaviors update (react-query refactor) (#1915)Paul Frazee2023-11-151-4/+3
| | | | | | | | | | | * 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
* Fix self mention, resolve handle (#1903)Eric Bailey2023-11-141-8/+21
| | | | | | | | | * Fix self mention, resolve handle * Use queryClient * Fix type * Remove staleTime
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-141-1/+3
| | | | | | | | | * Move composer state to a context * Rework composer to use RQ --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Refactor profile screen to use new pager and react-query (#1870)dan2023-11-131-2/+2
| | | | | | | | | | | | | * Profile tabs WIP * Refactor the profile screen to use react-query (WIP) * Add the profile shadow and get follow, mute, and block working * Cleanup --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Refactor notifications to use react-query (#1878)Paul Frazee2023-11-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Remove error states, just best effortEric Bailey2023-11-101-10/+4
|
* Follow conventions for query, use isDirty flag in session store to avoid ↵Eric Bailey2023-11-101-2/+2
| | | | unneccessary writes
* Web login/signup and shellEric Bailey2023-11-091-26/+37
|
* Internationalization & localization (#1822)Ansh2023-11-091-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Lists updates: curate lists and blocklists (#1689)Paul Frazee2023-11-011-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Yep, one pixelPaul Frazee2023-10-301-1/+1
|
* Fix wonky commentTanza3D2023-10-181-1/+1
|
* Shrink to 16 againTanza3D2023-10-181-1/+1
|
* Improve New Post buttonTanza3D2023-10-181-5/+9
|
* Slightly larger desktop leftnav pfpPaul Frazee2023-09-281-1/+1
|
* Merge branch 'small-pfp-desktop-2' of https://github.com/Tanza3D/social-app ↵Paul Frazee2023-09-281-1/+1
|\ | | | | | | into Tanza3D-small-pfp-desktop-2
| * Small PFP on desktopTanza3D2023-09-261-1/+1
| |
* | Improvements to auto-mentioning users from their profiles (#1556)Eric Bailey2023-09-271-5/+18
|/ | | | | | | | | | | | | * Don't automatically mention users with invalid handles * don't mention when using did urls * resolve profile from cache * a little clearer --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Accessibility fixes: add missing labels, dynamically scale home header (#1516)Paul Frazee2023-09-221-0/+1
| | | | | * Improve labels * Dynanically adjust home header to account for font scaling
* Feed UI update working branch [WIP] (#1420)Paul Frazee2023-09-181-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Feeds navigation on right side of desktop (#1403) * Remove home feed header on desktop * Add feeds to right sidebar * Add simple non-moving header to desktop * Improve loading state of custom feed header * Remove log Co-authored-by: Eric Bailey <git@esb.lol> * Remove dead comment --------- Co-authored-by: Eric Bailey <git@esb.lol> * Redesign feeds tab (#1439) * consolidate saved feeds and discover into one screen * Add hoverStyle behavior to <Link> * More UI work on SavedFeeds * Replace satellite icon with a hashtag * Tune My Feeds mobile ui * Handle no results in my feeds * Remove old DiscoverFeeds screen * Remove multifeed * Remove DiscoverFeeds from router * Improve loading placeholders * Small fixes * Fix types * Fix overflow issue on firefox * Add icons prompting to open feeds --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> * Merge feed prototype [WIP] (#1398) * POC WIP for the mergefeed * Add feed API wrapper and move mergefeed into it * Show feed source in mergefeed * Add lodash.random dep * Improve mergefeed sampling and reliability * Tune source ui element * Improve mergefeed edge condition handling * Remove in-place update of feeds for performance * Fix link on native * Fix bad ref * Improve variety in mergefeed sampling * Fix types * Fix rebase error * Add missing source field (got dropped in merge) * Update find more link * Simplify the right hand feeds nav * Bring back load latest button on desktop & unify impl * Add 'From' to source * Add simple headers to desktop home & notifications * Fix thread view jumping around horizontally * Add unread indicators to desktop headers * Add home feed preference for enabling the mergefeed * Add a preference for showing replies among followed users only (#1448) * Add a preference for showing replies among followed users only * Simplify the reply filter UI * Fix typo * Simplified custom feed header * Add soft reset to custom feed screen * Drop all the in-post translate links except when expanded (#1455) * Update mobile feed settings links to match desktop * Fixes to feeds screen loading states * Bolder active state of feeds tab on mobile web * Fix dark mode issue --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Ansh <anshnanda10@gmail.com>
* Add birth date gating to moderation settings (#1435)Paul Frazee2023-09-111-1/+1
| | | | | | | * Add birth date preference, modal to set, link in settings, and age gate in moderation * Styling fixes for android * Fix types
* Give explicit names to MobX observer components (#1413)dan2023-09-071-70/+74
| | | | | | | | | * Consider observer(...) as components * Add display names to MobX observers * Temporarily suppress nested components * Suppress new false positives for react/prop-types
* Upgrade to Expo 49 (#1331)Eric Bailey2023-09-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-051-28/+119
| | | | | | | | | | | | | | | | | | | * 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
* Fix mismatching button label for speech recognition (#1372)dan2023-09-051-1/+1
| | | | | * Fix mismatching a11y label * Update all new post button labels to match
* Fix: Don't flash default profile avatar and link in nav (#1287)Patroll2023-08-281-1/+6
|
* [APP-834] Allow @ing someone in post directly from profile (#1241)Ansh2023-08-221-1/+16
| | | | | * setup `initMention` for mobile * setup creating post with profile tagged on web
* [APP-782] Support invalid handles correctly (#1049)Paul Frazee2023-07-271-5/+3
| | | | | | | | | | | | | | | | | | | * Update profile link construction to support handle.invalid * Update list links to support using handles * Use did for isMe check to ensure invalid handles dont distort the check * Shift the red (error) colors away from the pink spectrum * Add ThemedText helper component * Add sanitizedHandle() helper to render invalid handles well * Fix regression: only show avatar in PostMeta when needed * Restore the color of likes * Remove users with invalid handles from default autosuggests
* Make sidebar avatar keyboard-clickable. (#921)Markus Amalthea Magnuson2023-07-021-1/+4
|
* Fix a bunch of type errors and add a type-check to the github workflows (#837)Paul Frazee2023-06-021-2/+4
| | | | | | | | | | | | | | | * Add yarn type-check * Rename to yarn typecheck * Fix a collection of type errors * Add typecheck to automated tests * add `dist` to exluded folders tsconfig --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
* fix: make DesktopLeftNav not overflow screen (#762)LW2023-05-301-0/+2
| | | | | * fix: make DesktopLeftNav not overflow screen * scroll: auto
* Fix profile load issue + enhancement of profile isCurrent style (#764)MohammadReza Mahmoudi2023-05-301-5/+8
| | | | | | | | | * fix profile isActive issue * fix myProfile load issue when visiting other profiles first * fix lint issues * change currentRouteName to currentRouteInfo
* Tune up custom feed uis on webPaul Frazee2023-05-251-9/+9
|
* Add feeds tabPaul Frazee2023-05-251-1/+1
|
* Add custom satellite-dish iconsPaul Frazee2023-05-251-6/+8
|
* add saved feeds to left nav on desktopAnsh Nanda2023-05-251-0/+18
|
* Fix line break in New Post button (#657)Michi Hoffmann2023-05-161-1/+1
|
* Replace the moderation hand icon with a better iconPaul Frazee2023-05-121-3/+4
|
* [APP-635] Mutelists (#601)Paul Frazee2023-05-111-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add lists and profilelist screens * Implement lists screen and lists-list in profiles * Add empty states to the lists screen * Switch (mostly) from blocklists to mutelists * Rework: create a new moderation screen and move everything related under it * Fix moderation screen on desktop web * Tune the empty state code * Change content moderation modal to content filtering * Add CreateMuteList modal * Implement mutelist creation * Add lists listings * Add the ability to create new mutelists * Add 'add to list' tool * Satisfy the hashtag hyphen haters * Add update/delete/subscribe/unsubscribe to lists * Show which list caused a mute * Add list un/subscribe * Add the mute override when viewing a profile's posts * Update to latest backend * Add simulation tests and tune some behaviors * Fix lint * Bump deps * Fix list refresh after creation * Mute list subscriptions -> Mute lists