Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Add trigger to new UI #43058

Closed
wants to merge 2 commits into from

Conversation

jscheffl
Copy link
Contributor

Draft to add a new Trigger UI

WIP:

  • Triggering of DAG run not working
  • Validation of DAG run config missing
  • Form field generation missing, just a plan JSON for the start
  • JSON CodeMirror is not auto-formatted
  • If DAG is paused, add the option to enable

image

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Oct 15, 2024
airflow/ui/src/components/TriggerDag.tsx Outdated Show resolved Hide resolved
isOpen={isOpen}
onClose={onClose}
submitButton={
<Button isLoading={isSubmitting} onClick={handleSubmit(onTrigger)}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Button isLoading={isSubmitting} onClick={handleSubmit(onTrigger)}>
<Button isLoading={isSubmitting} onClick={() => handleSubmit(onTrigger)}>

We need to pass the function not the return value of a called function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this - also as eslint is cmplaining about this... but then it is not working...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What error did you get?

Sometimes I need to run pnpm install before linting.
In vscode, once in a while I also need to cmd+shift+P and restart the eslint server:
Screenshot 2024-10-17 at 12 01 15 PM

airflow/ui/src/components/TriggerDag.tsx Outdated Show resolved Hide resolved
airflow/ui/src/components/TriggerDag.tsx Outdated Show resolved Hide resolved
airflow/ui/src/components/TriggerDag.tsx Outdated Show resolved Hide resolved
airflow/ui/src/components/TriggerDag.tsx Outdated Show resolved Hide resolved
@jscheffl jscheffl force-pushed the feature/add-trigger-to-new-ui branch from 1a5d4df to 25251a1 Compare October 16, 2024 21:57
@jscheffl jscheffl force-pushed the feature/add-trigger-to-new-ui branch from 25251a1 to c074d54 Compare October 25, 2024 19:39
@jscheffl jscheffl force-pushed the feature/add-trigger-to-new-ui branch from c074d54 to 6929d37 Compare October 25, 2024 19:43
@jscheffl
Copy link
Contributor Author

jscheffl commented Nov 6, 2024

Close in favor of moving forward with #43367

@jscheffl jscheffl closed this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:UI Related to UI/UX. For Frontend Developers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants