Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(settings): share restart continuation across environments #9933

Mergedmaria-rcksmerged 3 commits intomain fromrefs/pull/9933/headmerged by maria-rcks View on GitHub

Showing 8 changed files with 18 additions and 3 deletions (loading 5).

x
0 of 8 viewed, 8 left
16 additions and 2 deletionsapps/mobile/src/features/settings/SettingsRouteScreen.tsxModified
View file
@@ -44,6 +44,7 @@
type ServerSettingsPatch,
} from "@t3tools/contracts";
import {
+ filterSharedServerPatch,
findSharedSettingsMismatches,
pickSharedServerSettings,
supportsSharedSettingsSync,
@@ -584,11 +585,13 @@
const mismatches = findSharedSettingsMismatches({
primaryEnvironmentId: reference.environmentId,
primarySettings: referenceSettings,
+ primaryCapabilities: reference.serverConfig?.environment.capabilities,
environments: environments.map((environment) => ({
environmentId: environment.environmentId,
label: environment.label,
syncEligible: supportsSharedSettingsSync(environment),
settings: environment.serverConfig?.settings ?? null,
+ capabilities: environment.serverConfig?.environment.capabilities,
})),
});
​
@@ -652,11 +655,22 @@
<Pressable
accessibilityRole="button"
onPress={() => {
- const patch = pickSharedServerSettings(referenceSettings);
+ const patch = pickSharedServerSettings(