You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "ionik0 (via GitHub)" <gi...@apache.org> on 2026/01/21 08:21:06 UTC
[PR] Add tooltip for dashboard layout toggle buttons [superset]
ionik0 opened a new pull request, #37304:
URL: https://github.com/apache/superset/pull/37304
### SUMMARY
Adds descriptive tooltips to the dashboard layout toggle buttons to improve usability and discoverability for users.
This helps new users understand the available layout modes without changing any existing behavior.
Closes #37303
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
**before adding the tooltip. (when i hover over it)**
<img width="1084" height="410" alt="Screenshot 2026-01-21 132133" src="https://github.com/user-attachments/assets/757720c7-f4a7-4a87-bade-6f6253c740ef" />
**after adding the tooltips.(when i hover over it)**
<img width="1909" height="900" alt="Screenshot 2026-01-21 115140" src="https://github.com/user-attachments/assets/4639e5c6-f9d9-4e2c-9c6c-27e9e4c9174b" />
<img width="1888" height="892" alt="Screenshot 2026-01-21 115205" src="https://github.com/user-attachments/assets/8982b2d9-601d-4e29-b3b9-20c51e4e0e54" />
<img width="1868" height="891" alt="Screenshot 2026-01-21 115218" src="https://github.com/user-attachments/assets/ffc19c36-9f9f-4b2e-8237-92306043bb20" />
<img width="947" height="377" alt="Screenshot 2026-01-21 135018" src="https://github.com/user-attachments/assets/a9c4f157-d7cf-42c4-ba04-08469d1d4e85" />
### TESTING INSTRUCTIONS
1. Run Superset locally using Docker
2. Navigate to Dashboards
3. Locate the layout toggle buttons (card / table view)
4. Hover over each toggle button
5. Verify that the correct tooltip text is displayed
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Required feature flags:
- [x] Changes UI
- [ ] Includes DB Migration (follow approval process in SIP-59)
- [ ] Introduces new feature or API
- [ ] 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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "EnxDev (via GitHub)" <gi...@apache.org>.
EnxDev commented on code in PR #37304:
URL: https://github.com/apache/superset/pull/37304#discussion_r2714328141
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +198,40 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+ const gridTitle = t('Grid view');
+const listTitle = t('List view');
+ return (
+ <ViewModeContainer>
+ <Tooltip title={gridTitle}>
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={e => {
+ e.currentTarget.blur();
+ setMode('card');
+ }}
+ className={cx('toggle-button', { active: mode === 'card' })}
+ >
+ <Icons.AppstoreOutlined iconSize="xl" />
+ </div>
+ </Tooltip>
+ <Tooltip title={listTitle}>
Review Comment:
```suggestion
<Tooltip title={t('List view')}>
```
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +198,40 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+ const gridTitle = t('Grid view');
+const listTitle = t('List view');
Review Comment:
```suggestion
```
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +198,40 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+ const gridTitle = t('Grid view');
+const listTitle = t('List view');
+ return (
+ <ViewModeContainer>
+ <Tooltip title={gridTitle}>
Review Comment:
```suggestion
<Tooltip title={t('Grid view')}>
```
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +198,40 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+ const gridTitle = t('Grid view');
Review Comment:
```suggestion
```
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3807171376
@EnxDev sir i am really sorry to keep on bothering you, but can you please approve the workflow once again?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3792050108
Yeah, removing the unintended comments. For the failing check, it's just pre-commit.
Superset uses Git pre-commit hooks courtesy of [pre-commit](https://pre-commit.com/). To install run the following:
```
pip3 install -r requirements/development.txt
pre-commit install
```
A series of checks will now run when you make a git commit.
Alternatively it is possible to run pre-commit by running pre-commit manually:
```
pre-commit run --all-files
```
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "EnxDev (via GitHub)" <gi...@apache.org>.
EnxDev commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3781195342
Superset uses Git pre-commit hooks courtesy of [pre-commit](https://pre-commit.com/). To install run the following:
```
pip3 install -r requirements/development.txt
pre-commit install
```
A series of checks will now run when you make a git commit.
Alternatively it is possible to run pre-commit by running pre-commit manually:
`pre-commit run --all-files`
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3824051623
@sfirke sir Iβm new to rebasing large repos and got stuck resolving conflicts in ListView.tsx.
Would it be okay if I re-created the PR on top of latest master instead?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3800232094
Sorry you are having such trouble. If it's any consolation, debugging your development environment is good real-world practice if you want to make further open-source contributions. I've had my share of trouble with this over my time contributing to Superset!
Look at the failing logs for pre-commit and you'll see that `prettier` failed with::
````
β Pre-commit check failed (exit code: 1).
π Modified files:
superset-frontend/src/components/ListView/ListView.tsx
```
Prettier fixes things like whitespace and indentation. It even makes the change to the file. But when it runs on cloud CI like this, that doesn't help. You need to run `prettier` locally, see what it changed, commit that change, then run it again and `prettier` should pass.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3798265020
@EnxDev sir, can you please give an approval for the workflow
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3828115636
Closing this PR in favor of #37581, which is rebased on the latest master.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Add tooltip for dashboard layout toggle buttons [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3780971702
CodeAnt AI Incremental review completed.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3782269880
CodeAnt AI Incremental review completed.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3803232345
Superset uses Git pre-commit hooks courtesy of [pre-commit](https://pre-commit.com/). To install run the following:
```
pip3 install -r requirements/development.txt
pre-commit install
```
A series of checks will now run when you make a git commit.
Alternatively it is possible to run pre-commit by running pre-commit manually:
```
pre-commit run --all-files
```
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3798427247
@EnxDev sir , CI failure seems infra-related.
All tests pass (970/970), Jest worker crashes in DatasourceControl.test.tsx due to child process exceptions.
This appears flaky and unrelated to ListView changes.
Requesting re-run.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on code in PR #37304:
URL: https://github.com/apache/superset/pull/37304#discussion_r2743075839
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -272,7 +277,7 @@ export function ListView<T extends object = any>({
filters = [],
bulkActions = [],
bulkSelectEnabled = false,
- disableBulkSelect = () => {},
+ disableBulkSelect = () => { },
Review Comment:
**Suggestion:** The function parameter default `disableBulkSelect = () => { }` silently no-ops when the parent does not provide a handler, which will make the BulkSelect "close" action ineffective; avoid providing a no-op default here (leave it undefined) so callers must explicitly opt in or let the component handle fallback behavior where `toggleAllRowsSelected(false)` can be used. [logic error]
<details>
<summary><b>Severity Level:</b> Major β οΈ</summary>
```mdx
- β Bulk-select close action may not disable bulk selection.
- β οΈ UI state can become inconsistent after closing alert.
- β οΈ Affects bulk-select workflow and controls visibility.
```
</details>
```suggestion
disableBulkSelect,
```
<details>
<summary><b>Steps of Reproduction β
</b></summary>
```mdx
1. Render a ListView with bulkSelectEnabled=true but without passing a disableBulkSelect
prop from the parent. The function parameter default is defined in
superset-frontend/src/components/ListView/ListView.tsx at line 280 (`disableBulkSelect =
() => { },`).
2. The BulkSelectWrapper is shown because bulkSelectEnabled is true; the wrapper is
rendered with onClose={disableBulkSelect} (ListView.tsx BulkSelectWrapper usage).
3. Click the Alert close button. The onClose handler executes the default no-op
(ListView.tsx:280) which does nothing, so the parent bulk select state (the prop
controlling whether the bulk controls should be visible) is not updated.
4. Result: the close action either visually reappears on next render or leaves internal
state inconsistent because the parent was never informed. If the parent expects to be
notified to turn off bulkSelectEnabled, that will never happen. If this default was
intentional, it hides missing handler bugs; otherwise it produces confusing behavior.
```
</details>
<details>
<summary><b>Prompt for AI Agent π€ </b></summary>
```mdx
This is a comment left during a code review.
**Path:** superset-frontend/src/components/ListView/ListView.tsx
**Line:** 280:280
**Comment:**
*Logic Error: The function parameter default `disableBulkSelect = () => { }` silently no-ops when the parent does not provide a handler, which will make the BulkSelect "close" action ineffective; avoid providing a no-op default here (leave it undefined) so callers must explicitly opt in or let the component handle fallback behavior where `toggleAllRowsSelected(false)` can be used.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
```
</details>
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -463,8 +469,8 @@ export function ListView<T extends object = any>({
current={pageIndex + 1}
pageSize={pageSize}
total={count}
- onChange={page => {
- gotoPage(page - 1);
+ onChange={(page: number) => {
+ setPage(page);
Review Comment:
**Suggestion:** The Pagination onChange handler only updates a local state (`setPage`) and does not call the table pagination controller (`gotoPage`), so clicking pages will not change the displayed page or trigger data fetch; change the handler to call `gotoPage(page - 1)` (Antd Pagination is 1-based) so the list actually navigates. [logic error]
<details>
<summary><b>Severity Level:</b> Critical π¨</summary>
```mdx
- β Card view pagination doesn't navigate or fetch data.
- β οΈ Users stuck on first page in card-mode lists.
- β οΈ Affects any ListView rendering CardCollection pagination.
```
</details>
```suggestion
gotoPage(page - 1);
```
<details>
<summary><b>Steps of Reproduction β
</b></summary>
```mdx
1. Open the application and navigate to a ListView rendered in card (grid) mode. The card
pagination UI is rendered in superset-frontend/src/components/ListView/ListView.tsx at the
pagination block (lines 468-474) where the Antd <Pagination> component is configured.
2. Inspect the ListView component state: ListView destructures gotoPage from the
useListViewState hook (superset-frontend/src/components/ListView/ListView.tsx: line 302)
which is the function that actually changes pageIndex and triggers data fetches.
3. Click any page number in the card-mode pagination control. The onChange handler at
superset-frontend/src/components/ListView/ListView.tsx:472-474 is executed; it currently
calls setPage(page) (state setter declared at ListView.tsx:294) instead of calling
gotoPage.
4. Because gotoPage is not invoked, the pageIndex in useListViewState does not change and
the fetchData effect in superset-frontend/src/components/ListView/utils.ts (fetchData call
at utils.ts:346) is not triggered β the visible items remain on the same page instead of
navigating.
```
</details>
<details>
<summary><b>Prompt for AI Agent π€ </b></summary>
```mdx
This is a comment left during a code review.
**Path:** superset-frontend/src/components/ListView/ListView.tsx
**Line:** 473:473
**Comment:**
*Logic Error: The Pagination onChange handler only updates a local state (`setPage`) and does not call the table pagination controller (`gotoPage`), so clicking pages will not change the displayed page or trigger data fetch; change the handler to call `gotoPage(page - 1)` (Antd Pagination is 1-based) so the list actually navigates.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
```
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3791893281
I approved the CI checks to run. I'm surprised to see all the `# type: ignore[attr-defined]` in files that seem unrelated to this, that feels to me like it is outside the scope of this PR?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on code in PR #37304:
URL: https://github.com/apache/superset/pull/37304#discussion_r2715134543
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +198,40 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+ const gridTitle = t('Grid view');
Review Comment:
Thanks for the suggestion, I have made the changes,
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3782398362
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3791364404
## [Codecov](https://app.codecov.io/gh/apache/superset/pull/37304?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:x: Patch coverage is `37.50000%` with `5 lines` in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 43.65%. Comparing base ([`2900258`](https://app.codecov.io/gh/apache/superset/commit/2900258e0515bb9f73bbc2c6c0c2d0e336d075d1?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`c5be5db`](https://app.codecov.io/gh/apache/superset/commit/c5be5dbe8eb40a8007d960581faed579fb892f0e?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 67 commits behind head on master.
| [Files with missing lines](https://app.codecov.io/gh/apache/superset/pull/37304?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [superset/mcp\_service/screenshot/webdriver\_pool.py](https://app.codecov.io/gh/apache/superset/pull/37304?src=pr&el=tree&filepath=superset%2Fmcp_service%2Fscreenshot%2Fwebdriver_pool.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQvbWNwX3NlcnZpY2Uvc2NyZWVuc2hvdC93ZWJkcml2ZXJfcG9vbC5weQ==) | 0.00% | [5 Missing :warning: ](https://app.codecov.io/gh/apache/superset/pull/37304?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #37304 +/- ##
===========================================
+ Coverage 0 43.65% +43.65%
===========================================
Files 0 642 +642
Lines 0 48997 +48997
Branches 0 5491 +5491
===========================================
+ Hits 0 21391 +21391
- Misses 0 27309 +27309
- Partials 0 297 +297
```
| [Flag](https://app.codecov.io/gh/apache/superset/pull/37304/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Ξ | |
|---|---|---|
| [hive](https://app.codecov.io/gh/apache/superset/pull/37304/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `41.91% <37.50%> (?)` | |
| [presto](https://app.codecov.io/gh/apache/superset/pull/37304/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `41.93% <37.50%> (?)` | |
| [python](https://app.codecov.io/gh/apache/superset/pull/37304/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `43.65% <37.50%> (?)` | |
| [unit](https://app.codecov.io/gh/apache/superset/pull/37304/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `100.00% <ΓΈ> (?)` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/superset/pull/37304?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Add tooltip for dashboard layout toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3777323045
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3798837952
@rusackas sir can you help me on this pr , i am unable to solve the failing check even after trying for days, i did the pre commit thing and the courtesy of pre commit but i am unable to get this pr mergeable
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3798443303
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on code in PR #37304:
URL: https://github.com/apache/superset/pull/37304#discussion_r2743333889
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -463,8 +469,8 @@ export function ListView<T extends object = any>({
current={pageIndex + 1}
pageSize={pageSize}
total={count}
- onChange={page => {
- gotoPage(page - 1);
+ onChange={(page: number) => {
+ setPage(page);
}}
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>Broken pagination logic</b></div>
<div id="fix">
The pagination onChange in card view now sets local state but doesn't update the page index, breaking pagination. It should call gotoPage to trigger data fetching.
</div>
<details>
<summary>
<b>Code suggestion</b>
</summary>
<blockquote>Check the AI-generated fix before applying</blockquote>
<div id="code">
````suggestion
onChange={page => {
gotoPage(page - 1);
}}
````
</div>
</details>
</div>
<small><i>Code Review Run #03dae4</i></small>
</div>
---
Should Bito avoid suggestions like this for future reviews? (<a href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
- [ ] Yes, avoid them
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Add tooltip for dashboard layout toggle buttons [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3780957077
CodeAnt AI is running Incremental review
---
### Thanks for using CodeAnt! π
We're free for open-source projects. if you're enjoying it, help us grow by sharing.
[Share on X](https://twitter.com/intent/tweet?text=Just%20tried%20%40CodeAntAI%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos.%20Worth%20checking%20out%3A&url=https%3A//codeant.ai) Β·
[Reddit](https://www.reddit.com/submit?title=Check%20out%20CodeAnt%20for%20automated%20code%20review&text=Just%20tried%20CodeAnt%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos.%20Worth%20checking%20out%3A%20https%3A//codeant.ai) Β·
[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcodeant.ai&mini=true&title=Check%20out%20CodeAnt%20for%20automated%20code%20review&summary=Just%20tried%20CodeAnt%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos)
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3791945485
> I approved the CI checks to run. I'm surprised to see all the `# type: ignore[attr-defined]` in files that seem unrelated to this, that feels to me like it is outside the scope of this PR?
Thanks for pointing that out, and apologies for the noise.
Those # type: ignore[attr-defined] changes were not part of the intended scope of this PR β they were introduced when I ran the pre-commit/mypy checks locally, which ended up touching some unrelated files.
I agree this makes the PR harder to review. I can revert those unrelated changes and keep this PR strictly focused on the original issue, or alternatively split them into a separate PR if thatβs preferred.
Please let me know what youβd like me to do, and sir...if its possible can you please guide me ...because i tried a lot and only 1 check is failing every time and I am unable to fix it π
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3790784150
> @ionik0 Superset uses Git pre-commit hooks courtesy of [pre-commit](https://pre-commit.com/). To install run the following:
>
> ```
> pip3 install -r requirements/development.txt
> pre-commit install
> ```
>
> A series of checks will now run when you make a git commit.
>
> Alternatively it is possible to run pre-commit by running pre-commit manually:
>
> `pre-commit run --all-files`
I did it but i still get the same error , actually i am contributing in an open source project for the first time in hopes for gsoc 2026
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on code in PR #37304:
URL: https://github.com/apache/superset/pull/37304#discussion_r2715135006
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +198,40 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+ const gridTitle = t('Grid view');
+const listTitle = t('List view');
Review Comment:
Thanks for the suggestion, I have made the changes,
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3819689056
<img width="1743" height="910" alt="Screenshot 2026-01-30 001434" src="https://github.com/user-attachments/assets/33d8bd3e-52b9-4d59-b79a-c761f8277093" />
@sfirke sir,
This time i think the checks passed locally, can you please approve for the workflow?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on code in PR #37304:
URL: https://github.com/apache/superset/pull/37304#discussion_r2743164610
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -463,8 +469,8 @@ export function ListView<T extends object = any>({
current={pageIndex + 1}
pageSize={pageSize}
total={count}
- onChange={page => {
- gotoPage(page - 1);
+ onChange={(page: number) => {
+ setPage(page);
Review Comment:
@sfirke sir can it be merged now? If not then can you please guide what to do? Code ant ai suggested some changes but if I do that then type-checking gives error and fails...what do I do?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "EnxDev (via GitHub)" <gi...@apache.org>.
EnxDev commented on code in PR #37304:
URL: https://github.com/apache/superset/pull/37304#discussion_r2717085996
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +198,38 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+ return (
+ <ViewModeContainer>
+ <Tooltip title={t('Grid view'}>
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={e => {
+ e.currentTarget.blur();
+ setMode('card');
+ }}
+ className={cx('toggle-button', { active: mode === 'card' })}
+ >
+ <Icons.AppstoreOutlined iconSize="xl" />
+ </div>
+ </Tooltip>
+ <Tooltip title={t('List view'}>
Review Comment:
```suggestion
<Tooltip title={t('List view')}>
```
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +198,38 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+ return (
+ <ViewModeContainer>
+ <Tooltip title={t('Grid view'}>
Review Comment:
```suggestion
<Tooltip title={t('Grid view')}>
```
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3782263246
CodeAnt AI is running Incremental review
---
### Thanks for using CodeAnt! π
We're free for open-source projects. if you're enjoying it, help us grow by sharing.
[Share on X](https://twitter.com/intent/tweet?text=Just%20tried%20%40CodeAntAI%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos.%20Worth%20checking%20out%3A&url=https%3A//codeant.ai) Β·
[Reddit](https://www.reddit.com/submit?title=Check%20out%20CodeAnt%20for%20automated%20code%20review&text=Just%20tried%20CodeAnt%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos.%20Worth%20checking%20out%3A%20https%3A//codeant.ai) Β·
[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcodeant.ai&mini=true&title=Check%20out%20CodeAnt%20for%20automated%20code%20review&summary=Just%20tried%20CodeAnt%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos)
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Add tooltip for dashboard layout toggle buttons [superset]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #37304:
URL: https://github.com/apache/superset/pull/37304#discussion_r2713944139
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +200,44 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+
+
+ return (
+ <ViewModeContainer>
+ <Tooltip title={gridTitle}>
Review Comment:
The variable 'gridTitle' is referenced but not defined. You need to define this variable with the appropriate tooltip text. Based on the context, this should use the t() function for internationalization, for example: const gridTitle = t('Grid view');
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +200,44 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+
+
+ return (
+ <ViewModeContainer>
+ <Tooltip title={gridTitle}>
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={e => {
+ console.log('Grid view icon clicked');
+ e.currentTarget.blur();
+ setMode('card');
+ }}
+ onMouseEnter={() => console.log('Mouse entered Grid view icon')}
+ className={cx('toggle-button', { active: mode === 'card' })}
+ >
+ <Icons.AppstoreOutlined iconSize="xl" />
+ </div>
+ </Tooltip>
+ <Tooltip title={listTitle}>
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={e => {
+ console.log('List view icon clicked');
Review Comment:
Remove this console.log debugging statement before merging. Debugging code should not be present in production code.
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +200,44 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+
+
+ return (
+ <ViewModeContainer>
+ <Tooltip title={gridTitle}>
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={e => {
+ console.log('Grid view icon clicked');
+ e.currentTarget.blur();
+ setMode('card');
+ }}
+ onMouseEnter={() => console.log('Mouse entered Grid view icon')}
+ className={cx('toggle-button', { active: mode === 'card' })}
+ >
+ <Icons.AppstoreOutlined iconSize="xl" />
+ </div>
+ </Tooltip>
+ <Tooltip title={listTitle}>
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={e => {
+ console.log('List view icon clicked');
+ e.currentTarget.blur();
+ setMode('table');
+ }}
+ onMouseEnter={() => console.log('Mouse entered List view icon')}
Review Comment:
Remove this console.log debugging statement before merging. Debugging code should not be present in production code.
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +200,44 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+
+
+ return (
+ <ViewModeContainer>
+ <Tooltip title={gridTitle}>
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={e => {
+ console.log('Grid view icon clicked');
+ e.currentTarget.blur();
+ setMode('card');
+ }}
+ onMouseEnter={() => console.log('Mouse entered Grid view icon')}
+ className={cx('toggle-button', { active: mode === 'card' })}
+ >
+ <Icons.AppstoreOutlined iconSize="xl" />
+ </div>
+ </Tooltip>
+ <Tooltip title={listTitle}>
Review Comment:
The variable 'listTitle' is referenced but not defined. You need to define this variable with the appropriate tooltip text. Based on the context, this should use the t() function for internationalization, for example: const listTitle = t('List view');
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -270,7 +285,7 @@ export function ListView<T extends object = any>({
filters = [],
bulkActions = [],
bulkSelectEnabled = false,
- disableBulkSelect = () => {},
+ disableBulkSelect = () => { },
Review Comment:
This spacing change appears unintentional. The arrow function formatting should remain consistent with the rest of the codebase. Revert this change to the original formatting: () => {}
```suggestion
disableBulkSelect = () => {},
```
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +200,44 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+
+
+ return (
+ <ViewModeContainer>
+ <Tooltip title={gridTitle}>
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={e => {
+ console.log('Grid view icon clicked');
+ e.currentTarget.blur();
+ setMode('card');
+ }}
+ onMouseEnter={() => console.log('Mouse entered Grid view icon')}
Review Comment:
Remove this console.log debugging statement before merging. Debugging code should not be present in production code.
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +200,44 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+
+
+ return (
+ <ViewModeContainer>
+ <Tooltip title={gridTitle}>
+ <div
+ role="button"
+ tabIndex={0}
+ onClick={e => {
+ console.log('Grid view icon clicked');
Review Comment:
Remove this console.log debugging statement before merging. Debugging code should not be present in production code.
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -28,8 +28,11 @@ import {
Icons,
EmptyState,
Loading,
+ Tooltip,
type EmptyStateProps,
} from '@superset-ui/core/components';
+
+
Review Comment:
Remove these unnecessary blank lines to maintain consistency with the codebase style.
```suggestion
```
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +200,44 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+
+
Review Comment:
Remove these unnecessary blank lines to maintain consistency with the codebase style.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3789304580
πͺ [Showtime](https://github.com/mistercrunch/superset-showtime) is building environment on [GHA](https://github.com/apache/superset/actions/runs/21281448426) for [02812a9](https://github.com/apache/superset/commit/02812a9)
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on code in PR #37304:
URL: https://github.com/apache/superset/pull/37304#discussion_r2722326259
##########
superset/mcp_service/screenshot/webdriver_pool.py:
##########
@@ -124,8 +124,8 @@ def _create_driver(
try:
# SECURITY FIX: Set up timeout protection for driver creation
- old_handler = signal.signal(signal.SIGALRM, _timeout_handler)
- signal.alarm(self.creation_timeout_seconds)
+ old_handler = signal.signal(signal.SIGALRM, _timeout_handler) # type: ignore[attr-defined]
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>Cross-platform timeout issue</b></div>
<div id="fix">
This code uses Unix-only signal.SIGALRM and signal.alarm for WebDriver creation timeout, causing runtime AttributeError on Windows. Superset supports Windows and has a cross-platform timeout utility in superset.utils.core that should be used instead to avoid duplication and ensure compatibility.
</div>
</div>
<details>
<summary><b>Citations</b></summary>
<ul>
<li>
Rule Violated: <a href="https://github.com/apache/superset/blob/4fa7e86/.cursor/rules/dev-standard.mdc#L27">dev-standard.mdc:27</a>
</li>
</ul>
</details>
<small><i>Code Review Run #34dcf6</i></small>
</div>
---
Should Bito avoid suggestions like this for future reviews? (<a href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
- [ ] Yes, avoid them
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3798842780
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3789401078
πͺ [Showtime](https://github.com/mistercrunch/superset-showtime) deployed environment on [GHA](https://github.com/apache/superset/actions/runs/21281448426) for [02812a9](https://github.com/apache/superset/commit/02812a9)
β’ **Environment:** http://34.219.224.3:8080 (admin/admin)
β’ **Lifetime:** 48h auto-cleanup
β’ **Updates:** New commits create fresh environments automatically
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3797158110
<img width="1919" height="556" alt="Screenshot 2026-01-26 012408" src="https://github.com/user-attachments/assets/b7e9d6d6-89ee-414d-8525-f2b6acf243e5" />
@sfirke sir, I am unable to get through this error even though i have been trying the whole day. How do i fix it? because of the failing of only one check i am unable to get it merged ππ
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3805104975
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Add tooltip for dashboard layout toggle buttons [superset]
Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3776790852
### <span aria-hidden="true">β
</span> Deploy Preview for *superset-docs-preview* ready!
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">π¨</span> Latest commit | db249f2b5192158e510b404ed629c7f559d244ee |
|<span aria-hidden="true">π</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/69708c73d28fcf0008da4281 |
|<span aria-hidden="true">π</span> Deploy Preview | [https://deploy-preview-37304--superset-docs-preview.netlify.app](https://deploy-preview-37304--superset-docs-preview.netlify.app) |
|<span aria-hidden="true">π±</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br /><br /><br />_Use your smartphone camera to open QR code link._</details> |
---
<!-- [superset-docs-preview Preview](https://deploy-preview-37304--superset-docs-preview.netlify.app) -->
_To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3781204788
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3785534499
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3791581242
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "EnxDev (via GitHub)" <gi...@apache.org>.
EnxDev commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3790663358
@ionik0 Superset uses Git pre-commit hooks courtesy of [pre-commit](https://pre-commit.com/). To install run the following:
```
pip3 install -r requirements/development.txt
pre-commit install
```
A series of checks will now run when you make a git commit.
Alternatively it is possible to run pre-commit by running pre-commit manually:
`pre-commit run --all-files`
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3789812743
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3805845939
@EnxDev sir can you give approval for the workflow?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3798842203
/review
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3819990554
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3819967673
@ionik0 pre-commit checks are still failing. It doesn't make sense for someone to review it until those are sorted out. When I click the "pre-commit checks / pre-commit (current) (pull_request)" failed test I see this in the logs
```
auto-walrus..............................................................Passed
mypy (main)..............................................................Failed
- hook id: mypy
- exit code: 1
superset/utils/core.py:707: error: Unused "type: ignore" comment [unused-ignore]
superset/utils/core.py:708: error: Unused "type: ignore" comment [unused-ignore]
superset/utils/core.py:717: error: Unused "type: ignore" comment [unused-ignore]
superset/mcp_service/screenshot/webdriver_pool.py:127: error: Unused "type: ignore" comment [unused-ignore]
superset/mcp_service/screenshot/webdriver_pool.py:128: error: Unused "type: ignore" comment [unused-ignore]
superset/mcp_service/screenshot/webdriver_pool.py:138: error: Unused "type: ignore" comment [unused-ignore]
superset/mcp_service/screenshot/webdriver_pool.py:179: error: Unused "type: ignore" comment [unused-ignore]
superset/mcp_service/screenshot/webdriver_pool.py:181: error: Unused "type: ignore" comment [unused-ignore]
tests/unit_tests/sql/execution/test_executor.py:1296: error: Item "None" of "str | None" has no attribute "lower" [union-attr]
tests/unit_tests/sql/execution/test_executor.py:1437: error: Unsupported right operand type for in ("str | None") [operator]
tests/unit_tests/sql/execution/test_executor.py:1468: error: Unsupported right operand type for in ("str | None") [operator]
tests/unit_tests/sql/execution/test_executor.py:1973: error: Unsupported right operand type for in ("str | None") [operator]
tests/unit_tests/sql/execution/test_executor.py:2013: error: Unsupported right operand type for in ("str | None") [operator]
Found 13 errors in 3 files (checked 1743 source files)
```
Your PR should not be touching those files as they are unrelated to this work.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Add tooltip for dashboard layout toggle buttons [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3776760267
CodeAnt AI is reviewing your PR.
---
### Thanks for using CodeAnt! π
We're free for open-source projects. if you're enjoying it, help us grow by sharing.
[Share on X](https://twitter.com/intent/tweet?text=Just%20tried%20%40CodeAntAI%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos.%20Worth%20checking%20out%3A&url=https%3A//codeant.ai) Β·
[Reddit](https://www.reddit.com/submit?title=Check%20out%20CodeAnt%20for%20automated%20code%20review&text=Just%20tried%20CodeAnt%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos.%20Worth%20checking%20out%3A%20https%3A//codeant.ai) Β·
[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcodeant.ai&mini=true&title=Check%20out%20CodeAnt%20for%20automated%20code%20review&summary=Just%20tried%20CodeAnt%20for%20automated%20code%20review%20and%20I%27m%20impressed%21%20Free%20for%20open%20source%20with%20a%20free%20trial%20for%20private%20repos)
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Add tooltip for dashboard layout toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3776760554
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] Add tooltip for dashboard layout toggle buttons [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3776770158
CodeAnt AI finished reviewing your PR.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on code in PR #37304:
URL: https://github.com/apache/superset/pull/37304#discussion_r2715131968
##########
superset-frontend/src/components/ListView/ListView.tsx:
##########
@@ -197,32 +198,38 @@ const ViewModeToggle = ({
}: {
mode: 'table' | 'card';
setMode: (mode: 'table' | 'card') => void;
-}) => (
- <ViewModeContainer>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('card');
- }}
- className={cx('toggle-button', { active: mode === 'card' })}
- >
- <Icons.AppstoreOutlined iconSize="xl" />
- </div>
- <div
- role="button"
- tabIndex={0}
- onClick={e => {
- e.currentTarget.blur();
- setMode('table');
- }}
- className={cx('toggle-button', { active: mode === 'table' })}
- >
- <Icons.UnorderedListOutlined iconSize="xl" />
- </div>
- </ViewModeContainer>
-);
+}) => {
+ return (
+ <ViewModeContainer>
+ <Tooltip title={t('Grid view'}>
Review Comment:
**Suggestion:** The translation function call is missing a closing parenthesis in the Tooltip title for the grid toggle, which will cause a JSX/compile error and prevent the component from rendering; close the call so it becomes t('Grid view'). [possible bug]
<details>
<summary><b>Severity Level:</b> Critical π¨</summary>
```mdx
- β Frontend dev server fails to compile.
- β ListView component cannot render anywhere.
- β CI frontend build step will fail.
```
</details>
```suggestion
<Tooltip title={t('Grid view')}>
```
<details>
<summary><b>Steps of Reproduction β
</b></summary>
```mdx
1. Open the file at superset-frontend/src/components/ListView/ListView.tsx and locate the
Tooltip on the grid toggle around line 204 (`<Tooltip title={t('Grid view'}>`).
2. Run the frontend build/dev server (e.g., from project root: `yarn dev` or `yarn
build`). The TypeScript/JSX parser runs against ListView.tsx during bundling.
3. The JSX parser encounters the malformed expression `t('Grid view'}` at ListView.tsx:204
and emits a compile/syntax error (unexpected token / unterminated call), failing the build
step.
4. Because this is a compile-time syntax error, the app will not bundle and the ListView
component (and any page importing it) cannot render. Note: the translation function is
defined at packages/superset-core/src/ui/translation/TranslatorSingleton.ts:66-68
(`function t(input: string, ...args: unknown[]) { ... }`), but the compile failure occurs
before runtime translation is executed.
```
</details>
<details>
<summary><b>Prompt for AI Agent π€ </b></summary>
```mdx
This is a comment left during a code review.
**Path:** superset-frontend/src/components/ListView/ListView.tsx
**Line:** 204:204
**Comment:**
*Possible Bug: The translation function call is missing a closing parenthesis in the Tooltip title for the grid toggle, which will cause a JSX/compile error and prevent the component from rendering; close the call so it becomes t('Grid view').
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
```
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3795861182
> > I approved the CI checks to run. I'm surprised to see all the `# type: ignore[attr-defined]` in files that seem unrelated to this, that feels to me like it is outside the scope of this PR?
>
> Sir @sfirke can you approve the CI checks once more, please?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3795860479
> I approved the CI checks to run. I'm surprised to see all the `# type: ignore[attr-defined]` in files that seem unrelated to this, that feels to me like it is outside the scope of this PR?
Sir can you approve the CI checks one more, please?
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3790786616
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on PR #37304:
URL: https://github.com/apache/superset/pull/37304#issuecomment-3824068132
Sure, go for it. In the new PR, mention this one so they are linked. Then close this one.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(list-view): Add tooltip for view mode toggle buttons [superset]
Posted by "ionik0 (via GitHub)" <gi...@apache.org>.
ionik0 closed pull request #37304: feat(list-view): Add tooltip for view mode toggle buttons
URL: https://github.com/apache/superset/pull/37304
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org