about summary refs log tree commit diff
path: root/src/view/com
Commit message (Collapse)AuthorAgeFilesLines
* Prevent close on backdrop for alt text edit modal (#2492)Mary2024-01-182-4/+8
| | | | | * fix: don't close on backdrop for alt text edit * fix: ignore esc key press if a modal is open
* fix: make alt text selectable in Lightbox (#2563)Kyrylo Pronskykh2024-01-181-6/+10
|
* Remove excess l10n related markups (#2544)Takayuki KUSANO2024-01-181-12/+10
| | | | | * Remove excess l10n related markups * One more correction pointed out by quiple
* fix: exempt well-known paths from being handled (#2505)Mary2024-01-181-1/+8
|
* Update DiscoverFallbackHeader.tsx (#2537)Minseo Lee2024-01-181-9/+9
|
* Phone number verification in account creation (#2564)Paul Frazee2024-01-186-305/+475
| | | | | | | | | | | | | | | | | * Add optional sms verification * Add support link to account creation * Add e2e tests * Bump api@0.9.0 * Update lockfile * Bump api@0.9.1 * Include the phone number in the ui * Add phone number validation and normalization
* Allow images to use specified aspectRatios (#2558)Eric Bailey2024-01-181-15/+2
|
* New component library based on ALF (#2459)Eric Bailey2024-01-183-310/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Install on native as well * Add button and link components * Comments * Use new prop * Add some form elements * Add labels to input * Fix line height, add suffix * Date inputs * Autofill styles * Clean up InputDate types * Improve types for InputText, value handling * Enforce a11y props on buttons * Add Dialog, Portal * Dialog contents * Native dialog * Clean up * Fix animations * Improvements to web modal, exiting still broken * Clean up dialog types * Add Prompt, Dialog refinement, mobile refinement * Integrate new design tokens, reorg storybook * Button colors * Dim mode * Reorg * Some styles * Toggles * Improve a11y * Autosize dialog, handle max height, Dialog.ScrolLView not working * Try to use BottomSheet's own APIs * Scrollable dialogs * Add web shadow * Handle overscroll * Styles * Dialog text input * Shadows * Button focus states * Button pressed states * Gradient poc * Gradient colors and hovers * Add hrefAttrs to Link * Some more a11y * Toggle invalid states * Update dialog descriptions for demo * Icons * WIP Toggle cleanup * Refactor toggle to not rely on immediate children * Make Toggle controlled * Clean up Toggles storybook * ToggleButton styles * Improve a11y labels * ToggleButton hover darkmode * Some i18n * Refactor input * Allow extension of input * Remove old input * Improve icons, add CalendarDays * Refactor DateField, web done * Add label example * Clean up old InputDate, DateField android, text area example * Consistent imports * Button context, icons * Add todo * Add closeAllDialogs control * Alignment * Expand color palette * Hitslops, add shortcut to Storybook in dev * Fix multiline on ios * Mark dialog close button as unused
* Add a new home feed-api wrapper and give a header indicating the fallback ↵Paul Frazee2024-01-153-2/+56
| | | | | | | | | behavior (#2534) * Add a new home feed-api wrapper and give a header indicating the fallback behavior * Sneak in a quick fix: use the correct text color in the delete modal * Use imported constant
* feat: show muted/blocked status on list card (#2523)Mary2024-01-151-5/+13
|
* Suggest post language correction (#2486)Paul Frazee2024-01-122-0/+103
| | | | | | | | | | | | | | | | | * feat: suggested language * fix: wording correction * Factor out SuggestedLanguage into a separate component * Tighten the language-suggestion confidence to avoid false positives * Tweak the copy and UI * Add function fallbacks for safari --------- Co-authored-by: Mary <pineapplecreamcheese@skiff.com>
* (optional) In app browser (#2490)Paul Frazee2024-01-124-5/+119
| | | | | | | | | | | | | * 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
|
* :sparkles: New report type, appeal (#2455)Foysal Ahamed2024-01-101-1/+1
|
* Use the RichText facets when copying post text (#2481)Mary2024-01-105-5/+31
| | | | | * 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
|
* Reduce polling (#2465)Paul Frazee2024-01-102-5/+10
| | | | | | | | | | | | | * Move profile and preference polling to polls-on-foreground * Refetch prefs on feeds screen refresh since polling no longer occurs * Reduce notifications polling by 50% if there's already an unread * Disable feed polling if we know we have content * Disable the hard refresh after 1 hour in case it's the cause of the random feed refresh bug * Fix types
* Internationalize more strings (#2440)Stanislas Signoud2024-01-0985-402/+697
| | | Co-authored-by: Ansh <anshnanda10@gmail.com>
* Mark more texts for localization (#2436)Noritada Kobayashi2024-01-103-21/+30
|
* add expandable context to composer when replying to post (#2419)Hailey2024-01-085-29/+259
| | | | | | | | | | | | | | | * add expand replyTo text with animation * add images, quote to replyTo * support withmedia * adjust layout * add embed to all needed openComposer calls * adjust gap * organize imports
* Application Layout Framework (#1732)Eric Bailey2024-01-082-0/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial library setup * Add docblocks * Some cleanup * New storybook * Playing around * Remove silly test, use for...in * Memo * Memo * Add hooks example * Tweak colors, bit of cleanup * Improve macro handling * Add some more examples * Rename for better diff * Cleanup * Add nested context example * Add todo * Less break more perf * Buttons, you get the idea * Fix test * Remove temp colors * Add a few more common macros * Docs * Perf improvements * Alf go brrrr * Update breakpoint handling * I think it'll work * Better naming, better code * Fix typo * Some renaming * More complete pass at Tailwind naming * Build out storybook * Playing around with curves * Revert "Playing around with curves" This reverts commit 6b0e0e5c9d842a2d9af31b53affe2f6291c3fa0d. * Smooth brain * Remove outdated docs * Some docs, fix line-height values, export tokens
* Additional embed sources and external-media consent controls (#2424)Paul Frazee2024-01-046-46/+401
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix: Web design issues (#2377) (#2410)Eric Bailey2024-01-031-1/+1
| | | | | | | * Fix web design issues * Fix Right Nav width design issue Co-authored-by: Rahul Yadav <52163880+rahulyadav5524@users.noreply.github.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
* Add some more logging (#2402)Eric Bailey2024-01-022-2/+12
| | | | | | | | | * Add a few logs * Report unknown create account errors separately * Downgrade to warn * Nvm
* Rework alt-text input to use bottom sheet (#2355)Paul Frazee2024-01-021-82/+65
| | | | | * Rework alt-text input to use bottom sheet * Add translations
* emoji picker improvements (#2392)Hailey2024-01-024-59/+109
| | | | | | | | | | | | | * rework emoji picker * dynamic position * always prefer the left if it will fit * add accessibility label * Update EmojiPicker.web.tsx oops. remove accessibility from fake button
* Remove the KeyboardAvoidingView in account creation (close #2333) (#2366)Paul Frazee2023-12-281-55/+54
| | | | | * Remove the keyboardavoidingview in account creation (close #2333) * Smaller pad on desktop/tablet
* Create account tweaks (#2365)Paul Frazee2023-12-282-0/+10
| | | | | | | * Disable autocomplete, autocapitalize, and autocorrect in create account login * Add username textContentType to login to try to prompt password manager more regularly * Fix type
* Use memory caching for android lightbox (#2354)Paul Frazee2023-12-281-0/+1
|
* Disable BlurView on android (#2351)Paul Frazee2023-12-283-4/+35
| | | | | | | | | * 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-283-3/+31
| | | | | | | | | | | | | | | | | * 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>
* Mark more text as translatable (#2284)Noritada Kobayashi2023-12-271-2/+2
|
* Fix missing avatar moderation in replies (#2325)Paul Frazee2023-12-272-1/+4
|
* Fix: only show appeal CW item on moderated posts (#2312)Paul Frazee2023-12-273-4/+19
| | | | | * Fix: only show appeal CW item on moderated posts * Add appeal cw control to feed view o fposts
* A couple notifications fixes (#2327)Paul Frazee2023-12-271-2/+16
| | | | | * Clear the app badge notif count on markallread * Fix like notifications on custom feeds
* Stop the user from posting before the link card finishes loading (#2328)Paul Frazee2023-12-271-2/+6
| | | | | * Stop the user from posting before the link card finishes loading * Add localization of error messages
* Hide posts tool (#2299)Eric Bailey2023-12-243-2/+31
| | | | | | | | | | | | | * 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>
* Fix: dont incorrectly mark a feed empty based only on the first page (#2298)Paul Frazee2023-12-241-1/+4
|
* Bump react-native to 0.73.1, expo to 50 (#2214)Eric Bailey2023-12-234-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Fix some account filtering behaviors (#2290)Paul Frazee2023-12-232-1/+8
| | | | | * Fix: don't filter ProfileCards out of certain lists * Fix: don't filter ProfileCards and autocomplete based on mutes
* Consolidate List props a bit (#2216)dan2023-12-2112-158/+118
|
* 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>
* Web composer improvements (#2257)Paul Frazee2023-12-202-2/+2
| | | | | * Keep the emoji picker in the tablet width (close #1880) * Support pressing tab to select a mention (close #1831)
* Fix the is13 check in account creation (close #2258) (#2259)Paul Frazee2023-12-201-1/+1
|
* Fix image is cropped in alt text modal (#1963)Kev2023-12-201-0/+1
|