Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): show Working and Monitoring when background work outlives the turn #13803

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

Showing 6 changed files with 28 additions and 1 deletion (loading 3).

x
0 of 6 viewed, 6 left
3 additions and 0 deletionsapps/mobile/src/features/threads/ThreadDetailScreen.tsxModified
View file
@@ -407,6 +407,9 @@
if (props.activeWorkStartedAt !== null && contentPresentationKind === "ready") {
return { kind: "working", startedAt: props.activeWorkStartedAt };
+ if (props.selectedThread.backgroundLiveness && contentPresentationKind === "ready") {
+ return { kind: "background", liveness: props.selectedThread.backgroundLiveness };
+ }
return null;
})();
const showWorkingControl = floatingStatus !== null;
22 additions and 1 deletionapps/mobile/src/features/threads/floating-working-control.tsxModified
View file
@@ -147,7 +147,9 @@
key={
props.status.kind === "working" || props.status.kind === "compacting"
? props.status.kind
- : `${props.status.kind}:${props.status.label}`
+ : props.status.kind === "background"
+ ? `background:${props.status.liveness}`
+ : `${props.status.kind}:${props.status.label}`
status={props.status}
onLayout={handleLabelLayout}
@@ -295,6 +297,25 @@
if (props.status.kind === "compacting") {
return <CompactingLabel key="compacting" onLayout={props.onLayout} />;