Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): show background monitoring status #10436

ClosedGigioxx(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/10436/headopened View on GitHub

Showing 7 changed files with 14 additions and 3 deletions (loading 4).

x
0 of 7 viewed, 7 left
7 additions and 0 deletionsapps/mobile/src/features/threads/ThreadDetailScreen.tsxModified
View file
@@ -96,6 +96,7 @@
ThreadComposer,
} from "./ThreadComposer";
import { ThreadFeed } from "./ThreadFeed";
+import { resolveThreadStatus } from "./threadPresentation";
import type { ThreadContentPresentation } from "./threadContentPresentation";
import { resolveThreadFeedSubmissionAnchor } from "./thread-feed-live-follow";
​
@@ -345,6 +346,12 @@
if (props.activeWorkStartedAt !== null && contentPresentationKind === "ready") {
return { kind: "working", startedAt: props.activeWorkStartedAt };
+ if (contentPresentationKind === "ready") {
+ const status = resolveThreadStatus(props.selectedThread);
+ if (status?.kind === "monitoring" || status?.kind === "working") {
+ return { kind: "background", label: status.label };
+ }
+ }
return null;
})();
const showWorkingControl = floatingStatus !== null;
6 additions and 3 deletionsapps/mobile/src/features/threads/floating-working-control.tsxModified
View file
@@ -54,7 +54,8 @@
export type FloatingWorkingStatus =
| { readonly kind: "working"; readonly startedAt: string }
| { readonly kind: "syncing"; readonly label: string }