-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(toolbar): Refactor toolbar and enhance functionality (#1219)
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.
- Loading branch information
Showing
24 changed files
with
6,937 additions
and
7,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@electric-sql/debug-toolbar": minor | ||
--- | ||
|
||
Complete restyling of toolbar and new features (table inspector, shape inspector) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
extends: [ | ||
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react | ||
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin | ||
], | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
rules: {}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.