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

A few usability improvements when using Queries #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

razyalov
Copy link

I had a few issues with the app, so I've created the following changes, hope you'll find them useful:

  • added a new setting that allows the user to choose if to use on or once for default query
  • improved the look of the query result pane when the user calls console.log multiple times. Now it shows each result in its own numbered tab
  • Upgraded firebase to latest firebase-admin to prevent an error when calling initializeApp()
  • Added the active Firebase connection name to the title and the Window drop-down menu to help know which connection you are on at the moment
  • Made the queries run in an async call and refresh the UI to show a progress animation and message.

Note: The main reason for my changes was the fact that when using the Queries option against an active production database, the use of on caused my query window to keep changing every time the production database changed. Also with long queries, the UI felt frozen because the query happened directly in the ng-click event without allowing the UI to update.

…r how the query is being executed (to avoid the UI changing after data has been updated)

Change default query to iterate over snapshot instead of use a single console.log, to make results more readable.
Fix copy to clipboard to use the full result and not just the first result
Also: fix UI to better display multiple results (multiple calls to console.log) by showing them in numbered tabs
UI/UX: make UI show a wait animation while running long queries (using the 'loader' class)
Firebase: upgrade to latest `firebase-admin` instead of `firebase` version to prevent errors with InitializeApp that is called with wrong parameters.
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.

1 participant