From 17988abe41e9b8052e3d60c55090325150498aae Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Tue, 18 Nov 2025 16:15:07 +0530 Subject: [PATCH 1/4] streamline rendering update payload construction and remove under EA --- src/tools/auth0/handlers/prompts.ts | 32 +++++++++-------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/src/tools/auth0/handlers/prompts.ts b/src/tools/auth0/handlers/prompts.ts index 977921842..14a04a2b3 100644 --- a/src/tools/auth0/handlers/prompts.ts +++ b/src/tools/auth0/handlers/prompts.ts @@ -351,15 +351,11 @@ export default class PromptsHandler extends DefaultHandler { partials, }; - const includeExperimentalEA = this.config('AUTH0_EXPERIMENTAL_EA') || false; - - if (includeExperimentalEA) { - try { - const { data } = await this.client.prompts.getAllRenderingSettings(); - prompts.screenRenderers = data; - } catch (error) { - log.warn(`Unable to fetch screen renderers: ${error}`); - } + try { + const { data } = await this.client.prompts.getAllRenderingSettings(); + prompts.screenRenderers = data; + } catch (error) { + log.warn(`Unable to fetch screen renderers: ${error}`); } return prompts; @@ -575,19 +571,11 @@ export default class PromptsHandler extends DefaultHandler { screenRenderer; if (!prompt || !screen) return; - let updatePayload: PatchRenderingRequest = {}; - - if (rendering_mode === PatchRenderingRequestRenderingModeEnum.standard) { - updatePayload = { - rendering_mode, - }; - } else { - updatePayload = { - ...updatePrams, - rendering_mode, - default_head_tags_disabled: default_head_tags_disabled || undefined, - }; - } + const updatePayload = { + ...updatePrams, + rendering_mode, + default_head_tags_disabled: default_head_tags_disabled || undefined, + }; try { await this.client.prompts.updateRendering( From 4da9fdb4c16dd5f1e0320fc1f8660191e1f2d180 Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Wed, 19 Nov 2025 13:19:35 +0530 Subject: [PATCH 2/4] Add screenRenderers to prompts in context tests --- test/context/yaml/context.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/context/yaml/context.test.js b/test/context/yaml/context.test.js index f98688eca..a0bdaeaa1 100644 --- a/test/context/yaml/context.test.js +++ b/test/context/yaml/context.test.js @@ -303,6 +303,7 @@ describe('#YAML context validation', () => { prompts: { customText: {}, partials: {}, + screenRenderers: [], }, customDomains: [], themes: [], @@ -431,6 +432,7 @@ describe('#YAML context validation', () => { prompts: { customText: {}, partials: {}, + screenRenderers: [], }, customDomains: [], themes: [], @@ -559,6 +561,7 @@ describe('#YAML context validation', () => { prompts: { customText: {}, partials: {}, + screenRenderers: [], }, logStreams: [], customDomains: [], From f8063165ef1f2a2126776e45593836034fbc9c6e Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Thu, 20 Nov 2025 11:47:34 +0530 Subject: [PATCH 3/4] Update logging to check for non-empty list before displaying msg --- src/context/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/index.ts b/src/context/index.ts index 1d846e990..e15b2e4c3 100644 --- a/src/context/index.ts +++ b/src/context/index.ts @@ -144,7 +144,7 @@ export const setupContext = async ( : 'features [' + EA_FEATURES.join(',') + '] are' } enabled. These are in a pre-release state and may change in future release.` ); - } else { + } else if (EA_FEATURES.length > 0) { log.info( 'To enable experimental early access features use --experimental_ea flag or set AUTH0_EXPERIMENTAL_EA=true in configuration JSON.' ); From a6e346eb68513be95c89a2f61a883eb2707c2255 Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Thu, 20 Nov 2025 16:53:33 +0530 Subject: [PATCH 4/4] Remove ACUL from EA_FEATURES array --- src/context/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/index.ts b/src/context/index.ts index e15b2e4c3..268dfcbce 100644 --- a/src/context/index.ts +++ b/src/context/index.ts @@ -26,7 +26,7 @@ const nonPrimitiveProps: (keyof Config)[] = [ 'INCLUDED_PROPS', ]; -const EA_FEATURES = ['ACUL']; +const EA_FEATURES = []; export const setupContext = async ( config: Config,