rusackas opened a new pull request, #37530:
URL: https://github.com/apache/superset/pull/37530

   ### SUMMARY
   
   Migrates deprecated antd v5-era sub-component patterns to the antd v6 
`items` prop pattern. These deprecated APIs emit console warnings and will be 
removed in antd v7.
   
   **Changes:**
   - **`DatabasePage.tsx`**: Replace 4 usages of `Collapse.Panel` with 
`Collapse` `items` prop, and 1 usage of `Tabs.TabPane` with `Tabs` `items` prop
   - **`community.tsx`**: Replace deprecated `List` / `List.Item` / 
`List.Item.Meta` with a plain HTML `<ul>` list (the `List` component was 
deprecated in antd v6 and removed from documentation)
   
   **Before (deprecated):**
   ```tsx
   const { Panel } = Collapse;
   const { TabPane } = Tabs;
   
   <Collapse>
     <Panel header="..." key="1">content</Panel>
   </Collapse>
   
   <Tabs>
     <TabPane tab="..." key="1">content</TabPane>
   </Tabs>
   ```
   
   **After (v6 items prop):**
   ```tsx
   <Collapse items={[{ key: '1', label: '...', children: content }]} />
   
   <Tabs items={[{ key: '1', label: '...', children: content }]} />
   ```
   
   ### TESTING INSTRUCTIONS
   
   1. Build docs: `cd docs && yarn build`
   2. Serve locally: `npx docusaurus serve`
   3. Check the following pages render correctly:
      - Homepage (`/`) — carousels working
      - Community page (`/community`) — community links display with icons, 
titles, and descriptions
      - Any database documentation page (e.g., 
`/docs/databases/supported/postgresql`) — verify:
        - Driver tabs render correctly
        - Authentication methods collapse/expand
        - Engine parameters collapse/expand
        - Compatible databases collapse/expand (all expanded by default)
        - Troubleshooting section collapse/expand
   4. Verify no antd deprecation warnings in the browser console
   
   ### ADDITIONAL INFORMATION
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [x] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [x] Removes existing feature or API


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to