13 Commits

Author SHA1 Message Date
Benjin Dubishar
d9b5d71148 Adding Chart component (#24357)
* added doughnut chart component

* Changing chart to doughnutChart

* reverting to genreic chart component

* adding more chart supoort

* fix minor errors

* resolve some PR comments

* native chartjs, keyboard navigation and chart options

* fix build errors

* fix chart.js/auto error

* resolve PR comments

* modify chartdataset API

* Refactoring (#24327)

* working - displaying chart data with convert

* working - introduced typed properties

* working, added BarChartConfiguration to type param

* removed ChartProperties type param

* Adding doughnut support

* Correcting number vs. point issue

* including the right changes this time

* commenting out no-longer-used labels prop

* remove hardcoded canvasID, enabled Scatterplot config

* Moved graph testing to sample extension

* Reorganizing types; adding test back to assessment dialog

* Adding example for bubble chart

* Polar area working

* cleanup

* adding draw when options isn't set

* Moving chart example configs to other file

* some cleanup

* added some docstrings

* add multiple datasets to test scatter plot

* update scatter plot example in sample

* Adding height/width support

* swapping to `as` cast

* title working

* Settling chart title and legend display

* Adding comments

* updating data working

* Updating samples

* Typo in comment

* Reverting changes made for development

* Elaborating on color in docstrings

* Separating Data and Options in component payloads

* Removing chartId as an exposed property

* Changing chartType property to TChartType

* Fleshing out types file comments

* fixing scoping of chart component properties; renaming chart canvas ID prop

* correct internal chart options typing

* removing commented-out code

* removing unused ChartClickEvent type until data selection eventing is implemented

* renaming function

* deleted commented-out code

* Adding options setters that went missing after splitting Config to Data + Options

* adding type predicates for data conversion

* Adding back type setting (dropped when chart type conversion moved)

* Narrowing type for 'type'

* Fixing typos in docstring

---------

Co-authored-by: Deepak Saini <deepaksaini@microsoft.com>
Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
Co-authored-by: Aasim Khan <aaskhan@microsoft.com>
Co-authored-by: Deepak Saini <deepak.saini1996@gmail.com>
2023-09-13 20:11:09 -07:00
Kim Santiago
21016c1a53 add button to open query store report in new tab (#24303)
* add button to open query store report in new tab

* addressing comments
2023-09-07 10:13:08 -10:00
Kim Santiago
9f4e19f3db Initial changes for query store dashboard (#24272)
* create empty query store dashboard

* add placeholder report content

* cleanup

* more cleanup
2023-09-06 11:00:58 -10:00
Sakshi Sharma
a21aa840c9 Add reusable settings dialog to QDS Reports (#24181)
* Initial changes

* Add time, resource and chart component to config dialog

* Add appropriate components of Configuration to Overall Resource Consumption Report and Top Resource Consuming Queries

* Fix alignment and sizes of components

* Address comments. Add group containers for individual components

* Fix alignment

* Add extra label and address comments

* Address comments. Fix sequence of component addition

* Update function definition to take in config information, instead of boolean to accomodate all future reports. And update doc comment
2023-08-29 13:04:29 -07:00
Cheena Malhotra
6c6464e772 Part 2 - Make Model view components disposable + dispose all emitters (#24097) 2023-08-23 12:46:09 -07:00
Aasim Khan
752c33c960 Vbumping vscodetestcover (#24133) 2023-08-15 17:22:30 +00:00
Kim Santiago
eeab2b4abe Fix horizontal split view not working (#23889)
* Horizontal splitview sorta working

* remove the old element

* support getting size from model view container

* cleanup

* make splitViewHeight optional

* Update src/sql/azdata.proposed.d.ts

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>

* fix test

---------

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
2023-07-17 12:31:04 -10:00
Sakshi Sharma
a9a9abd5c1 Add unit test framework for QDS Extension (#23776)
* Query store unit test infra setup

* Update yarn.lock file

* Update tests for utils.ts

* Move test utilities interfaces and functions to its own file
2023-07-17 11:33:05 -07:00
Kim Santiago
e6b4d2e634 cleanup uneccessary awaits in query store extension (#23701) 2023-07-10 11:15:21 -10:00
Kim Santiago
220b2b4ac4 Initial changes for reusable QDS report (#23527)
* initial changes for making a QDS report with placeholders

* Add icon for configure button

* Add another example report to show layout

* move files

* add placeholder names to components and cleanup toolbar

* cleanup

* switch to createViews() instead of createTop and BottomSections()

* add QueryStoreView class for the different components in a report

* cleanup

* add more comments

* fix yarn not running for query store extension folder

* add missing break

* change one more view to container
2023-06-29 13:24:22 -10:00
Kim Santiago
88f46dde63 update query store readme (#23295)
* update query store readme

* switch Azure SQL to SQL Database

* specify 'execution plan'
2023-06-05 07:40:51 -10:00
Alan Ren
7094be5889 regenerate the yarn lock file (#23303) 2023-06-02 12:49:42 -07:00
Kim Santiago
8d36400c2f Initial commit for Query Store extension (#23260)
* Initial commit for Query Store extension

* fix eslint explicit-functino-return-type setting

* address comments

* remove specifying explicit-function-return-type eslint rule

* update strings
2023-06-01 14:09:33 -07:00