Skip to content

Commit

Permalink
Add pre-requisites-info for the default prompt-screen-settings.json f…
Browse files Browse the repository at this point in the history
…ile.
  • Loading branch information
ramya18101 committed Nov 28, 2024
1 parent ff85eb6 commit 40c69d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions internal/cli/data/universal-login/prompt-screen-settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"_comment1": "The rendering_mode could be either advanced or standard... default_head_tags_disabled is a toggle to override Universal Login default head tags... context_configuration are the set of Context values to make available(Refer docs for the possible values)... head_tags are the array of head tags)..",
"_comment2": "Note1: Inorder to update the rendering_mode to standard, just parse only the rendering_mode field; At standard_mode, we can't update the rest of fields",
"_comment3": "Note2: head_tags must contain at least one script tag",
"_comment4": "Only the declared fields will be updated, Rest stays same.",

"rendering_mode": "advanced",
"default_head_tags": false,
"context_configuration": [
"screen.texts"
],
Expand Down
3 changes: 1 addition & 2 deletions internal/cli/universal_login_customize.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ func customizeUniversalLoginCmd(cli *cli) *cobra.Command {
help := fmt.Sprintf(
"%s\n%s\n",
"standardMode is recommended for customizating consistent, branded experience for users.",
"Alternatively, advancedMode is recommended for full customization/granular control of the login experience",
"and to integrate own component design system",
"Alternatively, advancedMode is recommended for full customization/granular control of the login experience and to integrate own component design system",
)

input := prompt.SelectInput("", label, help, []string{standardMode, advancedMode}, standardMode, true)
Expand Down

0 comments on commit 40c69d9

Please sign in to comment.