Skip to content

Added template query buttons to SQL Console in Sync Diagnostics Client#862

Open
bean1352 wants to merge 8 commits intomainfrom
feat/diagnostics-template-query
Open

Added template query buttons to SQL Console in Sync Diagnostics Client#862
bean1352 wants to merge 8 commits intomainfrom
feat/diagnostics-template-query

Conversation

@bean1352
Copy link
Contributor

@bean1352 bean1352 commented Feb 23, 2026

  • Added quick-select template query buttons for common PowerSync internal tables (ps_oplog, ps_crud, ps_buckets, ps_untyped) with tooltips and docs links to both SQL consoles.
  • Implemented a new feature in SQLConsoleCore to automatically discover and display database views. Users can now click on these views to run queries directly, enhancing the usability of the SQL console.

Updated screenshot:
image

@changeset-bot
Copy link

changeset-bot bot commented Feb 23, 2026

🦋 Changeset detected

Latest commit: 1e99902

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@powersync/diagnostics-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kobiebotha
Copy link
Contributor

I like the concept of template queries (at least for my own use, I'm often digging around in the various system tables when diagnosing issues). For new users, I'm thinking a bit of context about what those buttons are for could be useful.

Perhaps a heading like this:

Quick Queries
[ps_untyped], [ps_oplog], [etc] buttons

Manual Query
SELECT * FROM ps_buckets

@bean1352
Copy link
Contributor Author

I like the concept of template queries (at least for my own use, I'm often digging around in the various system tables when diagnosing issues). For new users, I'm thinking a bit of context about what those buttons are for could be useful.

Perhaps a heading like this:

Quick Queries [ps_untyped], [ps_oplog], [etc] buttons

Manual Query SELECT * FROM ps_buckets

I like this. I added a Quick Queries heading and moved the documentation link under the heading instead of repeating it in each tooltip. I think we should keep the term “Queries” because it isn’t really a manual query. Clicking any of the template buttons automatically populates the input and runs it.

@Chriztiaan
Copy link
Contributor

Works on my side. What would be really cool is if we had a few template queries that are derived based on the schema/tables we deduce. Like a button for Deduced_table_1 would apply select * from deduced_table 1

@bean1352
Copy link
Contributor Author

Works on my side. What would be really cool is if we had a few template queries that are derived based on the schema/tables we deduce. Like a button for Deduced_table_1 would apply select * from deduced_table 1

I really like this idea.

Chriztiaan
Chriztiaan previously approved these changes Feb 25, 2026
@bean1352 bean1352 requested a review from kobiebotha February 25, 2026 15:13
Copy link
Contributor

@joshuabrink joshuabrink left a comment

Choose a reason for hiding this comment

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

Tested this side. Everything looks good.

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.

4 participants