about summary refs log tree commit diff
path: root/src/view/com/post-thread
Commit message (Collapse)AuthorAgeFilesLines
* Point "Continue thread" at last shown post (#7060)dan2024-12-111-3/+4
|
* Add back button to desktop threads (#7010)Eric Bailey2024-12-081-3/+2
|
* [Layout] Base (#6907)Eric Bailey2024-12-054-10/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add common gutter styles as hook * Add computed scrollbar gutter CSS vars * Add new layout components * Replace layout components in settings screens * Remove old back button * Invert web border logic for easier migration * Clean up Slot API * Port over FF handling of scrollbar offset * Trade boilerplate for ease of use * Limit to one line * Allow two lines, fix wrapping * Fix alignment * sticky headers * set max with on header and center * [Layout] Notifications Header (#6910) * Replace notifications screen header * fix cropped indicator --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * Replace Hashtag header (#6928) * [Layout] ChatList header (#6929) * Replace ChatList header * update chat settings as well --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * Add web borders to Chat settings * Remove unused var * Move ChatList header outside center * Replace empty chat layout * fix breakpoints * [Layout] Scrollbar gutters (#6908) * Fix sidebar alignment * Make sure scrollbars don't hide * Gift left nav more space * Use stable one-edge, update logic in RightNav * Ope * Increase width * Reset * Add transform to sidebars * Remove bg in sidebars * Handle shifts in layout components * Replace scroll-removal handling * Make react-remove-scroll an explicit dep * Remove unused script * use correct scroll insets (#6950) * [Layout] Feeds headers (#6913) * Replace ViewHeader internals, duplicate old ViewHeader * Replace Feeds header * Replace SavedFeeds header * Visual alignment * Uglier but clear * Use old ViewHeader for SavedFeeds * use Layout.Center instead of Layout.Content * use left-aligned header for feed edit * delete unused old view header --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * [Layout] Every other screen (#6953) * attempt to fix double borders on every other screen * delete ListHeaderDesktop * delete `SimpleViewHeader` and fix screens (#6956) * Make Layout.Center not full height * Refactor List to use Layout.Center, remove built-in borders * Fix Home screen * Refactor PagerWithHeader to use Layout components * Replace components in ProfileFeed and ProfileList * Borders on Profile * Search screen replacements * use new header for profile subpage header (#6958) * Search AutocompleteResults * use new header for starter pack wizard (#6957) * Fix post thread * Enable borders by default * Moderation muted and blocked accounts * Fix scrollbar offset on Labeler * Remove ScrollView from Moderation * Remove ScrollView from Deactivated * Remove ScrollView from onboarding * Remove ScrollView from SignupQueued * Mark deprecations * fix lint * Fix double borders on profile load * Remove unneeded CenteredView from noty Feed * Remove double Center layout on Notifications screen * Remove double Center layout on ChatList screen * Handle scrollbar offset in chat * Use new atom for other scrollbar offsets * Remove borders from old views * Better doc * Remove temp migration prop * Fix new atom usage on native * Clean up Hashtag screen * Layout docs * Clarify usage in Pager * Handle nested offset contexts * Clean up Layout * fix feeds page * asymmetric header on native (#6969) * Reusable header const * Fix up home header * Add back button to convo * Add hitslop to header buttons * Comment * Better handling on native for new atom * Format * Fix nested flatlist on mod screens * Use react-remove-scroll-bar directly * Fix notification count overflow on web * Clarify doc --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Fix gap between Write Your Reply and bottom bar on web (#6783)dan2024-11-271-1/+1
| | | | | * Fix gap between Write Your Reply and bottom bar on web * rm log
* Don't re-sort already fetched post thread items (#6698)dan2024-11-241-0/+9
| | | | | | | | | | | | | | | * Don't reorder already seen posts in PostThread * Add sorting by generation * Rip out stable order cache It doesn't make sense because sort() doesn't call the callback for all A/B pairs, and the server returning a different ordering will cause cache misses which means there'll be no stability anyway. * Make hotness deterministic per fetched at * Cache random scores while in thread * Reorder for clarity
* Fix translate button not working (#6657)Frudrax Cheng2024-11-231-5/+15
| | | | | | | | | * Update PostThreadItem.tsx * Fix in-app browser usage --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-195-5/+3
| | | | | | | | | config (#6516) * update eslint config with jsx runtime * leverage jsx transform to remove unnecessary react imports and update eslint config * run yarn lint --fix to remove eslint disables related to react/prop-types that is now disabled
* use IAB for translate (#6421)Samuel Newman2024-11-161-1/+1
|
* Add subtle web hover to treeview replies (#6142)Samuel Newman2024-11-131-18/+22
| | | | | | | | | * add subtle web hover to treeview replies * don't highlight indentation * adjust position * clean up some styles
* Add backdated post indicator (#6156)Samuel Newman2024-11-121-68/+165
| | | | | | | | | | | | | | | * add backdate indicator * pill style * add indexedAt * update indicator - new copy, date in pill * complete alf migration * accidentally committed the missing indexedAt *again*! * copy tweak
* fix(a11y): avoid plain `div`s as button or tabs (#6084)Cynthia2024-11-031-3/+5
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Change post Follow button color on toggle (#6059)dan2024-11-011-1/+1
|
* Sort imports (#6009)dan2024-10-294-13/+13
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Add subtle web hover to interactive rows (#5989)dan2024-10-291-1/+16
| | | | | | | * Add subtle web hover to interactive rows * Adjust numbers * Ignore touch devices
* One more haptic tweak (#5979)Samuel Newman2024-10-281-6/+1
| | | | | | | * remove 10ms delay and make light * make like haptic light * same for PostThreadComposePrompt
* Tweak haptics, add to post controls (#5977)Samuel Newman2024-10-281-5/+10
| | | | | | | * change timing to 10ms, make ios only * add haptics to post controls * rm from like button
* FAB - delay followup haptic (#5974)Samuel Newman2024-10-281-15/+11
|
* Present in-app browser as sheet (#5718)Samuel Newman2024-10-111-1/+1
| | | | | | | * use page sheet presentation * move to its own file rather than sitting in prefs * whoops, missed one
* Post alignment (#5580)Eric Bailey2024-10-043-264/+170
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Make reply prompt more subtle on desktop (#5569)Samuel Newman2024-10-021-8/+16
| | | | | | | | | | | * make reply prompt more subtle on desktop * fix alignment * Tweak transition timing --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Remove Segment (#5518)Hailey2024-09-271-11/+8
|
* Tweak font size of "Write your reply" (#5513)Hailey2024-09-261-5/+1
|
* Improve style of reply bar (#5447)Hailey2024-09-251-41/+54
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* [Neue] Post avi, `PostMeta` cleanup (#5450)Eric Bailey2024-09-241-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support emoji in text with custom font * Add emoji support to elements that need it * Remove unused file causing lint failure * Add web only link variant * Refactor PostMeta * Reduce avi size in feeds * Fix alignment, emoji, in PostMeta * Smaller avis in notifications * Shrink post placeholder avi * Handle the handle again * Link cleanup * Cleanup unused props * Fix text wrapping in timestamp * Fix underline color * Tighten up spacing * Web only whiteSpace
* [Neue] Handle emoji within custom font (#5449)Eric Bailey2024-09-241-13/+18
| | | | | | | | | | | | | * Support emoji in text with custom font * Add emoji support to elements that need it * Remove unused file causing lint failure * Fix a few more emoji locations * Couple more * No throw
* Fix wrong empty state for liked by (#5343)dan2024-09-153-1/+25
|
* Constrain image heights in feeds and threads (#5129)Eric Bailey2024-09-051-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Limit height of images within posts * Add some future-proofness * Comments, improve a11y * Adjust ALT, add crop icon * Fix disableCrop in record-with-media posts * Clean up aspect ratios, handle very tall images * Handle record-with-media separately, clarify intent using enums * Adjust spacing * Adjust rwm embed image size on mobile * Only do reduced layout if images embed * Adjust gap in small embed variant * Clean up grid layout * Hide badge on small variant with one image * Remove crop icon from image grid, leave on single image * Fix sizing in Firefox * Fix fullBleed variant
* Tweak rendering of top headers so they always appear even during load (#4982)Hailey2024-08-303-28/+22
| | | | Co-authored-by: Eric Bailey <git@esb.lol>
* Localize dates, counts (#5027)Eric Bailey2024-08-291-6/+8
| | | | | | | | | | | | | | | | | | | | | | | * refactor: consistent localized formatting * refactor: localized date time * refactor: localize relative time with strings * chore: fix typo from copy-paste * Clean up useTimeAgo * Remove old ago * Const * Reuse * Prettier --------- Co-authored-by: Mary <git@mary.my.id>
* Enable show_follow_back_label_v2 (#5022)dan2024-08-291-3/+1
|
* [Video] Lexicon implementation (#4881)Samuel Newman2024-08-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * implement AppBskyEmbedVideo lexicon in player * add alt to native player * add prerelease package * update prerelease * add video embed view manually from record * fix type error on example video * black bg + use aspect ratio on web * add video to feeds * fix video overflowing aspect ratio * remove prerelease package --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Hide quote counts for quotegated posts (#5011)Eric Bailey2024-08-281-1/+3
|
* 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>