fix: move credentials above Advanced accordion in OAuth modals

This commit is contained in:
harsh mahajan
2026-05-21 12:49:01 +05:30
parent dbbd29be3e
commit 1d8876bfd9
2 changed files with 19 additions and 19 deletions
@@ -134,10 +134,6 @@
bind:value={appId} />
{/if}
<Accordion title="Advanced" badge="Optional" hideDivider>
<GooglePromptPicker bind:value={prompt} />
</Accordion>
{#if !showSecretInput}
<div>
<Tag size="s" on:click={() => (showSecretInput = true)}>
@@ -180,6 +176,10 @@
</Card.Base>
{/if}
<Accordion title="Advanced" badge="Optional" hideDivider>
<GooglePromptPicker bind:value={prompt} />
</Accordion>
<Alert.Inline status="info">
To complete set up, add this OAuth2 redirect URI to your Google app configuration.
</Alert.Inline>
@@ -245,21 +245,6 @@
bind:value={fieldValues[param.$id]} />
{/each}
{#if advancedDetailParams.length > 0}
<Accordion title="Advanced" badge="Optional" hideDivider>
<Layout.Stack gap="l">
{#each advancedDetailParams as param}
<InputText
id={param.$id}
label={primaryName(param.name)}
placeholder={param.example || ''}
helper={helperText(param.hint)}
bind:value={fieldValues[param.$id]} />
{/each}
</Layout.Stack>
</Accordion>
{/if}
{#if secretParams.length > 0}
{#if !showSecretInput}
<div>
@@ -372,6 +357,21 @@
{/if}
{/if}
{#if advancedDetailParams.length > 0}
<Accordion title="Advanced" badge="Optional" hideDivider>
<Layout.Stack gap="l">
{#each advancedDetailParams as param}
<InputText
id={param.$id}
label={primaryName(param.name)}
placeholder={param.example || ''}
helper={helperText(param.hint)}
bind:value={fieldValues[param.$id]} />
{/each}
</Layout.Stack>
</Accordion>
{/if}
<Alert.Inline status="info">
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
</Alert.Inline>