about summary refs log tree commit diff
path: root/src/view/com/util/post-embeds
Commit message (Collapse)AuthorAgeFilesLines
* haptics on external link card (#8049)Samuel Newman2025-03-241-4/+12
|
* Catch thrown error for autoplay in Safari (#7921)Eric Bailey2025-03-061-2/+10
|
* tweak link handling (#7857)Hailey2025-02-271-0/+1
|
* Remove `moderatePost_wrapped` (#7188)Samuel Newman2025-02-251-1/+1
| | | | | | | | | * rm `moderatePost_wrapped` * Handle display in app --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Plural formatting for `TimeIndicator` `accessibilityLabel` (#7826)surfdude292025-02-241-2/+7
|
* `@atproto/api@next` integration (#7344)Eric Bailey2025-02-181-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump SDK * Use consistent type in profile query * Omit from constraint for profile shadow * Replace isRecord with isValidRecord in QuoteEmbed * Omit type from constraint for old ProfileCard * Omit type from constraint in profile queries where appropriate * Use correct type for update profile mutation * Conslidate and fix check for isValidRecord in Post.tsx * Replace isRecord with isValidRecord in PostThreadItem * Remove redundant cast in PostThreadFollowBtn * Ignore errors in DebugMod screen * Use matching type in ProfileFollows screen * Use matching type in ProfileFollowers screen * Migrate to isValidRecord in PostFeedItem * Use matching type if PostRepostedBy * Omit type from constraint in avatar props * Use matching types in NotificationFeedItem * Todo * Use isValidRecord in NotfyFeedItem * Improve MediaPreview types * Migrate another isValidRecord in NotificationFeedItem * Migrate to isValidView in queries/util * Migrate to isValidRecord in threadgate/util * Fix types in threadgates * Fix up types in starter-packs queries * Todo * Specify exact types in search-posts * Use internal type util to align types * Ditto last * Migrate postgate/index * Specify exact types in post-thread * Use correct type in post-quotes * FIX potential bug in post-thread * Use correct type in post-feed * Add correct type guards to notifications/feed * Migrate a guard in notifications/util * Migrate guard in Wizard/State * [@next] Profile handling, migrate `ProfileCard` (#7347) * Introduce new utils for profiles, migrate old ProfileCard * Rename, reorg * Add parseEmbed utils * Expand AnyProfileView to include chat profile view, update post shadow to reflect this * Cast for perf reasons * Tighten up types now that we have AnyProfileView * Add fastIsType util * Use `assertDid` Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Use util types * Comment * Use fastIsType where no validation was happening before * suggestions (#7382) * suggestions * Revert unneeded changes --------- Co-authored-by: Eric Bailey <git@esb.lol> * Use new util * Rename to dangerousIsType * Convert object shape * Use dangerous util * Use dangerous util * Use dangerous util, we can trust post records * Use dangerous util * Use AnyProfileVIew * Convert object shape * Clean up handling * Patch moderateProfile to accept known profile views, to discuss * Add AnyStarterPackView and related, implement in first usage * Remove validation, fix type, fix ref * Migrate over list-conversations * Clarify intent behind precacheProfile and its unstable query cache * Clean up unstable profile cache * Fix types during label creation in PwiOptOut (#7346) * Tighten types in queries/list * Chat: use correct profile views * Chat: fix log type check * Chat: construct lexically correct shape, even though it's only internal usage * Chat: use correct profile types * Chat: fix type check in logs * Starter: use correct profile types * Starter: use correct profile types * Starter: tighten types to match lex * Any profile type will work in blocked-and-muted * Use dangerous util * Use dangerousIsType * Update new ProfileCard to use AnyProfileView * Use dangerousIsType * Remove outdated todo * Use correct profile type * Use correct profile types * Tighten up types * Use dangerousIsType * Chat: more type fixes * Remove unused file * Add a few utils * Remove unused file * Ignore feedPost.__source * Clean up types, leave validation in critical path * Use dangerousIstype * Use ANyProfileView * Use isValidRecord * Use dangerousIsType * Fix types in ListCard * Fix FeedInterstitials types * Fix types in FeedCard * Fix types in dms ReportDialog * Fix types in SearchablePeopleList * Fix bad type in composer opts * Starter: ok these need to be loose too * Clarify docs Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Less code Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Use package exports Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Use package exports * Bump sdk, update $Typed imports * Format * Format * Fix weird TS error * Remove patch * Beter name * It's memo, can validate * Tighten up parseEmbed, dogfood * Bump sdk * Use asPredicate * Loosen types a bit * use asPredicate * Fix types * Use asPredicate * Use asPredicate * Use asPredicate * Clean up upsertProfile types * Use asPredicate * Use Un util * Fix types * Use new AnyProfileView * Use dangerousIsType * Use asPredicate * Use asPredicate * Add fallback content-type to pass typecheck * Clean up upsertProfile types * Align types * Use dangerousIsType * Use dangerousIsType * Use asPredicate * Align types * Convert findLast * Align types * Just ignore type errors and use findLast * Rename atproto -> bsky * Add validate util * Fix type error * Loosen types * Export post * rename atp bsky * Remove unused code * minor changes * Bump deps * Fix types * Tighten back up loose check * Tighten back up loose check * Fix small bug * Update comment * Revert change --------- Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> Co-authored-by: Matthieu Sieben <matthieu.sieben@gmail.com>
* Revert "fix quote & feed padding not being pressable (#7694)" (#7733)Samuel Newman2025-02-132-9/+45
| | | This reverts commit 521a764d4f896518af7f668e2d196b720461ec13.
* fix quote & feed padding not being pressable (#7694)Samuel Newman2025-02-122-45/+9
|
* Refine accessibilityHint (#7554)Minseo Lee2025-02-113-5/+5
| | | | | | | | | | | | | | | * `accessibilityHint` * accessibilityHint * Update Co-Authored-By: jason-me <mail@jason-hester.me> * Update LoginForm.tsx --------- Co-authored-by: jason-me <mail@jason-hester.me>
* Bring video cropping in line with images (#7462)Eric Bailey2025-01-183-55/+113
| | | | | * Mimic image cropping for videos on web * Same on native
* Remove unnecessary addEventListener call for video (#7433)Islam Rustamov2025-01-141-3/+0
|
* Moderate composer quote (#7213)Samuel Newman2024-12-201-5/+7
| | | | | * moderate composer quote * consistency with other uses
* Increase scrubber height if touch device (#7081)Samuel Newman2024-12-121-2/+6
| | | | | | | | | * further increase target area of scrubber * make scrubber bigger if touch device --------- Co-authored-by: Antonio Sarcevic <sarcevicantonio@gmail.com>
* Revert "[Video] Revert safari hackfix (#5367)" (#7001)dan2024-12-071-0/+7
| | | This reverts commit 94e7bfbe40ba6766361caaba99feff74a187613a.
* [a11y] Video - fix labels and make more detailed (#6635)Samuel Newman2024-11-226-7/+23
| | | | | * fix labels and make more detailed * move overall label to parent
* preserve video's last known time when scrolling away (#6239)Andrew Aquino2024-11-192-0/+13
|
* 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
* Attempted video perf improvements (#6519)Samuel Newman2024-11-193-38/+32
| | | | | | | * remove layout animations from video * only show button/spinner when necessary * use native activityindicator rather than loader
* Add useHandleRef as a lighter alternative for useAnimatedRef (#6500)dan2024-11-181-9/+5
|
* Hardcode Giphy embed height (#6475)dan2024-11-181-26/+4
|
* [Lightbox] Always rely on Expo Image cache (#6189)dan2024-11-091-2/+8
| | | | | | | | | | | | | | | * Inline useImageAspectRatio * Switch AutoSizedImage to read dimensions from Expo Image cache * Include thumbnail dimensions in image data * Use dims from Expo Image cache in lightbox * Fix wiring so all thumbnails get dimensions * Fix type * Oops
* [Lightbox] Open animation (#6159)dan2024-11-091-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Measure all rects for embeds * Measure avi rects too * Animate lightbox in and out * Account for safe area in the animation * Tune spring times * Remove null checks for measurements * Remove superfluous view * Block swipe while opening * Interpolate width/height on native side for Android * Make it fast by animating only affine transforms * Fix tall image final state The initial animation frame is still off on both platforms. * Try to squeeze perf * Avoid blank images during animation on iOS * Fix bad rebase * Fix a huge memory issue due to expo/expo#24894 * Fix last frame flash * Fix thum dim calculation for tall images
* [Lightbox] Add border radius to avatars (#6136)dan2024-11-081-1/+4
| | | | | | | | | | | * Preserve shape in lightbox * Rename shapes to semantic meanings It looks like after all I do want to fork based on those. * Round avatars on the web * Oops
* Refactor lightbox prop drilling (#6073)dan2024-11-041-1/+0
| | | | | | | | | | | * Refactor lightbox footer to render prop * Unify lightbox types * Unindent * Refactor LightboxFooter props * Move LightboxFooter into the implementation file
* Unify dimensions cache between lightbox and feed (#6047)dan2024-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove useless memo * Use explicit values when useImageAspectRatio doesn't know It's not very good that you can't distingiush when we haven't loaded vs when we're certain. This shifts the burden of dealing with missing values to the caller. * Check cache early * Handle src change * Rewrite image-sizes.fetch to avoid mixing async styles * Make image-sizes LRU Code is copy paste from useImageDimensions.ts * Rm unused fields * Derive aspect on the fly * Factor useImageDimensions out of useImageAspectRatio * Move useImageDimensions into image-sizes * Make lightbox use the same cache * Wire up known dimensions to the lightbox * Handle division by zero in the hook * Use safe aspect for lightbox calculations
* fix text clipping around external embed's domain (#6012)Ben Harris2024-11-011-1/+1
|
* Measure tapped image coordinates before opening lightbox (#6001)dan2024-10-311-5/+28
| | | | | * Measure image on press * Pass dimensions to the lightbox component
* Add subtle web hover to interactive rows (#5989)dan2024-10-291-39/+53
| | | | | | | * Add subtle web hover to interactive rows * Adjust numbers * Ignore touch devices
* Show almost-instant preview when opening lightbox (#6000)dan2024-10-291-0/+1
| | | | | | | | | | | * Plumb thumbUri down to the lightbox * Remove onLoad tracking from lightbox * Hook up placeholder URI to the image * Fix NaN causing crash on double tap while offline * Protect against NaNs in the future
* Refactor lightbox model to plain object (#5999)dan2024-10-291-2/+6
| | | | | * Refactor lightbox model to plain object * Rename name to type
* Fix video quality for short videos (#5996)Samuel Newman2024-10-292-13/+36
| | | | | * remove auto level capping * flush first fragment on loop
* Display non-post embeds in composer preview (#5647)dan2024-10-242-15/+18
| | | | | | | | | | | | | * Display non-post embeds in composer preview * Remove starter pack special case from ExternalLinkEmbed This should not be needed because starter pack composer preview now goes through the record preview codepath, just like in the feed/post view. * Hide record ext links if quote is present * Align remove buttons Remove the implicit top padding in record embeds and make it conditional, which is similar to how we treat external link embeds. This makes the X button appear in the same place for record embeds as with links.
* Include hydrated responses for other records (#5646)dan2024-10-241-1/+1
| | | | | | | * Include hydrated responses for other records * Rename meta -> view This is actually all it is now.
* Refactor post meta to return PostView (#5645)dan2024-10-241-38/+20
|
* Link cards (#5677)Eric Bailey2024-10-144-206/+136
| | | | | | | | | | | | | | | * New link card styles * Cleanup of consituent parts, add hover state * Fix gif alt text view * Fix alt text view more * Remove dupe * Update remove button * Remove added margin on gif
* Fetch link previews from RQ (#5608)dan2024-10-073-13/+39
| | | | | Co-authored-by: Mary <git@mary.my.id> Co-authored-by: Hailey <me@haileyok.com>
* [Video] Prevent screen from dimming while in full screen (#5637)Hailey2024-10-071-2/+2
|
* [Video] Revert safari hackfix (#5367)Samuel Newman2024-10-071-7/+0
|
* [Video] use dynamic import for hls.js (#5429)Hailey2024-09-252-10/+50
| | | | Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Neue] Post avi, `PostMeta` cleanup (#5450)Eric Bailey2024-09-241-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
* [Video] Refactor HLS logic (#5468)dan2024-09-241-104/+121
| | | | | | | | | | | | | * Extract HLS interop into useHLS * Rename variable * Move flushing outside an effect * use continue instead of return --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* [Video] Flush low quality segments once focused (#5430)Samuel Newman2024-09-231-8/+69
| | | | | | | | | | | * Update VideoEmbedInnerWeb.tsx * keep proper track and flush properly * consistent current * use current in listener * manually loop
* [Neue] Handle emoji within custom font (#5449)Eric Bailey2024-09-241-13/+14
| | | | | | | | | | | | | * 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
* Use pressable for video controls (#5452)Samuel Newman2024-09-232-14/+19
| | | | | | | * use pressable for video controls * add `as any` to preexisiting bad type * stop mutating prop
* [Neue] Font weights (#5442)Eric Bailey2024-09-202-6/+6
| | | | | | | * Align all font weights * Only load necessary fonts * Also comment out from hook
* Increase rounding for all embeds (#5421)Samuel Newman2024-09-209-37/+34
| | | | | | | | | | | | | | | | | | | * tweak image styles * fix reply image preview and covert to atoms * increase rounding on media inset border * decrease gap on desktop * fix inset styles * increase rounding on embeds to `md` * Couple edge cases --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Neue] Buttons (#5406)Eric Bailey2024-09-201-1/+1
| | | | | | | | | | | * Re-align button sizing (cherry picked from commit bcec243bb59dfe468313d98ba61f464d9750feec) * Use large, small, tiny (cherry picked from commit 1dc333c2993ab7f2e0ac750c0670dcec9a7069d0) * Tweaks
* Fix ext embeds in DMs (#5419)Samuel Newman2024-09-191-1/+1
| | | | | * fix ext embeds in DMs * undo acciental rounding change
* [Video] Additional android fixes (#5373)Hailey2024-09-171-10/+1
| | | | | | | * rm unused code * bump lib * invert bool
* [Video] Fix safari showing spinner (#5364)Samuel Newman2024-09-162-3/+11
|