Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(toolbar): Refactor toolbar and enhance functionality #1219

Merged
merged 34 commits into from May 14, 2024

Conversation

msfstef
Copy link
Contributor

@msfstef msfstef commented May 2, 2024

Significant overhaul of debug toolbar, using themed RadixUI components and Glide Data Grid to minimize project complexity on our side.

Toolbar now offers 5 tabs:

  • Connection - inspect connection status and toggle it on and off
  • Local DB - view stored tables and their schemas and allow resetting local DB
  • Shapes - this needs work and is currently a bit hacky but gives an overview of active shape subscriptions
  • Inspect Tables - inspect contents of local tables (including internal ones), gets updated live
  • Shell - execute queries and view them in either table or JSON format, ultimate debug tool

Attaching some screenshots:

Screenshot 2024-05-08 at 16 17 01 Screenshot 2024-05-08 at 16 17 08 Screenshot 2024-05-08 at 16 17 14 Screenshot 2024-05-08 at 16 17 20 Screenshot 2024-05-08 at 16 17 31

P.S. with the recent release of PG on the client and PGlite support I'll have to also introduce multi-dialect support to this but I'll do it in a separate PR, for now it's SQLite focused.

@msfstef msfstef force-pushed the msfstef/improve-debug-toolbar-ui branch from b06bdb3 to 58eabec Compare May 8, 2024 13:01
@msfstef msfstef marked this pull request as ready for review May 8, 2024 13:24
@msfstef msfstef requested review from kevin-dp and samwillis May 8, 2024 13:24
@msfstef msfstef force-pushed the msfstef/improve-debug-toolbar-ui branch from 8febb3b to 76ac2c2 Compare May 14, 2024 07:53
Copy link
Contributor

@samwillis samwillis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@msfstef msfstef merged commit 8369649 into main May 14, 2024
19 of 21 checks passed
@msfstef msfstef deleted the msfstef/improve-debug-toolbar-ui branch May 14, 2024 08:54
alco pushed a commit that referenced this pull request May 19, 2024
Significant overhaul of debug toolbar, using [themed RadixUI
components](https://www.radix-ui.com/themes/docs/overview/getting-started)
and [Glide Data Grid](https://grid.glideapps.com/) to minimize project
complexity on our side.

Toolbar now offers 5 tabs:
- **Connection** - inspect connection status and toggle it on and off
- **Local DB** - view stored tables and their schemas and allow
resetting local DB
- **Shapes** - this needs work and is currently a bit hacky but gives an
overview of active shape subscriptions
- **Inspect Tables** - inspect contents of local tables (including
internal ones), gets updated live
- **Shell** - execute queries and view them in either table or JSON
format, ultimate debug tool

Attaching some screenshots:

<img width="797" alt="Screenshot 2024-05-08 at 16 17 01"
src="https://github.com/electric-sql/electric/assets/12274098/f75759d7-0b11-4e58-b188-b1743bd133b7">
<img width="792" alt="Screenshot 2024-05-08 at 16 17 08"
src="https://github.com/electric-sql/electric/assets/12274098/4955ec19-ecda-4e0b-bb2e-084288cfec44">
<img width="799" alt="Screenshot 2024-05-08 at 16 17 14"
src="https://github.com/electric-sql/electric/assets/12274098/a3b0fd7a-f15d-47aa-9371-c9debbcb8e98">
<img width="797" alt="Screenshot 2024-05-08 at 16 17 20"
src="https://github.com/electric-sql/electric/assets/12274098/99955bc3-c9c6-42ba-b01e-5b43a6444b57">
<img width="799" alt="Screenshot 2024-05-08 at 16 17 31"
src="https://github.com/electric-sql/electric/assets/12274098/a0f28dec-a9af-4ad0-8fbd-1e965c6f642b">



P.S. with the recent release of PG on the client and PGlite support I'll
have to also introduce multi-dialect support to this but I'll do it in a
separate PR, for now it's SQLite focused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants