about summary refs log tree commit diff
path: root/src/view/com/util
Commit message (Collapse)AuthorAgeFilesLines
...
* [Lightbox] Always rely on Expo Image cache (#6189)dan2024-11-094-40/+66
| | | | | | | | | | | | | | | * 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-094-28/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [Settings] Ungate, and remove old settings (#6144)Samuel Newman2024-11-082-67/+3
| | | | | | | | | | | | | | | | | | | * move export car dialog * move disableemail2fadialog * delete old settings screens * fix type error * Update Navigation.tsx * Delete AccountDropdownBtn.tsx * remove old change handle modal * delete add app paswords * forgot to actually delete the change handle modal
* fix 3 image grid in DMs (#6163)Samuel Newman2024-11-081-5/+4
|
* [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
* Fix thin red circle around Like button on iOS (#6123)khuddite2024-11-061-4/+5
| | | | | | | | | | | * remove animation UI from DOM tree when not animated * improve naming of vars * more var changes --------- Co-authored-by: Hailey <me@haileyok.com>
* Lower feedfeedback seen threshold to 0.5s (#6127)dan2024-11-052-2/+2
|
* Update Reanimated (#6126)dan2024-11-052-2/+4
| | | | | | | | | * Update Reanimated * Fix types * Fix Reanimated value access warnings * Fix types
* 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-042-44/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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(a11y): avoid plain `div`s as button or tabs (#6084)Cynthia2024-11-031-0/+3
| | | | Co-authored-by: Hailey <me@haileyok.com>
* fix text clipping around external embed's domain (#6012)Ben Harris2024-11-011-1/+1
|
* Add dids for discover debug (#6063)Hailey2024-11-011-2/+4
| | | | | * add dids * keep is_internal
* Thread composer UI (#6050)dan2024-11-011-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Basic adding of posts * Switch active post on focus * Conditionally show plus button * Insert posts midthread * Track active/inactive post * Delete posts in a thread * Focus after deletion * Tweak empty post detection * Mix height for active only * Move toolbar with post on web * Fix footer positioning * Post All button * Fix reply to positioning * Improve memoization * Improve memoization for clearVideo * Remove unnecessary argument * Add some manual memoization to fix re-renders * Scroll to bottom on add new * Fix opacity on Android * Add backdrop * Fix videos * Check alt for video too * Clear pending publish on error * Fork alt message by type * Separate placeholder for next posts * Limit hitslop to avoid clashes
* Measure tapped image coordinates before opening lightbox (#6001)dan2024-10-313-11/+46
| | | | | * Measure image on press * Pass dimensions to the lightbox component
* Sort imports (#6009)dan2024-10-2919-64/+77
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Add subtle web hover to interactive rows (#5989)dan2024-10-292-39/+54
| | | | | | | * 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
* One more haptic tweak (#5979)Samuel Newman2024-10-282-7/+3
| | | | | | | * remove 10ms delay and make light * make like haptic light * same for PostThreadComposePrompt
* Tweak haptics, add to post controls (#5977)Samuel Newman2024-10-283-6/+13
| | | | | | | * change timing to 10ms, make ios only * add haptics to post controls * rm from like button
* FAB - delay followup haptic (#5974)Samuel Newman2024-10-281-9/+8
|
* Fix clipping issue with 2 image grid (#5744)Samuel Newman2024-10-281-12/+1
| | | | | * don't set aspect ratio for 2 images * let -> const
* 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-242-52/+22
|
* double haptic (#5886)Samuel Newman2024-10-211-6/+6
|
* Disable feed debug gate due to EME (#5815)Hailey2024-10-171-3/+2
|
* Logged out improvments (#5771)Samuel Newman2024-10-173-79/+9
| | | | | | | | | | | | | | | | | * fetch all accounts in one go * delete unused component * add safeareaview to logged out layout * add safe area insets to LoggedOut view * add safe area insets to the error boundary * sanitize displaynames/handles * use button for X * increase spacing
* 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
* Translate some missing strings via global i18n instance (#5740)Samuel Newman2024-10-141-4/+4
|
* Present in-app browser as sheet (#5718)Samuel Newman2024-10-112-8/+8
| | | | | | | * use page sheet presentation * move to its own file rather than sitting in prefs * whoops, missed one
* Make default banner more palatable (#5676)Eric Bailey2024-10-101-5/+2
|
* Cleanup unused props from dialogs (#5665)Hailey2024-10-092-8/+2
|
* Downgrade Radix packages for type compat (#5653)Eric Bailey2024-10-081-4/+5
|
* Move Dialogs to Radix (#5648)Samuel Newman2024-10-082-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use Redix FocusTrap (#5638) * Use Redix FocusTrap * force resolutions on radix libs * add focus guards * use @radix-ui/dismissable-layer for escape handling * fix banner menu keypress by using `Pressable` * add menu in dialog example to storybook --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * use DismissableLayer/FocusScope for composer * fix storybook dialog * thread Portal through Prompt and avatar/banner * fix dialog style regression * remove tamagui --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Fetch link previews from RQ (#5608)dan2024-10-074-15/+41
| | | | | 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
|
* Fix padding in repost dialog (#5626)Hailey2024-10-061-2/+2
|
* Emoji handling nested (#5609)Eric Bailey2024-10-042-14/+19
|
* [Sheets] [Pt. 1] Root PR (#5557)Hailey2024-10-044-15/+24
| | | | | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: Hailey <me@haileyok.com>
* Font tweaks (#5597)Eric Bailey2024-10-031-207/+0
| | | | | | | * Increase fontWeight on android * Use atoms for a couple stray fontWeights * Rm unused file
* 🪵📌 (#5594)Samuel Newman2024-10-031-0/+2
|
* ALF text input for generic search input (#5511)Samuel Newman2024-09-301-124/+0
| | | | | | | | | | | | | | | | | | | | | * alf text input for generic search input * clearer ref naming * Adjust props and definition * Migrate props * Migrate props * Migrate props * Replace on search screen * rm old props --------- Co-authored-by: Eric Bailey <git@esb.lol>
* use PressableScale for animation (#5541)Samuel Newman2024-09-302-44/+33
|
* Pinned posts (#5055)Samuel Newman2024-09-281-11/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-272-11/+5
|
* Fix handle collapse on Android (#5504)Eric Bailey2024-09-261-6/+9
|