about summary refs log tree commit diff
path: root/src/view/com/post-thread
Commit message (Collapse)AuthorAgeFilesLines
* fix: don't expose post content on no-unauthenticated (#2584)Mary2024-01-221-4/+22
|
* Fix jump when opening last post in thread (#2591)dan2024-01-221-1/+3
|
* Fix orphan replies in linear mode (#2578)dan2024-01-221-4/+12
|
* Fix typos, improve localization and unify separators (#2502)Minseo Lee2024-01-221-1/+1
| | | | | | | | | | | | | | | * Correct a typing error in `FeedItem.tsx` and replace the middle dot in `Drawer.tsx` with a bullet. * Bullet to middle dot * `liked your custom feed{0}` to `liked your custom feed {0}` * Revert "`liked your custom feed{0}` to `liked your custom feed {0}`" This reverts commit 43ae67bd03abad59b15dceb12a54255d7ad302e9. * Update FeedItem.tsx * Update country-codes.ts
* New Web Layout (#2126)dan2024-01-221-10/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rip out virtualization on the web * Screw around with layout * onEndReached * scrollToOffset * Fix background * onScroll * Shell bars * More scroll * Fixes * position: sticky * Clean up 1 * Clean up 2 * Undo PagerWithHeader changes and fork it * Trim down both versions * Cleanup 3 * Memoize, lint * Don't scroll away modal or lightbox * Add content-visibility for rows * Fix composer * Fix types * Fix borked scroll animation * Fixes to layout * More FlatList parity * Layout fixes * Fix more layout * More layout * More layouts * Fix profile layout * Remove onScroll * Display: none inactive pages * Add an intermediate List component * Fix type * Add onScrolledDownChange * Port pager to use onScrolledDownChange * Fix on mobile * Don't pass down onScroll (replacement TBD) * Remove resetMainScroll * Replace onMainScroll with MainScrollProvider * Hook ScrollProvider to pager * Fix the remaining special case * Optimize a bit * Enforce that onScroll cannot be passed * Keep value updated even if no handler * Also memo it * Move the fork to List.web * Add scroll handler * Consolidate List props a bit * More stuff * Rm unused * Simplify * Make isScrolledDown work * Oops * Fixes * Hook up context scroll handlers * Scroll restore for tabs * Route scroll restoration POC * Fix some issues with restoration * Remove bad idea * Fix pager scroll restoration * Undo accidental locale changes * onContentSizeChange * Scroll to post * Better positioning * Layout fixes * Factor out navigation stuff * Cleanup * Oops * Cleanup * Fixes and types * Naming etc * Fix crash * Match FL semantics * Snap the header scroll on the web * Add body scroll lock * Scroll to top on search * Fix types * Typos * Fix Safari overflow * Fix search positioning * Add border * Patch react navigation * Revert "Patch react navigation" This reverts commit 62516ed9c20410d166e1582b43b656c819495ddc. * fixes * scroll * scrollbar * cleanup unrelated * undo unrel * flatter * Fix css * twk
* Use the RichText facets when copying post text (#2481)Mary2024-01-101-0/+3
| | | | | * feat: serialize rich text to string * feat: wire richTextToString to copy post text
* Internationalize more strings (#2440)Stanislas Signoud2024-01-092-7/+12
| | | Co-authored-by: Ansh <anshnanda10@gmail.com>
* add expandable context to composer when replying to post (#2419)Hailey2024-01-081-0/+1
| | | | | | | | | | | | | | | * add expand replyTo text with animation * add images, quote to replyTo * support withmedia * adjust layout * add embed to all needed openComposer calls * adjust gap * organize imports
* Fix missing avatar moderation in replies (#2325)Paul Frazee2023-12-271-0/+1
|
* Fix: only show appeal CW item on moderated posts (#2312)Paul Frazee2023-12-271-3/+3
| | | | | * Fix: only show appeal CW item on moderated posts * Add appeal cw control to feed view o fposts
* Hide posts tool (#2299)Eric Bailey2023-12-241-1/+1
| | | | | | | | | | | | | * Set up hidden posts persisted state * Wrap moderatePost * Integrate hidden posts into moderation * Complete hide-post behaviors --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Consolidate List props a bit (#2216)dan2023-12-213-31/+8
|
* Move label appeal to post dropdown (#2236)Eric Bailey2023-12-181-8/+3
| | | | | | | | | | | * Move appeal from post to dropdown * Translate * Tweak copy on the appeal label modal --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Hide label appeal on self-labeled posts (#2232)Eric Bailey2023-12-181-1/+4
| | | | | * Hide appeal for self-labeled post, update copy * Use correct logic
* PWI behavior updates (#2207)Paul Frazee2023-12-141-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Make scroll handling contextual (#2200)dan2023-12-133-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add an intermediate List component * Fix type * Add onScrolledDownChange * Port pager to use onScrolledDownChange * Fix on mobile * Don't pass down onScroll (replacement TBD) * Remove resetMainScroll * Replace onMainScroll with MainScrollProvider * Hook ScrollProvider to pager * Fix the remaining special case * Optimize a bit * Enforce that onScroll cannot be passed * Keep value updated even if no handler * Also memo it
* Re-rendering improvements for like/unlike (#2180)dan2023-12-121-1/+3
| | | | | | | | | | | | | | | * Add a few memos * Memo PostDropdownBtn better * More memo * More granularity * Extract PostContent * Fix a usage I missed * oops
* Hide the mobile reply control if outside the threadgate (#2177)Paul Frazee2023-12-111-1/+8
|
* Add "Who can reply" controls [WIP] (#1954)Paul Frazee2023-12-102-140/+152
| | | | | | | | | | | | | | | | | | | | | * Add threadgating * UI improvements * More ui work * Remove comment * Tweak colors * Add missing keys * Tweak sizing * Only show composer option on non-reply * Flex wrap fix * Move the threadgate control to the top of the composer
* Add label appeal tool to posts and accounts (#2124)Paul Frazee2023-12-071-0/+10
| | | | | * Add label appeal tool to posts and accounts * Fix translations
* Treeview: more UI tweaks (#2125)Paul Frazee2023-12-062-12/+26
| | | | | | | * Treeview: more UI tweaks * Only show treeview when there are branching replies * Fix types
* More treeview UI tweaks (#2093)Paul Frazee2023-12-052-8/+35
| | | | | * Improve tree-view spacing consistency and always include one reply bar level * Reduce expanded post avi size
* Perf: Dont initial-render full thread on mobile (#2101)Paul Frazee2023-12-051-1/+1
|
* E2E 🟢 (#2092)Eric Bailey2023-12-051-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add logged out e2e ctrl, fix login test * Fix log handling via env vars in expo * Fix create account test * Upgrade dev-env * Fix home screen tests * Fix composer tests * Fix curate-lists tests, split in two * Fix invite codes test * Fix curate-lists tests * Give up on mergefeed test * Fix mod lists * Fix app view url * Fix profile tests * Fix profile test with hack * Keep using globals * Fix two more * Fix thread view * Better skip for merge feed * Revert debug code
* Tune treeview thread mode to have consistent spacing (#2078)Paul Frazee2023-12-041-8/+8
|
* Fix: distinguish between post media and quotes with the moderation hider (#2075)Paul Frazee2023-12-041-1/+8
| | | | | * Fix: distinguish between post media and quotes with the moderation hider * Type fixes
* Improve the post-hiders and the header alerts (#2074)Paul Frazee2023-12-041-1/+5
| | | | | * Improve the post-hider and the header alerts * Adjust the contenthider (icon, font size)
* Restore post-thread caching behaviors (react-query refactor) (#2010)Paul Frazee2023-11-271-85/+79
| | | | | | | | | | | | | | | | | | | | | * Rework resolve-did and resolve-uri queries to be smarter about cache reuse * Precache handle resolutions * Remove old unused code * Load placeholder threads from the post-feed and notifications-feed queries * Remove logs * Fix bad ref * Add loading spinners to the cache-loading thread view * Scroll replies into view when loading threads * Add caching within a thread * Fix: dont show bottom border when the child spinner is active
* [PWI] Misc (#1977)Eric Bailey2023-11-221-1/+4
| | | | | | | * PostDropdownBtn * Hide reply prompt * Hide FABs
* Shadow refactoring and improvements (#1959)dan2023-11-214-31/+8
| | | | | | | | | | | | | | | * 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-202-3/+5
| | | | | | | | | | | | | | | | | | | | | | * 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
* Do less work (#1953)dan2023-11-171-4/+5
|
* Improve types (#1921)Eric Bailey2023-11-151-1/+1
|
* Post PostLikedBy and PostRepostedBy to RQ (#1913)dan2023-11-152-73/+138
| | | | | * Port PostRepostedBy to RQ * Port PostLikedBy to RQ
* Add Shadow type (#1900)Paul Frazee2023-11-141-2/+2
|
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-141-7/+8
| | | | | | | | | * 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-14/+13
| | | | | | | | | | | | | | | | | | | | | * 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
* Refactor notifications to use react-query (#1878)Paul Frazee2023-11-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * 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 feeds to use react-query (#1862)Paul Frazee2023-11-101-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Refactor post threads to use react query (#1851)Paul Frazee2023-11-092-436/+481
| | | | | | | | | | | | | | | | | | | * 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-092-15/+27
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Move language preferences to new persistence + context (#1837)Paul Frazee2023-11-081-4/+6
|
* Move muted threads to new persistence + context (#1838)Paul Frazee2023-11-081-7/+10
|
* Replace all logs with new loggerEric Bailey2023-11-044-19/+19
|
* Fix other error logs while I'm at itEric Bailey2023-11-042-4/+8
|
* Fix immediate TS errorsEric Bailey2023-11-042-5/+5
|
* Added show more for long postsHaider Ali Punjabi2023-10-261-2/+19
|
* Fix: add padding to the spinner bottom while loading threads (#1626)Paul Frazee2023-10-051-1/+3
|
* Fix: only use scroll-positioning control on thread when looking at replies ↵Paul Frazee2023-10-031-1/+1
| | | | (#1587)
* Improve Device Detection For Better Responsiveness (#1512)Bryan Lee2023-09-282-92/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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>