vatsrahul1001 opened a new pull request, #77768:
URL: https://github.com/apache/airflow/pull/77768

   * Keep a failing page plugin from taking down the page
   
   A page plugin that throws while rendering, or in an effect, reached the
   route's error element and replaced the whole page it was only meant to
   add to. Plugin actions already had a boundary for this; page plugins now
   share it, so a failing plugin leaves the page as it would be without it
   and the error goes to the console, as a bundle that fails to load already
   does.
   
   ReactPlugin also called lazy() during render, which is a new component
   type on every render unless the React Compiler memoizes it.
   
   Co-Authored-By: Claude <[email protected]>
   
   * Give a failed plugin another try after navigating
   
   The Dag, run and task pages keep their route element mounted when only
   the params change, so a plugin that threw on one Dag stayed hidden on
   every other Dag until a full reload.
   
   Co-Authored-By: Claude <[email protected]>
   
   ---------
   
   Co-authored-by: Claude <[email protected]>
   (cherry picked from commit c94f4f4eff33b8cab1d68de3d92473a4fb988fa5)
   
   Co-authored-by: Brent Bovenzi <[email protected]>
   
   ---
   
   The automatic backport failed on a conflict in 
`airflow-core/src/airflow/ui/src/pages/ReactPlugin.tsx`, so this was 
cherry-picked manually (`-x`). The other files applied cleanly.
   
   **Conflict resolution:**
   - Import line: `import { type FC, lazy, Suspense, useState } from "react";`. 
`v3-4-test` still uses `FC<PluginProps>`, while `main` has already moved to 
`ComponentType`.
   - Lint comment: `// oxlint-disable-next-line react/hook-use-state` became 
`// eslint-disable-next-line react/hook-use-state`. `v3-4-test` lints with 
ESLint (no oxlint), where `react/hook-use-state` is set to `ERROR`.
   
   **Verified locally:** `vitest` on the plugin tests: 3 files / 48 tests 
passed; `eslint --quiet` clean on the touched files; `tsc --p 
tsconfig.app.json` clean.
   
   Backport of #77408.
   
   Generated-by: Claude Code
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to