forked from pingdotgg/t3code
-
Notifications
You must be signed in to change notification settings - Fork 3
sync: port upstream mobile perf, OTA updates, Thread List v2 default (#4607–#4984) #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
cd5041f
fix(mobile): match react version to react-native 0.85.3 vendored rend…
KrzysztofMoch 2cdb37d
Add OTA update checks to mobile settings (#4686)
juliusmarminge b1c2f2b
fix(mobile): threads load snapped to bottom on iOS (#4689)
t3dotgg 1119546
Make mobile Thread List v2 the default (#4717)
juliusmarminge c3443ac
Fix mobile showcase workflow without Clerk (#4718)
juliusmarminge 58e6e23
Settle merged PR threads immediately (#4704)
t3dotgg 9d54648
Fix Android showcase capture and rebuild v2 queued rows (#4730)
juliusmarminge a610653
refactor(client): share filesystem browse navigation (#4797)
juliusmarminge 4119fc0
fix(mobile): defer filesystem navigation (#4799)
juliusmarminge 8cafaf2
Fix Connect sign-in settings label (#4806)
juliusmarminge 3fd825c
fix(mobile): reduce thread feed scroll jank (#4874)
gabrielelpidio 616f2b6
fix(clients): disable add project while disconnected (#4834)
StiensWout 01f401a
fix(mobile): stop shared content errors in Personal Team builds (#4943)
t3dotgg ae9c403
perf(mobile): sends respond instantly, thread opens stop freezing (#4…
t3dotgg e37d3a6
fix(mobile): support dragged images in the composer (#4953)
t3dotgg 3aa7bfb
fix(mobile): stop long iOS threads from jumping while scrolling up (#…
t3dotgg 6b7836d
perf(mobile): reconnect environments immediately on resume (#4878)
t3dotgg 8c88d3d
Check for mobile app updates on launch (#4958)
juliusmarminge 857a5d8
fix(mobile): support pre-Liquid-Glass iOS bottom toolbar (#4984)
gabrielelpidio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import { describe, expect, it } from "@effect/vitest"; | ||
|
|
||
| import { | ||
| MOBILE_BACKGROUND_RECONNECT_AFTER_MS, | ||
| mobileApplicationActiveWakeup, | ||
| } from "./app-state-wakeups"; | ||
|
|
||
| describe("mobileApplicationActiveWakeup", () => { | ||
| it("uses a fast probe after a short interruption", () => { | ||
| expect(mobileApplicationActiveWakeup(null, 20_000)).toBe("application-active-probe"); | ||
| expect( | ||
| mobileApplicationActiveWakeup(20_000, 20_000 + MOBILE_BACKGROUND_RECONNECT_AFTER_MS - 1), | ||
| ).toBe("application-active-probe"); | ||
| }); | ||
|
|
||
| it("replaces the session after a meaningful background suspension", () => { | ||
| expect( | ||
| mobileApplicationActiveWakeup(20_000, 20_000 + MOBILE_BACKGROUND_RECONNECT_AFTER_MS), | ||
| ).toBe("application-active-reconnect"); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import type { Wakeups } from "@t3tools/client-runtime/connection"; | ||
|
|
||
| export const MOBILE_BACKGROUND_RECONNECT_AFTER_MS = 10_000; | ||
|
|
||
| export type MobileApplicationActiveWakeup = Extract< | ||
| Wakeups.ConnectionWakeup, | ||
| "application-active-probe" | "application-active-reconnect" | ||
| >; | ||
|
|
||
| export function mobileApplicationActiveWakeup( | ||
| backgroundedAtMs: number | null, | ||
| activeAtMs: number, | ||
| ): MobileApplicationActiveWakeup { | ||
| return backgroundedAtMs !== null && | ||
| activeAtMs - backgroundedAtMs >= MOBILE_BACKGROUND_RECONNECT_AFTER_MS | ||
| ? "application-active-reconnect" | ||
| : "application-active-probe"; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When an iPadOS drop contains both an image item and a non-image item,
allSatisfyrejects the entire drop and falls back to UIKit's suggested performer. UIKit can then insert the image as a regularNSTextAttachment;serializedTextcannot preserve that attachment andonComposerPasteImagesis never emitted, so the dragged image disappears from the controlled composer. Intercept the image providers even when the same drop also contains other item types, while explicitly preserving or inserting the remaining content.Useful? React with 👍 / 👎.