Skip to content

Diagnostics app #151

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

Merged
merged 35 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0fa353c
Diagnostics app initial version.
rkistner Apr 4, 2024
b2b1586
Proper diagnostics page; use single sync storage.
rkistner Apr 4, 2024
0590400
Dynamic schema.
rkistner Apr 4, 2024
be96a49
Fix type of Schema.tables.
rkistner Apr 4, 2024
5224a23
Re-implement schema tracking.
rkistner Apr 4, 2024
45026ff
Expand diagnostics and add schema generator.
rkistner Apr 4, 2024
f15d982
Merge remote-tracking branch 'origin/main' into diagnostics-app
rkistner Apr 8, 2024
45c1d13
Add readme
benitav Apr 30, 2024
ca60edf
Apply suggestions from code review
benitav Apr 30, 2024
17c6efa
Update demos/diagnostics-app/README.md
benitav Apr 30, 2024
9fea989
Merge branch 'main' into diagnostics-app
benitav Apr 30, 2024
5b3353c
Merge branch 'diagnostics-app' of github.com:powersync-ja/powersync-j…
benitav Apr 30, 2024
d9caa9d
Update pnpm-lock
benitav Apr 30, 2024
84c2c58
Update readme
benitav Apr 30, 2024
015f9fa
Merge branch 'main' into diagnostics-app
benitav Apr 30, 2024
cbccabd
Rename packages
benitav Apr 30, 2024
26aa60a
Rename package
benitav May 1, 2024
080fd10
Merge remote-tracking branch 'origin/main' into diagnostics-app
rkistner May 3, 2024
d434701
Readme tweaks.
rkistner May 3, 2024
ef707aa
Loading and error states for SQL Console.
rkistner May 3, 2024
55fbee9
Loading state for main diagnostics page.
rkistner May 3, 2024
a975971
Track connection errors.
rkistner May 3, 2024
d37b684
Large layout redo.
rkistner May 3, 2024
fcde31f
Tweak icons.
rkistner May 3, 2024
42ec594
Cleanup.
rkistner May 3, 2024
e61b3be
Add schema docs.
rkistner May 3, 2024
500ac4b
Minor cleanup.
rkistner May 3, 2024
575f7c0
Layout fixes.
rkistner May 6, 2024
75e673d
Rename package.
rkistner May 6, 2024
c19246c
Use `useStatus()`.
rkistner May 6, 2024
2f1e034
Add changeset.
rkistner May 6, 2024
567429b
Move to tools/diagnostics-app
rkistner May 6, 2024
1d59150
Add main Readme entry for diagnostics app
benitav May 6, 2024
21801b9
Fix disconnectAndClear not clearing ps_untyped.
rkistner May 6, 2024
cb04453
Minor updates to readme.
rkistner May 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shy-suns-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@powersync/common": patch
---

Fix type of Schema.tables
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ Demo applications are located in the [`demos/`](./demos/) directory. Also see ou
- [demos/example-vite](./demos/example-vite/README.md): A minimal example demonstrating bundling with Vite.
- [demos/example-nextjs](./demos/example-nextjs/README.md): An example demonstrating setup with Next.js.

## Tools

- [tools/diagnostics-app](./tools/diagnostics-app): A standalone web app that presents stats about a user's local database (incl. tables and sync buckets).

# Development

This monorepo uses pnpm.
Expand Down
4 changes: 3 additions & 1 deletion packages/common/src/db/schema/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export class Schema<S extends SchemaType = SchemaType> {
*/
readonly types: SchemaTableType<S>;
readonly props: S;
constructor(public tables: ClassicTable[] | S) {
readonly tables: ClassicTable[];

constructor(tables: ClassicTable[] | S) {
if (Array.isArray(tables)) {
this.tables = tables;
} else {
Expand Down
Loading