about summary refs log tree commit diff
path: root/src/view/com/util
Commit message (Collapse)AuthorAgeFilesLines
* fix: exempt well-known paths from being handled (#2505)Mary2024-01-181-1/+8
|
* Allow images to use specified aspectRatios (#2558)Eric Bailey2024-01-181-15/+2
|
* (optional) In app browser (#2490)Paul Frazee2024-01-121-3/+9
| | | | | | | | | | | | | * add expo web browser + modal * add in app browser option to settings * don't show toggle on web * Tweak browser-choice UIs --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Toggle minimal shell on any scroll for web (#2499)dan2024-01-111-42/+47
|
* Use the RichText facets when copying post text (#2481)Mary2024-01-102-4/+21
| | | | | * feat: serialize rich text to string * feat: wire richTextToString to copy post text
* Increase the number of lines for quote posts from 6 to 20 (#2489)Paul Frazee2024-01-101-1/+1
|
* fix rendering of external in quote embeds (#2464)Hailey2024-01-101-15/+15
|
* Internationalize more strings (#2440)Stanislas Signoud2024-01-0915-32/+67
| | | Co-authored-by: Ansh <anshnanda10@gmail.com>
* Additional embed sources and external-media consent controls (#2424)Paul Frazee2024-01-043-46/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add apple music embed * add vimeo embed * add logic for tenor and giphy embeds * keep it simple, use playerUri for images too * add gif embed player * lint, fix tests * remove links that can't produce a thumb * Revert "remove links that can't produce a thumb" This reverts commit 985b92b4e622db936bb0c79fdf324099b9c8fcd8. * Revert "Revert "remove links that can't produce a thumb"" This reverts commit 4895ded8b5120c4fc52b43ae85c9a01ea0b1a733. * Revert "Revert "Revert "remove links that can't produce a thumb""" This reverts commit 36d04b517ba5139e1639f2eda28d7f9aaa2dbfb6. * properly obtain giphy metadata regardless of used url * test fixes * adjust gif player * add all twitch embed types * support m.youtube links * few logic adjustments * adjust spotify player height * prefetch gif before showing * use memory-disk cache policy on gifs * use `disk` cachePolicy on ios - can't start/stop animation * support pause/play on web * onLoad fix * remove extra pressable, add accessibility, fix scale issues * improve size of embed * add settings * fix(?) settings * add source to embed player params * update tests * better naming and settings options * consent modal * fix test id * why is webstorm adding .tsx * web modal * simplify types * adjust snap points * remove unnecessary yt embed library. just use the webview always * remove now useless WebGifStill 😭 * more type cleanup * more type cleanup * combine parse and prefs check in one memo * improve dimensions of youtube shorts * oops didn't commit the test 🫥 * add shorts as separate embed type * fix up schema * shorts modal * hide gif details * support localized spotify embeds * more cleanup * improve look and accessibility of gif embeds * Update routing for the external embeds settings page * Update and simplify the external embed preferences screen * Update copy in embedconsent modal and add 'allow all' button --------- Co-authored-by: Hailey <me@haileyok.com>
* Multiple improvements to link cards and quote posts (#2398)Paul Frazee2024-01-033-38/+21
| | | | | | | | | | | | | | | * fix canvas * fix external link embed styles * Use the same link-card style on web and mobile and give a little more height on desktop to the card images * Use dark border on link embeds to match quote post style * Fix the highlighting behavior on linkcards and quoteposts --------- Co-authored-by: Hailey <me@haileyok.com>
* Fix various issues with screen dimension detection in external player (#2349)Hailey2024-01-021-19/+45
| | | | | | | | | * various dimension fixes * use reactive hook for dimensions * remove debug * accurate dismissing of player
* Disable BlurView on android (#2351)Paul Frazee2023-12-281-0/+30
| | | | | | | | | * A couple of small tweaks * Force the UI to re-render by setting a key * Disable to blurview on android * Remove hackfix
* Handle birth dates as UTC, handle locale formatting (#2363)Eric Bailey2023-12-281-1/+12
| | | | | | | | | | | | | | | | | * Enforce UTC for birthdate picker * Handle locales * Remove log * Add a second snap point to the date input in case text is zoomed * Guard against bad dates * Log message --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* minor search screen ux improvements (#2264)Hailey2023-12-281-1/+3
| | | | | | | | | | | | | | | | | * handle taps while keyboard is displayed * dismiss keyboard on drag when searching feeds * dismiss on drag and persist taps on suggested follows * add hitslop to clear button * add hitslop to cancel button * dismiss keyboard on drag when searching users * hit slop for feed search clear button * move import
* Web dropdowns (#2358)Eric Bailey2023-12-281-0/+241
| | | | | | | | | | | | | | | | | | | * Split out web dropdown * Remove unused * Remove unused style * Close on escape * Reduce chance of opening while scrolling * Tune web dropdown styles * Fix type --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Fix missing avatar moderation in replies (#2325)Paul Frazee2023-12-271-1/+3
|
* Fix: only show appeal CW item on moderated posts (#2312)Paul Frazee2023-12-271-0/+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-0/+29
| | | | | | | | | | | | | * 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>
* Bump react-native to 0.73.1, expo to 50 (#2214)Eric Bailey2023-12-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump to react-native@0.73, bump expo@next Includes bumps for all expo deps and dev dependencies. Updates react-native patch and others, and removes the babel-preset-expo patch. * Remove duplicate Splash ref * Bump more deps * Properly install expo-notifications * Bump webview dep * Bump packages according to expo fix; remove pager-view patch as it is no longer needed * Don't access expo-camera from Web * Fix crypto dep on web * Fix some type issues * Build esnext modules to support dynamic imports --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Consolidate List props a bit (#2216)dan2023-12-211-3/+42
|
* 3rd party embed player (#2217)Hailey2023-12-214-73/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement embed player for YT, spotify, and twitch * fix: handle blur event * fix: use video dimensions for twitch * fix: remove hack (?) * fix: remove origin whitelist (?) * fix: prevent ads from opening in browser * fix: handle embeds that don't have a thumb * feat: handle dark/light mode * fix: ts warning * fix: adjust height of no-thumb label * fix: adjust height of no-thumb label * fix: remove debug log, set collapsable to false for player view * fix: fix dimensions "flash" * chore: remove old youtube link test * tests: add tests * fix: thumbless embed position when loading * fix: remove background from webview * cleanup embeds (almost) * more refactoring - Use separate layers for player and overlay to prevent weird sizing issues - Be sure the image is not visible under the player - Clean up some * cleanup styles * parse youtube shorts urls * remove debug * add soundcloud tracks and sets (playlists) * move logic into `ExternalLinkEmbed` * border radius for yt player on native * fix styling on web * allow scrolling in webview on android * remove unnecessary check * autoplay yt on web * fix tests after adding autoplay * move `useNavigation` to top of component --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Try to fix scroll indicator on Feeds page (#2245)Eric Bailey2023-12-191-0/+1
| | | | | * Try to fix scroll indicator on Feeds page * Apply to List
* Move label appeal to post dropdown (#2236)Eric Bailey2023-12-181-0/+19
| | | | | | | | | | | * Move appeal from post to dropdown * Translate * Tweak copy on the appeal label modal --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* use `s.likeColor` everywhere (#2234)Samuel Newman2023-12-181-6/+3
|
* Hide label appeal on self-labeled posts (#2232)Eric Bailey2023-12-181-1/+2
| | | | | * Hide appeal for self-labeled post, update copy * Use correct logic
* PWI behavior updates (#2207)Paul Frazee2023-12-142-31/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable PWI * Disable access to feeds on PWI * Remove feeds nav item from drawer when signed out * Replace discover feed on home with a CTA * Wire up the sign in and create account buttons to go straight to their respective screens * Give a custom ScreenHider interface for no-pwi * Add side borders on desktop to the screen hider * Filter accounts in the autocomplete according to mod settings * Trim replies in the post thread that are pwi opt-out * Show 'learn more' on the content hider when no-override is enabled * Apply the moderation filter on profile cards * Disable post search on logged-out view * Update locale files * Bump api pkg * Ensure feeds with no posts don't show as NSFPublic * Fix types --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Make scroll handling contextual (#2200)dan2023-12-136-8/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add an intermediate List component * Fix type * Add onScrolledDownChange * Port pager to use onScrolledDownChange * Fix on mobile * Don't pass down onScroll (replacement TBD) * Remove resetMainScroll * Replace onMainScroll with MainScrollProvider * Hook ScrollProvider to pager * Fix the remaining special case * Optimize a bit * Enforce that onScroll cannot be passed * Keep value updated even if no handler * Also memo it
* Re-rendering improvements for like/unlike (#2180)dan2023-12-125-36/+84
| | | | | | | | | | | | | | | * Add a few memos * Memo PostDropdownBtn better * More memo * More granularity * Extract PostContent * Fix a usage I missed * oops
* disable modal profile popup android (#2188)Ansh2023-12-121-2/+2
|
* Fix links in profiles (#2178)Eric Bailey2023-12-111-2/+2
| | | | | | | | | | | * Resolve links in profile bios * Improve solution * On mobile, dont disable pointer events on the bio richtext --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Revise FeedSourceCard load state to allow deletion for failures (#2172)Eric Bailey2023-12-111-2/+2
| | | | | | | | | | | | | * Revise FeedSourceCard load state to allow deletion for failures * Translate * Remove test error feed * Fix missing uri param --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Reduce calls to getFeedGenerator and getFeed (#2166)Paul Frazee2023-12-111-0/+54
| | | | | | | | | | | * Reduce calls to getFeedGenerator by the mergefeed * Dont run end-of-follows mergefeed requests until actually at the end of the feed * build AWS container --------- Co-authored-by: Jake Gold <jake@blueskyweb.xyz>
* Add "Who can reply" controls [WIP] (#1954)Paul Frazee2023-12-101-2/+9
| | | | | | | | | | | | | | | | | | | | | * 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
* Fix quote post moderation check (#2149)Eric Bailey2023-12-081-1/+3
| | | | | | | | | | | * Fix quote post moderation check * Restore the ContentHider check * Apply the content hider to quote posts --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Add label appeal tool to posts and accounts (#2124)Paul Frazee2023-12-071-0/+60
| | | | | * Add label appeal tool to posts and accounts * Fix translations
* Fix double sep (#2136)Eric Bailey2023-12-071-4/+1
|
* Increase the maximum ratio of images from 5:1 to 10:1 (#2131)Paul Frazee2023-12-071-1/+1
|
* E2E 🟢 (#2092)Eric Bailey2023-12-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* TypefixPaul Frazee2023-12-042-2/+2
|
* Fix: distinguish between post media and quotes with the moderation hider (#2075)Paul Frazee2023-12-042-6/+32
| | | | | * 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-043-65/+97
| | | | | * Improve the post-hider and the header alerts * Adjust the contenthider (icon, font size)
* Tweak the loading placeholders to use the full space and position better (#2072)Paul Frazee2023-12-041-15/+40
|
* Fix scuffed web styles caused by overlapping viewport breakpoint boundaries ↵Cλctys2023-11-301-3/+3
| | | | | | | | | (#1985) * fixed lack of styles on 1300px web viewport width by adjusting tablet breakpoints * fixed lack of styles on 800px web viewport width by adjusting mobile breakpoints * changed `maxWidth` values in viewports to `n - 1` format
* add "copy link" textSamuel Newman2023-11-301-1/+2
|
* Improve feed reordering with optimistic updates (#2032)Eric Bailey2023-11-291-9/+19
| | | | | | | | | | | * Optimisticaly update order of saved feeds * Better show disabled state for pin button * Improve loading/disabled states * Improve placeholder * Simplify loading components
* Fix memory leak on mobile web tab navigation (#2021)dan2023-11-281-5/+36
| | | | | * Add navigationAction prop to Link * Bottom bar should use navigate() action
* [PWI] Misc (#1977)Eric Bailey2023-11-221-20/+21
| | | | | | | * PostDropdownBtn * Hide reply prompt * Hide FABs
* [PWI] Shell (#1967)Eric Bailey2023-11-211-1/+7
| | | | | | | | | | | | | | | * Sidebars * Bottom bar * Drawer * Translate * Spacing fix * Fix responsive regression * Fix nit
* PWI Base (#1964)Eric Bailey2023-11-213-23/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Base work for public view * Make default moderation settings more restrictive * Fix type * Handle showing sign-in on authed actions * Fix hoc logic * Simplify prefs logic * Remove duplicate method * Add todo * Clean up RepostButton.web * Fix x button color * Add todo * Retain existing label prefs for now, use separate logged out settings * Clean up useAuthedMethod, rename to useRequireAuth * Add todos * Move dismiss logic to withAuthRequired * Ooops add web * Block public view in prod * Add todo * Fix bad import
* Hindi Internationalization (#1914)Ansh2023-11-207-20/+25
| | | | | | | | | | | | | | | | | | | | | | * 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