about summary refs log tree commit diff
path: root/src/view/com/posts
Commit message (Collapse)AuthorAgeFilesLines
* Fix double border due to progress guide (#7084)dan2024-12-121-1/+8
|
* Disambiguate feed component naming (#7040)dan2024-12-103-9/+9
| | | | | * Rename posts/Feed* -> posts/PostFeed* * Rename notifications/Feed* -> notifications/NotificationFeed*
* Prefetch adjacent Home pages (#6904)dan2024-12-031-2/+2
|
* Fix avi button hitslops (#6662)dan2024-11-232-2/+9
| | | | | | | | | | | | | | | | | * Remove web hack from non-web file * Remove hitSlop on the wrong Pressable It is not doing anything useful. * Extend avi column to prevent hit rect clipping You can't click outside the parent on Android. * Bump pressed opacity to .8 * Slightly reduce avi button hitslops * Asymmetric hit slop
* Remove indirection, insert between slices (#6645)dan2024-11-221-110/+43
|
* fix avi follow deadzone (#6639)Samuel Newman2024-11-221-9/+6
|
* Improve error name and message for signed-in only feeds (#6577)Eric Bailey2024-11-221-5/+5
| | | | | | | | | * Improve error name and message for logged-in only feeds * Revert msg edit --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Android] Lower Feed maxRenderPerBatch (#6624)dan2024-11-221-2/+2
|
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-191-1/+0
| | | | | | | | | 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
* Split FeedSlice into FlatList rows (#6507)dan2024-11-193-211/+188
|
* [Statsig] Remove client downsampling (#6153)Hailey2024-11-151-2/+2
|
* add subtle web hover to "View full thread" (#6256)Samuel Newman2024-11-121-1/+19
|
* Sort imports (#6009)dan2024-10-295-21/+23
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Add subtle web hover to interactive rows (#5989)dan2024-10-291-1/+10
| | | | | | | * Add subtle web hover to interactive rows * Adjust numbers * Ignore touch devices
* Remove double `an` from error message strings (#5782)surfdude292024-10-172-5/+5
| | | | | | | | | * Update ProfileHeaderLabeler.tsx * Update FeedErrorMessage.tsx * Update FeedShutdownMsg.tsx * Update ProfileFeed.tsx
* shift hitslop of avi follow button (#5730)Hailey2024-10-111-2/+6
| | | | | * shift the hitslop of the follow button * increase slop
* Tweak #5522 (#5635)Eric Bailey2024-10-071-5/+5
| | | | | | | | | | | | | * Reduce post reason icon size & offset (#5522) * Make x margin within pin icon the same * Reduce post reason icon size and offset * Use existing pin --------- Co-authored-by: futur <me@futuristick.ca>
* Pinned posts (#5055)Samuel Newman2024-09-281-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add to dropdown menu * use normal profile mutation hook * add pin as reason * request pins * shadow update * rm logs * get prev pinned from getProfile * fix toasts * invalidate after appview ready * don't mutate params * rm log * use checkCommited rather than manual whenAppViewReady * move to mutation * even more optimistic optimistic update * allow pins in `posts_and_author_threads` * update @atproto/api * add reasonPin type * fix strange type error in unrelated query * another missing type
* Remove Segment (#5518)Hailey2024-09-271-6/+1
|
* Allow profile header to overscroll (#5457)Samuel Newman2024-09-251-3/+6
| | | | | | | | | * add allowoverscroll prop * ensure spinner is visible * more generic prop for `<List>` * rename to allowHeaderOverScroll
* [Neue] Post avi, `PostMeta` cleanup (#5450)Eric Bailey2024-09-242-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-8/+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
* [Video] Open the floodgates (partially) (#5208)Samuel Newman2024-09-071-21/+1
|
* Constrain image heights in feeds and threads (#5129)Eric Bailey2024-09-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Adjust render properties for `Feed` `List` (#5080)Hailey2024-09-031-1/+3
|
* [Experiment] Suggest profiles in profile (#5030)dan2024-08-301-14/+29
| | | | | | | | | | | | | | | * Rename variable to disambiguate with parent scope * More variables where they are used * Inline variables * Add suggestions in profile * Gate it * rm space * Remove header suggestions under gate
* Profile screen performance tweak - Adjust initial num to render based on ↵Hailey2024-08-291-2/+3
| | | | header height (#5005)
* [Video] Lexicon implementation (#4881)Samuel Newman2024-08-291-18/+22
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Optimistic hidden replies (#4977)Eric Bailey2024-08-231-27/+16
|
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-212-3/+70
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Fix orphaned feed slices, handle blocks (#4944)Eric Bailey2024-08-192-3/+20
| | | | | | | | | | | * Fix orphaned feed slices, handle blocks * Revert to filerting out orphan threads * Support NotFoundPost views too * Just kidding, use ReplyRef.root as source of grandparent data * Fixes
* Improve styles (#4916)Minseo Lee2024-08-111-3/+1
| | | | Co-authored-by: Hailey <me@haileyok.com>
* [Video] Bundle of minor tweaks (#4904)Samuel Newman2024-08-091-5/+15
| | | | | | | | | | | | | * fix bg color * unique video urls for debug * improve controls slightly * mute until fullscreen --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Remove show_avi_follow_button (#4900)Eric Bailey2024-08-081-3/+1
|
* 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>
* Cleanup flags (#4891)dan2024-08-081-2/+1
| | | | | * Remove launched gates * Remove disabled gates
* Keep interstitial fresh on refresh (#4888)dan2024-08-081-3/+5
|
* [Video] Visibility detection view (#4741)Hailey2024-08-072-1/+2
| | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [Videos] Video player - PR #2 - better web support (#4732)Samuel Newman2024-08-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * attempt some sort of "usurping" system * polling-based active video approach * split into inner component again * click to steal active video * disable findAndActivateVideo on native * new intersectionobserver approach - wip * fix types * disable perf optimisation to allow overflow * make active player indicator subtler, clean up video utils * partially fix double-playing * start working on controls * fullscreen API * get buttons working somewhat * rm source from where it shouldn't be * use video elem as source of truth * fix keyboard nav + mute state * new icons, add fullscreen + time + fix play * unmount when far offscreen + round 2dp * listen globally to clicks rather than blur event * move controls to new file * reduce quality when not active * add hover state to buttons * stop propagation of videoplayer click * move around autoplay effects * increase background contrast * add subtitles button * add stopPropagation to root of video player * clean up VideoWebControls * fix chrome * change quality based on focused state * use autoLevelCapping instead of nextLevel * get subtitle track from stream * always use hlsjs * rework hls into a ref * render player earlier, allowing preload * add error boundary * clean up component structure and organisation * rework fullscreen API * disable fullscreen on iPhone * don't play when ready on pause * debounce buffering * simplify giant list of event listeners * update pref * reduce prop drilling * minimise rerenders in `ActiveViewContext` * restore prop drilling --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Show replies in context of their threads (#4871)dan2024-08-053-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't reconstruct threads from separate posts * Remove post-level dedupe for now * Change repost dedupe condition to look just at length * Delete unused isThread * Delete another isThread field It is now meaningless because there's nothing special about author threads. * Narrow down slice item shape so it does not need reply * Consolidate slice validation criteria in one place * Show replies in context * Make fallback marker work * Remove misleading and now-unused property It was called rootUri but it was actually the leaf URI. Regardless, it's not used anymore. * Add by-thread dedupe to non-author feeds * Add post-level dedupe * Always count from the start This is easier to think about. * Only tuner state need to be untouched on dry run * Account for threads in reply filtering * Remove repost deduping This is already being taken care of by item-level deduping. It's also now wrong and removing too much (since it wasn't filtering for reposts directly). * Calculate rootUri correctly * Apply Following settings to all lists * Don't dedupe intentional reposts by thread * Show reply parent when ambiguous * Explicitly remove orphaned replies from following/lists * Fix thread dedupe to work across pages * Mark grandparent-blocked as orphaned * Guard tuner state change by dryRun * Remove dead code * Don't dedupe feedgen threads * Revert "Apply Following settings to all lists" This reverts commit aff86be6d37b60cc5d0ac38f22c31a4808342cf4. Let's not do this yet and have a bit more discussion. This is a chunky change already. * Reason belongs to a slice, not item * Logically feedContext belongs to the slice * Update comment to reflect latest behavior
* Display second-to-last rather than second post in a slice (#4864)dan2024-08-011-11/+12
|
* Add labels to a few missing places (#4838)Eric Bailey2024-07-251-0/+1
|
* Replace `import hairlineWidth =` with const (#4831)Samuel Newman2024-07-251-2/+2
| | | | | | | | | * replace import with const * just use `StyleSheet.hairlineWidth` --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [Videos] Video player - PR #1 - basic player (#4731)Samuel Newman2024-07-251-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add ffmpeg-kit-react-native * get select video button + compression working * up res to 1080p * add progress component * move logic out of compressVideo * (WIP) add lonestar compression * rework web compression a bit * mess around with adding a thumbnail * 3mbps * replace * use 3mbps * add expo-video * remove unnecessary try/catch * rm ToastAndroid * fix web * wrap lazy component in suspense * gate video select button * rm web compression * flip sign * remove expo-video from web * review nits * add video picker permissions + rm temp buttons * add ffmpeg-kit-react-native * replace * hls-capable player * start trying to hoist up video player instance * hoist video player and move things around * always show native controls * fix controls on expo video android * gate temp video player in feed * rm IS_DEV, doesn't do what I thought it did * use __DEV__ instead --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Fix sloppy filter(Boolean) types (#4830)dan2024-07-251-29/+47
| | | | | | | | | | | | | * Fix sloppy filter(Boolean) in threadgate * Fix sloppy filter(Boolean) in Explore * Fix sloppy filter(Boolean) in post-feed * Harden FeedPostSliceItem.reason type def * Harden parentAuthor types * Fix lying component types, handle blocks
* Use consistent index for reading last item (#4817)dan2024-07-241-2/+2
|
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-232-0/+3
| | | | | | | | | | | | | * 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>
* `Reposted by you` and `Reply to you` (#4478)Minseo Lee2024-07-111-24/+43
| | | | Co-authored-by: Hailey <me@haileyok.com>
* fix slop (#4739)Hailey2024-07-051-19/+32
|
* [D1X] Use user action and viewing history to inform suggested follows (#4727)Eric Bailey2024-07-041-26/+1
| | | | | | | | | | | | | * Use user action and viewing history to inform suggested follows * Remove dynamic spreads * Track more info about seen posts * Add ranking --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>