You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ms...@apache.org on 2025/07/16 10:22:23 UTC

(superset) branch msyavuz/fix/remove-antd5-prefix created (now fd320d8305)

This is an automated email from the ASF dual-hosted git repository.

msyavuz pushed a change to branch msyavuz/fix/remove-antd5-prefix
in repository https://gitbox.apache.org/repos/asf/superset.git


      at fd320d8305 fix(theming): Remove leftover antd5 prefix

This branch includes the following new commits:

     new fd320d8305 fix(theming): Remove leftover antd5 prefix

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(superset) 01/01: fix(theming): Remove leftover antd5 prefix

Posted by ms...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

msyavuz pushed a commit to branch msyavuz/fix/remove-antd5-prefix
in repository https://gitbox.apache.org/repos/asf/superset.git

commit fd320d830520099bd6a95d79dae401cf6518b7d5
Author: Mehmet Salih Yavuz <sa...@proton.me>
AuthorDate: Wed Jul 16 13:21:42 2025 +0300

    fix(theming): Remove leftover antd5 prefix
---
 .../src/components/PopoverDropdown/index.tsx               |  2 +-
 .../superset-ui-core/src/components/Radio/index.tsx        | 14 +++++++-------
 .../src/SqlLab/components/SqlEditor/index.tsx              |  2 +-
 superset-frontend/src/features/groups/GroupListModal.tsx   |  2 +-
 .../src/filters/components/Range/RangeFilterPlugin.tsx     |  2 +-
 superset-frontend/src/pages/ActionLog/index.tsx            |  8 ++++----
 superset-frontend/src/pages/Login/index.tsx                |  2 +-
 superset-frontend/src/pages/Register/index.tsx             |  2 +-
 superset-frontend/src/pages/UserInfo/index.tsx             |  4 ++--
 superset/utils/webdriver.py                                | 14 +++++++-------
 10 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/superset-frontend/packages/superset-ui-core/src/components/PopoverDropdown/index.tsx b/superset-frontend/packages/superset-ui-core/src/components/PopoverDropdown/index.tsx
index 7d07e97c8e..60b6cc1ad7 100644
--- a/superset-frontend/packages/superset-ui-core/src/components/PopoverDropdown/index.tsx
+++ b/superset-frontend/packages/superset-ui-core/src/components/PopoverDropdown/index.tsx
@@ -45,7 +45,7 @@ interface HandleSelectProps {
 }
 
 const menuItemStyles = (theme: any) => css`
-  &.antd5-menu-item {
+  &.ant-menu-item {
     height: auto;
     line-height: 1.4;
 
diff --git a/superset-frontend/packages/superset-ui-core/src/components/Radio/index.tsx b/superset-frontend/packages/superset-ui-core/src/components/Radio/index.tsx
index 9f5d3e8364..0d007db7ce 100644
--- a/superset-frontend/packages/superset-ui-core/src/components/Radio/index.tsx
+++ b/superset-frontend/packages/superset-ui-core/src/components/Radio/index.tsx
@@ -17,7 +17,7 @@
  * under the License.
  */
 import {
-  Radio as Antd5Radio,
+  Radio as AntRadio,
   type CheckboxOptionType,
   type RadioGroupProps,
 } from 'antd';
@@ -40,19 +40,19 @@ const RadioGroup = ({
   ...props
 }: RadioGroupWrapperProps) => {
   const content = options.map((option: CheckboxOptionType) => (
-    <Antd5Radio key={option.value} value={option.value}>
+    <AntRadio key={option.value} value={option.value}>
       {option.label}
-    </Antd5Radio>
+    </AntRadio>
   ));
   return (
-    <Antd5Radio.Group {...props}>
+    <AntRadio.Group {...props}>
       {spaceConfig ? <Space {...spaceConfig}>{content}</Space> : content}
-    </Antd5Radio.Group>
+    </AntRadio.Group>
   );
 };
-export const Radio = Object.assign(Antd5Radio, {
+export const Radio = Object.assign(AntRadio, {
   GroupWrapper: RadioGroup,
-  Button: Antd5Radio.Button,
+  Button: AntRadio.Button,
 });
 export type {
   RadioChangeEvent,
diff --git a/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx b/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx
index debf8d1830..8834a0cd2f 100644
--- a/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx
+++ b/superset-frontend/src/SqlLab/components/SqlEditor/index.tsx
@@ -926,7 +926,7 @@ const SqlEditor: FC<Props> = ({
       css={css`
         margin-bottom: ${theme.sizeUnit * 2}px;
         padding-top: ${theme.sizeUnit * 4}px;
-        .antd5-alert-action {
+        .ant-alert-action {
           align-self: center;
         }
       `}
diff --git a/superset-frontend/src/features/groups/GroupListModal.tsx b/superset-frontend/src/features/groups/GroupListModal.tsx
index d20e9066c9..baf728f5b8 100644
--- a/superset-frontend/src/features/groups/GroupListModal.tsx
+++ b/superset-frontend/src/features/groups/GroupListModal.tsx
@@ -132,7 +132,7 @@ function GroupListModal({
             value: role.id,
             label: role.name,
           }))}
-          getPopupContainer={trigger => trigger.closest('.antd5-modal-content')}
+          getPopupContainer={trigger => trigger.closest('.ant-modal-content')}
         />
       </FormItem>
       <FormItem name="users" label={t('Users')}>
diff --git a/superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx b/superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx
index 8e6504d954..a4bdd43480 100644
--- a/superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx
+++ b/superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx
@@ -54,7 +54,7 @@ const Wrapper = styled.div`
   justify-content: space-between;
   width: 100%;
 
-  .antd5-input-number {
+  .ant-input-number {
     min-width: 80px;
     position: relative;
   }
diff --git a/superset-frontend/src/pages/ActionLog/index.tsx b/superset-frontend/src/pages/ActionLog/index.tsx
index f48d583b83..1087c19291 100644
--- a/superset-frontend/src/pages/ActionLog/index.tsx
+++ b/superset-frontend/src/pages/ActionLog/index.tsx
@@ -196,10 +196,10 @@ function ActionLogList() {
         }: any) => (
           <Typography.Text
             css={css`
-              .antd5-typography-copy {
+              .ant-typography-copy {
                 visibility: hidden;
               }
-              &:hover .antd5-typography-copy {
+              &:hover .ant-typography-copy {
                 visibility: visible;
               }
             `}
@@ -224,10 +224,10 @@ function ActionLogList() {
         }: any) => (
           <Typography.Text
             css={css`
-              .antd5-typography-copy {
+              .ant-typography-copy {
                 visibility: hidden;
               }
-              &:hover .antd5-typography-copy {
+              &:hover .ant-typography-copy {
                 visibility: visible;
               }
             `}
diff --git a/superset-frontend/src/pages/Login/index.tsx b/superset-frontend/src/pages/Login/index.tsx
index 9238eec165..8c56a4c8c9 100644
--- a/superset-frontend/src/pages/Login/index.tsx
+++ b/superset-frontend/src/pages/Login/index.tsx
@@ -62,7 +62,7 @@ const StyledCard = styled(Card)`
     margin-top: ${theme.marginXL}px;
     color: ${theme.colorBgContainer};
     background: ${theme.colorBgBase};
-    .antd5-form-item-label label {
+    .ant-form-item-label label {
       color: ${theme.colorPrimary};
     }
   `}
diff --git a/superset-frontend/src/pages/Register/index.tsx b/superset-frontend/src/pages/Register/index.tsx
index 473bbf6474..4697417811 100644
--- a/superset-frontend/src/pages/Register/index.tsx
+++ b/superset-frontend/src/pages/Register/index.tsx
@@ -45,7 +45,7 @@ const StyledCard = styled(Card)`
     width: 50%;
     margin-top: ${theme.marginXL}px;
     background: ${theme.colorBgBase};
-    .antd5-form-item-label label {
+    .ant-form-item-label label {
       color: ${theme.colorPrimary};
     }
   `}
diff --git a/superset-frontend/src/pages/UserInfo/index.tsx b/superset-frontend/src/pages/UserInfo/index.tsx
index 3966ea9957..c02cc0f2a1 100644
--- a/superset-frontend/src/pages/UserInfo/index.tsx
+++ b/superset-frontend/src/pages/UserInfo/index.tsx
@@ -54,11 +54,11 @@ const DescriptionsContainer = styled.div`
 
 const StyledLayout = styled.div`
   ${({ theme }) => css`
-    .antd5-row {
+    .ant-row {
       margin: 0px ${theme.sizeUnit * 3}px ${theme.sizeUnit * 6}px
         ${theme.sizeUnit * 3}px;
     }
-    && .menu > .antd5-menu {
+    && .menu > .ant-menu {
       padding: 0px;
     }
     && .nav-right {
diff --git a/superset/utils/webdriver.py b/superset/utils/webdriver.py
index 0ad2c5eb6b..3216521bf1 100644
--- a/superset/utils/webdriver.py
+++ b/superset/utils/webdriver.py
@@ -108,8 +108,8 @@ class WebDriverPlaywright(WebDriverProxy):
                 alert_div.get_by_role("button").click()
 
                 # wait for modal to show up
-                page.locator(".antd5-modal-content").wait_for(state="visible")
-                err_msg_div = page.locator(".antd5-modal-content .antd5-modal-body")
+                page.locator(".ant-modal-content").wait_for(state="visible")
+                err_msg_div = page.locator(".ant-modal-content .ant-modal-body")
                 #
                 # # collect error message
                 error_messages.append(err_msg_div.text_content())
@@ -118,10 +118,10 @@ class WebDriverPlaywright(WebDriverProxy):
                 error_as_html = err_msg_div.inner_html().replace("'", "\\'")
                 #
                 # # close modal after collecting error messages
-                page.locator(".antd5-modal-content .antd5-modal-close").click()
+                page.locator(".ant-modal-content .ant-modal-close").click()
                 #
                 # # wait until the modal becomes invisible
-                page.locator(".antd5-modal-content").wait_for(state="detached")
+                page.locator(".ant-modal-content").wait_for(state="detached")
                 try:
                     # Even if some errors can't be updated in the screenshot,
                     # keep all the errors in the server log and do not fail the loop
@@ -347,17 +347,17 @@ class WebDriverSelenium(WebDriverProxy):
                     current_app.config["SCREENSHOT_WAIT_FOR_ERROR_MODAL_VISIBLE"],
                 ).until(
                     EC.visibility_of_any_elements_located(
-                        (By.CLASS_NAME, "antd5-modal-content")
+                        (By.CLASS_NAME, "ant-modal-content")
                     )
                 )[0]
 
-                err_msg_div = modal.find_element(By.CLASS_NAME, "antd5-modal-body")
+                err_msg_div = modal.find_element(By.CLASS_NAME, "ant-modal-body")
 
                 # collect error message
                 error_messages.append(err_msg_div.text)
 
                 # close modal after collecting error messages
-                modal.find_element(By.CLASS_NAME, "antd5-modal-close").click()
+                modal.find_element(By.CLASS_NAME, "ant-modal-close").click()
 
                 # wait until the modal becomes invisible
                 WebDriverWait(