Commit Graph

3022 Commits

Author SHA1 Message Date
Grot (@grafanabot)
5c5d45e19f "Release: Updated versions in package to 8.0.2" (#35614) 2021-06-14 10:55:02 +02:00
Grot (@grafanabot)
a156582fc4 Theme: Change white base in dark theme (#35564) (#35582)
* Theme: Change white base in dark theme

* Updated

* Updated snapshots

(cherry picked from commit f884381a68)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-06-12 08:10:50 +02:00
Grot (@grafanabot)
e3ea4f839b PieChart: Fixes legend dimension limits (#35563) (#35584)
* PieChart: Fixes legend size limits

* Fixing table legend

* remove legend

(cherry picked from commit a328afd631)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-06-12 08:10:38 +02:00
Grot (@grafanabot)
be3032c4e8 Stat: improve color mode migration from singlestat panels (#35538) (#35587)
(cherry picked from commit 056e17216e)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-06-11 18:29:41 +02:00
Grot (@grafanabot)
603c7ce2aa Graph and GraphNG: make the stories internal (#35491) (#35499)
(cherry picked from commit bea8747405)

Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
2021-06-11 15:46:09 +02:00
Grot (@grafanabot)
e442c3e790 TimeSeries: Fix fill below for dataframes with name (#35453) (#35560)
Use original dataframes for matching config.

(cherry picked from commit 38734366d1)

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2021-06-11 14:24:24 +02:00
Grot (@grafanabot)
8849243d27 "Release: Updated versions in package to 8.0.1" (#35501) 2021-06-10 13:31:37 +02:00
Grot (@grafanabot)
658388573e StatPanel: Fixes issue with graph look when switching color mode (#35460) (#35482) 2021-06-10 11:53:18 +02:00
Grot (@grafanabot)
f0a975fc09 Routing: Remove subPath only at start of href (#35416) (#35485)
* fix(routing): remove baseUrl only if at start of url

* test(routing): add subdirectory suburl tests for stripBaseFromUrl

* test(routing): add absolute url check to fix tests, add extra tests

(cherry picked from commit 8b2ee06f3c)

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2021-06-10 11:33:42 +02:00
Grot (@grafanabot)
422e388fa2 Datasource: Fix storing timeout option as numeric (#35441) (#35481)
#31871 introduced support for configuring timeout in seconds
for HTTP data sources. That had a bug where backend expected
a numeric timeout value where it was actually stored as a
string. This should resolve this by requiring input to be
numbers, storing input as numeric and falling back to string
value if there's no numeric value.

Ref #31871

(cherry picked from commit d15d87db8a)

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-06-10 10:51:47 +02:00
Grot (@grafanabot)
56d51e45ae Grafana-UI: Removes knobs still showing in storybook stories (#35381) (#35409)
* Grafana-UI: Removes knobs from storybook addons pane

* removed other knobs settings since we are disabling it

* remove the knobs disable config in individual stories

(cherry picked from commit 8d9e1d75a5)

Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
2021-06-10 10:42:08 +02:00
Grot (@grafanabot)
6fc58b6ea0 Toolkit: Resolve external fonts when Grafana is served from a sub path(#35352) (#35383)
(cherry picked from commit 044acf727b)

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2021-06-08 19:22:14 +02:00
Grot (@grafanabot)
11f2a91377 Visualizations: Fixes Stat/BarGauge/Gauge/PieChart all values mode showing same name if same value (#35368) (#35384)
(cherry picked from commit c425c30d7e)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-06-08 17:13:45 +02:00
Alex Khomenko
7360428b3e Search: minor UI fixes (#35335) (#35377)
* Increase margin between search item so it's visible

* Fix manage dashboards height overflow

* Align folder icon

* Increase margin

* Update container height

* Fix className not being passed to CardContainer
2021-06-08 15:14:00 +02:00
Grot (@grafanabot)
41f0542c1e Release: Bump version to 8.0.0 (#35341)
* "Release: Updated versions in package to 8.0.0"

* Update whats new & release notes URL

Co-authored-by: Elfo404 <me@giordanoricci.com>
2021-06-08 07:05:23 +01:00
Grot (@grafanabot)
d25695b1e3 Histogram: reduce default bucket size, fix rendering (#35294) (#35297)
(cherry picked from commit 36925ef521)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2021-06-05 00:26:20 -05:00
Grot (@grafanabot)
2108faff7c Grafana-ui: explicitly set storybook control types (#35265) (#35274)
(cherry picked from commit c39d0fa8c3)

Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
2021-06-04 22:07:37 +01:00
Grot (@grafanabot)
a95c3419b7 Histogram: support units on the x axis (#35218) (#35280)
(cherry picked from commit 99a6337e1f)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-06-04 20:11:49 +02:00
Grot (@grafanabot)
74eb38e2fc Graph: fixes storybook crashing when using the story (#35251) (#35259)
* Graph: fixes storybook crashing when using the story

* fixes the GraphWithLegend story too

(cherry picked from commit 70155c7fd0)

Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
2021-06-04 16:52:58 +02:00
Jack Westbrook
1aaed7c2fe Card: Defend against conditional action buttons (#35204) (#35256)
* fix(card): defend against invalid elements types passed to BaseActions

* test(card): add test to support conditional buttons being passed in

* fix(playlistpage): remove disabled prop from LinkButton for editors

* chore(playlistpage): remove title from edit button

(cherry picked from commit c13f247a94)
2021-06-04 17:38:36 +03:00
Grot (@grafanabot)
7f6f9fbce9 Grafana-UI: Allow Card consumers to override disabled prop for action (#34664) (#35249)
(cherry picked from commit 8afb15296a)

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2021-06-04 16:06:24 +02:00
Grot (@grafanabot)
da8d9e6854 Renderer: add version information (#34964) (#35245)
* Renderer: add version information

* fix alerting test

(cherry picked from commit 5f6c172b5a)

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
2021-06-04 14:27:58 +02:00
Grot (@grafanabot)
3fa0811d6b Add missing select options for controls (#35178) (#35237)
(cherry picked from commit f683a497eb)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2021-06-04 11:53:40 +02:00
Grot (@grafanabot)
ccc0a52d4a Histogram: enable client-side zoom (with bucket snapping) (#35220) (#35221)
(cherry picked from commit 43d3d97562)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2021-06-04 03:28:49 +02:00
Grot (@grafanabot)
c8d6168bbf Timeseries: move join field to index zero (#35217) (#35219)
(cherry picked from commit e1af571efd)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-06-04 01:36:05 +02:00
Grot (@grafanabot)
69dc4b281d Grafana-UI: Fix checkbox vertical alignment (#35124) (#35174)
* Grafana-UI: Fix Checkbox vertical layout issues

* reorganise css

* revert my 'fix' and just go back to setting a min height :(

(cherry picked from commit 32d9b04666)

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
2021-06-03 16:44:15 +02:00
Grot (@grafanabot)
c0b872aae1 Timeline/Status grid panel: Add tooltip support (#35005) (#35183)
* Timeline/Status grid tooltip support first pass

* Tooltips workin

* Use getValueFormat to get the duration

* Separate boxes highlight from tooltip interpolation

* Separate state timeline tooltip component, rely on field display color to retrieve color of series

* create an onHover/onLeave API and optimize implementation

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
(cherry picked from commit 7359ba44d0)

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2021-06-03 15:50:49 +02:00
Torkel Ödegaard
57060a2276 PanelEdit: Add data source label to data source picker dropdown (#34605) (#35148)
* PanelEdit: Add data source label to data source picker dropdown

* Updated based on ux feedback

(cherry picked from commit ec33bae8d4)
2021-06-03 14:32:50 +02:00
Grot (@grafanabot)
7feb7dab38 GraphNG: uPlot 1.6.11 (#35146) (#35158)
(cherry picked from commit 433f11a78c)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2021-06-03 07:28:17 -05:00
Grot (@grafanabot)
cf02cb2987 VizLegendTable: fixes column spacing to span to the right side (#35045) (#35167)
* VizLegendTable: fixes column spacing to span to the right side

* reverted text alignment to right

* implemented a more readable solution for tabble legend spacing

(cherry picked from commit 4d574bb8aa)

Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
2021-06-03 13:52:49 +02:00
Grot (@grafanabot)
7083577a4a Chore: Bump sanitize-url to 5.0.2 (#35088) (#35151)
(cherry picked from commit 9df23b8fff)

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2021-06-03 11:34:29 +02:00
Grot (@grafanabot)
553a8d0e55 Live: fix field filtering and survive reconnect (#35122) (#35133)
(cherry picked from commit f7893ca5cf)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-06-02 21:36:14 +02:00
Grot (@grafanabot)
865ae950ae FieldDisplay: add cache to reuse field value calculations (#35072) (#35127)
* add timeline value cache

* add timeline value cache

* with console logs

* cleanup

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
(cherry picked from commit 744ca8d439)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-06-02 11:42:09 -07:00
Grot (@grafanabot)
949662ee5e VizLegend: add readonly prop (#35096) (#35107)
* VizLegend: add readonly prop

* Update packages/grafana-ui/src/components/VizLegend/VizLegendTableItem.tsx

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
(cherry picked from commit a08ee057eb)

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2021-06-02 16:04:03 +02:00
Grot (@grafanabot)
ebe4596c75 ChangeTracker: Unified unsaved changes handling with library panels (#34989) (#35091)
* UnsavedChanges: Move Change tracker to use Prompt

* Fix a lot of race conditions and stacking of changes in onConfirm and onDismiss

* Listen to save event

* add missing delay argument

* migrated the change tracker unit tests

* Updated snapshot

* Removed unessary action

* removed updateSourcePanel

* Fix hiding save library panel modal prompt when clicking discard

* change saved libray panel title and buttons so they are a bit different as Prompt and when used from save button

* Fixed issue with saving new dashboard

* Now all scenarios work

* increase wait time

* Fixed one more race condition

(cherry picked from commit e6f2b10a36)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-06-02 13:20:13 +02:00
Grot (@grafanabot)
2f5d699a3e Checkbox: Fixes vertical layout isssue with Checkboxes due to fixed height (#35022) (#35055)
(cherry picked from commit dc5e7695e4)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-06-01 16:37:57 +02:00
Grot (@grafanabot)
10cdbad0ad "Release: Updated versions in package to 8.0.0-beta.3" (#35030) 2021-06-01 11:49:11 +02:00
Grot (@grafanabot)
a7d22e4b45 Table: datalink to have text underline and support for image datalink (#34635) (#35029)
* Table: datalink to have text underline and support for image datalink

* fixes image oversize issue when using both image and link in a column

* fixes small nit

* extracted the getLink logic to be a standalone utility function

* Updates table tests to suit current structure

* fixes small syntax nit

* fixes bad typing issue

* annotes the getCellLinks logic as an internal utility function

* removes blank whitespace

* Tests: updates test cases to use getByRole

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
(cherry picked from commit 865eac309c)

Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
2021-06-01 11:29:06 +02:00
Grot (@grafanabot)
e555bcdd01 Logs: Use GraphNG to plot log histograms (#34531) (#35016)
* Switch to GraphNG for Logs Histogram

* Remove redundant timeZone

It was used just to format timestamp in the tooltip but it's not needed anymore.

* Add tests for creating logs histogram data

* Update decoractors tests

* Adjust bar width to be more like in the old graph

* Fix tooltip pointer color

* Test tooltip pointer color

* Decouple graph config from uPlot internals

* Ensure nested properties are not mutated when overrides are applied

* Add legend toggling for Explore graphs

* Remove unused component

ExploreGraphNGPanel is now used in Explore

* Code formatting

* allow multiple bars pathBuilders to be globally cached with different settings

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
(cherry picked from commit f4a40a4d85)

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2021-06-01 09:56:49 +02:00
Grot (@grafanabot)
ec170be577 Collapse: Fixes icon (angle down/right) positioning (#34930) (#35009)
(cherry picked from commit ce63da63db)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-06-01 08:53:15 +02:00
Grot (@grafanabot)
3eca7864ed NodeGraph: Fix error when clicking link in a context menu (#34817) (#34830)
* Add prevent default if onClick exists

* Apply field overrides

(cherry picked from commit fcdab32750)

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2021-06-01 08:43:49 +02:00
Grot (@grafanabot)
d2c9c33d41 Color: Remove the default color scale logic (#34913) (#34918)
(cherry picked from commit 179bfecb3e)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-06-01 06:29:08 +02:00
Grot (@grafanabot)
8ba26e2f09 Secure from custom config being undefined in PlotLegend (#34975) (#35006)
(cherry picked from commit 823581add8)

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2021-05-31 20:44:24 +02:00
Grot (@grafanabot)
d8c4981b77 Alerting: New alert list panel component (#34614) (#34988)
(cherry picked from commit 7dd5a065ba)

Co-authored-by: Nathan Rodman <nathanrodman@gmail.com>
2021-05-31 14:35:37 +02:00
Grot (@grafanabot)
3884cfe270 GraphNG: Remove fieldName and hideInLegend properties from UPlotSeriesBuilder (#34901) (#34965)
* Remove fieldName and hideInLegend properties from UPlotSeriesBuilder

* Fix test

(cherry picked from commit 573d7b8893)

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2021-05-31 10:29:57 +02:00
Grot (@grafanabot)
a7a9d002cb Make sure ConfirmButton cannot be clicked when closed (#34818) (#34967)
(cherry picked from commit e38c6d73a0)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2021-05-31 10:07:31 +02:00
Grot (@grafanabot)
dfff63da1b Add custom icons for layout options (#34890) (#34966)
(cherry picked from commit 10f6638d9e)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2021-05-31 10:02:08 +02:00
Grot (@grafanabot)
fdd80b1b4c StatPanel: Fixes data link tooltip not showing for single value (#34934) (#34962)
(cherry picked from commit d9e9e4744d)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-05-31 09:31:18 +02:00
Grot (@grafanabot)
f6b0cd714d ConfirmModal: Auto focus delete button (#34917) (#34959)
(cherry picked from commit ef13f7ece1)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2021-05-31 09:06:32 +02:00
Grot (@grafanabot)
bfb3e90750 BarChart: make sure tooltip closes when user presses E (#34884) (#34941)
(cherry picked from commit dfc466052d)

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2021-05-31 09:01:37 +02:00