This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 845e401a5ef Fix ts-compile-lint-ui hook not finding any UI files
(#58099)
845e401a5ef is described below
commit 845e401a5ef302af1dc051ab0527e2f887fab289
Author: Guan-Ming (Wesley) Chiu <[email protected]>
AuthorDate: Sun Nov 9 20:32:07 2025 +0800
Fix ts-compile-lint-ui hook not finding any UI files (#58099)
---
airflow-core/src/airflow/ui/src/components/DisplayMarkdownButton.tsx | 1 -
airflow-core/src/airflow/ui/src/components/EditableMarkdownArea.tsx | 4 ++--
airflow-core/src/airflow/ui/src/components/EditableMarkdownButton.tsx | 1 -
airflow-core/src/airflow/ui/src/layouts/Nav/TimezoneMenuItem.tsx | 4 +++-
airflow-core/src/airflow/ui/src/utils/query.ts | 2 +-
scripts/ci/prek/ts_compile_lint_ui.py | 4 ++--
6 files changed, 8 insertions(+), 8 deletions(-)
diff --git
a/airflow-core/src/airflow/ui/src/components/DisplayMarkdownButton.tsx
b/airflow-core/src/airflow/ui/src/components/DisplayMarkdownButton.tsx
index 3cb73562994..2ca528c9e15 100644
--- a/airflow-core/src/airflow/ui/src/components/DisplayMarkdownButton.tsx
+++ b/airflow-core/src/airflow/ui/src/components/DisplayMarkdownButton.tsx
@@ -24,7 +24,6 @@ import { ResizableWrapper, MARKDOWN_DIALOG_STORAGE_KEY } from
"src/components/ui
import ReactMarkdown from "./ReactMarkdown";
-
const DisplayMarkdownButton = ({
header,
icon,
diff --git
a/airflow-core/src/airflow/ui/src/components/EditableMarkdownArea.tsx
b/airflow-core/src/airflow/ui/src/components/EditableMarkdownArea.tsx
index 5c24c5a9943..3b467734a09 100644
--- a/airflow-core/src/airflow/ui/src/components/EditableMarkdownArea.tsx
+++ b/airflow-core/src/airflow/ui/src/components/EditableMarkdownArea.tsx
@@ -43,8 +43,9 @@ const EditableMarkdownArea = ({
}
return (
- <Box p={4} width="100%" height="100%">
+ <Box height="100%" p={4} width="100%">
<Editable.Root
+ height="100%"
onBlur={onBlur}
onChange={(event: ChangeEvent<HTMLInputElement>) => {
const { value } = event.target;
@@ -53,7 +54,6 @@ const EditableMarkdownArea = ({
setMdContent(value);
}}
value={currentValue}
- height="100%"
>
<Editable.Preview
_hover={{ backgroundColor: "transparent" }}
diff --git
a/airflow-core/src/airflow/ui/src/components/EditableMarkdownButton.tsx
b/airflow-core/src/airflow/ui/src/components/EditableMarkdownButton.tsx
index 3ac31c71d55..3b07c7edc7b 100644
--- a/airflow-core/src/airflow/ui/src/components/EditableMarkdownButton.tsx
+++ b/airflow-core/src/airflow/ui/src/components/EditableMarkdownButton.tsx
@@ -27,7 +27,6 @@ import { ResizableWrapper, MARKDOWN_DIALOG_STORAGE_KEY } from
"src/components/ui
import EditableMarkdownArea from "./EditableMarkdownArea";
import ActionButton from "./ui/ActionButton";
-
const EditableMarkdownButton = ({
header,
isPending,
diff --git a/airflow-core/src/airflow/ui/src/layouts/Nav/TimezoneMenuItem.tsx
b/airflow-core/src/airflow/ui/src/layouts/Nav/TimezoneMenuItem.tsx
index cb13b3c9763..42508f0316e 100644
--- a/airflow-core/src/airflow/ui/src/layouts/Nav/TimezoneMenuItem.tsx
+++ b/airflow-core/src/airflow/ui/src/layouts/Nav/TimezoneMenuItem.tsx
@@ -50,7 +50,9 @@ export const TimezoneMenuItem = ({ onOpen }: { readonly
onOpen: () => void }) =>
return (
<Menu.Item onClick={onOpen} value="timezone">
<Icon as={FiClock} boxSize={4} />
- <Box flex="1">{translate("timezone")}:
{dayjs(time).tz(selectedTimezone).format("HH:mm z (Z)")}</Box>
+ <Box flex="1">
+ {translate("timezone")}:
{dayjs(time).tz(selectedTimezone).format("HH:mm z (Z)")}
+ </Box>
</Menu.Item>
);
};
diff --git a/airflow-core/src/airflow/ui/src/utils/query.ts
b/airflow-core/src/airflow/ui/src/utils/query.ts
index 603b797a52b..10c031f47e3 100644
--- a/airflow-core/src/airflow/ui/src/utils/query.ts
+++ b/airflow-core/src/airflow/ui/src/utils/query.ts
@@ -50,8 +50,8 @@ export const useAutoRefresh = ({
const { data: dagRunData } = useDagRunServiceGetDagRuns(
{
dagId: dagId ?? "~",
- state: ["running", "queued"],
limit: 1,
+ state: ["running", "queued"],
},
undefined,
// Scale back refetching to 10x longer if there are no pending runs (eg:
every 3 secs for active runs, otherwise 30 secs)
diff --git a/scripts/ci/prek/ts_compile_lint_ui.py
b/scripts/ci/prek/ts_compile_lint_ui.py
index da3b7709493..b6fdd783788 100755
--- a/scripts/ci/prek/ts_compile_lint_ui.py
+++ b/scripts/ci/prek/ts_compile_lint_ui.py
@@ -22,8 +22,8 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent.resolve())) # make sure
common_prek_utils is imported
from common_prek_utils import (
+ AIRFLOW_CORE_ROOT_PATH,
AIRFLOW_CORE_SOURCES_PATH,
- AIRFLOW_ROOT_PATH,
run_command,
temporary_tsc_project,
)
@@ -38,7 +38,7 @@ if __name__ == "__main__":
original_files = sys.argv[1:]
print("Original files:", original_files)
dir = AIRFLOW_CORE_SOURCES_PATH / "airflow" / "ui"
- relative_dir = Path(dir).relative_to(AIRFLOW_ROOT_PATH)
+ relative_dir = Path(dir).relative_to(AIRFLOW_CORE_ROOT_PATH)
files = [
file[len(relative_dir.as_posix()) + 1 :]
for file in original_files