Desktop, Mobile, Cli: Make feature flags advanced settings by default

This commit is contained in:
Laurent Cozic committed 2024-08-23 11:39:40 +01:00
1 parent 5fdd088504
commit 700ffa2529
1 file changed
+7 -1
@@ -45,7 +45,7 @@ const builtInMetadata = (Setting: typeof SettingType) => {
return output;
};
return {
const output = {
'clientId': {
value: '',
type: SettingItemType.String,
@@ -1630,6 +1630,12 @@ const builtInMetadata = (Setting: typeof SettingType) => {
isGlobal: false,
},
} satisfies Record<string, SettingItem>;
for (const [key, md] of Object.entries(output)) {
if (key.startsWith('featureFlag.')) (md as SettingItem).advanced = true;
}
return output;
};
export type BuiltInMetadataKeys = keyof ReturnType<typeof builtInMetadata>;