Conversation
|
Claude finished @rjvelazco's task in 1m 56s —— View job Code Review
The core fix is correct — 1. // showVideoThumbnail$()
.pipe(map((property = 'true') => property === 'true' || property === 'NOT_FOUND'));
2. const contentEditorFeatureFlag =
response[FeaturedFlags.FEATURE_FLAG_CONTENT_EDITOR2_ENABLED] === 'true';
3. map((value) => (value === FEATURE_FLAG_NOT_FOUND ? DotRenderModes.IFRAME : value))
Design note: widening |
…nt-type-builder-due-to-unhandled-boolean-value-from-config-endpoint
…nt-type-builder-due-to-unhandled-boolean-value-from-config-endpoint
Summary
DotPropertiesService.getFeatureFlag()to correctly handle native JSON boolean values (true/false) returned by/api/v1/configuration/configforFEATURE_FLAG_*keys — previously only string"true"was handled, causing feature flags to silently evaluate asfalseand hiding the Style Editor tab in the Content Type BuildergetKey()return type fromObservable<string>toObservable<string | boolean>to match the actual API contractDotWysiwygPluginServiceandDotContainersServicecaused by the widened return typeTest plan
yarn nx test data-accesspasses including the two new booleantrue/falseunit test casesFEATURE_FLAG_UVE_STYLE_EDITOR_FOR_TRADITIONAL_PAGESis enabled on the backend"true"/"false"continue to work correctly (backward compatibility)Fixes #35331
Video
video.mov
🤖 Generated with Claude Code