Commit Graph

3238 Commits

Author SHA1 Message Date
Leon Sorokin
930c8c5aa3 EventBus: Add ability to tag events with arbitrary classification meta (#82087) 2024-02-08 16:15:32 -06:00
Adela Almasan
315eb5acc3 VizTooltips: Remove default width/height values (#81832) 2024-02-06 12:00:19 -08:00
paulJonesCalian
3942d67f89 chore: Fix typo in GraphTresholdsStyleMode enum (#81960) 2024-02-06 08:20:42 -08:00
Jev Forsberg
49b49e28af Baldm0mma/xy tooltip tests (#81746)
* baldm0mma/xyTooltipTests/ add first tests

* passing test!!!

* baldm0mma/xyTooltipTests/ add tests

* baldm0mma/xyTooltipTests/ revert destructure move

* baldm0mma/xyTooltipTests/ clean up test

* baldm0mma/xyTooltipTests/ update test names

* baldm0mma/xyTooltipTests/ ignore ts issue

* baldm0mma/xyTooltipTests/ update any

* baldm0mma/xyTooltipTests/ add follwing types

* baldm0mma/xyTooltipTests/ remove "field"

* baldm0mma/xyTooltipTests/ remove debug
2024-02-05 10:10:53 -07:00
Leon Sorokin
d5ac9340e5 Histogram: Add approx bucket count option (#80990) 2024-02-05 11:09:36 -06:00
Matias Chomicki
c87e4eb724 Log rows: add re-renders test cases (#81566)
* Log rows: add re-renders test cases

* Logs panel: add re-render test cases

* Logs panel: update setup and properly trigger rerenders
2024-02-05 17:20:50 +02:00
Ashley Harrison
dcf58555e8 Chore: Some test type fixes (#81812)
some test type fixes
2024-02-05 09:47:30 +00:00
Leon Sorokin
86b16ea62a Histogram: Start y-axis at 0, set default color mode to classic palette (#81759) 2024-02-02 01:57:08 -06:00
Ryan McKinley
9d17f6e6aa Transformers: Do not add transformation info to output frames (#81747) 2024-02-01 17:17:30 -08:00
renovate[bot]
780c28be2d Update dependency dangerously-set-html-content to v1.1.0 (#80824)
* Update dependency dangerously-set-html-content to v1.1.0

* allow rerender and use ' ' for empty state to prevent throwing

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-02-01 20:50:22 +02:00
Andrej Ocenas
cb945aa5df NodeGraph: Use layered layout instead of force based layout (#78957) 2024-01-31 17:26:12 +01:00
Drew Slobodnjak
6fc1a6a54f XYChart: Add data filter to manual mode (#81115)
* XYChart: Add data filter to manual mode

* Add onChange to data filter for manual editor

* Update placeholder for auto editor for consistency

* Filter x y fields based on frame

* Update frame calc for truthy

* Use display name instead for frame filter

* Update placeholders

* Apply frame filter to series prep

* Re run make gen cue

* Remove old TODO

* Force data filter to be selected

* minor cleanup

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-30 15:09:15 -08:00
Sven Grossmann
cc56e0e75c Logs Panel: Fix scrolling with permalinks (#81558) 2024-01-30 13:11:12 +01:00
Adela Almasan
5ab75410e9 VizTooltip: Scrollable content for long lists (#81524)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-29 17:38:25 -06:00
Leon Sorokin
835ded5eec Histogram: Fix x-axis going past +Inf when rendering heatmap-rows frames (#81438) 2024-01-28 21:33:34 -06:00
Adela Almasan
09fcb3c6cc Candlestick: Add tooltip options (#81307) 2024-01-26 18:02:44 +02:00
Adela Almasan
22561e8690 Annotations: Prevent creating a new range in unsaved dashboards (#81256) 2024-01-25 14:14:46 +00:00
Adela Almasan
9da3db1ddf Annotations: Prevent creating on unsaved dashboard (#81200) 2024-01-24 19:24:52 -06:00
Ashley Harrison
3f1e97cb07 NestedFolderPicker: Add clearable prop (#81114)
* add clearable prop to NestedFolderPicker

* update types
2024-01-24 13:18:01 +00:00
Galen Kistler
510dba72fc Logs Panel: Permalink (copy shortlink) (#80764)
Compute permalink url for log lines within logs panels in dashboards.

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
2024-01-23 14:20:38 -06:00
renovate[bot]
86cb412b1d Update dependency prettier to v3.2.4 (#81047)
* Update dependency prettier to v3.2.4

* update sdk + run prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-23 11:41:24 +00:00
Leon Sorokin
391f3ca615 VizTooltips: Don't use y scales for sync, since they rarely match (#81031) 2024-01-23 00:08:03 -06:00
Drew Slobodnjak
378c863616 Geomap: Support geojson styling properties (#80272)
* Geomap: Support geojson styling properties

* Add enum for geojson styles

* Move styleStrings outside of style function

* Add styling note to geoJSON docs

* Clean up geomap docs

* Add support for points

* Add simple example

* Add support for all geojson types and update example

* Update colors

* Update docs

* Remove old TODO

* Update geojson name

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-20 02:55:17 +02:00
Drew Slobodnjak
91e747d8ab XYChart: Fix data filter change bug (#80849)
* XYChart: Fix data filter change bug

* If no xAxis set, populate from dims
2024-01-19 09:43:05 -08:00
Laura Benz
0e4c6742c8 GettingStarted: Improve styling and add tracking (#80410)
* refactor: remove icons and related styling

* refactor: remove cut off on the left side

* fix: aria-labels

* feat: add tracking

* refactor: adjust button position

* refactor: move previous button back

* refactor: use emotion object syntax

* feat: add tracking

* refactor: remove console.log()
2024-01-19 10:50:56 +01:00
Leon Sorokin
2c5289028d AnnotationsPlugin2: Skip zero-length, field-less, and time-less frames (#80810) 2024-01-18 08:34:28 -06:00
Ihor Yeromin
cbc84a802d VizTooltip: Add sizing options (#80306)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-01-17 16:49:09 -06:00
Ryan McKinley
f434467ef8 Table: Support showing data links inline. (#80691) 2024-01-17 23:05:25 +02:00
Leon Sorokin
2aa533c6c5 AnnotationsPlugin2: Skip exemplar frames (#80760) 2024-01-17 14:08:30 -06:00
Sven Grossmann
4e474161a1 Logs: Add show context to dashboard panel (#80403)
* Logs: Add show context to dashboard panel

* add prop to enable show context toggle

* update test

* adjust tests

* add query targets as a dependency

* extract `useDatasourcesFromTargets` hook

* add tests

* remove comment
2024-01-12 19:19:00 +02:00
Leon Sorokin
b53e0521d2 Panels: AnnotationsPlugin2 (#79531)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-01-12 09:02:40 +02:00
Nathan Marrs
c40b2f90ba Canvas: Support context menu in panel edit mode (#80335) 2024-01-11 19:41:19 +02:00
renovate[bot]
c959b5549c Update typescript-eslint monorepo to v6 (#71634)
* Update typescript-eslint monorepo to v6

* move to latest eslint-config-grafana

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-10 18:17:54 +02:00
Ashley Harrison
68ba6cc67b Chore: some type fixes (#80094)
* some type fixes

* few more fixes

* more

* fix unit test
2024-01-09 10:00:00 +00:00
Leon Sorokin
200c71f5d6 VizTooltips: Optimize performance (#80102) 2024-01-05 16:07:04 -06:00
Leon Sorokin
1ec04243da Heatmap: All tooltip mode selector (#79956)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-05 13:11:24 -06:00
Nathan Marrs
3609dbd0a2 Barchart: Fix percent stacking regression (#79903)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-05 18:58:47 +02:00
Adela Almasan
935ecdd809 XYChart: Improved new tooltip (#75818)
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-05 00:55:23 +02:00
Adela Almasan
692e8958a3 VizTooltips: Disable newVizTooltips when dashboard shared cursor is enabled (#79996) 2024-01-04 08:29:39 -06:00
Adela Almasan
070e41d136 Exemplars: Update UX to match new tooltips (#79916) 2024-01-03 06:27:34 -06:00
Adela Almasan
552fa78564 StateTimeline: Add tooltip multi mode (#79944)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-03 06:27:17 -06:00
Drew Slobodnjak
2502fe4d19 Canvas: Add Pan and Zoom (#76705)
* Canvas: Add Zoom

* Scale selecto components based on zoom state

* Fix pan by reverting to 3.1.0 for zoom-pan

* Update to latest library that fixes pan regression

* Add mini map to canvas pan zoom

* Fix selecto and anchors on hover

* Update naming to be more clear

* Switch back to contentComponent

* Apply transformScale to drag and resize

* Update connection source and target scaling

* Add option to display mini map

* Update yarn lock

* Revert "Update yarn lock"

This reverts commit 3d1dd65d57.

* Set yarn lock to main

* Revert "Set yarn lock to main"

This reverts commit 64bc50557e.

* Update to Yarn 4

* Add react-zoom-pan-pinch

* Update react-zoom-pan checksum

* Revert changes to json files

* Remove last line of api merged

* Remove last lines of all impacted jsons

* Update home json

* Update coordinate calc function to include scale

* Fix types in coordinate calc function

* Fix util calculation for transform

* Fix arrow anchor shift behavior

* Fix scale offset when adding elements during zoom

* Fix drag of selected group during zoom

* Add feature flag for canvas pan zoom

* Revert "Add feature flag for canvas pan zoom"

This reverts commit b026e31d8d.

* Regenerate feature flag after merge

* Apply feature flag to enable pan zoom wrappers

* Add mini map toggle behind feature flag

* Simplify minimap behavior

* Update feature flag registry

* Set minimap to false by default

* fix gen-cue

* Set toggles gen to main

Add blank line to toggle gen csv

* Add canvas pan zoom to csv

* Remove old comment

* Change ref parameter to be more descriptive

* Rename visibleFun to be more descriptive

* Consolidate transformScale transformRef in util

* Remove non-null assertion on connection parentRect

* Consolidate parentRect null coalescing into object

* Remove minimap and change toggle

* Add controls inline help for pan and zoom

* Clean up mouse events

* Pull scale out of ref and isolate transform

* Remove transform ref from scene div

* Fix context menu visible behavior

* Fix connections and update util functions

* Move transform component instance to util

* fix backend test

* minor updates

* Clean up connections / fix minor bug where offset of arrow wasn't being calculated correctly

* missed connection code cleanup

* cleanup scene code a bit more

* actually fix backend test

* move eslint disable line closer to actual issue

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-02 11:52:21 -08:00
Torkel Ödegaard
9126dbceaf Gauges: Fixing broken auto sizing (#79926) 2024-01-02 16:55:48 +01:00
Ryan McKinley
ae3156d727 XYChart: Config cleanup and refactoring (#79915)
* xy config cleanup

* more cleanup

* clean up betterer some

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-12-31 16:50:53 -08:00
Adela Almasan
7eea30d0e8 VizTooltip: Improved StateTimeline tooltip (#79599)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-12-29 17:38:40 -06:00
Leon Sorokin
b3387793f1 Chore: uPlot v1.6.28 (#79732) 2023-12-29 13:43:15 -06:00
Leon Sorokin
36a3508a0f BarChart: Show "No data" message for zero-length frames (#79844) 2023-12-22 22:04:50 -06:00
Adela Almasan
209619c8c1 Heatmap / Status History: Enable annotations rendering (#79483) 2023-12-19 20:24:55 +02:00
Khushi Jain
54dc5846c2 Chore: Refactor dataviz aria-label e2e selectors to data-testid (#78938)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-12-17 02:10:04 +02:00
Adela Almasan
4dc4c285f1 Heatmap: Update tooltip UX (#79429) 2023-12-15 19:17:49 -06:00