about summary refs log tree commit diff
path: root/src/view
Commit message (Collapse)AuthorAgeFilesLines
* use IAB for translate (#6421)Samuel Newman2024-11-162-2/+2
|
* manually implement drawertype logic (#6419)Samuel Newman2024-11-161-0/+1
|
* [Statsig] Remove client downsampling (#6153)Hailey2024-11-155-19/+13
|
* [Lightbox] Make the animation faster (#6382)dan2024-11-151-2/+2
| | | | | * [Lightbox] Make the animation faster * Make it faster on Android too
* feat: Tweak shared element animation to make it much smoother (#6336)Marc Rousavy2024-11-141-4/+15
|
* Modify self labels for clarityPaul Frazee2024-11-131-18/+20
|
* [Lightbox] Small tweaks (#6301)dan2024-11-132-3/+6
| | | | | | | | | * Tweak lightbox springs * Speed up dismiss speed * Don't scroll to top while active lightbox * Make Android a bit faster
* Add subtle web hover to treeview replies (#6142)Samuel Newman2024-11-131-18/+22
| | | | | | | | | * add subtle web hover to treeview replies * don't highlight indentation * adjust position * clean up some styles
* Add backdated post indicator (#6156)Samuel Newman2024-11-121-68/+165
| | | | | | | | | | | | | | | * add backdate indicator * pill style * add indexedAt * update indicator - new copy, date in pill * complete alf migration * accidentally committed the missing indexedAt *again*! * copy tweak
* Slightly reduce rerenders in drawer (#6270)Samuel Newman2024-11-121-31/+38
| | | | | * slightly reduce renders in drawer * fix missing hook
* Add email verification prompts throughout the app (#6174)Hailey2024-11-123-4/+61
|
* dedupe date parsing (#6267)Samuel Newman2024-11-121-2/+4
|
* add subtle web hover to "View full thread" (#6256)Samuel Newman2024-11-121-1/+19
|
* use hairline for feedlike (#6257)Samuel Newman2024-11-122-3/+10
|
* Increase bottom padding for mobile login/signup footer (#6254)Khuddite2024-11-121-1/+1
|
* Reduce Reanimated serialization traffic (#6219)dan2024-11-121-3/+14
|
* Update Node.js to 20.x in Dockerfile (#6099)Trivikram Kamat2024-11-111-1/+1
| | | | | | | | | | | * Update Node.js to 20.x in Dockerfile * Update Node.js types and engines entry to 20.x * Update Node.js version in .nvmrc * Use node version from .nvmrc in linting job * Use Type Assertion for clearTimeout
* Fix unscrollable body when returning to desktop mode from mobile mode with ↵JustSNguyen2024-11-111-2/+3
| | | | | | | | | | | navigation drawer open. (#6201) * fix: only lock body when drawer is opened and not in desktop mode * Reuse variable --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix render loop on Android (#6213)dan2024-11-103-11/+23
|
* android scroll performance fixes pt. 1 (#6196)Hailey2024-11-091-34/+33
|
* Fix web image layout (#6195)dan2024-11-091-1/+1
|
* [Lightbox] Always rely on Expo Image cache (#6189)dan2024-11-0910-53/+104
| | | | | | | | | | | | | | | * 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-0910-177/+594
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* 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-0816-3910/+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
* options to checkbox (#6175)Hailey2024-11-081-3/+3
|
* 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
|
* [Lightbox] Add border radius to avatars (#6136)dan2024-11-086-61/+107
| | | | | | | | | | | * 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
* 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>
* Remove SCREEN from lightbox layout (#6124)dan2024-11-065-223/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-052-2/+2
|
* Update Reanimated (#6126)dan2024-11-052-2/+4
| | | | | | | | | * 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
* return to using whitespace (#6109)Samuel Newman2024-11-041-2/+3
|
* Refactor lightbox prop drilling (#6073)dan2024-11-045-192/+140
| | | | | | | | | | | * 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-048-155/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-033-5/+14
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Improve focus-visible outlines in navigation (#6061)Yaël Guilloux2024-11-011-1/+8
| | | | | | | | | | | * 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
|
* fix text clipping around external embed's domain (#6012)Ben Harris2024-11-011-1/+1
|
* Change post Follow button color on toggle (#6059)dan2024-11-011-1/+1
|
* Add dids for discover debug (#6063)Hailey2024-11-011-2/+4
| | | | | * add dids * keep is_internal
* [Statsig] Track threads (#6057)dan2024-11-011-0/+7
| | | | | * [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.