{#if mode == 'script'}
{currentScript?.path ?? 'Not editing a script'} {currentScript?.language ?? ''}{currentScript?.isCodebase ? ' (codebase)' : ''}
{#if $userStore != undefined} As {$userStore?.username} in {$workspaceStore} {:else} Unable to login {/if}
{#if !validCode}
Invalid code
{/if}
{#if (currentScript?.language == 'bun' || currentScript?.language == 'python3') && currentScript?.content != undefined} {#if relativePaths.length > 0}
{#if currentScript?.language == 'bun'} {:else if currentScript?.language == 'python3'}
relative imports detectedBeware that when using relative imports, the code used in preview for those is the one that is already deployed. If you make update to the common logic, you will need to `wmill sync push` to see it reflected in the preview runs.
{/if}
{/if} {/if}
{#if testIsLoading} {:else} {/if}
{:else}
{#if $userStore} As {$userStore?.username} in {$workspaceStore} {:else} Unable to login on {$workspaceStore} {/if}
{#if $flowStore?.value?.modules} {:else}
Missing flow modules
{/if}
{#key reload} {/key}
{/if}