Commit Graph

4672 Commits

Author SHA1 Message Date
renovate[bot]
c04236b60d
Update dependency @floating-ui/react to v0.26.27 (#96158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-11 09:43:56 +00:00
Kristina
95692b3d68
BarChart: Fix threshold lines rendering for horizontal orientation (#95737)
* Use different threshold x/y coordinates depending on orientation

* invert wording / semantics

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-11-08 10:43:23 -06:00
Kristina
ac88461fe6
Canvas: Fix references for ResourcePicker (#95580)
* useRef instead of create ref for functional components, pass function to close popper if needed

* Cleanup, hide on save as well

* add comment about when hidePopper is available to content
2024-11-07 11:37:49 -06:00
Jack Westbrook
8c41137bcf
Frontend: Update to Eslint 9 (#94823)
* chore(eslint): bump all eslint related packages to latest

* chore(eslint): update linting scripts work with v9

* chore(eslint): introduce flat config

* chore(eslint): delete legacy configs

* feat(grafana-eslint-rules): update rules to use eslint 9 APIs

* chore(eslint): migrate all nested eslintrc files over to root config

* chore(packages): bump eslint dependencies

* feat(betterer): make it work with eslint 9

* style(grafana-data): remove non-existant ban-types rule from disable declarations

* chore(wip): [wip] link eslint-config-grafana

* chore(packages): add @eslint/compat

* chore(eslint): add compat to testing library and fix alerting rules

* chore(eslint): bump grafana eslint-config to v8

* chore(explore): delete legacy eslint config

* chore: clean codeowners file, remove grafana/eslint-config from e2e plugins

* test(eslint-rules): fix no-border-radius-literal and no-aria-label-e2e-selectors rule tests

* Add .js to prettier checks so new eslint.config.js file isn't missed

* chore(eslint): move emotion/syntax-preference to grafana/defaults

* test(eslint): use core-js structured-clone

* revert(services): undo merge backend-format githook changes

* test(eslint-rules): remove structured-clone polyfill from tests

* chore(eslint): add back public/lib/monaco to ignore list, sort alphabetically

* chore(e2e-plugins): remove eslint config 7 from plugins package.json

---------

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-11-07 16:31:06 +01:00
Ashley Harrison
b85b18288a
Chore: Fix some theme nits (#95887)
fix some theme nits
2024-11-06 16:03:45 +00:00
Tobias Skarhed
0629a34ae4
Combobox: Add no options message and aria live region (#95938)
* Add no options message and aria live region

* Add i18n

* Extract message layout and use Trans component

* Fix unused imports
2024-11-06 17:10:06 +02:00
Tobias Skarhed
a279220d74
Combobox: Use ScrollContainer to show scroll indicators (#95962)
Add CustomScrollbar
2024-11-06 15:35:31 +01:00
Andrej Ocenas
86ef3c916d
TimeRangeProvider: Fix synced status being kept when only one picker is mounted (#95885) 2024-11-06 13:40:17 +01:00
Tobias Skarhed
70e05c6a3a
Combobox: Remove Chance to generate options in story (#95842)
Generate basic options
2024-11-06 09:48:44 +01:00
Ashley Harrison
0fae3579e8
Chore: improve some types (#95728)
* fix some typings

* fix some more

* more type fixes

* fix some graphite types

* few influx fixes
2024-11-05 09:57:30 +00:00
Kristina
68aefc73b6
Timeseries: Utilize min/max on stacking percentage (#95581)
* Bring in defined min/max into stacking range

* simplify logic

* different approach

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-11-04 11:02:09 -06:00
Joao Silva
afcd620d21
Combobox: Handle error if async fails (#95740) 2024-11-04 12:08:51 +00:00
Ashley Harrison
7fd4f220b8
RefreshPicker: Fix styling (#95739)
need to set clear borderRadius explicitly on ButtonSelect
2024-11-04 10:00:12 +00:00
Liza Detrick
85ee91aa77
chore: (@grafana/ui) - table documentation explain applyFieldOverrides (#95523)
* chore: (@grafana/ui) - table documentation explain applyFieldOverrides
Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
2024-10-31 11:14:59 -07:00
Ashley Harrison
ada6249280
Chore: use ScrollContainer across frontend platform components (#95601)
* use ScrollContainer in grafana-ui

* remove extraneous labels

* fix unit tests
2024-10-31 15:27:35 +00:00
Ashley Harrison
b42c34070a
SingleTopNav: Fix org switcher in overlayed MegaMenu (#95654)
fix org switcher in singleTopNav
2024-10-31 14:48:01 +00:00
Alex Khomenko
f7e9aeac6e
FormattedValueDisplay: Improve styles check (#95639) 2024-10-31 12:59:46 +02:00
Josh Hunt
bf6056f2fa
Prometheus: Use Combobox for metric select (#93262)
* Uses Combobox in Prometheus for the metrics select, behind feature toggle

* switch to new async combobox api

* clean up MetricCombobox, add in dev slowness

* wip

* reset combobox changes to other pr https://github.com/grafana/grafana/pull/95191

* restore placeholder

* wip

* tests :)

* remove history comment

* use main import
2024-10-31 10:36:27 +00:00
Joao Silva
e40b19c7a6
Combobox: Debounce async calls (#95485) 2024-10-31 10:27:14 +00:00
Josh Hunt
55bcbcef83
GrafanaUI: Export Combobox from @grafana/ui (#95622) 2024-10-30 16:59:28 +00:00
Josh Hunt
fe4f44723d
Combobox: Call loadOptions with current input value when reopening menu (#95573) 2024-10-30 14:27:13 +00:00
Ashley Harrison
87c2bc44b2
GrafanaUI: Add new unstable ScrollContainer component (#95547)
add new unstable ScrollContainer component
2024-10-30 10:19:42 +00:00
Josh Hunt
952957248f
Combobox: Squish the menu height in small viewports (#95568)
* Combobox: Squish the menu height in small viewports

* rename constants
2024-10-29 17:47:31 +00:00
Jack Westbrook
eae83609b8
Grafana UI: Remove re-export of Ansicolor package (#95531)
chore(grafana-ui): remove re-export of ansicolor package
2024-10-29 10:04:33 +01:00
renovate[bot]
d68b5d222a Update dependency react-select to v5.8.2 2024-10-28 16:38:06 +00:00
Ashley Harrison
55673e2f41
Chore: Add emotion object syntax rule to eslint (#95429)
add object syntax rule to eslint
2024-10-28 13:47:46 +00:00
Tobias Skarhed
5ee5c7af7b
Combobox: Invalidate async calls using counter instead of value (#95049)
* Combobox async: Invalidate using timestamp instead of value

* Simulate keyboard delay in test

* Use a counter instead of timestamps

* Fix feedback

* Expand tests to include case discussed on PR

---------

Co-authored-by: Joao Silva <joao.silva@grafana.com>
2024-10-25 10:10:02 +02:00
Josh Hunt
0b842eb48e
Chore: Change filterTable nth-child to nth-of-type (#95331)
Chore: Change filterTable nth-child styles to fix console warning
2024-10-24 17:27:25 +03:00
Ashley Harrison
5fb1c7f512
Card: Set an explicit displayName for Card (#95353)
set an explicit displayName for Card
2024-10-24 17:18:05 +03:00
Ashley Harrison
4a9ba41f81
Switch: Improve screen reader behaviour (#95178)
* add role="switch" and only set a label if one is passed in

* fix unit tests

* fix more unit tests
2024-10-24 11:26:04 +01:00
renovate[bot]
f6354339ef Update dependency @types/prismjs to v1.26.5 2024-10-23 13:45:32 +00:00
renovate[bot]
b512e7be0a Update dependency @types/node to v20.16.15 2024-10-23 12:59:48 +00:00
renovate[bot]
3103776892 Update dependency @types/jquery to v3.5.32 2024-10-23 10:08:04 +00:00
renovate[bot]
5f8af8860f Update dependency @types/jest to v29.5.14 2024-10-23 09:40:48 +00:00
Josh Hunt
2a5afd0d1a
Combobox: Combine loading and search/caret icons (#95191)
Don't have both loading and search/caret icon at the same time
2024-10-23 10:39:03 +01:00
renovate[bot]
32d224223e Update babel monorepo to v7.25.9 2024-10-23 09:10:18 +00:00
Ihor Yeromin
b189743ca0
Actions: Improve drag and drop experience (#94263)
* feat(actions): improve dnd ux

---------

Co-authored-by: Kristina Durivage <kristina.durivage@grafana.com>
2024-10-23 09:24:06 +02:00
Andrej Ocenas
3bf3290340
Grafana/ui: TimeRangePicker with automatic sync across instances (#94074) 2024-10-22 12:52:33 +02:00
renovate[bot]
059c5a4d02 Update dependency @types/node to v20.16.14 2024-10-22 09:00:43 +00:00
Leon Sorokin
594e9b1b73
BarChart: Skip formatting null-valued ticks (#94935)
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
2024-10-21 22:29:51 +03:00
renovate[bot]
b7e658c5c3 Update dependency react-dropzone to v14.2.10 2024-10-21 18:07:01 +00:00
renovate[bot]
b43425b527 Update dependency @types/node to v20.16.13 2024-10-21 13:59:11 +00:00
renovate[bot]
2974ab634f Update dependency @types/lodash to v4.17.12 2024-10-21 16:15:42 +03:00
Ashley Harrison
cbce49b163
Internationalisation: Mark up @grafana/ui for translations (#94951)
* ensure grafana-ui is translated

* last couple

* improve name
2024-10-21 10:11:12 +01:00
renovate[bot]
b64a5848aa
Update dependency @floating-ui/react to v0.26.25 (#94957)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-18 13:24:04 +01:00
renovate[bot]
75fe42876a Update React Aria 2024-10-18 11:38:05 +00:00
renovate[bot]
afeb0fc792
Update dependency @types/testing-library__jest-dom to v6 (#94607)
* Update dependency @types/testing-library__jest-dom to v6

* remove package and fix types

* don't include setupTests in the build tsconfig

* exclude testUtils

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-10-18 11:59:47 +01:00
Adela Almasan
9125f0df20
Table: Add support for ActionsCell (#94648) 2024-10-18 02:15:34 +03:00
Adela Almasan
0d70dbe730
Table: Add actions support (#94578) 2024-10-18 01:47:39 +03:00
Kyle Cunningham
d7ee3ea086
Table: Fix text wrapping applying to wrong field (#93707)
* Fix text wrap
---------

Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
2024-10-17 20:33:59 +02:00