about summary refs log tree commit diff
path: root/src/view
Commit message (Collapse)AuthorAgeFilesLines
...
* [Video] more minor tweaks (#4906)Samuel Newman2024-08-091-9/+67
| | | | | | | | | | | | | * update expo-video * pause when on a different screen * rm collapsable * add mute/unmute button --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [Video] Bundle of minor tweaks (#4904)Samuel Newman2024-08-093-31/+45
| | | | | | | | | | | | | * 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>
* Show just-posted replies above OP replies (#4901)dan2024-08-083-7/+32
| | | | | | | | | * 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.
* Remove show_avi_follow_button (#4900)Eric Bailey2024-08-081-3/+1
|
* Remove native_pwi_disabled (#4896)Eric Bailey2024-08-082-56/+3
| | | | | * Remove native_pwi_disabled * Remove search button
* Fix overflow on posts (#4899)Samuel Newman2024-08-085-11/+12
| | | | | | | | | | | | | | | | | * 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-083-43/+31
| | | | | * Move ComposePrompt to post-thread/ * Move onPressReply into child component
* Remove explore_page_profile_card_social_proof (#4894)Eric Bailey2024-08-081-6/+2
|
* Remove ungroup_follow_backs gate (#4893)Eric Bailey2024-08-081-3/+1
|
* Remove unnecessary state update for reply gate (#4897)dan2024-08-082-52/+38
| | | | | | | * Move mobile compose prompt to inner component * Make canReply computed * Use same clamp we use elsewhere
* Cleanup flags (#4891)dan2024-08-082-12/+3
| | | | | * Remove launched gates * Remove disabled gates
* ALF suggested follows in profile header (#4828)Eric Bailey2024-08-081-229/+150
| | | | | | | | | * Refactor ProfileHeaderSuggestedFollows * Load fresh data every time * Oops, missed a file * Update ProfileCard.Link usage, tweak copy
* Added trans (#4890)Minseo Lee2024-08-081-1/+1
|
* Keep interstitial fresh on refresh (#4888)dan2024-08-081-3/+5
|
* Add logging of selected feed preference when displaying the following feed ↵Hailey2024-08-071-2/+28
| | | | (#4789)
* [Video] Visibility detection view (#4741)Hailey2024-08-0713-176/+151
| | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [Videos] Video player - PR #2 - better web support (#4732)Samuel Newman2024-08-0711-82/+973
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 own replies before follows' replies in threads (#4882)dan2024-08-061-4/+5
|
* [Persisted] Fork web and native, make it synchronous on the web (#4872)dan2024-08-061-18/+1
| | | | | | | | | | | | | | | | | | | * Delete logic for legacy storage * Delete superfluous tests At this point these tests aren't testing anything useful, let's just get rid of them. * Inline store.ts methods into persisted/index.ts * Fork persisted/index.ts into index.web.ts * Remove non-essential code and comments from both forks * Remove async/await from web fork of persisted/index.ts * Remove unused return * Enforce that forked types match
* 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
* Add `PlatformInfo` module (#4877)Hailey2024-08-051-0/+19
|
* Respect labels on feeds and lists (#4818)Eric Bailey2024-08-024-105/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prep * Pass in optional moderation to FeedCard * Compute moderation decision, filter contentList contexts, pass into card * Let's go a different route * Filter from within search queries * Use same search query for starter packs * Filter lists from profile tabs * Cleanup * Filter from profile feeds * Moderate post embeds * Memoize * Use ScreenHider on lists * Hide both list types * Fix crash on iOS in screen hider, fix lineheight * Memoize renderItem * Reuse objects to prevent re-renders
* Always limit Following replies to the people you follow (#4868)dan2024-08-011-105/+2
| | | | | * Limit feed replies to people you follow * Remove dead code
* Fix missing header on Likes/Reposted By, add missing perf optimizations (#4867)Hailey2024-08-015-125/+127
| | | | | | | | | * fix liked by list * fix lists * tweaks to style * change string
* Move theme controls to its own screen (#4866)Samuel Newman2024-08-016-77/+44
|
* Display second-to-last rather than second post in a slice (#4864)dan2024-08-011-11/+12
|
* Only show "followed you back" when appropriate (#4849)Hailey2024-07-311-1/+21
| | | | | | | | | | | * only show followed back when we should * try/catch * log * Update FeedItem.tsx * tweak
* [Web] Retrigger onEndReached if needed when content height changes (#4859)dan2024-07-311-3/+32
| | | | | * Extract EdgeVisibility * Key Visibility by container height instead of item count
* [Video] Uploads (#4754)Hailey2024-07-304-112/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * state for video uploads * get upload working * add a debug log * add post progress * progress * fetch data * add some progress info, web uploads * post on finished uploading (wip) * add a note * add some todos * clear video * merge some stuff * convert to `createUploadTask` * patch expo modules core * working native upload progress * platform fork * upload progress for web * cleanup * cleanup * more tweaks * simplify * fix type errors --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Boolean filter improvement alternative: TS upgrade (#4840)Dmitrii Kartashev2024-07-261-1/+1
| | | | | * upgrade typescript and use new feature * fix: typing error
* Improve a11y on noty feed (#4842)Eric Bailey2024-07-252-18/+26
|
* Add labels to a few missing places (#4838)Eric Bailey2024-07-255-6/+17
|
* `true` (#4833)Hailey2024-07-251-32/+30
|
* Replace `import hairlineWidth =` with const (#4831)Samuel Newman2024-07-2526-99/+76
| | | | | | | | | * 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-258-32/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-252-37/+56
| | | | | | | | | | | | | * 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
* Fuggedaboudit (#4829)Eric Bailey2024-07-251-3/+1
|
* make some settings screens scrollable for accessibility (#4819)Hailey2024-07-241-3/+3
| | | | | * make settings scrollable for accessibility * nit
* make toast shorter (#4821)Hailey2024-07-241-1/+1
|
* Modernise thread/following feed settings screen (#4797)Samuel Newman2024-07-244-148/+90
| | | | | | | | | | | * fix web * show back button on tablet for certain settings screens * move headers to inside of scrollview --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Priority notifications (#4798)Samuel Newman2024-07-243-42/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * new settings screen * bring back the spinner * add experimental language * fix typo, change leading * integrate priority notifications API * update package * use refetch instead of invalidateQueries * fix read-after-write issue by polling for update * add spinner for initial load * rm onmutate, it's overcomplicated * set error state eagerly * Change language in description Co-authored-by: Hailey <me@haileyok.com> * prettier * add `Toggle.Platform` * extract out mutation hook + error state * rm useless cache mutation * disambiguate isError and isPending * rm unused isError --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Use consistent index for reading last item (#4817)dan2024-07-241-2/+2
|
* Hack-modify avi path to use smaller thumbs behind gate (#4816)Paul Frazee2024-07-231-2/+24
| | | | | * Hack-modify avi path to use smaller thumbs behind gate * Only use small thumbs on smaller rendering
* Native toast rework (#4808)Samuel Newman2024-07-231-69/+75
| | | | | | | | | * rework toast to use reanimated * fix animation on iOS --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-2322-57/+74
| | | | | | | | | | | | | * 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>
* Replace incongruous buttons in drawer (#4772)Eric Bailey2024-07-121-34/+24
| | | | | * Replace incongruous buttons in drawer * Improve a11y help
* Fix: emoji picker closes when hitting spacebar (#4422) (#4441)Michał Gołda2024-07-111-21/+23
| | | | Co-authored-by: Hailey <me@haileyok.com>
* `Reposted by you` and `Reply to you` (#4478)Minseo Lee2024-07-112-35/+62
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Create shared preferences API (#4654)Hailey2024-07-111-0/+13
|
* [ALF] Theme & palette cleanup (#4769)Eric Bailey2024-07-112-23/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Invert primary scale * Invert negative palette * Replace theme specific styles in Toggle * Remove theme specific colors from Button, improves secondary solid on dark mode * TextField * Remove from MessageItem * Threadgate editor * IconCircle * Muted words * Generate themes from hues * Cleanup * Deprecate more values, fix circular import * Invert positive too, hardly use * Button tweaks, some theme diffs * Match disabled state for negative button * Fix unread noty bg