Dan Abramov
fe7d97b0bf
Move swipe gesture handling upwards
2024-11-02 00:35:56 +00:00
Dan Abramov
9c28b3a491
Lift the swipe animated value upwards
2024-11-02 00:35:56 +00:00
Dan Abramov
6ee2b05ac0
Move LightboxFooter into the implementation file
2024-11-02 00:35:34 +00:00
Dan Abramov
ab6877795f
Refactor LightboxFooter props
2024-11-02 00:08:31 +00:00
Dan Abramov
00ff654134
Unindent
2024-11-01 23:50:20 +00:00
Dan Abramov
fd27242ce8
Unify lightbox types
2024-11-01 23:49:12 +00:00
Dan Abramov
431c81981c
Refactor lightbox footer to render prop
2024-11-01 23:42:42 +00:00
Dan Abramov
5e1a2fcf06
Use safe aspect for lightbox calculations
2024-11-01 22:53:14 +00:00
Dan Abramov
c95f8e8659
Handle division by zero in the hook
2024-11-01 22:53:14 +00:00
Dan Abramov
79a61adef7
Wire up known dimensions to the lightbox
2024-11-01 22:53:14 +00:00
Dan Abramov
0ae5033147
Make lightbox use the same cache
2024-11-01 22:53:14 +00:00
Dan Abramov
6b478644e2
Move useImageDimensions into image-sizes
2024-11-01 22:53:14 +00:00
Dan Abramov
fe33a21d3e
Factor useImageDimensions out of useImageAspectRatio
2024-11-01 22:53:14 +00:00
Dan Abramov
412426bac3
Derive aspect on the fly
2024-11-01 22:53:14 +00:00
Dan Abramov
56740a3d26
Rm unused fields
2024-11-01 22:53:14 +00:00
Dan Abramov
af11271ff7
Make image-sizes LRU
...
Code is copy paste from useImageDimensions.ts
2024-11-01 22:53:14 +00:00
Dan Abramov
33f4ab2697
Rewrite image-sizes.fetch to avoid mixing async styles
2024-11-01 22:53:14 +00:00
Dan Abramov
71c4add42e
Handle src change
2024-11-01 22:53:14 +00:00
Dan Abramov
fc0f7bbf9c
Check cache early
2024-11-01 22:53:14 +00:00
Dan Abramov
9b076032cc
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.
2024-11-01 22:53:14 +00:00
Dan Abramov
c4c01955cc
Remove useless memo
2024-11-01 22:53:14 +00:00
dan
7111e38cd4
Revert "React compiler beta and reenable rule ( #5898 )" ( #6071 )
...
This reverts commit 1fc684aaef .
2024-11-01 22:17:05 +00:00
dan
3eb531b000
Composer UI fixes ( #6065 )
...
* Fix close button overlap
* Make footer actually sticky on web
* Special toast for thread
* Only stick to bottom for last post
2024-11-01 22:02:39 +00:00
dan
46004fb2d0
Fix duplicates in thread composer ( #6068 )
2024-11-01 21:55:37 +00:00
Samuel Newman
d33ce1dea1
change language for autoplay setting ( #6069 )
2024-11-01 21:10:25 +00:00
dan
ff01ffe35f
Fix some images getting squished on Android due to EXIF tags ( #6058 )
2024-11-01 19:25:31 +00:00
Ben Harris
5c5fc3230b
fix text clipping around external embed's domain ( #6012 )
2024-11-01 12:15:44 -07:00
dan
2398b84d17
Change post Follow button color on toggle ( #6059 )
2024-11-01 19:09:28 +00:00
Hailey
fb4210b36c
Add dids for discover debug ( #6063 )
...
* add dids
* keep is_internal
2024-11-01 19:09:13 +00:00
dan
8d5b551ed6
Hook debugTopics to override X-Bsky-Topics ( #6060 )
2024-11-01 18:28:54 +00:00
dan
125ac5049a
[Statsig] Track threads ( #6057 )
...
* [Statsig] Send thread length
* Split events
2024-11-01 16:21:18 +00:00
dan
1c2186bc03
Fix character count with intent ( #6056 )
2024-11-01 16:21:10 +00:00
dan
21b82fa19c
Fixes for thread composer on Android ( #6045 )
...
* 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.
2024-11-01 03:47:53 +00:00
dan
7a08d61d88
Thread composer UI ( #6050 )
...
* 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
2024-11-01 03:45:55 +00:00
dan
01c9ac0e13
Implement posting threads ( #6049 )
...
* 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 >
2024-11-01 03:42:38 +00:00
dan
4c31403330
Check video state for the entire thread ( #5957 )
...
* 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
2024-11-01 03:37:30 +00:00
charlotte ✨
68bb451051
Link to app.bsky.actor.profile record in link rel=alternate ( #6046 )
...
This disambiguates ATProto identities from Bluesky profiles
2024-11-01 01:56:25 +00:00
Tom Sherman
193954d401
Add AT URIs as alternate links ( #6033 )
2024-11-01 00:31:29 +00:00
Samuel Newman
1b69ecb57a
Tweak 2FA enabled state ( #6043 )
...
* tweak 2fa presentation
* tweak dialog text style
2024-11-01 00:30:42 +00:00
Samuel Newman
3b68dfeb3b
allow emoji in link facets ( #6039 )
2024-10-31 21:51:58 +00:00
devin ivy
d5f8d8224f
bskyweb: fix post text expansion ( #6016 )
...
Co-authored-by: Hailey <me@haileyok.com >
2024-10-31 14:24:56 -07:00
Samuel Newman
aa6aad652e
[Settings] Thread prefs revamp ( #5772 )
...
* thread preferences screen
* minor tweaks
* more spacing
* replace gate with IS_INTERNAL
* [Settings] Following feed prefs revamp (#5773 )
* gated new settings screen
* Following feed prefs
* Update src/screens/Settings/FollowingFeedPreferences.tsx
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* Update src/screens/Settings/FollowingFeedPreferences.tsx
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* replace pref following feed gate
* Update src/screens/Settings/FollowingFeedPreferences.tsx
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* use "Experimental" as the header
---------
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* [Settings] External media prefs revamp (#5774 )
* gated new settings screen
* external media prefs revamp
* replace gate ext media embeds
* Update src/screens/Settings/ExternalMediaPreferences.tsx
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* add imports for translation
* alternate list style on native
---------
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* [Settings] Languages revamp (partial) (#5775 )
* language settings (lazy restyle)
* replace gate
* fix text determining flex space
* [Settings] App passwords revamp (#5777 )
* rework app passwords screen
* Apply surfdude's copy changes
Thanks @surfdude29!
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* format
* replace gate
* use admonition for input error and animate
---------
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* [Settings] Change handle dialog (#5781 )
* new change handle dialog
* animations native only
* overflow hidden on togglebutton animation
* add a low-contrast border
* extract out copybutton
* finish change handle dialog
* invalidate query on success
* web fixes
* error message for rate limit exceeded
* typo
* em dash!
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* another em dash
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* set maxwidth of suffixtext
* Copy tweak
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
---------
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
* [Settings] Notifs settings revamp (#5884 )
* rename, move, and restyle notif settings
* bold "experimental:"
---------
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
2024-10-31 20:45:34 +00:00
dan
d85dcc3dd0
Explicitly mark lightbox worklets ( #6038 )
2024-10-31 17:34:33 +00:00
Eric Bailey
41452de165
Improve notification localization ( #5550 )
...
* Improve notification localization (#3911 )
* Update FeedItem.tsx
* Update FeedItem.tsx
* Update FeedItem.tsx
* Update FeedItem.tsx
* Update FeedItem.tsx
* Update FeedItem.tsx
* Update FeedItem.tsx
* Update FeedItem.tsx
* Update FeedItem.tsx
* Update PostMeta.tsx
* Update RightNav.tsx
* Update FeedItem.tsx
* Update FeedItem.tsx
* a11y
* Update FeedItem.tsx
* Update PostThreadItem.tsx
* Update PostThreadItem.tsx
* revert
* Update FeedItem.tsx
* Update FeedItem.tsx
* Update FeedItem.tsx
* Revert "Merge remote-tracking branch 'upstream/main' into Improve-notification-localization"
This reverts commit f435d1e7ed , reversing
changes made to dae2aee676 .
* Reapply "Merge remote-tracking branch 'upstream/main' into Improve-notification-localization"
This reverts commit c93ac19048 .
* Update ThreadgateBtn.tsx
* Rm import edits for now
* Cleanups
---------
Co-authored-by: Minseo Lee <itoupluk427@gmail.com >
2024-10-31 12:11:54 -05:00
dan
1e32327de0
Measure tapped image coordinates before opening lightbox ( #6001 )
...
* Measure image on press
* Pass dimensions to the lightbox component
2024-10-31 16:24:15 +00:00
Eric Bailey
6f4703e814
Fix width handling for deactivated screen ( #5810 )
2024-10-31 10:42:35 -05:00
Nawapon Boonjua
9a82d20bd9
add Thai Language translation support ( #5879 )
...
* add Thai Language support
* Update lingui.config.js
* Update dates.ts
* Update helpers.ts
* Update i18n.ts
* Update i18n.web.ts
* Update languages.ts
* Update messages.po
---------
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com >
2024-10-30 12:13:08 -07:00
Ben Harris
e9f6a8e58d
fix warning on labeler profile: emoji detected but emoji not enabled ( #6011 )
2024-10-30 12:14:34 +00:00
brian
21ba1fad55
Added blur to search's onPressMenu ( #6017 )
2024-10-30 12:13:52 +00:00
Samuel Newman
1fc684aaef
React compiler beta and reenable rule ( #5898 )
...
* use react compiler beta and reenable rule
* use react-compiler-runtime
* error -> warn
* move runtime out of dev deps
2024-10-30 02:47:39 +00:00