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:
Baptiste Devessier
2026-02-03 17:03:37 +00:00
committed by GitHub
parent 3db961c038
commit ccd40e7633
4 changed files with 5 additions and 6 deletions
@@ -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()
@@ -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',
},
},
{