about summary refs log tree commit diff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix render loop on Android (#6213)dan2024-11-103-11/+23
|
* android scroll performance fixes pt. 1 (#6196)Hailey2024-11-092-62/+58
|
* Fix web image layout (#6195)dan2024-11-091-1/+1
|
* [Lightbox] Always rely on Expo Image cache (#6189)dan2024-11-0912-146/+105
| | | | | | | | | | | | | | | * 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-0912-192/+629
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Tiny tweak to Thread Preferences string (#6177)surfdude292024-11-081-1/+1
|
* set includeFontPadding false for fixed TextInput height on Android (#6170)khuddite2024-11-091-1/+5
|
* [Settings] Ungate, and remove old settings (#6144)Samuel Newman2024-11-0822-3768/+16
| | | | | | | | | | | | | | | | | | | * 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
* options to checkbox (#6175)Hailey2024-11-081-3/+3
|
* [Settings] Improved account switcher (#6131)Samuel Newman2024-11-083-104/+272
| | | | | | | | | | | | | | | * move out avatarstack to own file * improved settings switch * prefix with @ * fix types * up chevron * respect reduced motion setting * respect reduced motion in other place
* fix 3 image grid in DMs (#6163)Samuel Newman2024-11-081-5/+4
|
* Fix stuck lightbox (#6166)dan2024-11-081-16/+28
| | | | | | | * Add early exit guards once the gesture is over * Work around the Reanimated bug * Move derived reaction upwards to avoid duplicating it
* Fix non-home screen soft resetting when feed is selected from right nav (#6158)gpp-02024-11-081-1/+1
|
* Improve chat performance (#6157)Samuel Newman2024-11-083-9/+8
| | | | | * fix worklet funcs on gestures * don't access .value in render
* [Lightbox] Add border radius to avatars (#6136)dan2024-11-087-61/+108
| | | | | | | | | | | * 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
* [Lightbox] New dismiss gesture (#6135)dan2024-11-084-145/+274
| | | | | | | | | | | | | | | | | | | | | | | | | * Make iOS scrollview bounded to the image I've had to remove the dismiss handling because the scroll view no longer scrolls at rest. * Fix double-tap not working right after a vertical swipe It seems like for some reason the vertical swipe is still being handled by the scroll view, so double tap gets eaten while it's "coming back". But you don't really see it moving. Weird. * Add an intermediate LightboxImage component * Hoist useImageDimensions up * Implement xplat dismiss gesture This is now shared between platforms, letting us animate the backdrop and add a consistent "fly away" behavior. * Optimize Android compositing perf * Fix supertall images For example, https://bsky.app/profile/schlagteslinks.bsky.social/post/3l7y4l6yur72e * Fix oopsie
* [Lightbox] Set 2 as minimal allowed zoom level (#6132)dan2024-11-062-12/+19
| | | | | * [Lightbox] Set 2 as minimal allowed zoom level on iOS * Fix both Android and iOS
* dev options in new settings (#6128)Samuel Newman2024-11-061-3/+95
|
* link up verify email dialog (#6042)Samuel Newman2024-11-062-32/+43
|
* fix prop names (#6130)Hailey2024-11-062-6/+6
|
* Fix thin red circle around Like button on iOS (#6123)khuddite2024-11-063-17/+14
| | | | | | | | | | | * remove animation UI from DOM tree when not animated * improve naming of vars * more var changes --------- Co-authored-by: Hailey <me@haileyok.com>
* Remove SCREEN from lightbox layout (#6124)dan2024-11-066-228/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Assign an ID to lightbox and use it as a key * Consolidate lightbox props into an object * Remove unused prop * Move SafeAreaView declaration * Keep SafeAreaView always mounted When exploring Android animation, I noticed its content jumps on the first frame. I think this should help prevent that. * Pass safe area down for measurement * Remove dependency on SCREEN in Android event handlers * Remove dependency on SCREEN in iOS event handlers * Remove dependency on SCREEN on iOS * Remove dependency on SCREEN on Android * Remove dependency on JS calc in controls * Use flex for iOS layout
* Lower feedfeedback seen threshold to 0.5s (#6127)dan2024-11-053-3/+3
|
* Update Reanimated (#6126)dan2024-11-057-4/+23
| | | | | | | | | * Update Reanimated * Fix types * Fix Reanimated value access warnings * Fix types
* Improve accessibility for navigation on web (#6120)Samuel Newman2024-11-054-69/+169
| | | | | | | | | * improve accessibility for bottom bar tabs * improve a11y for left nav * group main content into <main> * use flex_1 rather than absoluteFill
* Fixed issue 5845 (#6085)Rohit Bansal2024-11-051-1/+1
|
* use megabytes rather than mebibytes for video limit (#6117)Samuel Newman2024-11-051-1/+1
|
* StarterPack: fix "Follow All" processing layout (#6111)Bartosz Kaszubowski2024-11-051-2/+3
|
* Fix start value in youtube embed by removing "s" from url param (#6113)Lars Kappert2024-11-051-2/+5
|
* return to using whitespace (#6109)Samuel Newman2024-11-041-2/+3
|
* translate sort replies (#6110)Samuel Newman2024-11-041-1/+3
|
* Refactor lightbox prop drilling (#6073)dan2024-11-047-214/+155
| | | | | | | | | | | * 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-0410-176/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-036-7/+22
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Improve focus-visible outlines in navigation (#6061)Yaƫl Guilloux2024-11-012-2/+12
| | | | | | | | | | | * feat add focus_visible atom * feat use focus_visible atom in Button.tsx style * Tweak --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Composer UI fixes (#6065)dan2024-11-013-7/+29
| | | | | | | | | * Fix close button overlap * Make footer actually sticky on web * Special toast for thread * Only stick to bottom for last post
* Fix duplicates in thread composer (#6068)dan2024-11-013-4/+22
|
* change language for autoplay setting (#6069)Samuel Newman2024-11-011-4/+4
|
* fix text clipping around external embed's domain (#6012)Ben Harris2024-11-012-2/+2
|
* Change post Follow button color on toggle (#6059)dan2024-11-011-1/+1
|
* Add dids for discover debug (#6063)Hailey2024-11-012-2/+12
| | | | | * add dids * keep is_internal
* Hook debugTopics to override X-Bsky-Topics (#6060)dan2024-11-011-1/+8
|
* [Statsig] Track threads (#6057)dan2024-11-012-0/+12
| | | | | * [Statsig] Send thread length * Split events
* Fix character count with intent (#6056)dan2024-11-011-2/+6
|
* Fixes for thread composer on Android (#6045)dan2024-11-012-37/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Extract function to read contentHeight later * Remove autoscroll to bottom We're going to implement this in the UI layer instead. * Remove worklet from non-worklets to avoid confusion * Rename and invert hasScrolled* variables Their naming was too ambiguous (they used to represent "has scrolled _away_ from X"). I inverted them and clarified the naming. No functional changes. * This should not be necessary It's already called not just from UI thread. And it only sets shared values, which can be done from either thread. * Make hasScrolledTo* derived values It wasn't always correct to derive them manually because reading from .value is stale on JS thread. We could fix that by using the local variables but it makes more conceptualy sense to treat these as derived anyway. * Reimplement autoscroll-to-bottom in UI layer Doing it here ensures we also do it when you add an image at the end of the thread. Otherwise it's very confusing where it went. * Use fancy ScrollView This seems to fix ScrollView getting stuck after inserting images at the thread end on Android. * More aggressive scroll-to-bottom * "Fix" cursor getting stuck on Android * Revert "Use fancy ScrollView" This reverts commit 04e34a54e3b75f8a77de5062bff5fe6e76420bbb.
* Thread composer UI (#6050)dan2024-11-019-212/+460
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Implement posting threads (#6049)dan2024-11-013-66/+167
| | | | | | | | | | | | | | | * Implement posting a thread Co-authored-by: Dan Abramov <dan.abramov@gmail.com> * Fix native build * Remove dependency on web crypto API * Fix unrelated TS error (wtf) --------- Co-authored-by: Mary <148872143+mary-ext@users.noreply.github.com>
* Check video state for the entire thread (#5957)dan2024-11-013-76/+162
| | | | | | | | | | | | | * Switch to using post ID for post actions * Pass post-bound dispatch to ComposerPost * Check video state for entire thread * Always bind post actions to an ID * Rename variable for consistency * Fix clashing keys
* Tweak 2FA enabled state (#6043)Samuel Newman2024-11-013-7/+20
| | | | | * tweak 2fa presentation * tweak dialog text style
* allow emoji in link facets (#6039)Samuel Newman2024-10-311-1/+2
|