Codeinwp / visualizer

WordPress Visualizer plugin is a simple, easy to use and quite powerful tool to create, manage and embed interactive charts into your WordPress posts and pages.
106 stars 29 forks source link

feat: improve sql codemirror, style and error management #1123

Closed preda-bogdan closed 4 months ago

preda-bogdan commented 5 months ago

Summary

Will affect the visual aspect of the product

YES

Screenshots

Default Query and style changes ![image](https://github.com/Codeinwp/visualizer/assets/23024731/e158fca3-4281-4c44-9b87-2595f3257d03)

Test instructions

  1. On a fresh instance with Visualizer Pro enabled
  2. Check the Database Source for a chart
  3. Check the default query is working
  4. Check that the shortcut Shift + Spacebar is recommending query suggestions.
  5. Check that the db prefix is shown.
  6. Check that the query can end in ; or work without.
  7. Check that query errors are displayed if a query is invalid.

Check before Pull Request is ready:

Closes Codeinwp/visualizer-pro#448.

pirate-bot commented 5 months ago

Plugin build for 6d988a615289f732f78c7a3ff2cb422355596294 is ready :bellhop_bell:!

ineagu commented 5 months ago

@preda-bogdan can this easily result in a chart?

preda-bogdan commented 5 months ago

@preda-bogdan can this easily result in a chart?

@ineagu Yes, the current default query will easily display a chart without any change from the user.

irinelenache commented 4 months ago

@preda-bogdan Tested and here is what i found:

preda-bogdan commented 4 months ago

@irinelenache Can you check that you are not using some cached assets I can see from the screenshots you shared that the colors are not the latest being used. I checked on a clean instance using the zip from the PR and it works and behaves as expected. Please let me know so that I can look for other issues, right now it looks like something is cached on your end.

image

irinelenache commented 4 months ago

@preda-bogdan Indeed, the issues were related to caching. I checked again and everything's fine on my end 🚀