Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(v2): snooze limited threads until usage resets #12687

Mergedjuliusmarmingemerged 10 commits intoprovider-limits/auto-resume fromrefs/pull/12687/headmerged by juliusmarminge View on GitHub

Showing 16 changed files with 100 additions and 24 deletions (loading 13).

x
0 of 16 viewed, 16 left
11 additions and 1 deletionapps/mobile/src/features/settings/SettingsThreadsRouteScreen.tsxModified
View file
@@ -87,7 +87,10 @@
​
const writeToAll = (
- patch: Partial<AutoSettleSettings> & { autoResumeLimitedThreads?: boolean },
+ patch: Partial<AutoSettleSettings> & {
+ autoResumeLimitedThreads?: boolean;
+ snoozeLimitedThreads?: boolean;
+ },
) => {
if (writeInFlight.current) return;
const writes = planMobileScopedSettingsPatch(syncTargets, projectSelected, patch);
@@ -175,6 +178,13 @@
disabled={disabled}
onValueChange={(value) => writeToAll({ autoResumeLimitedThreads: value })}
+ <SettingsSwitchRow
+ icon="clock"
+ label="Snooze limited threads"
+ value={referenceSettings.snoozeLimitedThreads}
+ disabled={disabled}
+ onValueChange={(value) => writeToAll({ snoozeLimitedThreads: value })}
+ />
</SettingsSection>
) : null}
<SettingsSection title="Auto-settle">
42 additions and 12 deletionsapps/mobile/src/features/threads/UsageLimitRecoveryCard.tsxModified
View file