You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2026/04/28 13:28:53 UTC

(superset) branch 6.1 updated (e6110a8c7ba -> 4ecb5570326)

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

michael-s-molina pushed a change to branch 6.1
in repository https://gitbox.apache.org/repos/asf/superset.git


 discard e6110a8c7ba fix(theme): set color-scheme on html to fix dark mode scrollbars (#39704)
     new 4ecb5570326 fix(theme): set color-scheme on html to fix dark mode scrollbars (#39704)

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (e6110a8c7ba)
            \
             N -- N -- N   refs/heads/6.1 (4ecb5570326)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:
 .../DatasetList/DatasetList.permissions.test.tsx   | 25 +++++++++++-----------
 1 file changed, 13 insertions(+), 12 deletions(-)


(superset) 01/01: fix(theme): set color-scheme on html to fix dark mode scrollbars (#39704)

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

michael-s-molina pushed a commit to branch 6.1
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 4ecb5570326a0957fede53169a95a1655c54f51e
Author: Michael S. Molina <70...@users.noreply.github.com>
AuthorDate: Tue Apr 28 09:17:11 2026 -0300

    fix(theme): set color-scheme on html to fix dark mode scrollbars (#39704)
    
    Co-authored-by: Claude Sonnet 4.6 <no...@anthropic.com>
    (cherry picked from commit 7bee2afa8e43372c929fe9640cb0b9be0646e99f)
---
 .../superset-core/src/theme/GlobalStyles.tsx       |  6 ++++++
 .../DatasetList/DatasetList.permissions.test.tsx   | 25 +++++++++++-----------
 tests/integration_tests/queries/api_tests.py       | 12 ++++++-----
 3 files changed, 26 insertions(+), 17 deletions(-)

diff --git a/superset-frontend/packages/superset-core/src/theme/GlobalStyles.tsx b/superset-frontend/packages/superset-core/src/theme/GlobalStyles.tsx
index 33a30a9fa61..7c750d2087f 100644
--- a/superset-frontend/packages/superset-core/src/theme/GlobalStyles.tsx
+++ b/superset-frontend/packages/superset-core/src/theme/GlobalStyles.tsx
@@ -29,14 +29,20 @@ import '@fontsource/ibm-plex-mono/600.css';
 /* eslint-enable import/extensions */
 
 import { css, useTheme, Global } from '@emotion/react';
+import { useThemeMode } from './utils/themeUtils';
 
 export const GlobalStyles = () => {
   const theme = useTheme();
+  const isDark = useThemeMode();
   return (
     <Global
       key={`global-${theme.colorLink}`}
       styles={css`
         // SPA
+        html {
+          color-scheme: ${isDark ? 'dark' : 'light'};
+        }
+
         html,
         body,
         #app {
diff --git a/superset-frontend/src/pages/DatasetList/DatasetList.permissions.test.tsx b/superset-frontend/src/pages/DatasetList/DatasetList.permissions.test.tsx
index d69594fbdc0..1ceccd027be 100644
--- a/superset-frontend/src/pages/DatasetList/DatasetList.permissions.test.tsx
+++ b/superset-frontend/src/pages/DatasetList/DatasetList.permissions.test.tsx
@@ -63,11 +63,9 @@ test('admin users see all UI elements', async () => {
 
   renderDatasetList(mockAdminUser);
 
-  expect(await screen.findByText('Datasets')).toBeInTheDocument();
-
-  // Admin should see create button
+  // Admin should see create button — wait for permissions to load
   expect(
-    screen.getByRole('button', { name: /(?:plus\s*)?Dataset$/i }),
+    await screen.findByRole('button', { name: /(?:plus\s*)?Dataset$/i }),
   ).toBeInTheDocument();
 
   // Admin should see import button
@@ -80,14 +78,17 @@ test('admin users see all UI elements', async () => {
     screen.getByRole('button', { name: /bulk select/i }),
   ).toBeInTheDocument();
 
-  // Admin should see actions column - wait for table first, then check column
-  const table = await screen.findByTestId('listview-table');
-  await waitFor(() => {
-    expect(
-      within(table).getByRole('columnheader', { name: /Actions/i }),
-    ).toBeInTheDocument();
-  });
-}, 45000);
+  // Admin should see actions column — wait for table and data to load
+  await waitFor(
+    () => {
+      const table = screen.getByTestId('listview-table');
+      expect(
+        within(table).getByRole('columnheader', { name: /Actions/i }),
+      ).toBeInTheDocument();
+    },
+    { timeout: 10000 },
+  );
+});
 
 test('read-only users cannot see Actions column', async () => {
   // Setup API with read-only permissions
diff --git a/tests/integration_tests/queries/api_tests.py b/tests/integration_tests/queries/api_tests.py
index a4ed1ddc697..86da8432800 100644
--- a/tests/integration_tests/queries/api_tests.py
+++ b/tests/integration_tests/queries/api_tests.py
@@ -97,9 +97,11 @@ class TestQueryApi(SupersetTestCase):
                         self.get_random_string(),
                         sql=f"SELECT col1, col2 from table{cx}",  # noqa: S608
                         rows=cx,
-                        status=QueryStatus.SUCCESS
-                        if (cx % 2) == 0
-                        else QueryStatus.RUNNING,
+                        status=(
+                            QueryStatus.SUCCESS
+                            if (cx % 2) == 0
+                            else QueryStatus.RUNNING
+                        ),
                     )
                 )
             queries.append(
@@ -433,7 +435,7 @@ class TestQueryApi(SupersetTestCase):
             "order_direction": "asc",
             "filters": [{"col": "sql_editor_id", "opr": "eq", "value": test_editor_id}],
         }
-        uri = f"api/v1/query/?q={rison.dumps(arguments)}"
+        uri = f"api/v1/query/?q={prison.dumps(arguments)}"
         rv = self.client.get(uri)
         assert rv.status_code == 200
         data = rv.get_json()
@@ -442,7 +444,7 @@ class TestQueryApi(SupersetTestCase):
 
         # descending should be the reverse
         arguments["order_direction"] = "desc"
-        uri = f"api/v1/query/?q={rison.dumps(arguments)}"
+        uri = f"api/v1/query/?q={prison.dumps(arguments)}"
         rv = self.client.get(uri)
         assert rv.status_code == 200
         data = rv.get_json()