This is an automated email from the ASF dual-hosted git repository.
guanmingchiu 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 c2144fdda31 fix static checks in main (#58325)
c2144fdda31 is described below
commit c2144fdda3123d5e16353da9dc90a26fba7d6eaa
Author: Bugra Ozturk <[email protected]>
AuthorDate: Fri Nov 14 18:58:47 2025 +0100
fix static checks in main (#58325)
---
.../airflow/ui/public/i18n/locales/en/assets.json | 8 ++---
.../src/airflow/ui/src/pages/Asset/AssetLayout.tsx | 40 +++++++++++-----------
2 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/airflow-core/src/airflow/ui/public/i18n/locales/en/assets.json
b/airflow-core/src/airflow/ui/public/i18n/locales/en/assets.json
index d45488f5d04..0d3e7a45283 100644
--- a/airflow-core/src/airflow/ui/public/i18n/locales/en/assets.json
+++ b/airflow-core/src/airflow/ui/public/i18n/locales/en/assets.json
@@ -1,4 +1,7 @@
{
+ "additional_data": "Additional Data",
+ "asset_many": "Assets",
+ "asset_one": "Asset",
"consumingDags": "Consuming Dags",
"createEvent": {
"button": "Create Event",
@@ -26,8 +29,5 @@
"name": "Name",
"producingTasks": "Producing Tasks",
"scheduledDags": "Scheduled Dags",
- "searchPlaceholder": "Search Assets",
- "asset_one": "Asset",
- "asset_many": "Assets",
- "additional_data": "Additional Data"
+ "searchPlaceholder": "Search Assets"
}
diff --git a/airflow-core/src/airflow/ui/src/pages/Asset/AssetLayout.tsx
b/airflow-core/src/airflow/ui/src/pages/Asset/AssetLayout.tsx
index 41685edded4..f3ebf4df380 100644
--- a/airflow-core/src/airflow/ui/src/pages/Asset/AssetLayout.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Asset/AssetLayout.tsx
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-import { HStack, Box , Text, Code } from "@chakra-ui/react";
+import { HStack, Box, Text, Code } from "@chakra-ui/react";
import { useReactFlow } from "@xyflow/react";
import { useCallback } from "react";
import { useTranslation } from "react-i18next";
@@ -128,25 +128,25 @@ export const AssetLayout = () => {
</PanelResizeHandle>
<Panel defaultSize={30} minSize={20}>
<Header asset={asset} />
- {asset?.extra && Object.keys(asset.extra).length > 0 && (
- <Box mt={3} mb={3} px={3}>
- <Text fontWeight="bold" mb={2}>
- {translate("assets:additional_data")}
- </Text>
- <Code
- display="block"
- whiteSpace="pre"
- w="full"
- p={2}
- borderRadius="md"
- background="bg.subtle"
- color="fg.default"
- fontSize="sm"
- >
- {JSON.stringify(asset.extra, null, 2)}
- </Code>
- </Box>
- )}
+ {asset?.extra && Object.keys(asset.extra).length > 0 ? (
+ <Box mb={3} mt={3} px={3}>
+ <Text fontWeight="bold" mb={2}>
+ {translate("assets:additional_data")}
+ </Text>
+ <Code
+ background="bg.subtle"
+ borderRadius="md"
+ color="fg.default"
+ display="block"
+ fontSize="sm"
+ p={2}
+ w="full"
+ whiteSpace="pre"
+ >
+ {JSON.stringify(asset.extra, null, 2)}
+ </Code>
+ </Box>
+ ) : null}
<Box h="100%" overflow="auto" pt={2}>
<AssetEvents