Skip to content

Commit

Permalink
Desktop, Mobile, Cli: Make feature flags advanced settings by default
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Aug 23, 2024
1 parent 5fdd088 commit 700ffa2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/lib/models/settings/builtInMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const builtInMetadata = (Setting: typeof SettingType) => {
return output;
};

return {
const output = {
'clientId': {
value: '',
type: SettingItemType.String,
Expand Down Expand Up @@ -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>;
Expand Down

0 comments on commit 700ffa2

Please sign in to comment.