Skip to content

Focus DAG search box on cmd/ctrl+K #46458

@Jari27

Description

@Jari27

Description

In many websites, pressing Cmd/Ctrl+K brings up search functionality. We can add the same to airflow. This would be especially useful on pages that contain the DAG search box, e.g. home, DAG details, etc.

I have no experience with front-end development, so I don't know the drawbacks/difficulties of trapping Cmd/Ctrl+K (although it looks straightforward).

Use case/motivation

Allow the user to quickly search for a DAG, without needing to switch hands away from the keyboard after e,g logging in or opening the webpage from e.g. favourites.

Example flows:

  • jump to dag after login: enter login credentials -> press enter -> press cmd+k -> type dag id -> press enter
    • this currently requires the user to press tab (a lot) or use the mouse
  • jump to dag after opening page: in browser: ctrl/cml + L -> "airflow" -> press enter -> (already logged in) -> press cmd+k -> type dag id -> press enter

Related issues

Could not find any.

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIRelated to UI/UX. For Frontend Developers.kind:featureFeature Requestsneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions