114 Commits

Author SHA1 Message Date
b08f839c4d Geomap: Map control options e2e (#54809) 2022-09-09 15:56:35 -04:00
4c7732ad17 Chore: Upgrade Typescript to 4.8.2 (#54901)
* Chore: Upgrade typescript to 4.8.2
2022-09-09 16:17:58 +01:00
3864de9425 Geomap: Cleanup GeomapPanel component (#54538) 2022-09-06 21:22:34 -04:00
600ea254af Geomap: Fix duplicate layer bug (#54660)
* Geomap: Fix duplicate layer bug

* Remove dependency on name parameter
2022-09-02 10:53:21 -07:00
89236cf418 Geomap: Cleanup (#54415) 2022-08-29 17:34:42 -04:00
07dcb64e38 Geomap: Fix tooltip display (#54245) 2022-08-29 09:29:54 -05:00
3be3b02f59 Geomap: cleanup (#54328) 2022-08-26 16:03:20 -05:00
835562bb68 GeoMap: Fix tooltip not showing values (#53738) 2022-08-15 16:39:00 +02:00
e9e5c97807 Geomap: Update language to match documentation and remove beta (#53703)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2022-08-12 21:33:30 -04:00
1f93216f1d Layers check (#53611) 2022-08-11 17:39:18 -04:00
45750da667 Geomap: Set markers color based on selected color field #53493 2022-08-09 15:42:37 -07:00
fe0f193189 Geomap: Add measuring tools (#51608)
* Geomap: add measuring tools

* Add measure type selection

* Add controls and state to measure overlay

* Override tooltip mouse events when menu active

* Move measure tools to top right

* Lay groundwork for units and consolidate measuring

* Create measure vector layer class

* Improve styling to match other overlay controls

* Consolidate styling and use theme2

* Update unit language and add km2

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2022-08-03 16:19:30 -07:00
e88e3482e0 Tooltip mode works in BarChart panel (#52941) 2022-07-29 15:11:42 +03:00
817837a532 Geomap: Support ability to color markers based on label value (#47476)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-07-26 10:26:29 -05:00
238d761450 Geomap: refactor and cleanup structures (#52760)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2022-07-25 20:12:20 -04:00
3c2ef54e04 Geomap: Fix tooltip offset bug (#52627) 2022-07-21 13:16:05 -07:00
958e1b6ad0 Geomap: Fix layer extent (#51956) 2022-07-11 08:32:16 -05:00
7e9194e6e2 Geomap: update with template variable change (#52007)
After componentDidUpdate, check for a data change and apply it.

Fixes #51983
2022-07-08 15:46:01 -07:00
6dc119ef56 Slider: Enforce numeric constraints and styling within the text input (#50905)
* Add NumberInput to core slider

* Change opacity interpretation

To be consistent with other layers, and CSS, opacity of 0 is fully
transparent and an opacity of 1 is fully opaque.

* Add state management for slider.

* Ensure number input step matches slider

* Style input width based on expected digits

* Improve styling for number input validation error
2022-07-07 11:57:03 -07:00
21591be469 Geomap: Support shared crosshair for route layer (#51495) 2022-07-06 10:08:55 +03:00
0e1f0dd8f5 Geomap: Route/path visualization (#43554)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-06-27 09:45:09 -07:00
c2aee2b6da Geomap: Add alpha day/night layer (#50201)
Co-authored-by: drew08t <drew08@gmail.com>
2022-06-20 19:35:03 +02:00
4a749e68a8 Geomap: Support showing tooltip content on click (not just hover) (#50985) 2022-06-16 22:08:42 +02:00
1af63ba5f9 OptionsUI: use NumberInput for number options (#46046)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-06-14 22:42:26 +02:00
58e7769158 OptionsUI: Move internal options editors out of @grafana/ui (#50739) 2022-06-14 08:05:11 -07:00
07aa2bbbba GeomapPanel: Add base types to data layer options (#50053)
* GeomapPanel: Add base types to data layer options

Removed isBaseMap check from data layer filter, which used to remove
base layer types from data layer options. For layer editor, slider to
control opacity is added.

* GeomapPanel: Reorder data layer options

For data layer selection, present user with data layer types first,
before base map layer types. Refactored to consolidate layer options
into a single exported function in registry with a base map boolean.

* GeomapPanel: Add descriptions to base map types

* GeomapPanel: add hideOpacity and apply to markers

* GeomapPanel: update descriptions for map types

Closes #47812
2022-06-13 14:07:20 -07:00
1284c596fe Geomap: Add ability to select a data query filter for each layer (#49966)
* Fix random typo I found

* add 'useDataFrame' boolean to each layer type to determine whether the layer queues off of query data

* Add data frame picker to options layout depending on layer type

* change layer update logic to render features from a specific data frame. Lift data frame selection up a level in order to add some more complex error handling.

* add a todo to the MapLayerRegistryItem interface

* update optional arg in function signature for consistency

* move dataframe filtering to paneldata, revert layers to prior state

* commit refactor, need to clean up still

* pull copy-pasted code into its own function

* clean up comments

* Update layer.ts

* remove unused types

* fix spacing

* improve dropdown

* need to add dependency to this callback function, otherwise it will always use the context of the last layer

* add data query recovery logic to handle query renames

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-06-09 11:54:57 -04:00
30e4e9399b Geomap: show delete button (#49125) 2022-05-17 23:39:54 -07:00
14c2f4f3da Geomap: Legend threshold style update (#49020) 2022-05-16 19:54:10 -07:00
34fefa1d47 Fix to geomap editor crash (#48786) 2022-05-05 13:28:03 -07:00
efe09d6a8b Geomap: Legend and scale overlapping (#47594)
Updated legend bottom left custom style when scale is shown
2022-05-04 10:14:19 -05:00
06d3c27bc1 Select: Portal menu by default (#48176)
* Remove menuShouldPortal from all <Select /> components

* fix unit tests

* leave menuShouldPortal as an escape hatch

* Fix import order
2022-05-04 15:12:59 +01:00
0b5ffcfcf0 Geomap: Legend style update (#48641)
Legend style update
2022-05-03 15:03:41 -05:00
3c6e0e8ef8 Chore: ESlint import order (#44959)
* Add and configure eslint-plugin-import

* Fix the lint:ts npm command

* Autofix + prettier all the files

* Manually fix remaining files

* Move jquery code in jest-setup to external file to safely reorder imports

* Resolve issue caused by circular dependencies within Prometheus

* Update .betterer.results

* Fix missing // @ts-ignore

* ignore iconBundle.ts

* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
858a1bd24e Geomap: Add color scale in legend (#47803)
Added color scale in geomap legend
2022-04-18 09:19:20 -05:00
dea9b51a0f Resize map on changing browser size (#47084) 2022-03-30 17:39:28 -05:00
851c54b3b1 Call optionsChanged when props options have changed (#47031) 2022-03-30 11:15:42 -05:00
118b87ee8f Geomap: Display legend (#46886)
* Display legend for fixed colors and field; Hide tooltip on base layer;
2022-03-30 09:41:13 -05:00
1dbfbc0e96 GeoMap: support setting view based on map data (#44852) 2022-03-18 11:13:55 -07:00
00c93fff8c Grafana-UI: Fix use of Fragments as children of InlineField (#46326) 2022-03-15 17:50:29 +00:00
9b5a42845d Chore: Remove prettier-plugin from ESLint (#45910)
* chore(eslint): remove prettier-plugin

* chore(eslint): test changes by using grafana/eslint 3.0.0-alpha

* chore(prettier): add js,ts,tsx when checking / writing

* chore(prettier): dont check js files

* chore(linting): align prettier and eslint ignore files

* style: run prettier:write on FE codebase

* chore(eslint): use grafana/eslint-config@3.0.0
2022-03-04 10:49:50 +01:00
52568c7af1 Update dependency ol to v6.13.0 (#45949)
* Update dependency ol to v6.13.0

* fix types

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-03-03 09:45:33 +01:00
3a2e3267ba BarChart: Add support for data links (#44932) 2022-02-04 18:31:00 -08:00
9e52361c1e Accessibility: Fix text selection when using FocusScope (#44770)
* Add tabIndex={-1} to places using focusScope to allow for text highlighting

* use useDialog

* don't need explicit tabIndex anymore

* remove duplicate spreading of props
2022-02-04 11:20:18 +00:00
d87cd6f26c Update dependency prettier to v2.5.1 (#43473)
* Update dependency prettier to v2.5.1

* prettier fixes

* chore(toolkit): bump prettier to 2.5.1

* style(eslint): bump grafana config to 2.5.2 in core and toolkit

* style(mssql-datasource): fix no-inferrable-types eslint errors

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-02-02 12:02:32 +00:00
ac90c8d68d Geomap: initialization fixes (#44745) 2022-02-01 22:08:07 -08:00
d8df08ce5d Geomap: clear features when no-data is returned (#44748) 2022-02-01 22:02:43 -08:00
b2b584f611 Geomap: Improve tooltip UX and fix data links (#44740) 2022-02-01 18:17:39 -08:00
21796c61ba Geomap: fix casing for panel options (#44688)
* fix casing for panel options

* remove hardcoded label values
2022-02-01 15:09:19 -08:00
082b1b4db7 Geomap: add spatial transformers (alpha) (#44020) 2022-01-21 14:27:26 -08:00