Commit Graph

7032 Commits

Author SHA1 Message Date
Kyle Cunningham
e4db00903b Format String Transformation: Add applicability function (#87777)
* Add applicability function

* Prettier
2024-05-16 02:29:30 +07:00
Ashley Harrison
1af4256a7c Switch: Improve disabled active state (#87694)
* add subtle active disabled state + fix story

* make toggle disabled color when disabled

* add icon in checked state

* undo placement changes

* readd positioning changes

* remove extra css
2024-05-15 16:50:24 +01:00
Torkel Ödegaard
ce18b2f983 Dropdown: Fixes missing calls to onVisibilityChange causing wrong caret states (#87923) 2024-05-15 17:07:59 +02:00
Dominik Prokop
fa63e03df3 MultiSelect: Respect value passed to the component regardless of custom value being allowed or not (#87906)
* MultiSelect: Respect value passed to the component regardless of custom value being allowed or not

* reset input for test

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-05-15 16:24:30 +02:00
Jack Westbrook
65b2834420 Grafana UI: Bump to Storybook 8 (#87722)
* chore(storybook): run yarn dlx storybook@latest upgrade

* chore(storybook): remove storybook/blocks patch

* chore(yarn): clean up storybook dependencies

* feat(storybook): migrate to v8 config via migration codemods

* refactor(storybook): update stories to use v8 types via codemod

* refactor(storybook): update stories to use preview-api instead of client-api

* refactor(storybook): replace mdx usage of ArgsTable with PureArgsTable

* refactor(storybook): migrate remaining mdx files to v8 storybook/blocks api

* refactor(storybook): clean up mdx imports and blocks component names

* chore(storybook): clean up typescript configuration

* fix(frontend): align types/react versions across monorepo so grafana ui can be built

* fix(storybook): pub back react-docgen-typescript and use ArgTypes so props tables work

* chore(storybook): patch blocks package to expose Preview component

* revert(storybook): revert changes related to using Canvas component in mdx files

* Storybook upgrade: Fix icon typing (#87793)

fix iconOptions typing

* refactor(storybook): prefer as const over asserting types

* revert(storybook): put back correct case in box.mdx

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-05-15 15:49:00 +02:00
Bogdan Matei
6127dfd322 Scopes: Adapt for new API (#87841)
* Implement changes for new Scopes API

* Update from linkID to linkId

* Fixes

* Fix tests

* prom/scopes: change query model to recieve []ScopeSpec

* Move to basic backend service

---------

Co-authored-by: Kyle Brandt <kyle@grafana.com>
2024-05-15 16:28:09 +03:00
Alex Khomenko
6c1e9a9717 Grafana/ui: Update IconRenderer (#87914) 2024-05-15 16:27:05 +03:00
Nathan Marrs
d92ec98ecc Transformations: Add string type check to field value in substring value matcher (#87782) 2024-05-14 16:56:46 -07:00
Ivana Huckova
f99c722ecf FeatureBadge: Update FeatureBadge to support current release stages (#87555)
* FeatureBadge: Update avalaiable FeatureState

* Move to separate folder

* Add private preview state
2024-05-14 18:58:47 +03:00
Dominik Prokop
c747e344bf SelectMenu: Fix potential undefined problem (#87835) 2024-05-14 18:16:00 +03:00
Arati R
6836bfe1ea Storage: Customise setting dual writing modes (#87668)
* Add feature toggles for mode 2 and 3 playlist dual writing
* Make current mode customised based on kind
* Check feature flags when initialising dual writer
* Fix linting
* Refactor NewDualWriter
2024-05-14 14:11:56 +02:00
renovate[bot]
2f11cf84e8 Update dependency @grafana/experimental to v1.7.11 2024-05-14 11:51:13 +00:00
Fabrizio
bd4e9d102b Update version to 11.0.0 2024-05-14 12:54:11 +02:00
Ashley Harrison
a7a503501a Select: Ensure virtualised menu scrolls active option into view when using arrow keys (#87743)
scroll option into view whenever current focusedIndex changes
2024-05-14 10:36:28 +01:00
Brendan O'Handley
7569fa6297 Prometheus: Add native histogram types metric explorer to allow filter by type (#87090)
* add native histogram type and give them the right type

* add tests for native histograms

* fix test
2024-05-14 11:23:44 +02:00
Tobias Skarhed
aa7a01a87e TimeRangePicker: Announce to screen reader when time range is updated (#87692)
Add aria live to TimeRangePicker
2024-05-14 10:20:15 +02:00
renovate[bot]
18f5a831f5 Update dependency sass to v1.77.1 (#87725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 16:10:26 +01:00
Duologic
e6669c835c Revert "fix: in generated file"
This reverts commit 724d198be1.
2024-05-13 14:49:23 +02:00
Duologic
724d198be1 fix: in generated file 2024-05-13 14:45:09 +02:00
renovate[bot]
02e0ece87d Update dependency rimraf to v5.0.7 2024-05-13 11:25:12 +00:00
renovate[bot]
0597265344 Update dependency immutable to v4.3.6 2024-05-13 11:04:06 +00:00
Ashley Harrison
9bf3adabd8 Spinner: Change spinner icon when prefers-reduced-motion is set (#87641)
* change spinner icon when prefers-reduced-motion is set

* update mock

* remove outdated comment

* fix matchMedia mocks

* update spinner aria label
2024-05-13 11:32:02 +01:00
renovate[bot]
b536b6d7de Update dependency glob to v10.3.15 2024-05-13 10:24:30 +00:00
Ashley Harrison
2cdb7d923f EmptyState: Don't apply animation when prefers-reduced-motion is set (#87638)
* don't apply animation when prefers-reduced-motion is set

* bail quicker

* early return
2024-05-13 10:48:41 +01:00
Alex Khomenko
f3953b4955 Notification Banner: Add feature toggle (#87686) 2024-05-13 12:32:34 +03:00
renovate[bot]
1983043b71 Update dependency @floating-ui/react to v0.26.14 (#87690)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 11:42:58 +03:00
renovate[bot]
89f6845739 Update dependency eslint-plugin-jest to v28.5.0 (#87654)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 09:25:33 +01:00
Jack Westbrook
f785a71aae Fix: Angular detection in plugin loader (#87323)
fix(plugins): make sure angular detection is passed to loader
2024-05-13 09:55:26 +02:00
Adela Almasan
f706c78ea1 Chore: Refactor tooltip scrollable prop (#87671) 2024-05-11 03:19:42 +03:00
Domas
708bcda76a VizLegend: Represent line style in series legend and tooltip (#87558)
* wip

* aand finished

* remove console log

* use css for styling

* user boerder for solid as well

* misc fixes

* attempt css based approach

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-05-10 21:27:09 +03:00
Leon Sorokin
f43ed7e6d7 BarChart: Refactor and VizTooltip fixes (#87160)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-05-10 12:58:53 -05:00
renovate[bot]
8bfd7e5106 Update dependency @types/react-test-renderer to v18.3.0 (#87649)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-10 19:29:46 +03:00
Ashley Harrison
396e75dadf Chore: Type improvements (#87634)
* improve typings in opentsdb datasource

* couple of influx improvements

* couple more

* more

* more more more

* 3 more

* changes to variables/inspect/utils

* some graphite improvements
2024-05-10 17:28:44 +01:00
renovate[bot]
b31193f172 Update dependency @reduxjs/toolkit to v2.2.4 2024-05-10 17:21:37 +03:00
renovate[bot]
be1bb04e9b Update dependency semver to v7.6.2 2024-05-10 13:32:47 +00:00
Ashley Harrison
670960f70c Chore: Upgrade redux (#86877)
* update packages

* fix type errors

* upgrade redux toolkit as well

* don't need eslint-disable command

* remove comment

* fix unit tests

* call rtk query selector directly

* remove unnecessary checks
2024-05-10 14:28:51 +01:00
renovate[bot]
329f4b1243 Update dependency glob to v10.3.14 2024-05-10 16:11:50 +03:00
renovate[bot]
0793a9033a Update dependency @types/lodash to v4.17.1 (#87419)
* Update dependency @types/lodash to v4.17.1

* fix grafana-data

* simpler grafana-data fix

* simpler code

* commit a betterer crime (it was already doing this implicitly before...)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-05-10 13:56:27 +01:00
Tobias Skarhed
fa95b41715 TimeSeries: Improve keyboard focus and fix spacebar override (#86848)
* Make GrpahNG focusable

* Move to VizLayout instead

* Update uPlot plugins for better keyboard support

* Remove unrelated changes

* different fix

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-05-10 14:07:12 +02:00
Torkel Ödegaard
459673b539 Dropdown: Fixes double call to onVisibilityChange (#87607)
* Dropdown: Fixes double call to onVisibilityChange

* Update

* update
2024-05-10 14:06:53 +02:00
renovate[bot]
d2c492cae5 Update dependency eslint-plugin-jsdoc to v48.2.4 2024-05-10 14:59:15 +03:00
renovate[bot]
dce39237c4 Update dependency @prometheus-io/lezer-promql to v0.52.0 (#87554)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-10 12:40:20 +01:00
Andrej Ocenas
8213e8a2a6 Flamegraph: Add collapse and expand group buttons to toolbar (#87395) 2024-05-10 11:51:09 +02:00
lean.dev
b009536329 Caching: Implement mtls-enabled memcached integration (#84171)
* fix merge

* fix conflicts

* updating generated feature toggle code

* Fix go mod owner

* fix merge

* add dependency

* fix dependencies

* workspace sync

* go get

* work sync

* trying something

* fix

* add docs for tls config

* work sync

* adjust go mod

* try something

* move import to the correct file

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2024-05-09 15:12:08 -04:00
timo
935076c349 SQL Query Editor: Fix label-for IDs, associate "Table" label (#86944)
* SQL Query Editor: Fix label-for IDs, associate "Table" label

* Fix mysql e2e test

---------

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2024-05-09 20:30:33 +02:00
Jev Forsberg
9bd44aed2e Transformations: Fix true inner join in joinByField transformation (#87409)
* baldm0mma/inner_join_fix/ init commit

* baldm0mma/inner_join_fix/ first attempt at an tabular inner join

* baldm0mma/inner_join_fix/ add innerTabular

* baldm0mma/inner_join_fix/ add innerJoin option to editor

* baldm0mma/inner_join_fix/ add editor option

* baldm0mma/inner_join_fix/ update joinInnerTabular function behavior

* baldm0mma/inner_join_fix/ add js docs

* baldm0mma/inner_join_fix/ update jsdocs

* baldm0mma/inner_join_fix/ update docs

* baldm0mma/inner_join_fix/ remove unused console.logs

* baldm0mma/inner_join_fix/ update tests

* baldm0mma/inner_join_fix/ simplify getValue

* baldm0mma/inner_join_fix/ update tests

* baldm0mma/inner_join_fix/ update docs builder

* baldm0mma/inner_join_fix/ add tables to Outer join (for tabular data)

* baldm0mma/inner_join_fix/ update docs

* baldm0mma/inner_join_fix/ build docs

* baldm0mma/inner_join_fix/ remove innertab for inner

* baldm0mma/inner_join_fix/ rename innertab

* baldm0mma/inner_join_fix/ update tests

* baldm0mma/inner_join_fix/ rem con logs

* baldm0mma/inner_join_fix/ rem comment

* baldm0mma/inner_join_fix/ rem sample data

* baldm0mma/inner_join_fix/ remove irrelevant test

* baldm0mma/inner_join_fix/ update docs

* Update packages/grafana-data/src/transformations/transformers/joinDataFrames.test.ts

Co-authored-by: Nathan Marrs  <nathanielmarrs@gmail.com>

* baldm0mma/inner_join_fix/ update test description

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-05-09 11:00:59 -06:00
renovate[bot]
25dfc865d5 Update Yarn to v4.2.2 2024-05-09 11:04:02 +01:00
Adela Almasan
3d56257b34 Timeseries: Fix incorrect threshold style (#87521) 2024-05-08 23:14:43 +03:00
renovate[bot]
01d28e01d2 Update dependency semver to v7.6.1 2024-05-08 17:21:38 +00:00
renovate[bot]
04ce2d2f5a Update dependency @types/prismjs to v1.26.4 2024-05-08 14:53:35 +00:00