himanshuchawla0807-gif opened a new pull request, #75196:
URL: https://github.com/apache/airflow/pull/75196

   Switching from bundle `a|b`, folder `c` to bundle `a`, folder `b|c` leaves 
the newly selected folder hidden because both selections produce the same 
delimiter-joined change key. Serialize the selection fields as a tuple so the 
new bundle and selected folder expand correctly.
   
   The regression checks selection and visibility after rerendering. It fails 
with the previous key construction and passes with this fix. Existing manual 
collapse/expansion behavior remains covered.
   
   Validation:
   - 31 folder component/tree tests passed.
   - Full UI suite: 1,981 tests across 242 files passed. The first run exposed 
an unrelated timing-sensitive variable-form assertion; its unchanged scoped 
rerun and the full confirmation run passed.
   - Simple-auth UI test passed.
   - ESLint, TypeScript, commit hooks, regular and manual prek checks passed, 
including production asset compilation.
   
   Before/after below use the actual `DagFolderTree` component with local 
fixture folders, rather than a deployed Airflow API server.
   
   | Before | After |
   | --- | --- |
   | ![Selected folder stays 
hidden](https://raw.githubusercontent.com/himanshuchawla0807-gif/airflow/1ec859d57cef2750a661cf23095b91099c1e14d7/selection-before.png)
 | ![Selected folder becomes 
visible](https://raw.githubusercontent.com/himanshuchawla0807-gif/airflow/1ec859d57cef2750a661cf23095b91099c1e14d7/selection-after.png)
 |
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — OpenAI Codex
   
   Generated-by: OpenAI Codex following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions).
   
   ---
   Drafted-by: OpenAI Codex (no human review before posting)
   


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