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

   Third of the deferred items from #70777.
   
   v4 rewrites the public API: `PanelGroup` → `Group`, `PanelResizeHandle` → 
`Separator`, `direction` → `orientation`, `autoSaveId` → the 
`useDefaultLayout({ id })` hook, `ref` → `groupRef` (via `useGroupRef`), 
`ImperativePanelGroupHandle` → `GroupImperativeHandle`. `onDragging` is gone 
from `Separator` — the drag-end "refit graph zoom" behavior in `DetailsLayout` 
and `AssetLayout` now runs from `Group`'s `onLayoutChanged`, branching on 
`meta.isUserInteraction` so `PanelButtons`' programmatic `setLayout` doesn't 
double-fit. `Panel`'s `order` prop is gone (source order is used). `setLayout` 
now takes a `{ [panelId]: percentage }` map instead of an ordered array.
   
   v4's `readLegacyLayout` transparently migrates the v3 `localStorage` entries 
on first load, so users' remembered panel widths survive the upgrade.
   
   `AssetLayout` panels get stable `id="asset-graph"` / `id="asset-details"` 
because v4 keys persistence by panel id — without explicit ids, 
`useId`-generated values change across reloads and layout wouldn't restore.
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.7)
   
   Generated-by: Claude Code (Opus 4.7) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
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