Skip to content

Collapse/Expand All button does not update based on manual expand/collapse actions for tables #557

@sakumar07

Description

@sakumar07

Is there an existing issue for this?

  • I confirm that I have not found an existing or similar issue.

How to reproduce the issue

  1. Navigate to database catalog
  2. clicks on add database button and upload a database
  3. click on query tab
  4. Collapse all tables using either the caret or the "Collapse All" button.
  5. Observe that the button changes to "Expand All".
  6. Manually expand the SCHOOLS table by clicking its caret.
  7. Observe that the button still reads "Collapse All" instead of updating to reflect the new state.

Expected Result

When all tables are collapsed, the button should display "Expand All".
When all (or any) tables are expanded, the button should display "Collapse All".
The button label should always reflect the true state of the sidebar, regardless of whether it's changed via the button or manual (individual) table actions.

Actual Results

The button text can become out of sync with the expand/collapse state if actions are performed manually rather than through the button.
This could lead to confusion about what action the button will perform.

Additional Context

Image

Requirements or Tasks

No response

Have you reproduced the issue with at least the latest released version?

  • Yes

I have checked my terminal/console and have included relevant text here?

  • Yes

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions