-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Feature/edge maintenance plugin beautification #55348
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
Feature/edge maintenance plugin beautification #55348
Conversation
988adf2 to
cb201e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the edge worker maintenance UI from an inline form to a dialog-based interface, improving user experience with better visual presentation and interaction patterns.
- Replaces inline maintenance form with a dedicated dialog component
- Separates maintenance operations into individual button components
- Fixes React DOM dependency issues for proper dialog rendering
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| www-hash.txt | Updates hash for built web assets |
| ui.py | Adds status code constants and maintenance comment validation |
| vite.config.ts | Adds ReactDOM global for external library compatibility |
| WorkerPage.tsx | Refactors to use new WorkerOperations component |
| WorkerOperations.tsx | New component orchestrating maintenance operations |
| OperationsCell.tsx | Removes old inline form implementation |
| MaintenanceExitButton.tsx | New component for exiting maintenance mode |
| MaintenanceEnterButton.tsx | New component with dialog for entering maintenance |
| main.tsx | Exposes ReactDOM globally for plugin compatibility |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...ders/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceEnterButton.tsx
Show resolved
Hide resolved
...ders/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceEnterButton.tsx
Outdated
Show resolved
Hide resolved
...ders/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceEnterButton.tsx
Show resolved
Hide resolved
fbb4116 to
5eee9f4
Compare
kaxil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly a rubber stamp for merge. Backend changes looks good
|
Merging based on Dheeraj's approval too |
pierrejeambrun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for the flushSync fix 🎉.
Here is a follow up PR to include that by default to the bootstrapping tool.
#55451
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```
@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-( ``` error: Authentication error: Authentication required: You must have push access to verify locks error: failed to push some refs to 'github.com:dheerajturaga/airflow.git' ``` ...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR? The last commit [Rework maintenance dialog to be a dialog](apache@7e6d13c) has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful: ``` Uncaught TypeError: can't access property "flushSync", ne is undefined R http://localhost:28080/edge_worker/static/main.umd.cjs:16 ```

@dheerajturaga somehow I was not able to pugh to your repo directly git gave me an error :-(
...anyway, another way around, openeing a draft PR here, can you cherry-pick the commits down to your PR?
The last commit Rework maintenance dialog to be a dialog has a problem though: Dialog is not opening, it makes a JS script error which is not much helpful:
UPDATE: THANKS to @shubhamraj-git - your proposal fixed it! Finally "beautifil" UI is now coming-up with: