hasura / hasura/graphql-engine

Allow users to close a schema treeview node in the data manager

Open
#10,320 2 comments 0 reactions 0 assignees View on GitHub
k/enhancement
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Is your proposal related to a problem?

When exploring the schemas and tables in the data manager view, you can open a schema and see the tables that are below. But you cannot close it again. This is counter intuitive since most treeviews allow you to expand and collapse a treeview node

### Describe the solution you'd like

When a user clicks a treeview node that is already open, it should collapse again.

### Describe alternatives you've considered

none

![image](https://github.com/hasura/graphql-engine/assets/1710840/2d6e6e29-1360-40a0-b223-29f8a4ce0fe7)

Contributor guide

Open the contributing guide

Research direction

Start at the data manager view's schema and table treeview entry point and reproduce the current expand behavior. Trace how an already-open schema node is handled on click, then verify that clicking it again collapses the node while preserving expansion of other nodes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.