Commit Graph

7547 Commits

Author SHA1 Message Date
Adela Almasan
d630e9bcb3
Chore: Update Action interface (#93248)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-09-23 10:41:05 -05:00
renovate[bot]
026748a5ab Update dependency rc-slider to v11.1.6 2024-09-23 18:38:45 +03:00
renovate[bot]
1a13e7fd95 Update dependency @types/systemjs to v6.15.1 2024-09-23 14:11:17 +00:00
Andres Martinez Gotor
a45167a595
Remove backgroundPluginInstaller feature flag (#93540) 2024-09-23 15:49:18 +02:00
renovate[bot]
07f11e9222 Update dependency @rollup/plugin-node-resolve to v15.2.4 2024-09-23 13:37:26 +00:00
Galen Kistler
26b039bb81
Prometheus: Incremental query cache keep extra datapoint before new 'from' (#93186)
* fix: keep extra datapoint before new 'from' when evicting datapoints in incremental query cache

* remove redundant comments

* Update todo

* move prometheus specific code in a new function

* add unit test

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-09-23 14:45:31 +02:00
renovate[bot]
08b2805d07
Update dependency esbuild to v0.24.0 (#87650)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 12:27:38 +01:00
Misi
b369341868
Chore: Add feature toggle for session storage redirect handling (#93575)
Add feature toggle for session storage redirect handling
2024-09-23 12:31:23 +03:00
Ezequiel Victorero
e22540b763
PublicDashboards: Fix import email sharing api (#93480) 2024-09-20 17:00:02 +01:00
renovate[bot]
bb69afed7c
Update dependency @grafana/faro-web-sdk to v1.10.0 (#93347)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-20 11:32:47 +01:00
Ryan McKinley
f21a5987a2
Plugins: Expose datasources as apiservers feature toggle (#93250) 2024-09-19 11:28:27 +03:00
Ashley Harrison
73eff837e8
Select: Fix last option in an option group to be selectable (#93457)
don't completely overwrite innerProps
2024-09-19 09:05:23 +01:00
DaRK AnGeL
224e96effa
Chore: Add ILS (Israeli New Shekels) currency to value formatter (#93390)
add ILS to Currency
2024-09-19 08:05:28 +02:00
kay delaney
98a4d2858a
Dashboards: Fix 'days' unit pluralization (#93326) 2024-09-18 10:00:42 +01:00
Misi
41cd0f5180
Auth: Add improvedExternalSessionHandling feature toggle (#93385)
Add improvedExternalSessionHandling feature toggle
2024-09-17 13:54:39 +03:00
Juan Cabanas
c56870e511
ShareDrawer: Test coverage (#93111) 2024-09-13 11:01:21 -03:00
renovate[bot]
dc2a777edb Update dependency @types/jest to v29.5.13 2024-09-13 10:27:38 +00:00
renovate[bot]
1783b47545
Update dependency eslint-plugin-react to v7.36.1 (#93255)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-13 10:46:49 +01:00
Ashley Harrison
161d452841
Chore: Type improvements (#93267)
* some type fixes + ignore graveyard folder

* few more fixes

* remove comment

* ignore global styles

* few more type fixes
2024-09-13 09:50:55 +01:00
Piotr Jamróz
3514504240
Tracing: Remove redundant types (#91835)
* Display event name of a span

* Clean up

* Retrigger the build

* Show colon only when there are fields to display

* Rollback

* Use event name when exporting to OTLP

* Allow filtering spans by event name

* Remove redundant types

* Remove redundant TraceLog

* Update betterer report
2024-09-13 10:05:37 +02:00
Drew Slobodnjak
e6f359f90b
Transformations: Binary operation on all numbers (#92172)
* Transformations: Binary operation on all numbers

* Handle replaceFields option

* Change left clear out to string

* Handle time field

* Fix filtering

* Update new field names to remove double space

* Add tests

* Add BinaryValue interface and update editor

* Fix initial behavior

* Rollback rendering standards

* Add ctx interpolate

* Fix fixed value variable

* Add function to convert old binary value type

* Update tests for new structures

* Add bullet for all number field option

* baldm0mma/run content build script

* Disable alias control for type matching
2024-09-12 08:50:23 -07:00
Ashley Harrison
dceba35a55
Portal: Fix positioning when bodyScrolling is disabled (#93277)
fix portal when bodyScrolling is disabled
2024-09-12 16:24:36 +01:00
renovate[bot]
b5dd8a5e89
Update dependency sass to v1.78.0 (#93237)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 17:25:03 +01:00
Leon Sorokin
77eefcbc4c
XYChart: Avoid tick collisions on x-axis (#93195) 2024-09-11 08:10:30 -05:00
Gilles De Mey
90ee52e8d9
Alerting: New search UI – Part 1 (#91620) 2024-09-11 14:29:26 +03:00
Leon Sorokin
e9901acfb4
TimeSeries: Increase y-axis tick density for small-height panels (#93188) 2024-09-10 15:20:24 -05:00
Oscar Kilhed
acbd50c7d6
GrafanaUI: Add select all toggle to selectbox (#92483)
* Add select all toggle
2024-09-10 20:33:17 +02:00
Joao Silva
15bf1348ab
GrafanaUI: Show focus on selected date of the date picker (#93181) 2024-09-10 16:51:53 +01:00
Tobias Skarhed
096105fed6
New Select: Try it out with some core components (#92826)
* Export Combobox and add portalling

* Use floatingui fixed strategy and fix z-index

* Check non null

* Make value string type only

* Try with fiscal year setting

* Use combobox for WeekStartPicker

* Improve screen reader handling

* Fix faulty import

* Fix type issue

* Fix failing tests and export unstable

* Rename option and remove export

* Use comboboxMockSetup function

* Add support for number type

* menuClosed styles to emotion
2024-09-10 17:28:00 +03:00
Laura Fernández
1701dc85e7
A11y: Focus outline is not fully visible in several areas of the application (#93030) 2024-09-10 13:50:12 +02:00
Arati R.
b12a29a1da
K8s: Implement partial folders api with k8s client (#93089)
* Add kubernetes folder feature toggle
* Add kubernetes routes for getting and creating a folder
* Add documentation for interacting with k8s folders
2024-09-10 11:22:08 +02:00
Ashley Harrison
442bb1d35f
Internationalization: make i18nKey required in grafana-ui as well (#93154)
make i18nKey required in grafana-ui as well
2024-09-10 12:20:30 +03:00
Leon Sorokin
f650a17030
Transformations: Fix inner join by field for zero-length frames (#93144) 2024-09-09 21:22:03 -05:00
renovate[bot]
baa0f073d8 Update dependency eslint-plugin-jest to v28.8.3 2024-09-09 20:08:40 +00:00
renovate[bot]
1e6735706d Update dependency @types/node to v20.16.5 2024-09-09 19:39:19 +00:00
Leon Sorokin
53e59b27cd
FieldColor: Prefer displayName for hashing (#93062)
* FieldColor: Prefer displayName for hashing
2024-09-09 17:58:22 +00:00
Aaron Godin
6ded6a8872
feat: Add feature toggle for groupAttributeSync (#93116) 2024-09-09 10:29:43 -05:00
Joao Silva
94068977f5
GrafanaUI: Improve Switch cursor focus on screen readers (#93100) 2024-09-09 16:06:05 +01:00
Adela Almasan
af48d3db1e
Canvas: Add actions support (#90677)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-09-09 09:11:55 -05:00
Kyle Brandt
b89f3f8115
Ad-Hoc Filters & Scopes: don't remap one-of to regex in frontend (#92995)
* send "one-of" and "not-one-of" directly to datasource (instead of changing them to regex)
* Added to Ad-hoc and and Scope Filters: The "values" prop ([]string) and the "one-of" and "not-one-"of" operators. "values" is used with one-of and not-one-of. 
* adds prometheus support for the above 


---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Todd Treece <todd.treece@grafana.com>
2024-09-09 16:56:43 +03:00
Andrej Ocenas
5e2ac24890
Sidecar: Add split view and basic APIs for extensions (#91648)
* Add split view and basic APIs to extensions

* Add comments

* Update public/app/AppWrapper.tsx

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

* Moved the .grafana-app element and deduplicate some code

* Remove the provider variants of usePluginLinks/Components

* Change buildPluginSectionNav

* Update comment

* Use eventBus

* Remove non existent exports

* refactor: use a sidecar service to encapsulate the state

* Don't wrap single app in split wrapper

* Use hook splitter

* Remove inline styles

* Type the style props from useSplitter

* Move the overflow style changes to appWrapper

* Deduplicate some common top level providers

* Move modals

* Move routes wrappers to it's own file

* Use better css and add comments

* Remove query rows app extension point

* Fix test

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2024-09-09 14:45:05 +02:00
Alex Khomenko
adf1402ff8
Grafana/ui: Update Link component to react router 6 (#92976)
* Grafana/ui: Update Link component to react router 6

* Add compat package to grafana/ui
2024-09-09 13:54:43 +03:00
Will Browne
2c47d246fc
Plugins: Introduce LoadingStrategy for frontend loading logic (#92392)
* do it all

* feat(plugins): move loadingStrategy to ds pluginMeta and add to plugin settings endpoint

* support child plugins and update tests

* use relative path for nested plugins

* feat(plugins): support nested plugins in the plugin loader cache by extracting pluginId from path

* feat(grafana-data): add plugin loading strategy to plugin meta and export

* feat(plugins): pass down loadingStrategy to fe plugin loader

* refactor(plugins): make PluginLoadingStrategy an enum

* feat(plugins): add the loading strategy to the fe plugin loader cache

* feat(plugins): load fe plugin js assets as script tags based on be loadingStrategy

* add more tests

* feat(plugins): add loading strategy to plugin preloader

* feat(plugins): make loadingStrategy a maybe and provide fetch fallback

* test(alerting): update config.apps mocks to include loadingStrategy

* fix format

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2024-09-09 10:38:35 +01:00
Leon Sorokin
fc4b3a2b03
Prometheus: Retain time field's interval with Table formatted queries (#93065) 2024-09-08 13:18:58 -05:00
Russ
c71aae8c5c
Icons: update Asserts menu icon (#92888)
Chore: update Asserts menu icon
2024-09-06 10:08:30 -08:00
Lucy Chen
2218841aa6
SharePanel: Add icons to panel options Share and More (#92622)
* add icon

* update icons

* add svg

* update legend

* remove new svg

* try again

* remove again

* add legend icons

* make review changes
2024-09-06 12:25:35 -05:00
Josh Hunt
cad56df002
Make Combobox Storybook story public, with indev disclaimer (#93042) 2024-09-06 17:56:03 +03:00
Joao Silva
20f7e11987
Restore Dashboards: Revert e2e tests (#93026) 2024-09-06 11:18:49 +01:00
Ivan Ortega Alba
35ba8fbad1
AutoSizeInput: Allow to be controlled by value (#92997) 2024-09-05 20:50:40 +03:00
Claudiu Dragalina-Paraipan
d5ebaa0ef9
[authn] adding appPlatformAccessTokens featureflag (#92991)
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-09-05 19:18:44 +03:00
Ashley Harrison
6b6355e418
Chore: migrate _grid SCSS styles to emotion globals (#92986)
migrate _grid styles to emotion globals
2024-09-05 16:39:12 +01:00
Ashley Harrison
82fe497b9d
Chore: remove adhocFilterOneOf toggle (#92979)
remove adhocFilterOneOf toggle
2024-09-05 15:49:24 +03:00
renovate[bot]
de5bbd2539
Update dependency rc-cascader to v3.28.1 (#92931)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-05 10:53:59 +01:00
Ashley Harrison
d14a551ee8
Chore: Migrate _reboot SCSS styles to emotion globals (#92934)
migrate reboot styles to emotion globals
2024-09-04 16:27:07 +01:00
Joao Silva
b20017cf8c
Restore Dashboards: Add e2e tests (#92514) 2024-09-04 15:47:15 +01:00
Brendan O'Handley
4bf350cc62
Prometheus: Variable query editor, display selected label when using query type of label values (#92513)
display label, add test
2024-09-04 08:11:17 -05:00
renovate[bot]
c17d1a3a4c
Update dependency rc-slider to v11 (#92921)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 12:57:31 +01:00
renovate[bot]
58d9bc2cad
Update dependency react-calendar to v5 (#92922)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 12:55:14 +01:00
renovate[bot]
b404dabc55
Update dependency rimraf to v6 (#92923)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 12:40:52 +01:00
renovate[bot]
468c1fcb9c
Update dependency glob to v11 (#92920)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 14:03:38 +03:00
renovate[bot]
d9dc7cba50
Update dependency eslint-plugin-jsx-a11y to v6.10.0 (#92917)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 11:48:21 +01:00
renovate[bot]
9c837407bf Update dependency eslint-plugin-react to v7.35.2 2024-09-04 09:57:10 +00:00
renovate[bot]
7933cbd204 Update dependency @types/node to v20.16.4 2024-09-04 09:25:17 +00:00
Kyle Cunningham
437472811e
Table: Fix nested table overlap when table is sorted (#92716) 2024-09-03 15:27:14 -05:00
renovate[bot]
3acb43cf2e
Update dependency @types/systemjs to v6.15.0 (#92876)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 16:15:55 +01:00
renovate[bot]
cb9c7de0ff Update dependency eslint-plugin-react to v7.35.1 2024-09-03 13:57:20 +00:00
renovate[bot]
6244c2be2c Update dependency eslint-plugin-jest to v28.8.2 2024-09-03 13:33:28 +00:00
Ashley Harrison
f34f5b80b4
Chore: Migrate _widths SCSS to global emotion styles (#92863)
* migrate widths to global styles

* only calculate width once per loop
2024-09-03 16:04:21 +03:00
renovate[bot]
9d974f7560
Update dependency @swc/helpers to v0.5.13 (#92858)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 13:44:51 +01:00
Ashley Harrison
d9385d8a76 add missing await 2024-09-03 14:02:27 +03:00
Piotr Jamróz
d7d22bbbb8
TraceView: Display event names of a span (#91382)
* Display event name of a span

* Clean up

* Retrigger the build

* Show colon only when there are fields to display

* Rollback

* Use event name when exporting to OTLP

* Allow filtering spans by event name

* Show duration as a key/value pair

* Update betterer report (we do not translate panels that are planned to be externalized)

* Fix tests after changing how duration is rendered

* Handle long names

* Test handling long names

* Make parenthesis gray

* Fix a test

* Fix linting

* Fix tests

* Update label
2024-09-03 11:18:50 +02:00
renovate[bot]
1395cd89da Update dependency @types/node to v20.16.3 2024-09-02 13:05:54 +00:00
Tobias Skarhed
220215c9ca
New Select: Create custom value (#92652)
* Display custom value in option list

* Ignore create new value when there is an exact match

* Support displaying custom value

* Add i18n string

* Update failing test
2024-09-02 14:42:42 +02:00
Eugene Apollonsky
5871362ccf
Grafana SQL: Fix broken import in NumberInput component (#92803)
SQL: Fix broken import
2024-09-02 14:34:06 +02:00
Dzmitry Skachkou
f0d100d17a
ValueFormats: Fix formatting of 'clock' unit when duration is more than 100 hours (#92656) 2024-09-02 13:50:54 +02:00
renovate[bot]
cf541b8869
Update dependency tslib to v2.7.0 (#92744)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-02 10:00:07 +01:00
Piotr Jamróz
3b7021dabc
FieldConfig: Add missing "min/max" FieldConfigProperty option (#92596)
Add missing FieldConfigProperty standard option
2024-08-30 17:16:22 +02:00
Adela Almasan
91cbaa4afe
Table: Fix JSON formatting (#92715) 2024-08-30 17:51:51 +03:00
Sergej-Vlasov
00ae49a61a
FeatureToggle - new filters UI feature toggle (#92189)
* add newFiltersUI experimental feature toggle

* adjust Ad hoc filter varibale layout property based on feature toggle

* restore file

* bump to latest scenes
2024-08-30 15:48:13 +03:00
Ashley Harrison
a59474cf13
Chore: Migrate _forms styles to emotion globals (#92690)
migrate _forms styles to emotion globals
2024-08-30 13:04:31 +01:00
renovate[bot]
a0e237dacf Update dependency eslint-plugin-jest to v28.8.1 2024-08-30 10:05:24 +00:00
Ashley Harrison
c16cc488c9
AdHocFilters: Add support for new isOneOf multi value operator (#91837)
* handle oneOf operator in prometheus

* use new supportsMultiValueOperators

* remap oneOf to regex in prometheus datasource

* Remap one of operators for scope filters

* use plugin.json property instead of feature toggle

* optional chaining

* fix unit tests

* use getInstanceSettings

* update to latest scenes

* fix unit tests

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-08-30 11:03:44 +01:00
Erik Sundell
db0cc24f2b
Plugin extensions: Introduce new registry for added links (#92343)
* add added component registry

* fix broken test

* add tests for usePluginComponents hook

* readd expose components

* add type assertion exceptions to betterer results

* use new addedComponent registry in legacy endpoints

* remove unused code

* cleanup

* revert test code

* remove commented code

* initial commit

* refactor sync method and hook

* fix tests

* subscribe to the correct registry

* remove old registry

* cleanup types

* add use usePluginLinks hook

* add more tests

* fix import order

* fix typo

* fix and temporarly skip failing tests

* wip

* add hook tests

* add more tests

* remove old hook

* fix versioning

* add version to all extension point ids

* remove cleanup

* remove unused imports

* revert touched file

* fix test

* test: remove hook creation

* catch init error

* send error to faro

* fix broken hook

* comment out call hook initialization

* use the right import ofr isString

* remove unused import

* remove registryState type

* pr feedback

* Update public/app/features/plugins/extensions/validators.test.tsx

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

* Update public/app/features/plugins/extensions/validators.test.tsx

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

* remove no longer relevant comment

* fix broken tests

* Fixed test to verify that the memotization works properly.

* simplify hooks

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2024-08-30 10:09:01 +02:00
Ashley Harrison
d2ee4d1005
RadioButtonGroup: Ensure background colour displays properly (#92665)
add background colour to RadioButtonGroup
2024-08-29 15:16:04 +01:00
Sven Grossmann
15a4ff992b
Explore Logs: Add feature flags (#92670) 2024-08-29 15:55:59 +02:00
Victor Marin
6ddb96ada2
Add extra width to menu to accomodate checkbox (#92600)
* Add extra width to menu to accomodate checkbox

* modify value
2024-08-29 15:28:00 +03:00
Kawthar Alakri
bd974bd791
New Select: Unit tests base cases (#92485)
* init commit

* New Select test cases

* click + scroll and click test cases

* code format

* code format
2024-08-29 11:45:21 +02:00
Ashley Harrison
cec447cf7a
Drawer: Fix drawer mask positioning (#92318)
fix drawer mask positioning
2024-08-29 09:56:26 +01:00
Laura Fernández
8aaa155cb0
singleTopNav: Create feature toggle (#92610) 2024-08-29 10:48:32 +02:00
Adela Almasan
692280cd32
BarGauge: Add legend support (#92449) 2024-08-28 23:26:55 +03:00
Todd Treece
2bb2183b41
Scopes: Move title and groups to status in ScopeDashboardBinding (#92377)
---------

Co-authored-by: Kyle Brandt <kyle@grafana.com>
Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>
2024-08-28 08:59:18 -04:00
renovate[bot]
909d0fac35
Update dependency @types/node to v20.16.2 (#92576)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 12:15:38 +01:00
renovate[bot]
c92f5169d1
Update dependency @prometheus-io/lezer-promql to v0.54.1 (#92556)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 10:16:31 +01:00
renovate[bot]
72be3e861e
Update dependency webpack to v5.94.0 [SECURITY] (#92545)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 09:29:33 +01:00
Adela Almasan
39fda067cf
BarGauge: Add option to hide the names (#92450) 2024-08-27 17:21:35 -05:00
renovate[bot]
2235825ef9 Update dependency ts-jest to v29.2.5 2024-08-27 16:15:49 +00:00
Tobias Skarhed
92491dd78c
New Select: Semi-dynamic option width support (#92284)
* Fix button role and input id

* Use static height and dynamic width

* Estimate dynamic width

* Extract constant

* Remove unused code

* Extract dynamic width into a hook

* Remove console.log

* Add comment to the constants

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

Co-authored-by: Laura Fernández <laura.fernandez@grafana.com>

* Update packages/grafana-ui/src/components/Combobox/getComboboxStyles.ts

---------

Co-authored-by: Laura Fernández <laura.fernandez@grafana.com>
2024-08-27 15:51:25 +02:00
Kristian Bremberg
24afc7a5b3
TextPanel: Allow iframes (after sanitization) (#92299)
* Allow iframes in text panel

* add more attributes

* remove =true
2024-08-27 14:44:58 +01:00
renovate[bot]
e66979765d Update dependency @grafana/faro-web-sdk to v1.9.1 2024-08-27 12:18:44 +00:00
Ashley Harrison
2318e32c9f
Chore: Migrate legacy dropdown styles to emotion/angular file (#92282)
migrate legacy dropdown classes to emotion/angular file
2024-08-27 12:40:54 +01:00