Commit Graph

7530 Commits

Author SHA1 Message Date
Ashley Harrison
4d82139a33
Chore: Migrate _button SCSS styles to emotion globals (#92135)
migrate button styles to emotion globals
2024-08-21 12:46:30 +01:00
renovate[bot]
f26258984a Update dependency core-js to v3.38.1 2024-08-21 11:30:50 +00:00
renovate[bot]
9494e9b847 Update dependency @types/react-transition-group to v4.4.11 2024-08-21 10:58:24 +00:00
Ashley Harrison
292982f30b
Collapse: stop cropping focus rings (#92190)
remove overflow: hidden; from bodyContentWrapper
2024-08-21 11:01:53 +01:00
renovate[bot]
584559d3c2 Update dependency @react-awesome-query-builder/ui to v6.6.3 2024-08-21 09:33:03 +00:00
renovate[bot]
a8c6000c19
Update dependency @prometheus-io/lezer-promql to v0.53.2 (#92148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-21 09:49:14 +01:00
Alexa V
cd4b7ef9db
Dashboard Scene: Fix snapshots not displaying variables values (#88967)
* Use new snapshot variables from scenes

* Add snapshotVariable implementation

* Refactor: Extract variables logic from transforSaveModelToScene file

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-08-20 17:05:12 +02:00
Leon Sorokin
74ebc66520
VizTooltip: Fix positioning at bottom and right edges on mobile (#92042) 2024-08-20 08:48:37 -05:00
renovate[bot]
1525ee1a04 Update dependency @lezer/highlight to v1.2.1 2024-08-20 10:23:17 +00:00
renovate[bot]
90c5845b72 Update React Aria 2024-08-20 09:36:55 +00:00
renovate[bot]
d9812153dd
Update dependency typescript to v5.5.4 (#91678)
* Update dependency typescript to v5.5.4

* fix missing typeof

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-20 10:11:57 +01:00
Ashley Harrison
ab312914cd
Chore: cleanup util SCSS styles (#92078)
migrate SCSS util classes
2024-08-20 09:31:04 +01:00
Ihor Yeromin
5233e4b47f
Stat: Fix double-zero percent render (#91848)
fix(stat): percent zero case
2024-08-20 04:25:15 +03:00
renovate[bot]
8d197387ed
Update dependency @grafana/tsconfig to v2 (#92056)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-19 13:13:33 +03:00
Erik Sundell
134467fc4a
Plugin Extensions: Introduce new registry for exposed components (#91748)
* refactor app plugin internals

* add base registry and exposed components registry

* refactor usePluginComponent hook

* change type name

* fix hook

* remove comments

* fix broken tests

* add more tests

* remove link and component related changes

* use right id format

* add title prop

* remove comments

* rename registry

* make exportedComponentsConfigs required

* fix broken test

* cleanup tests

* fix prop name

* remove capability related code

* rename exported to exposed

* refactor(extensions): make registry types generic

* Update public/app/features/plugins/extensions/registry/ExportedComponentsRegistry.test.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* fix levitate error

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2024-08-19 08:43:11 +02:00
Drew Slobodnjak
d3c6e2b203
Table: Avoid rtl when using datalinks with units (#92038) 2024-08-16 15:42:20 -07:00
Brendan O'Handley
68f545210d
Prometheus: Fix label names select component when there are too many options (#92026)
* add more doc info for truncate function and how we use it

* truncate label names and allow users to search all labels on typing

* remove unused import

* handle labels select in variable query in addition with truncated list
2024-08-16 13:55:03 -05:00
Tobias Skarhed
b0031c0781
New Select: Set highlighted index to selected item on open (#91951)
* Set highlighted index on open

* Remove console log

* Use defaultHighLightedIndex
2024-08-16 14:47:39 +02:00
Brendan O'Handley
f01263803a
Prometheus: Add a limit for the series resource api in metrics browser (#91555)
* add a limit for the series resource api in metrics browser

* decouple serieslimit from options and only use in metrics browser

* add series limit input to metrics browser

* add warning

* add and fix tests

* add new param to jsdoc

* do not use the limit in other calls outside metrics browser

* update test

* trim limit

* fix tests, remove limit from non labels calls
2024-08-15 23:39:42 +03:00
Drew Slobodnjak
de0e6d0fce
PanelInspect: Handle field type frame for csv export (#91983)
PanelInspect: Handle field type frame
2024-08-15 13:15:49 -07:00
Kyle Cunningham
f14fd5828a
Table panel: Improve cell inspector (#91862)
* Improve cell inspector

* Update types

* Prettier

* Type checking fixes
2024-08-15 22:04:36 +07:00
grafana-delivery-bot[bot]
675a58b680
Release: Bump version to 11.3.0-pre (#91863)
* bump version 11.3.0-pre

* fix linters with: yarn run prettier:write

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Diego Augusto Molina <diegoaugustomolina@gmail.com>
2024-08-14 18:34:14 -03:00
Adela Almasan
f6b55ced6f
Canvas: Remove null data links (#91859) 2024-08-14 23:58:39 +03:00
Kyle Cunningham
40144eb3c8
Table: Fix edge case where text wrapping crashes on undefined header widths (#91850)
Make sure we don't read from header groups if it's undefined
2024-08-15 01:49:28 +07:00
Andres Martinez Gotor
44290ddf32
Adapt plugin page to preinstalled plugins (#91874) 2024-08-14 17:04:59 +02:00
Torkel Ödegaard
db5d8f03b7
Drawer: Fixes incorrect mask background and flickering (#91890) 2024-08-14 16:04:35 +02:00
Matias Chomicki
699ff406c3
Logs panel: Enable displayedFields in dashboards and apps (#91810)
* LogsPanelCfg: add displayedFields

* LogsPanel: expose displayedFields

* Chore: add docs

* LogsPanel: add callbacks to external API

* LogsPanel: expose field callbacks and add default implementation

* chore: add unit test

* chore: unfocus test

* LogsPanel: add docs for new props

* Enable by default
2024-08-13 18:58:15 +03:00
Leonor Oliveira
d52d04b6d8
Revert "Use dw dynamic config" (#91846)
Revert "Use dw dynamic config (#91222)"

This reverts commit 0258842f87.
2024-08-13 17:24:26 +02:00
Brendan O'Handley
e0b8a00e78
Prometheus: Histogram table format should keep le values as strings (#91662)
* remove le value parsing as numbers

* add tests
2024-08-13 10:06:53 -05:00
Yulia Shanyrova
8044cb50f1
Plugins: Plugin details right panel is added. All the details were moved from thee top to the right panel (#90325)
* PluginDetailsRight panel is added. All the details were moved from the top to the right panel

* Add feature toggle pluginsDetailsRightPanel,Fix build, fix review comments

* Fix the typo

Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>

* hasAccessToExplore

* changes after review, add translations

* fix betterer

* fix betterer

* fix css error

* fix betterer

* fix translation labels, fix position of the right panel

* fix the build

* add condition to show updatedAt for plugin details

* add test to check 2 new fields at plugin details right panel;

* change the gap and remove report abuse button from core plugins

* add more tests

---------

Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>
2024-08-13 11:55:30 +02:00
Leonor Oliveira
0258842f87
Use dw dynamic config (#91222)
* Remove kubernetesPlaylists feature_toggle

* Remove unified_storage_mode

* Remove double import

* Regenerate feature-toggles

* Read from config instead from feature_toggle

* cover scenario for when unified storage is not defined
2024-08-13 10:03:28 +02:00
Andres Martinez Gotor
d342e76f63
Chore: Add skeleton for background plugin installer (#91743) 2024-08-12 16:39:31 +02:00
Domas
6dce2ecbde
Sparkline: Support spanNulls graph config prop (#91797)
support spanNulls config prop for sparkline
2024-08-12 15:36:52 +03:00
Vijay Samuel
c9ddc688a2
Prometheus: Add support to make parallel queries (#90316)
* Add support for prometheus datasource to make parallel queries

* Incorporate review comments

* Update pkg/promlib/querydata/request.go

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>

* Fix lint

* Add parallel queries behind feature flag

* Fixing lint issue

* Update go.mod

* Update pkg/promlib/querydata/request.go

* Update pkg/promlib/querydata/request.go

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
Co-authored-by: Charandas <542168+charandas@users.noreply.github.com>
2024-08-12 14:31:39 +02:00
Ashley Harrison
369cd6f81e
Chore: Migrate dashboard_grid styles to emotion (#91673)
migrate dashboard grid styles to emotion
2024-08-12 13:22:14 +01:00
Ashley Harrison
dface46474
Chore: Migrate gf-form classes to emotion globals (#91632)
* migrate gf-form classes to emotion globals

* should be sm due to the different way the breakpoints work
2024-08-12 13:16:16 +01:00
Ashley Harrison
78f78753c7
Chore: Migrate Modal SCSS styles to emotion (#91569)
migrate modal scss styles to emotion
2024-08-12 12:55:22 +01:00
Ashley Harrison
ab3e8652aa
Adhoc Filters: add new feature toggle for 'one of' operator (#91688)
add new feature toggle for 'one of'
2024-08-12 09:56:42 +01:00
ismail simsek
b8ebc5d463
Chore: Update lezer package of prometheus frontend (#91252)
* update lezer package

* Use UnquotedLabelMatcher instead of LabelMatcher

* Use UnquotedLabelMatcher instead of LabelMatcher in parsing.ts
2024-08-11 23:48:04 +02:00
Jmdane
8bb548e17b
Transformations: Add 'transpose' transform (#88963)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-08-10 02:57:26 +03:00
Todd Treece
122e291134
Chore: Add dataplaneAggregator feature toggle (#91715) 2024-08-09 04:41:07 -04:00
Kevin Putera
01fc31069f
StateTimeline: Add pagination support (#89586)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-08-08 21:44:17 -05:00
Adela Almasan
9001b2e0ee
Datalinks: UX update (#91657) 2024-08-08 09:17:09 -05:00
renovate[bot]
ebc7355284
Update dependency eslint-plugin-jest to v28.8.0 (#91668)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-08 10:33:43 +01:00
renovate[bot]
1150ab5377
Update dependency ts-jest to v29.2.4 (#91644)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-08 11:25:45 +03:00
Borja Garrido
a083ec9ff5
Transformations: Add variable support to select groupingToMatrix (#88551) 2024-08-08 05:59:03 +03:00
renovate[bot]
9cfcc16d1a
Update dependency eslint-plugin-jest to v28.7.0 (#91637)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 16:48:32 +01:00
renovate[bot]
d5848384f8
Update dependency core-js to v3.38.0 (#91633)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 16:11:22 +01:00
renovate[bot]
f0d0fa901a
Update dependency @floating-ui/react to v0.26.22 (#91622)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 14:05:58 +01:00
renovate[bot]
7ccf79aa62 Update dependency marked-mangle to v1.1.9 2024-08-07 12:37:07 +00:00
renovate[bot]
a33d122485
Update Yarn to v4.4.0 (#91595)
* Update Yarn to v4.4.0

* add new yarn version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-07 12:48:56 +02:00
Ashley Harrison
e8d5d5fbff
Storybook: Fix Input story (#91564)
fix type + prefix/suffix
2024-08-07 11:05:20 +01:00
Adela Almasan
e91f16fc46
Datalinks: UX improvements (#91352) 2024-08-06 19:10:37 +03:00
renovate[bot]
0dbfeb0c6e
Update dependency @floating-ui/react to v0.26.21 (#91572)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-06 15:28:05 +03:00
Ashley Harrison
2e3f48a49d
Navigation: Fix browse dashboards/scenes dashboards when bodyScrolling is enabled (#91479)
set explicit height (not min-height) so everything works in safari
2024-08-06 09:51:31 +01:00
Ihor Yeromin
da291998cf
Revert "Calcs: Update diff percent to be a percent" (#91563)
Revert "Calcs: Update diff percent to be a percent (#90533)"

This reverts commit 5e21898294.
2024-08-06 11:03:01 +03:00
renovate[bot]
4de68e3774
Update dependency eslint-plugin-jsdoc to v48.11.0 (#91473)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-02 12:44:01 +02:00
renovate[bot]
670132ead8 Update dependency @types/node to v20.14.14 2024-08-02 09:56:04 +00:00
Josh Hunt
e55b438f14
E2C: Reduce UI poll interval and make configurable (#91386)
* E2C: Reduce UI poll interval and make configurable

* fix default
2024-08-02 10:46:41 +01:00
Ashley Harrison
ce8f5b5e1a
Navigation: Fix <Portal> when bodyScrolling is enabled (#91335)
fix portal when bodyScrolling is enabled
2024-08-02 10:29:51 +01:00
renovate[bot]
85e2ea2488
Update dependency @grafana/faro-web-sdk to v1.9.0 (#91403)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 18:07:34 +03:00
Andrej Ocenas
04d8f0f063
Runtime: Add provider and access hook for location service (#90759) 2024-08-01 15:59:20 +02:00
Brendan O'Handley
e39a131110
Prometheus: Add group function to aggregations (#91363)
add group function to aggregations
2024-08-01 08:58:12 -05:00
renovate[bot]
d8245966a4
Update dependency rc-cascader to v3.27.0 (#91396)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 16:25:47 +03:00
Alexander Akhmetov
a32854549c
Alerting: Support median in reduce expressions (#91119)
* Alerting: support median in reduce expressions
2024-08-01 15:04:17 +02:00
Ashley Harrison
66bfb31d8e
Tooltip: Handle case where document.body is the scrolling element (#91385)
* handle case where body is the scrolling element

* use instanceof Node instead
2024-08-01 13:34:23 +01:00
renovate[bot]
796f2994f9
Update dependency eslint-plugin-jsx-a11y to v6.9.0 (#91374)
* Update dependency eslint-plugin-jsx-a11y to v6.9.0

* ignore new violation and add comment to fix

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-01 13:34:02 +03:00
renovate[bot]
596c08e8f4
Update dependency eslint-plugin-react to v7.35.0 (#91378)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 11:11:09 +01:00
renovate[bot]
6cda2f67de
Update dependency eslint-plugin-jsdoc to v48.10.2 (#91370)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 11:46:59 +03:00
renovate[bot]
0590a42895
Update dependency eslint-plugin-jest to v28.6.0 (#91343)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 09:28:51 +01:00
Drew Slobodnjak
e6531d0ecd
Table: Fix negative numbers during rtl styling (#91347)
* Table: fix negative numbers during rtl styling

* revert field config unit check as it is no longer needed with fix implemented in this PR

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-07-31 15:28:24 -07:00
renovate[bot]
7570ea8c4f
Update babel monorepo (#91079)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 16:32:58 +01:00
Victor Marin
24d2fad921
Fix long datalinks to fit in panel options editor (#91203)
fix long datalinks to fit in panel options editor
2024-07-31 17:26:50 +03:00
Tobias Skarhed
e8c30c86f0
Frontend: Support tracing with Faro (#91237)
Move code from previous PR
2024-07-31 15:13:05 +02:00
renovate[bot]
f58dd70c2b
Update dependency @react-awesome-query-builder/ui to v6.6.2 (#91257)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 14:07:57 +01:00
Joao Silva
85d0e17dc4
Bookmarks: Store URLs instead of ids (#91121) 2024-07-31 13:56:39 +01:00
Esteban Beltran
782b725d87
Plugins Catalog: Display Request data source and view roadmap links (#91175)
* Add roadmap links to connection tab

* move to its own component

* add roadmaplinks to the catalog browse page

* use trans for text

* Change TextLink to accept ReactNode

* use Space component

* Add translations
2024-07-31 13:12:16 +02:00
renovate[bot]
ad8e317987
Update dependency @grafana/faro-web-sdk to v1.8.2 (#91244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 10:40:50 +01:00
Tobias Skarhed
ff54333881
Combobox: Add clear and reset onBlur (#90943)
* Add clear and reset onBlur

* use selectItem

* Use downshift hooks instead

* Fix Clear bug and extract i18n

* Remove useMemo from story

* Add loading state to many options story

* Set fallback to null

* Fix unused import

* Use onBlur and pass it to Downshift instead
2024-07-31 10:37:09 +02:00
Nathan Marrs
0a34b51055
Transformation: Add variable support for filter by value regex matcher (#90926)
* add support for template vars in filter by value transformation for regex matcher

* less code is more code

* add test to confirm interpolation works for regex

* suggestions input for regex editor

---------

Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-07-31 02:15:44 +03:00
renovate[bot]
e3842df675 Update dependency @types/node to v20.14.13 2024-07-30 11:57:59 +00:00
renovate[bot]
22ad5395d5 Update dependency @reduxjs/toolkit to v2.2.7 2024-07-30 11:35:34 +00:00
Will Browne
1b3fa8c47f
Plugins: Hide version information when plugin is managed (#88065)
* first pass

* fixup

* fix linter issues

* fix API test

* update naming

* rework

* update var name

* empty check

* prettier

* fix test

* fix lint
2024-07-29 11:18:43 +01:00
Leon Sorokin
90349b21f7
VizTooltip: Hide on page scroll even if anchored (#91084) 2024-07-26 22:27:49 +03:00
renovate[bot]
8e006fedda Update dependency @grafana/experimental to v1.7.13 2024-07-26 15:42:50 +00:00
Ryan McKinley
ec6c6bd6c3
Identity: Add read-only identity apiserver (#90418) 2024-07-26 17:09:08 +03:00
Kavindu Nilshan
0b822478b6
Resolved the issue stated in issue #90426. (#90465)
* Resolved the issue stated in issue #90426.

* Method created to get the length of the url.

* Applied the length logic and intentional fall through in switch.

* Changed the way length calculated

Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com>

* Remove un-used method getUrlLength

* Refactoring

---------

Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com>
2024-07-25 10:06:23 -06:00
Adela Almasan
0a870e6a88
Canvas: Element data links refactor (#90636)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-07-25 07:13:21 -05:00
Alex Khomenko
8cdf5ee824
E2C: Add Public Preview banner (#90922)
* E2C: Add public preview message

* Read feedback URL from the settings

* Translate strings

* Add missing translation

* Add missing translation[2]
2024-07-25 12:44:49 +03:00
Laura Fernández
944cc87f65
Combobox: Styling for dropdown (#90140)
* Add getSelectStyles

* Modify combobox styles

* Fix option with description styles

* Add highlightedIndex

* Undo estimateSize changes

* Create getComboboxStyles

* Add floating ui to Combobox

* Use elements to apply existing refs

* Delete width on styles

* Fix menu styling

* Update packages/grafana-ui/src/components/Combobox/Combobox.tsx

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>

* Changes suggested in reviews

* Delete container styles

* Delete container styles

* Add calculated height to ul element

* Show all options in the many options story

* Replace deprecated code

* Remove console.log

* Fix ts error

* Fix ts error

* Fix val is mull error

* Fix ts error

* Add comment in the code

* Modify the comment

---------

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
2024-07-25 11:17:23 +02:00
Ashley Harrison
d8711beac5
Chore: Migrate dashdiff styles to emotion globals (#90818)
* migrate dashdiff styles to emotion globals

* fix colors
2024-07-24 12:43:52 +01:00
renovate[bot]
5be7cfca69 Update React Aria 2024-07-24 10:56:08 +01:00
renovate[bot]
92d0a40f70
Update Yarn to v4.3.1 (#90871)
* Update Yarn to v4.3.1

* add yarn 4.3.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-07-24 11:46:53 +03:00
Ashley Harrison
6df9fda298
Navigation: Tweak app height when bodyScrolling is enabled (#90828)
use vh instead of svh
2024-07-24 09:04:24 +01:00
renovate[bot]
671f278ee1 Update dependency @types/node to v20.14.12 2024-07-23 19:21:07 +00:00
renovate[bot]
b85700e386 Update dependency semver to v7.6.3 2024-07-23 17:34:17 +00:00
renovate[bot]
d30f8a01cc Update dependency sass to v1.77.8 2024-07-23 17:13:23 +00:00
renovate[bot]
546d9991fa Update dependency react-use to v17.5.1 2024-07-23 15:42:41 +00:00
Ashley Harrison
219f4776a2 run prettier 2024-07-23 14:45:54 +01:00
renovate[bot]
486815606c Update dependency prettier to v3.3.3 2024-07-23 14:45:54 +01:00
Ashley Harrison
80f201026f
Chore: Migrate _dashboard SCSS styles to emotion (#90604)
migrate dashboard.scss styles to emotion
2024-07-23 11:02:18 +01:00
renovate[bot]
e5a0117bb8 Update dependency marked-mangle to v1.1.8 2024-07-23 09:59:48 +00:00
renovate[bot]
999aff5458
Update React Aria (#90760)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-23 09:07:47 +01:00
Nathan Marrs
3b9c6da4eb
Table: Fix cell units (#90799) 2024-07-22 15:41:51 -07:00
Leon Sorokin
06a5c970c4
VizTooltip: Wrap labels to new lines when > ~50% screen width (#90798) 2024-07-22 15:52:36 -05:00
renovate[bot]
61e408ab93 Update dependency immutable to v4.3.7 2024-07-22 15:22:13 +00:00
renovate[bot]
2ebd4237f6 Update dependency chance to v1.1.12 2024-07-22 13:29:52 +00:00
Ashley Harrison
dc30858e9d
Select: Fix scrolling virtualized menu on mobile (#90724)
pass select-menu innerRef to virtualized list
2024-07-22 14:27:50 +01:00
Ida Štambuk
5b17cd93c5
Cloudwatch: Remove awsDatasourcesNewFormStyling feature toggle (#90128)
* Remove toggle from cloudwatch plugin

* Remove feature toggle from registry

---------

Co-authored-by: Kevin Yu <kevinwcyu@users.noreply.github.com>
2024-07-22 14:48:17 +02:00
jackyin
5e21898294
Calcs: Update diff percent to be a percent (#90533)
diff per unexpected results
2024-07-22 14:03:11 +02:00
renovate[bot]
296b14b360
Update dependency @floating-ui/react to v0.26.20 (#90723)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-22 14:07:38 +03:00
Joao Silva
546f4aa700
Navigation: Show list of pinned items on MegaMenu (#90280)
* Navigation: Show list of pinned ites on the navigation

* Rename section to 'Bookmarks'

* Internationalization

* Rename everything to bookmarks

* Update public/app/core/reducers/navBarTree.ts

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* Ignore empty message as well

* Dont update navigation if there is an error patching

---------

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2024-07-22 11:43:40 +01:00
renovate[bot]
63cc01fe80 Update dependency @types/node to v20.14.11 2024-07-22 07:57:16 +00:00
renovate[bot]
f259f99485 Update dependency @types/lodash to v4.17.7 2024-07-19 17:40:32 +00:00
renovate[bot]
c5775b3778
Update dependency @swc/helpers to v0.5.12 (#90670)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-19 17:50:47 +03:00
renovate[bot]
21d1669bfc Update dependency @reduxjs/toolkit to v2.2.6 2024-07-19 14:29:02 +00:00
Matias Chomicki
66fb4d5f1a
Combine responses: add support for frames with repeated field names (#90650)
* Combine responses: add support for frames with repeated field names

* Formatting
2024-07-19 14:26:06 +00:00
Ashley Harrison
c4570ecfdc
Chore: Tweaks to support React 19 (#90653)
changes needed for react 19, mostly don't spread key
2024-07-19 13:40:02 +01:00
renovate[bot]
ec432fa314
Update dependency @floating-ui/react to v0.26.19 (#90614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-19 13:26:07 +01:00
Adela Almasan
0e4c9a2e36
Transformations: Fix filterByValue interpolation (#90631) 2024-07-19 07:21:41 -05:00
Jack Westbrook
893efb045b
Grafana/ui: Fix types not being installed for consumers (#90463)
fix(grafana-ui): make sure exported types are available for consumers
2024-07-19 14:08:34 +02:00
Adela Almasan
61d8910a5b
Transformations: Fix filterByValue being applied to the wrong series (#90512) 2024-07-18 11:03:41 -05:00
renovate[bot]
d61dbae7fe Update babel monorepo 2024-07-18 12:01:07 +00:00
ismail simsek
f8645f73ea
Prometheus: Improve expanding ruleIs with identifier label checking (#90336)
* define rule mapping type

* introduce a new mapping type

* add type comments

* add identifier check

* remove tests from wrong file

* add tests to the right file

* define function body

* unit tests and logic for getQueryLabelsForRuleName

* update logic of getRecordingRuleIdentifierIdx

* update logic and tests getRecordingRuleIdentifierIdx

* fix unit tests

* fix tests

* update how we return the options

* update message

* update type

* update expandRecordingRules unit tests

* remove identifier from end result

* fix unit tests once more

* remove fix action from expand rules warning

* remove generic type

* update warning text

* betterer
2024-07-18 13:17:33 +02:00
Josh Hunt
32232e44d2
E2C: Get Cloud Token status (#90525)
* E2C: Get Cloud Token status

* remove console.log
2024-07-18 09:48:06 +01:00
Kristina
6eb695b258
Explore: Add setting for default time offset (#90401)
* Add setting for explore for a different time offset

* fix linter

* Add validation for duration value
2024-07-17 11:47:49 -05:00
Drew Slobodnjak
1fc57d8fd5
Transformations: Fix null for reduceSeriesToRows (#90508)
* Transformations: Fix null for reduceSeriesToRows

* Add tests with null data frames
2024-07-17 09:25:46 -07:00
Andreas Christou
2616366a0a
Prometheus: Reintroduce Azure audience override feature flag (#90339)
* Re-add feature flag with deprecation note

* Hide the field in frontend if ff disabled

* Block scope overriding if ff is disabled in backend

- Update promlib to forward logger to extendOptions
- Add warning
- Update tests

* Default toggle to true for now

* Update description

* Update prom tests

* Fix lint
2024-07-17 15:09:55 +01:00
Ashley Harrison
334657e1cb
Navigation: Move scroll behaviour to body (#89921)
* initial attempt at body scrolling

* fix login layout

* minor fixes

* "fix" some fixed position stuff

* remember scroll position in dashboard page

* fix unit tests

* expose chrome header height in runtime and fix connections sticky header

* fix panel edit in scenes

* fix unit tests

* make useChromeHeaderHeight backwards compatible, fix plugin details double scrollbar

* fix sticky behaviour in explore metrics

* handle when undefined

* deprecate scrollRef/scrollTop

* fix extra overflow on firefox
2024-07-17 13:48:47 +01:00
Ivan Ortega Alba
3559c5c297
Revert "Frontend: Use safe stringifier in parseBody" (#90522)
Revert "Frontend: Use safe stringifier in parseBody (#90047)"

This reverts commit 434f386982.
2024-07-17 14:00:01 +03:00
Joanna
8f376a302b
UI: Align the icon in the Alert (#90461)
* UI: Align the `icon` in the `Alert`

* feat: align icon with one line text

* chore: prettier imports fix

* chore: revert imports

* feat: remove alignSelf & position the icon

* chore: clean up
2024-07-17 11:48:57 +01:00
Edvard Falkskär
c41f3394a4
InteractiveTable: Add initial sort prop (#89937) 2024-07-17 09:37:30 +01:00
Andrew Hackmann
319a874033
MSSQL: Password auth for Azure AD (#89746)
* Password auth for Azure AD

* rename auth fields

* add azure flag for client password cred enabled

* prettier

* rename flag

* Update go.mod

* Update public/app/plugins/datasource/mssql/azureauth/AzureCredentialsForm.tsx

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Apply suggestions from code review

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* update package

* go mod

* prettier

* remove password

* gowork

* remove unused env test

* linter

---------

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2024-07-16 14:08:51 -05:00
Galen Kistler
ac21fa8e18
Table: Update selected row color (#90364)
* chore: update table highlighted row color
2024-07-16 13:44:55 -05:00
Galen Kistler
bb52c340cc
Scrollbar: fix scrollTo being called on stale reference (#90346)
* fix: fix scrollTo being called on stale reference
2024-07-16 11:34:29 -05:00
Drew Slobodnjak
4de34ac246
Table: Fix justifyContent with cellLink overflow (#90353)
* Table: Fix justifyContent with cellLink overflow

* Add textAlign to fix failing test
2024-07-16 09:26:06 -07:00
Matias Chomicki
8547148623
Combine responses: do not combine frames with different names (#90464) 2024-07-16 16:34:08 +03:00
Tobias Skarhed
4c9cb63823
PanelShortcuts: Set attention onMouseEnter (#90435)
Add onMouseEnter to PanelChrome
2024-07-16 09:03:38 +02:00
Joey
5beaae8561
FlameGraph: Remove flameGraphItemCollapsing feature toggle (#90190)
Remove feature toggle
2024-07-15 13:45:41 +01:00
Adela Almasan
9bc68562d4
Canvas: Element level data links (#89079) 2024-07-12 12:02:49 -05:00
Ashley Harrison
c13f804ef9
Storybook: Fix missing favorite and grafana icons (#90376)
ignore "fa fa-spinner" properly
2024-07-12 18:49:23 +03:00
Galen Kistler
8400b54a53
Table: Fix state bug with initialRowIndex (#90308)
* fix: fix state bug

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-07-12 09:14:47 -05:00
Ashley Harrison
a6f9336ea1
Chore: SCSS cleanup (#90366)
* migrate _type styles

* migrate queryEditor styles
2024-07-12 14:47:12 +01:00
Ashley Harrison
8d858b1a82
Chore: Migrate more SCSS (#90224)
* tidy up alerts scss

* clean up alerting page rules

* remove mixins
2024-07-12 13:49:59 +01:00
Ashley Harrison
b321dc7280
Chore: Migrate from react-beautiful-dnd to @hello-pangea/dnd (#90328)
* migrate from react-beautiful-dnd to @hello-pangea/dnd

* revert comment
2024-07-12 10:23:29 +01:00
Tom Ratcliffe
f140594cf1
Alerting: Make whitespace more visible on labels (#90223) 2024-07-11 17:33:27 +01:00
Giuseppe Guerra
9216a3df7d
Plugins: Remove datasourceQueryMultiStatus feature toggle (#90191)
* Remove datasourceQueryMultiStatus feature toggle

* PR review suggestion
2024-07-10 11:15:10 +02:00
kay delaney
434f386982
Frontend: Use safe stringifier in parseBody (#90047)
* Frontend: Use safe stringifier in parseBody

Closes #88064
2024-07-09 16:15:59 +01:00
Galen Kistler
20181425e4
Table: Prevent runtime error when resizing columns with onColumnResize (#89862)
fix: prevent runtime error when resizing columns
2024-07-09 07:08:35 -05:00
Ashley Harrison
8444c7760c
Chore: Remove deprecated SCSS styles (#90187)
clean up infobox styles
2024-07-09 12:53:43 +01:00
Gilles De Mey
b7910ade97
Alerting: Allow future relative time (#89405) 2024-07-09 13:18:24 +02:00
Jack Westbrook
d8137083d9
Grafana/data: Remove barrel files part 3 (#90001)
* chore(grafana-data): remove monac and theme barrel files, clean up imports and exports

* chore(grafana-data): remove query barrel file and update imports / exports

* chore(grafana-data): remove text and events barrel files, update imports n exports

* chore(alerting): fix grafana/data imports pointing to nested barrel files

* chore(grafana-data): delete unused text/index.ts

* chore(grafana-data): fix broken text import paths
2024-07-09 10:07:33 +02:00
Timur Olzhabayev
f763f2085b
Feat: Extending report interaction with static context that can be appended to all interaction events (#88927)
* Extending report interaction with static context that can be appended to all requests
2024-07-08 16:37:45 +02:00
Andres Martinez Gotor
2b7338f8b6
Add optional APIVersion to DatasourceRef (#90076) 2024-07-08 13:12:56 +02:00
Alex Khomenko
96cdce7f72
FilterList: Separate ItemRenderer (#90112)
* FilterList: Separate ItemRenderer

* Extend props

* Codeformat
2024-07-08 14:05:43 +03:00
Andres Martinez Gotor
61b95783d5
UpdateDatasource: Add apiVersion if enabled (#90038) 2024-07-08 13:02:48 +02:00
Josh Hunt
06de37e6cd
GrafanaUI: Allow wrap prop on Stack to be a boolean (#90145) 2024-07-08 11:50:51 +01:00
Alex Khomenko
c1ec327b74
FilterList: Improve "No values" display (#90032)
* FilterList: Improve "No values" display

* Switch to ternary
2024-07-08 13:27:34 +03:00
Ashley Harrison
675457fb10
Select: Better styling for virtualized group separators (#90127)
* better styling for group separators

* update comment

* revert back to 37
2024-07-08 10:32:15 +01:00
Ashley Harrison
680f5ed2cc
Chore: More SCSS cleanup (#90132)
* convert TagBadge to a functional component

* migrate label and label-tag styles to TagBadge

* migrate filter-table to emotion globals

* migrate query-part styles to emotion globals

* move tag color to be an inline style
2024-07-05 14:33:43 +01:00
Alex Khomenko
7c7f09233d
DateTimePicker: Add "timeZone" prop (#90031)
* DateTimePicker: Add custom timeZone support

* Add test

* More tests

* Add comment

* Tweaks
2024-07-04 14:45:48 +03:00
Ashley Harrison
bcb168c39d
Drawer: Fix size on mobile (#90037)
fix drawer size on mobile
2024-07-04 11:19:19 +01:00
Ashley Harrison
df84d8509d
Select: Properly show group separator for virtualized selects (#90005)
* add group separator for virtualized selects

* simplify
2024-07-04 10:30:35 +01:00
Ida Štambuk
eef9a7b4e5
Cloudwatch: Rename Metric Query to Metric Insights (#89955) 2024-07-04 10:30:23 +02:00
Kyle Cunningham
c9b1e81ed2
Table panel: Add alt and title text options to image cell type (#89930)
* Various updates

* Update form callbacks

* Use defaultValue as opposed to value on input

* Fix things up

* Docs

* Prettier

* Update docs

* Update label text

* Prettier
2024-07-03 22:10:54 +03:00
ismail simsek
7f5dde6ed3
Chore: Cleanup duplicated code in grafana-prometheus package (#89542)
* remove redundant test matchers

* use amendTable, trimTable functions from @grafana/data package

* move getMockDataSource function into the mocks.ts

* use LocalStorageValueProvider from @grafana/o11y-ds-frontend

* move all mocks under __mocks__ directory

* use store from @grafana/o11y-ds-frontend

* move test related files under test directory

* use getNextRefId from @grafana/data instead of deprecated getNextRefIdChar
See: https://github.com/grafana/grafana/pull/87460

* betterer

* remove unnecessary mockings

* import from @grafana/data

* import from @grafana/data
2024-07-03 16:21:29 +02:00
Dominik Prokop
f659bc1f40
Dashboard: Allow disabling dashboard grid lazy loading (#89280)
* Schema update

* Dashboard: Allow opting out from dashboard panels lazy loading

* Locale

* Lint fix

* Snaps fix
2024-07-03 16:00:45 +02:00
Jack Westbrook
306ae8b4f5
Grafana/data: Remove barrel files part 2 (#89850)
* chore(grafana-data): remove datetime barrel file and update all imports

* chore(grafana-data): remove types barrel file and update imports

* chore(grafana-data): update types imports across package files

* chore(grafana-data): fix erroronous type export definition on OrgRole

* chore(grafana-data): fix errornous re-export type declarations and missing datetime/common exports

* chore(azure-monitor): fix import pointing to nested grafana-data barrel file
2024-07-03 14:14:58 +02:00
Joao Silva
9004b58851
Navigation: Backend to save navigation customization into preferences (#89783) 2024-07-03 10:40:51 +01:00
ismail simsek
5b6edc96d9
Chore: Use SelectMenuOptions from @grafana/ui in grafana-prometheus (#89562)
use SelectMenuOptions from @grafana/ui
2024-07-03 01:27:19 +02:00
Ida Štambuk
36ff0fe63a
Features: Add cloudwatchMetricInsightsCrossAccount feature toggle (#89848) 2024-07-02 12:34:12 +02:00
Adela Almasan
78f9c0fd41
Table: Filter hidden fields for text wrapping (#89800) 2024-07-01 22:01:19 +03:00
Alex Khomenko
852d032e1a
App events: Add "info" variant (#89903)
* App events: Add info notification type

* Add info hook

* Revert state

* Use info alert
2024-07-01 14:28:49 +03:00
Ashley Harrison
c0058f9c7e
Page: Add bodyScrolling feature toggle (#89895)
add bodyScrolling feature toggle
2024-07-01 11:28:39 +01:00
Adela Almasan
ad2b5a02a1
VizTooltip: Hide tooltip options from when tooltip is hidden (#89864) 2024-06-28 00:49:20 +03:00
Lucy Chen
8b35ce6129
ShareModal: Export options (JSON) (#87082)
* Adding new export button

* Create Export as JSON drawer

* update scene drawer and add css

* update css

* Update ExportAsJson to be regular react component

* add tests to export menu and button

* add tests

* prettier and lint

* fix translations

* update translation

* Apply suggestions from code review

Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>

* delete extra file

* Update to use SceneObject

* add spinner

* Rename ExportAsJSON.tsx to ExportAsJson.tsx

* update i18n

* Upate texts

* small fixes from code review

* add space

* i18n

* fix build issues

* changes from review feedback

* update test

* update test

---------

Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>
2024-06-27 15:36:23 -04:00
Ida Štambuk
ba5b33227c
Cloudwatch: Round up endTime in GetMetricData to next minute (#89341)
* Add cloudWatchRoundUpEndTime feature toggle
2024-06-27 17:10:28 +02:00
kay delaney
2e0175c3eb
Dashboards: Change datemath parse logic so parsed dates always take timezone into account (#88182)
* Dashboards: Change datemath parse logic so parsed dates always take timezone into account
2024-06-27 16:17:21 +03:00
ismail simsek
8f2daacf78
Chore: Remove CancelablePromise (#89564)
* Remove CancelablePromise.ts as it wasn't used in anywhere

* Move cancelable-promise to the place where it is used
2024-06-27 13:33:35 +02:00
Jack Westbrook
56fb1234f6
Grafana/data: Remove barrel files part 1 (#89556)
* chore(grafana-data): remove dataframe barrel file and update all imports and exports

* chore(grafana-data): remove field barrel file and update imports n exports

* chore(grafana-data): remove utils barrel file and update imports and exports

* chore(grafana-data): remove tranformations barrel file and update imports n exports

* chore(grafana-data): remove imports from root index.ts

* chore(grafana-data): remove valueFormats barrel file and update imports n exports

* chore(grafana-data): don't import from root barrel file
2024-06-27 12:42:42 +02:00
Dominik Prokop
be1414b36b
Dashboards: Remove scenes feature toggle (#89771) 2024-06-27 09:03:46 +02:00
Alex Khomenko
9056ff73f6
TimeRangePicker: Use week start (#89765) 2024-06-27 07:53:46 +03:00
Kyle Cunningham
c575c06d63
Table Panel: Fix Image hover without datalinks (#89751)
* Fix image hover

* Prettier

* Fix height offset
2024-06-26 23:12:44 +07:00
Jack Westbrook
40207c53ae
Plugins: Expose functions to plugins for checking RBAC permissions (#89047)
* feat(grafana-data): create rbac functions for checking permissions

* feat(grafana-runtime): pass current user to runtime

* feat(grafana-runtime): expose rbac functions to check permissions against current user

* refactor(contextsrv): use functions from grafana/data to check rbac permissions against user

* Apply suggestions from code review

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* chore(rbac): fix missing types imports

* refactor(rbac): make exposed functions return boolean

---------

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2024-06-26 17:29:17 +02:00
Ashley Harrison
d3dda4ca89
Storybook: Use new JSX runtime (#89768)
use new jsx runtime in storybook
2024-06-26 12:14:11 +01:00
Ashley Harrison
7b0362b228
Drawer: Improve performance when resizing (#89691)
apply dynamic styles as styles instead of emotion classes
2024-06-26 09:37:17 +01:00
Leon Sorokin
0f01db4025
VizTooltip: Keep visible while hovering during data updates (#89708) 2024-06-25 20:00:47 +03:00
Jake Leahy
2bd95b2eb5
Prometheus: Fix quote stripping in parser (#87675)
* Prometheus: Fix quote stripping in parser

Currently only double quotes are stripped from the end, while single quotes are left. Moreover, double quotes are stripped even when part of the value

* Prometheus: Double escape the string, apply linting fixes for files that I touched
2024-06-25 17:39:32 +02:00
Laura Fernández
a3879e02bb
RestoreDashboards: Create FE feature toggle (#89655) 2024-06-25 16:43:13 +02:00
Ashley Harrison
7b88de9946
Chore: Move font-awesome styles back to SCSS (#89687)
move font-awesome styles back to scss for performance reasons
2024-06-25 15:28:24 +01:00
Bogdan Matei
e4b9f356bc
Scopes: Implement radio buttons for containers with single node selection (#89674) 2024-06-25 17:10:36 +03:00
Ashley Harrison
47f8717149
React: Use new JSX transform (#88802)
* update eslint, tsconfig + esbuild to handle new jsx transform

* remove thing that breaks the new jsx transform

* remove react imports

* adjust grafana-icons build

* is this the correct syntax?

* try this

* well this was much easier than expected...

* change grafana-plugin-configs webpack config

* fixes

* fix lockfile

* fix 2 more violations

* use path.resolve instead of require.resolve

* remove react import

* fix react imports

* more fixes

* remove React import

* remove import React from docs

* remove another react import
2024-06-25 12:43:47 +01:00
Alex Khomenko
a9aba2b42f
TimeRangePicker: Add weekStart prop (#89650)
* TimeRangePicker: Add weekStart prop

* Set week start from config

* Use week start from dashboard

* Revert

* Add comment

* Tweak comment

* Add WeekStart type
2024-06-25 14:22:55 +03:00
Laura Fernández
fd96edaef7
POC: Disable ConfirmButton (#89539) 2024-06-25 09:42:18 +02:00
Chirag Gomber
ca1afff886
Chore: Remove deprecated Layout components (#89376)
* Removed depricated HorizontalLayout from PrometheusMetricsBrowser

* Removed commented import

* typo fix

* Removed depricated HorizontalLayout from RawInfluxQLEditor

* Replaced InlineFormLabel to InlineField in RawInlfuxEditor.tsx

* Removed depricated HorizontalLayout from GraphiteFunctionEditor

* Changed div to instead use stack

* Changed htmlFor attribute from selectElementId to aliasElementId

* Updated the betterer results

* Updated prettier write to the updated files

* Changed htmlFor label to fix the text
2024-06-24 20:59:41 +02:00
Ashley Harrison
7d8afd9578
Tab: Improve accessible name (#89602)
* replace aria-label selector with data-testid

* fix unit tests

* fix e2e selectors

* fix last unit test

* fix e2e tests

* fix casing

* fix e2e test

* fix casing
2024-06-24 17:48:26 +01:00
Haris Rozajac
e9ee65924b
Chore: Remove explore content outline feature toggle (#89277)
Remove explore content outline feature toggle
2024-06-24 09:45:42 -06:00
Juan Cabanas
399651b9ad
ShareDrawer: Share snapshot (#89195) 2024-06-24 10:26:06 -03:00
ismail simsek
946545cfc5
Chore: Move LocalStorageValueProvider under @grafana/data pacakge (#89580)
Rehome LocalStorageValueProvider
2024-06-24 15:06:49 +02:00
Ashley Harrison
7939745411
Chore: SCSS cleanup (#89563)
* fix fonts loading from CDN

* migrate font-awesome styles to emotion globals

* fix font-awesome rendering

* remove storybook scss overrides

* fix storybook theme imports
2024-06-24 11:42:16 +01:00