SachinyadavAug20 commented on issue #77436:
URL: https://github.com/apache/airflow/issues/77436#issuecomment-7063714571

   ### Implementation Update & UI Preview:
   
   I have put together a local working implementation of this feature and 
verified it with tests
   
   #### Working UI in User Settings (`/settings`):
   
   <img width="1906" height="1046" alt="image" 
src="https://github.com/user-attachments/assets/e5a44b14-550a-46f6-b3b5-11567f02634c";
 />
   
   #### Summary of Implementation:
   
   - **Hook (`useUserSettings.ts`):** Added a dedicated `useDefaultDagView()` 
hook wrapping `useLocalStorage<DagView>(DEFAULT_DAG_VIEW_KEY, "grid")`.
   - **User Settings (`Settings.tsx`):** Added a dedicated **Dag View** section 
between *Dags List* and *Graph* with options for **Grid** (default), **Graph**, 
and **Gantt**.
   - **Details Layout (`DetailsLayout.tsx`):** Switched to 
`useDefaultDagView()` so opening any DAG seamlessly respects the user's 
configured preference.
   - **Localization (`common.json`):** Added i18n translation keys under 
`settings.dagView`.
   - **Testing (`Settings.test.tsx`):** Added unit test coverage verifying 
default value (`grid`), dropdown rendering, and state persistence.
   
   All unit tests (`vitest`), linter (`oxlint`, `eslint`), and formatting 
(`oxfmt`) pass cleanly.
   
   I have the branch ready with DCO sign-off and can submit the pull request 
whenever maintainers are happy to proceed!


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