Skip to content

Commit

Permalink
Add an alert that form ist not fully implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffl committed Jan 2, 2025
1 parent 7a5b071 commit 8067918
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions airflow/ui/src/components/FlexibleForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Stack, StackSeparator } from "@chakra-ui/react";

import type { DagParamsSpec, ParamSpec } from "src/queries/useDagParams";

import { Accordion } from "../ui";
import { Accordion, Alert } from "../ui";
import { FlexibleFormRow } from "./FlexibleFormRow";

type FlexibleFormProps = {
Expand All @@ -34,13 +34,17 @@ export type FlexibleFormElementProps = {
};

const FlexibleForm = ({ params }: FlexibleFormProps) => {
// TODO: Add a note that the form is not "working" until onBlur not implemented
// ...or add a note as altert when the form is "used"
const processedSections = new Map();

return (
<>
<Stack separator={<StackSeparator />}>
{Object.keys(params).length > 0 && (
<Alert
status="warning"
title="Population of changes in trigger form fields is not implemented yet. Please stay tuned for upcoming updates... and change the run conf in the 'Advanced Options' conf section below meanwhile."
/>
)}
{Object.entries(params)
.filter(([, param]) => typeof param.schema.section !== "string")
.map(([name, param]) => (
Expand Down

0 comments on commit 8067918

Please sign in to comment.