Commit Graph

2725 Commits

Author SHA1 Message Date
renovate[bot]
6165377eb2
Update dependency webpack to v5.69.1 (#45661)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-22 20:39:36 +01:00
renovate[bot]
4a804b57f7
Update dependency prismjs to v1.27.0 (#45621)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-22 17:06:01 +01:00
Giordano Ricci
9307cc86f2
UI: Improve modal a11y by setting role & using title as label (#45472)
* UI: Improve modal a11y by setting role & using title as label

* remove wrapping div for cutom title components

* Fix typo
2022-02-22 14:12:34 +00:00
renovate[bot]
c11cf7d470
Update dependency @react-aria/menu to v3.4.1 (#45514)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-22 13:58:51 +00:00
Alexander Emelin
28c30a34ad
Comments: support live comments in dashboards and annotations (#44980) 2022-02-22 10:47:42 +03:00
kay delaney
b6682cdcb9
Navigation: Proof-of-concept for pinning navbar items (#44775) 2022-02-21 15:25:47 +00:00
renovate[bot]
4fb0337168
Update dependency sass-loader to v12.6.0 (#45660)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-21 12:21:32 +01:00
renovate[bot]
5f533dac72
Update dependency @emotion/react to v11.8.1 (#45656)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-21 12:04:24 +01:00
Hugo Häggmark
c6470be34c
Chore: Replace enzyme with RTL in ConfirmModal.test.tsx (#45651) 2022-02-21 08:25:52 +01:00
Hugo Häggmark
2f63d7b1c4
Chore: Replace enzyme with RTL in BigValue.test.tsx (#45650) 2022-02-21 08:21:06 +01:00
renovate[bot]
175891a5e3
Update dependency react-hook-form to v7.26.1 (#43670)
* Update dependency react-hook-form to v7.27.0

* fix type errors for alerting components with new react-hook-form version (#45341)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Nathan Rodman <nathanrodman@gmail.com>
2022-02-18 17:13:31 +01:00
Yaelle Chaudy
530913dd37
Azure Monitor : Adding json formatting of error messages in Panel Header Corner and Inspect Error Tab (#44877)
* Trying out json formatting of azure graph err from frontend

* Added some tests wip

* Wrap text in popper tooltip

* fix conflict

* Wrap text in tooltip

* Complete tests

* Added invalid json test

* Backend changes and tests

* removed comments

* Added split of message / json and edge cases tests

* Addressed comments

* moved catch to parseErrorMessage
2022-02-18 12:09:24 +01:00
Ryan McKinley
685ec5383e
Chore: avoid pointer events in viz tooltip (#45492) 2022-02-16 13:52:39 -08:00
Artur Wierzbicki
6c76aa71e8
Previews: capability check (#44601)
* add SQL migrations

* dashboard previews from sql: poc

* added todos

* refactor: use the same enums where possible

* use useEffect, always return json

* added todo

* refactor + delete files after use

* refactor + fix manual thumbnail upload

* refactor: move all interactions with sqlStore to thumbnail repo

* refactor: remove file operations in thumb crawler/service

* refactor: fix dashboard_thumbs sql store

* refactor: extracted thumbnail fetching/updating to a hook

* refactor: store thumbnails in redux store

* refactor: store thumbnails in redux store

* refactor: private'd repo methods

* removed redux storage, saving images as blobs

* allow for configurable rendering timeouts

* added 1) query for dashboards with stale thumbnails, 2) command for marking thumbnails as stale

* use sql-based queue in crawler

* ui for marking thumbnails as stale

* replaced `stale` boolean prop with `state` enum

* introduce rendering session

* compilation errors

* fix crawler stop button

* rename thumbnail state frozen to locked

* #44449: fix merge conflicts

* #44449: remove thumb methods from `Store` interface

* #44449: clean filepath, defer file closing

* #44449: fix rendering.Theme cyclic import

* #44449: linting

* #44449: linting

* #44449: mutex'd crawlerStatus access

* #44449: added integration tests for `sqlstore.dashboard_thumbs`

* #44449: added comments to explain the `ThumbnailState` enum

* #44449: use os.ReadFile rather then os.Open

* #44449: always enable dashboardPreviews feature during integration tests

* #44449: add /previews/system-requirements API

* #44449: remove sleep time, adjust number of threads

* #44449: review fix: add `orgId` to `DashboardThumbnailMeta`

* #44449: review fix: automatic parsing of thumbnailState

* #44449: update returned json

* #44449: UI changes - dashboard previews sytem req check

* #44449: lint fixes

* #44449: fix tests

* #44449: typo

* #44449: fix getSystemRequirements API: return 200 even if we plugin version is invalid

* #44449: fix getSystemRequirements API: don't return SemverConstraint on error

* #44449: fix getSystemRequirements API

* #44449: fix previews sytem requirements text

* #44449: add `doThumbnailsExist` to repo

* #44449: remove redux api

* #44449: add missing model

* #44449: implement frontedsettings-driven capability check

* #44449: simplify

* #44449: revert test changes

* #44449: add dummy setup settings

* #44449: implicit typing over `FC<Props>`

* #44449: refactor conditionals

* #44449: replace `getText` with a react component

* #44449: fix component interface

* #44449: add onRemove to `PreviewsSystemRequirements` alert

* #44449: add bottom/top margin to previewSystemRequirements modal

* #44449: merge conflict fix

* #44449: remove console.log

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Alexander Emelin <frvzmb@gmail.com>
2022-02-16 21:49:50 +04:00
Torkel Ödegaard
cfa24a3cfb
Prometheus: Auto legend handling (#45367)
* Legend editor is working

* It's working

* Progress on auto legend mode

* Fixes

* added unit tests

* Added go tests

* Fixing tests

* Fix issue with timing and internal state

* Update public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryCodeEditor.tsx

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-02-16 14:06:33 +01:00
Hugo Häggmark
ae8c8a2910
Chore: Replace enzyme with RTL (#45434) 2022-02-16 00:49:06 -08:00
Hugo Häggmark
6584735bef
Chore: Replaces enzyme with RTL in ConfirmButton.test.tsx (#45435) 2022-02-16 09:46:46 +01:00
Ivana Huckova
6a828a051a
Logs: Fix LogDetailsRow tests that produced console errors (#45388)
* Fix LogDetailsRow tests that produced console errors

* Use div instead of wrapping with table

* Use div instead of wrapping with table
2022-02-15 14:06:24 +01:00
Hugo Häggmark
5f043e6106
Chore: Fix test import (#45271) 2022-02-11 11:24:27 +01:00
Alexander Kubyshkin
4d0a37baed
Fix issue with undo history in query field when suggestion inserted (#28656) (#39114) 2022-02-11 09:26:35 +01:00
Leon Sorokin
586b89f776
Thresholds: fix crash when trying to render zero-height base thresholds (#45256) 2022-02-10 18:49:30 +01:00
Jack Westbrook
979907e9dd
Chore: Set tsconfig target to ES6 (#44842)
* chore(tsconfig): update grafana/tsconfig to 1.2.0 for outputting es6

* rewrote the unsubscription part to use first().

* test: update failing tests to work with es6 output

* removed bug where we dispatch a promise instead of an array of ritch history.

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2022-02-10 14:37:39 +01:00
Torkel Ödegaard
374681b546
Popovers: Improve contrast by darkening shadow and changing border to medium (#45136)
* Popovers: Improve contrast by darkening shadow and changing border to medium

* Updated sass theme

* Revert back to weak border
2022-02-10 13:52:23 +01:00
Ashley Harrison
e48baefd32
Adjust menu positioning (#45217) 2022-02-10 11:48:05 +00:00
Ashley Harrison
947b8b8d3b
Chore: Remove menuShouldPortal deprecation warning (#45211)
* Chore: Remove Select deprecation

* remove unused import

* Update lockfile
2022-02-10 11:46:35 +00:00
Torkel Ödegaard
f2795981c6
Prometheus: Fix test warnings (#45206) 2022-02-10 12:23:56 +01:00
renovate[bot]
14c639fdb5
Update dependency css-loader to v6.6.0 (#44764)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-10 10:26:31 +00:00
Hugo Häggmark
192572174e
Chore: Removes console output LogDetails.test.tsx and refactors to RTL (#45193) 2022-02-10 11:06:29 +01:00
Ryan McKinley
1bdbc3abdf
ContextMenu: make focus on open optional (#45170) 2022-02-09 20:43:08 +01:00
Hugo Häggmark
e806011a77
Chore: Removes console outputs from Cascader.test.tsx (#45142) 2022-02-09 14:40:28 +01:00
Hugo Häggmark
0282d5f9c3
Chore: Remove console output in ErrorBoundary.test.tsx (#45138) 2022-02-09 13:45:36 +01:00
Torkel Ödegaard
7c0b453e19
Tooltips: Make tooltips non interactive by default (#45053)
* Tooltips: Make tooltips non interactive by default

* More updates and cleanup

* Update

* Make time range picker tooltip interactive

* Fix issue

* Trying to make Receivers test faster

* Make JSONCell tooltip interactive
2022-02-08 22:58:20 +01:00
renovate[bot]
834d11691f
Update dependency core-js to v3.21.0 (#44734)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-08 16:19:20 +00:00
Dominik Prokop
ffea53f2f6
TimeSeries: Add support for negative Y and constant transform (#44774)
* add negative y config

* Handle negative y and constant transform in Timeseries panel

* Typechecks

* Add migration from old graph panel

* Docs update

* Revert "Add migration from old graph panel"

This reverts commit 33b5a90b66.

* Revert VizLegendItem changes

* Automatically separate positive and negative stacks within a group

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

* Remove SeriesLabel component

* Update docs/sources/visualizations/time-series/_index.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Update docs/sources/visualizations/time-series/_index.md

Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>

* Leftover reverts

* Don't crate bands (for now0 for negative -y stack

* Add docs note about transform being only available as an override

* Fill negative bands in reversed direction

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2022-02-08 07:27:02 -08:00
Kristina
c5f0701707
Reduce spacing for Explore/Logs switches (#44935) 2022-02-08 08:21:34 -06:00
renovate[bot]
8012dea737
Update babel monorepo to v7.17.0 (#44973)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-08 14:08:32 +01:00
renovate[bot]
9c2363ef08
Update dependency rollup to v2.67.1 (#44750)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-08 12:18:11 +00:00
Leon Sorokin
d0bc3b10bf
Chore: uPlot 1.6.19 (#45037) 2022-02-08 00:44:10 -08:00
Agnès Toulet
bdac6576e4
Feature Highlights: add highlight to toolbar button and add upgrade modal (#44645)
* Feature Highlights: add highlight to toolbar button and add upgrade modal

* replace hideTitle attribute by making title optional

* update modal design

* remove unused updates
2022-02-07 16:04:15 +01:00
renovate[bot]
f4b13f7d04
Update dependency react-calendar to v3.7.0 (#44984)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-07 15:46:33 +01:00
Ivana Huckova
2250c229d6
Prometheus: Add multi-word search and higlight to metric selector (#44906)
* Prometheus: Add multi-word search and higlight to metric selector

* Remove redundant test

* Remove redundant test id

* Update PromQueryBuilder test

* Match only words split with space
2022-02-07 15:18:17 +01:00
renovate[bot]
a8e9369084
Update Monthly patch updates (#44686)
* Update Monthly patch updates

* Remove 3 troublesome packages...

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-02-07 13:08:10 +00:00
renovate[bot]
08ee093dfe
Update Storybook updates to v6.4.15 (#44586)
* Update Storybook updates to v6.4.15

* revert(storybook): remove webpack process resolution as 6.4.14 patched it

* chore(yarn): update packageExtensions for storybook bump

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-02-07 11:29:15 +01:00
Leon Sorokin
b07345e57e
StateTimeline: add spanNulls editor (#44811) 2022-02-04 16:57:11 -06:00
Ashley Harrison
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
Andres Martinez Gotor
71e3e6ec93
Chore: Update pre version (#44855) 2022-02-03 16:52:53 +01:00
Peter Holmberg
3314178a0a
grafana/ui: Fix RelativeTimeRange supported formats (#44535)
* remove link to docs site

* extract tooltip to component

* text and formatting

* use div instead of p
2022-02-03 10:13:19 +01:00
Leon Sorokin
3504844ad7
DataFrame: insert null values along interval (#44622) 2022-02-02 10:25:49 -06:00
kay delaney
9e6b9215ab
SectionHeader: Fix "Go to Folder" link not working (#44593) 2022-02-02 16:27:55 +01:00
renovate[bot]
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