feat: make feature flag image optional (#17679)
Prevent layout shift when no image is provided for a feature flag ## Before https://github.com/user-attachments/assets/b1a98da9-1208-46f7-9fc6-9c34a9012c02 ## After https://github.com/user-attachments/assets/ed12df0c-1651-4fc9-a0e7-60f5fb1533a4
This commit is contained in:
+2
-2
@@ -108,8 +108,8 @@ export class PublicFeatureFlagMetadata {
|
||||
@Field(() => String)
|
||||
description: string;
|
||||
|
||||
@Field(() => String, { nullable: false, defaultValue: '' })
|
||||
imagePath: string;
|
||||
@Field(() => String, { nullable: true })
|
||||
imagePath?: string;
|
||||
}
|
||||
|
||||
@ObjectType()
|
||||
|
||||
+1
-2
@@ -3,7 +3,7 @@ import { FeatureFlagKey } from 'src/engine/core-modules/feature-flag/enums/featu
|
||||
type FeatureFlagMetadata = {
|
||||
label: string;
|
||||
description: string;
|
||||
imagePath: string;
|
||||
imagePath?: string;
|
||||
};
|
||||
|
||||
export type PublicFeatureFlag = {
|
||||
@@ -18,7 +18,6 @@ export const PUBLIC_FEATURE_FLAGS: PublicFeatureFlag[] = [
|
||||
label: 'Junction Relations',
|
||||
description:
|
||||
'Enable many-to-many relations through junction tables configuration',
|
||||
imagePath: 'https://twenty.com/images/lab/is-junction-relations.png',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user