about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThreadItem.tsx
Commit message (Collapse)AuthorAgeFilesLines
* 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-091-5/+6
| | | 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>
* 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
* 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
* Add "Who can reply" controls [WIP] (#1954)Paul Frazee2023-12-101-139/+151
| | | | | | | | | | | | | | | | | | | | | * 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-061-10/+7
| | | | | | | * Treeview: more UI tweaks * Only show treeview when there are branching replies * Fix types
* More treeview UI tweaks (#2093)Paul Frazee2023-12-051-8/+30
| | | | | * Improve tree-view spacing consistency and always include one reply bar level * Reduce expanded post avi size
* 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)
* Shadow refactoring and improvements (#1959)dan2023-11-211-3/+1
| | | | | | | | | | | | | | | * 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-2/+4
| | | | | | | | | | | | | | | | | | | | | | * 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
|
* 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>
* 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-091-228/+219
| | | | | | | | | | | | | | | | | | | * 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-091-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-041-8/+9
|
* Fix immediate TS errorsEric Bailey2023-11-041-4/+4
|
* Added show more for long postsHaider Ali Punjabi2023-10-261-2/+19
|
* Improve Device Detection For Better Responsiveness (#1512)Bryan Lee2023-09-281-88/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* boolEric Bailey2023-09-221-2/+4
|
* update translator link show logicEric Bailey2023-09-221-3/+3
|
* Tune the treeview mode to use larger immediate-children (#1506)Paul Frazee2023-09-211-19/+13
| | | | | * Tune the treeview mode to use larger immediate-children * Fix display name alignment
* Language settings updates, new primary language setting (#1471)Eric Bailey2023-09-211-1/+4
| | | | | | | | | | | | | | | * move content languages to screen * add dropdown library, style primary lang select * update settings button * show selected langauges in button * use primary language in translator link * update copy * lint
* Tune the treeview UI a bit more (#1494)Paul Frazee2023-09-201-33/+47
|
* Tree view threads experiment (#1480)Paul Frazee2023-09-191-38/+103
| | | | | | | | | | | | | * Add tree-view experiment to threads * Fix typo * Remove extra minimalshellmode call * Fix to parent line rendering * Fix extra border * Some ui cleanup
* Feed UI update working branch [WIP] (#1420)Paul Frazee2023-09-181-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Improved mute alerting (#1355)Paul Frazee2023-09-011-1/+33
| | | | | | | * Use a simpler mute alert when viewing a post by a muted user * Dont mute self-QPs when we're overriding a mute * Fix types
* Make posts behave more like links (#1316)Eric Bailey2023-08-281-0/+5
| | | | | | | | | | | | | | | | | * use cursor for post cards * ignore type error * handle meta keys on non native links (cherry picked from commit daccafea0b7ab21af6572767e496d20f32ead353) * remove cursor on non-post notifications, not quite right * Simplify link handling --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* add title attr to text text links (#1228)Eric Bailey2023-08-221-7/+12
| | | | | | | | | | | | | | | * add title attr to text text links * Revert "add title attr to text text links" This reverts commit c028cd184efd3b2788d8f46134eecf521e5d7b07. * use css tooltips * add to expanded post state * handle theming * add to bskyweb
* fix thread double border (#1251)Eric Bailey2023-08-221-4/+5
|
* Fix to post meta overflow in highlighted post (#1211)Paul Frazee2023-08-171-3/+8
| | | | | * Fix to post meta overflow in highlighted post * Give more space to desktop web
* default translate to device language (#1207)Eric Bailey2023-08-171-2/+1
|
* Fix tap target size of post dropdown menus (#1180)Paul Frazee2023-08-151-17/+19
|
* Add alerts to embeds (#1138)Paul Frazee2023-08-081-2/+8
| | | | | | | * Add alerts to embeds * Add images to the mock data * Fix types
* remove unused stylesEric Bailey2023-08-081-16/+0
|
* fix thread spacing and reply linesEric Bailey2023-08-081-176/+217
|
* fix post thread feedback regression (#1109)Eric Bailey2023-08-041-1/+3
|