about summary refs log tree commit diff
path: root/src/view/com/post-thread
Commit message (Collapse)AuthorAgeFilesLines
* Optimistic hidden replies (#4977)Eric Bailey2024-08-232-42/+18
|
* Fetch it (#4974)Eric Bailey2024-08-221-4/+2
|
* Prep threadgate shadow hack (#4970)Eric Bailey2024-08-212-20/+21
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-213-13/+91
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Show quote posts (#4865)Samuel Newman2024-08-214-5/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * show quote posts * fix filter * fix keyExtractor * move likedby and repostedby to new file structure * use modern list component * remove relative imports * update quotes count after quoting * call `onPost` after updating quote count * Revert "update quotes count after quoting" This reverts commit 1f1887730a210c57c1e5a0eb0f47c42c42cf1b4b. * implement * update like count in quotes list * only add `onPostReply` where needed * Filter quotes with detached embeds * Bump SDK * Don't show error for no results --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Eric Bailey <git@esb.lol>
* Improve styles (#4916)Minseo Lee2024-08-111-1/+1
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Show just-posted replies above OP replies (#4901)dan2024-08-082-6/+31
| | | | | | | | | * Unify onPostReply handler * Show just-posted replies above OP replies * Only do this for the highlighted post or thread mode It's confusing to have your post displace OP thread or other people's leaf posts.
* Fix overflow on posts (#4899)Samuel Newman2024-08-081-0/+1
| | | | | | | | | | | | | | | | | * overflow posts, via contentHider * margin->padding for a bit more leeway * overflow notifications * overflow on header * revert from contenthider, put on text in all places * fix zalgo text in handle in composer --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Move onPressReply into child component (#4898)dan2024-08-082-10/+87
| | | | | * Move ComposePrompt to post-thread/ * Move onPressReply into child component
* Remove unnecessary state update for reply gate (#4897)dan2024-08-081-12/+36
| | | | | | | * Move mobile compose prompt to inner component * Make canReply computed * Use same clamp we use elsewhere
* Show own replies before follows' replies in threads (#4882)dan2024-08-061-4/+5
|
* Fix missing header on Likes/Reposted By, add missing perf optimizations (#4867)Hailey2024-08-012-104/+103
| | | | | | | | | * fix liked by list * fix lists * tweaks to style * change string
* Replace `import hairlineWidth =` with const (#4831)Samuel Newman2024-07-251-6/+5
| | | | | | | | | * replace import with const * just use `StyleSheet.hairlineWidth` --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-231-2/+2
| | | | | | | | | | | | | * use appropriate icons for toasts * use info for session expiry * tweak size * message -> safeMessage --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Fix RTL text rendering for display names (#4747)Hailey2024-07-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * header display name rtl support * highlighted post rtl * move `NON_BREAKING_SPACE` to an external constant * rtl support in search dropdown * profile card rtl * old profile card rtl * hover card * wizard list card * new chat * account card * chat header * clean up notifications * just force LTR on meta display name
* Unify label pills (#4676)Eric Bailey2024-07-031-1/+1
| | | | | | | | | | | | | | | * New label pills * Fix type errors, add default case * Remove negative margin, only works in some places * Fix alignment edge case * Add a bit of padding --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Remove the 'Who can reply' element except when viewing root, and add "edit" ↵Paul Frazee2024-06-241-155/+150
| | | | | | | (#4615) * Remove the 'Who can reply' element except when viewing root, and add the edit text to authors * Switch to icon
* Rework "Who can reply" to blend more nicely into the UI (#4578)Paul Frazee2024-06-191-19/+19
| | | | | | | | | | | | | * Rework WhoCanReply controls in threads to blend more nicely * Fix layout * Fix post control hitslops * Move dialog content to separate component --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Collection of moderation fixes (#4566)Paul Frazee2024-06-191-1/+5
| | | | | | | | | | | | | | | * Fix: dont blur parents in threads that embed blocks * After tapping 'Show hidden replies', show the individual hider cards * Add shape override to UserAvatar and fix the fallback avi for labelers * Fix precedence * Detect shape for DefaultAvatar --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Implement thread locking (#4545)Paul Frazee2024-06-181-2/+23
| | | | | | | * Add the ability to edit threadgates * Fix bottom border on mobile * Refresh thread after threadgate edit
* Improve thread loading (#4402)Paul Frazee2024-06-112-0/+61
| | | | | | | * Increase the number of posts loaded when a self-thread is present * Increase depth to 10, detect cutoffs on self-threads and show continue link * Stacky the avis
* rip out native translate (#4482)Samuel Newman2024-06-111-19/+2
|
* Avi follow experiment tweaks (#4341)dan2024-06-041-11/+6
| | | | | | | * Move avi button to visually align content * Fix wrong prop warning * Remove avi follow from post thread
* Change many border widths from `1` to `hairlineWidth` (#4294)Hailey2024-05-311-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feed items * update some more * moar * profile card * composer and notifications * settings screen * remove border from first item in feeds * remove border from first item in feeds * more removal of top border * fix flatlist rendering * oops * scroll to top fab * a.border * centeredview/list * placeholder * web sidebar * search posts * feeds list * user lists * list header * account list width 1 * hide top border feedgens * same for lists * fix tab bar web desktop * wait... * show the border on desktop web * fix lists * fix lists * round
* Add follow button to feed item avatar (#3560)Samuel Newman2024-05-311-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add follow button to feed item avatar * remove confirmation * add confirmation (just system alert) * Shrink the avi follow indicator a smidge * gate the follow button * remove from your own posts * add to post thread item * hide the follow button locally to component * Use native dropdown * Add follow btn to notifications and search * UI tweaks * Hide on PWI * Add toast for confirmation * Check gate last * compiler * Rm unused * Use names --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* don't maintain position whenever there are no parents (#4277)Hailey2024-05-301-1/+3
|
* Interpret 'hide' setting as ALWAYS hiding from thread replies (#4263)Paul Frazee2024-05-302-3/+4
|
* Improve the visual clarity of labels on profiles and posts (#4262)Paul Frazee2024-05-301-1/+2
| | | | | * Update PostAlerts rendering to show the avi of the labeler rather than the display name; also add size variations * Update ProfileHeaderAlerts to match PostAlerts behavior
* Always show the header on post threads on native (#4254)Hailey2024-05-303-190/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * always show header on native * ALF ALF ALF * rm offset for top border * wrap in a `CenteredView` * use `CenteredView`'s side borders * account for loading state on web * move `isTabletOrMobile` * hide top border on first post in list * show border if parents are loading * don't show top border for deleted or blocked posts * hide top border for hidden replies * Rm root post top border --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Use ALF for post controls (#3400)Samuel Newman2024-05-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * alf the repost dropdown on web + import icons * alf like icon * convert other post controls * add missing padding to share button * refine buttons and use better icons * revert buttonicon changes * remove ButtonIcon and ButtonText from repost dialog * use 15px font size when not big * reduce size and use contrast_25 * add hover state to logged out view * add `userSelect: 'none'` to buttons * use width rather than height * fix quote close behaviour * prettier * Fix Esc on repost * Use new icons for placeholder * Fix placeholder --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Native translation expo module (#4098)Samuel Newman2024-05-281-4/+23
| | | | | | | | | | | | | | | | | | | | | | * translation expo module * add `onClose` and `onReplacementAction` * rm onReplacementAction * make all props published * make translation api available globally w/o wrapper (#4110) * conditionally import the translation module * only use native translation if language is probably supported * open native translation via dropdown menu --------- Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Improve moderation behaviors: show alert/inform sources and improve UX ↵Paul Frazee2024-05-243-21/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | around threads (#3677) * Dont show account or profile alerts and informs on posts * Sort threads to put blurred items at bottom * Group blurred replies under a single 'show hidden replies' control * Distinguish between muted and hidden replies in the thread view * Fix types * Modify the label alerts with some minor aesthetic updates and to show the source of a label * Tune when an account-level alert is shown on a post * Revert: show account-level alerts on posts again * Rm unused import * Fix to showing hidden replies when viewing a blurred item * Go ahead and uncover replies when 'show hidden posts' is clicked --------- Co-authored-by: dan <dan.abramov@gmail.com>
* Replace pluralize by plural by @tkusano (#3882)Paul Frazee2024-05-061-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Replace pluralize with plural or Plural * Replace all pluralize (defined by src/lib/strings/helpers.ts) with plural or Plural (defined by @lingui/macro) to make some UI elements translatable. * Delete pluralize() and related test. * Import @formatjs polyfill libraries for plural on ios and android - ios and andorid: import `@formtjs/intl-locale` and `@formatjs/intl-pluralrules` to polyfill `Intl.Locale` and `Intl.PluralRules` which are used in `plural()` and '<Plural />'. - update `plural` use in notification messages for better translation. * Rewrite to pass lint * Add Catalan plural polyfill * more replacement * import zh plural data for zh-CN * Refactor feed header components (#2964) * Move home-related files to view/com/home * Add HomeHeader in front of FeedTabBar * Move isDekstop check outside FeedsTabBar * Remove PWI logic from tabbar * Separate platform-specific layout from shared logic * Rename Home Feed Prefs to Following Feed Prefs (#2965) * use `useOpenLink` hook for links in ALF (#2975) * use `useOpenLink` hook for links in ALF * web only for `outline` * increase timeout to 15s (#2958) * Normalize relative day (#2874) * fix: normalize relative date * chore: add comments * refactor: skip flooring normalized diff * refactor: let -> const * fix: get own copy of date to prevent mutating * refactor: rounding does the same trick * Add handle validation to create account UI (#2959) * show uiState errors in the box as well simplify copy update ui for only letters and numbers add ui validation to handle selection * simplify names * Fix accidental text-node render --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> * Make dim theme dim (#2966) * Make dim color scheme dim * Tweaks * Overall tweaks * We have to go darker * Tweak saturation of blues in dim * Increase contrast on dark-dark mode * adjust dim --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: Hailey <me@haileyok.com> * Fix dim mode unread notif color * use `showControls` to show/hide live text icon on ios (#2982) * Update .po files * fix reversed icons in validator 🤦 (#2991) * Adjust `windowSize` on `PostThread` `FlatList` (#2989) * adjust window size, cells batching period * rm batching period change * Pluralize 'follow(s)' * Include a space between the msgid count and "follower(s)/following(s)" so the translator can adjust the translated count line to fit within the Drawer. * pluralie '# following' * Fix & Update * Rewrite to use Plural * rmeove unused import * When commiting changes, disable 'simple-import-sort' plugin in .eslintrc.js to sync with bluesky-social:main * Revert simple-import-sort/imports related changes * Move ProfileHoverCard web to plural util * Followings -> following * Add plural following to hovercard * Followings -> Following --------- Co-authored-by: Takayuki KUSANO <kusano@tkusano.jp> Co-authored-by: Takayuki KUSANO <65759+tkusano@users.noreply.github.com> Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Mary <148872143+mary-ext@users.noreply.github.com> Co-authored-by: Eric Bailey <git@esb.lol>
* show spinner when preferences has not loaded yet (#3756)Hailey2024-05-061-3/+3
|
* Performance improvements: structural sharing & moderation opts context (#3785)Paul Frazee2024-04-302-5/+3
| | | | | | | | | | | | | * Fix: correctly apply structural sharing to preferences object * Move moderation opts into a context * Fix import * Remove log * Pass userdid directly * Pass moderationPrefs directly
* Fix List onMomentumScrollEnd (#3759)dan2024-04-291-33/+39
|
* remove precacheThreadPostProfiles (#3729)Hailey2024-04-271-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove `precacheThreadPostProfiles` * add `displayName` to `PreviewableUserAvatar` * memo * use `precacheProfile` * pass `profile` directly to `PreviewableUserAvatar` * update the `UserAvatar`'s props * remove feed cache * one more spot * rm unused queryClient * Don't call fn unnecessarily * Preload for display name too * try notification item * add to feeditem * and finally, precache for post threads * timestamp * Fix * onBeforePress --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* remove unnecessary padding from the right hand side of the post in threaded ↵Hailey2024-04-221-1/+0
| | | | (#3645)
* [Statsig] Update experiments (#3617)dan2024-04-191-1/+1
|
* align center post meta in threaded (#3615)Hailey2024-04-191-1/+7
| | | | | | | | | * align center post meta in threaded * put `displayNameStyle` in correct place * maybe? * with mobile padding too?
* [Statsig] Make gate checks lazily (#3594)dan2024-04-181-2/+2
|
* QT Jump Pt. 2 - Remove code duplication (#3506)Hailey2024-04-121-38/+32
| | | | | * remove code duplication * now it's safe to remove shimmer
* [Experiment] Show "Follow Back" label (#3439)dan2024-04-081-7/+18
|
* Simplify list logic further to prevent misuse (#3334)Hailey2024-04-031-33/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * simplify list logic further more simplification simplify by removing `isEmpty` use `isFetchingNextPage` everywhere for clarity change `isFetching` to `isFetchingNextPage` for clarity remove some useless `useMemo`s move `renderItem` and `keyExtractor` out of component * clean bundle size check * update deploy * adjust * adjust * one test * try now * test it * done
* Mods UI fixes (#3296)Eric Bailey2024-03-211-16/+16
| | | | | * Fix report dialog buttons on Android by adjusting styles * Dry up label pref comp
* Fix missing error on `PostThread` (#3295)Hailey2024-03-211-1/+1
|
* Fix detection of !no-unauthenticated (#3279)Paul Frazee2024-03-191-1/+2
|
* Merge branch 'patch-3' of https://github.com/quiple/social-app into ↵Paul Frazee2024-03-191-1/+1
|\ | | | | | | quiple-patch-3
| * Merge remote-tracking branch 'upstream/main' into patch-3Minseo Lee2024-03-193-71/+34
| |\
| * \ Merge branch 'bluesky-social:main' into patch-3Minseo Lee2024-03-151-3/+0
| |\ \