mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 08:01:25 +00:00
UX nits
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "\n SELECT content FROM script WHERE workspace_id = $1 AND path = $2\n ",
|
||||
"query": "\n SELECT content FROM script WHERE path = $1 AND workspace_id = $2\n AND created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND \n workspace_id = $2)\n ",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
@@ -19,5 +19,5 @@
|
||||
false
|
||||
]
|
||||
},
|
||||
"hash": "9a5b63783851d77ebb960967d14029e82772afa577f0626c8c98ef7e1ce04b0c"
|
||||
"hash": "d581bfb507d3a875f07677187717a469ec6ab1db1585835c961409612d81ec7d"
|
||||
}
|
||||
@@ -146,10 +146,12 @@ pub async fn parse_python_imports(
|
||||
let nested = if n.starts_with("relative:") {
|
||||
let code = sqlx::query_scalar!(
|
||||
r#"
|
||||
SELECT content FROM script WHERE workspace_id = $1 AND path = $2
|
||||
SELECT content FROM script WHERE path = $1 AND workspace_id = $2
|
||||
AND created_at = (SELECT max(created_at) FROM script WHERE path = $1 AND
|
||||
workspace_id = $2)
|
||||
"#,
|
||||
w_id,
|
||||
n.replace("relative:", "")
|
||||
n.replace("relative:", ""),
|
||||
w_id
|
||||
)
|
||||
.fetch_optional(db)
|
||||
.await?
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
export let error = ''
|
||||
export let disabled = false
|
||||
export let checkInitialPathExistence = false
|
||||
|
||||
export let autofocus = true
|
||||
export let kind: PathKind
|
||||
|
||||
let inputP: HTMLInputElement | undefined = undefined
|
||||
@@ -393,7 +393,7 @@
|
||||
{disabled}
|
||||
type="text"
|
||||
id="path"
|
||||
autofocus
|
||||
{autofocus}
|
||||
bind:this={inputP}
|
||||
autocomplete="off"
|
||||
on:keyup={handleKeyUp}
|
||||
|
||||
@@ -281,6 +281,7 @@
|
||||
|
||||
<input
|
||||
type="text"
|
||||
autofocus
|
||||
bind:value={script.summary}
|
||||
placeholder="Short summary to be displayed when listed"
|
||||
/>
|
||||
@@ -290,6 +291,7 @@
|
||||
bind:error={pathError}
|
||||
bind:path={script.path}
|
||||
{initialPath}
|
||||
autofocus={false}
|
||||
namePlaceholder="script"
|
||||
kind="script"
|
||||
/>
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
autofocus
|
||||
bind:value={$flowStore.summary}
|
||||
placeholder="Short summary to be displayed when listed"
|
||||
id="flow-summary"
|
||||
@@ -79,6 +80,7 @@
|
||||
|
||||
<span class="text-secondary text-sm font-bold"> Path </span>
|
||||
<Path
|
||||
autofocus={false}
|
||||
bind:this={path}
|
||||
bind:path={$flowStore.path}
|
||||
{initialPath}
|
||||
|
||||
Reference in New Issue
Block a user