7840 Commits

Author SHA1 Message Date
e3e7086a91 GrafanaData: Add now parameter to dateMath.parse to subsitute now string (#97151)
* Add now parameter to dateMath.parse to subsitute now string

* Create new function, deprecate the old

* Add docstring

* Typo
2024-12-12 11:22:49 +02:00
3c78fb1aa4 Dashboards: Add option to specify explicit percent change text size for stat panels (#96952)
Add option to change percent change text size
2024-12-12 08:15:29 +02:00
1a22575613 MetricCombobox: Fix overflowing parents (#97049) 2024-12-11 15:45:20 +01:00
32155b22d6 Theme: increase debug theme gridSize and fix some obvious mistakes (#97661)
* increase debug theme gridSize and fix some obvious mistakes

* better switch styling

* fix checkbox

* fix tabs

* also fix editable title height
2024-12-11 13:27:54 +00:00
cdc7c1cae2 AutoSizeInput: fix inconsistent input value state (#97575)
* Revert "GrafanaUI: Revert: Fix inconsistent controlled/uncontrolled state in AutoSizeInput (#97551)"

This reverts commit 9f3073fd174d440693377233a25736d4ae236819.

* Fix defaultValue being used if the user cleared the inputy
2024-12-11 11:04:03 +01:00
8d69abc3b4 E2E Selectors: Add backwards compatibility for apply button selector (#97762)
add more backwards compatibility
2024-12-11 07:43:52 +01:00
f05d016ae7 Chore: Remove mysqlParseTime feature toggle (#97761) 2024-12-10 15:13:13 -06:00
b05d60e5b5 k8s: dashboards: remove FT (#97758) 2024-12-10 12:35:36 -06:00
aeed123312 PanelChrome: Adds "onDragStart" prop (#97495) 2024-12-10 12:15:25 +00:00
0437fd0703 Update dependency sass-loader to v16.0.4 (#97676)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 16:26:45 +00:00
645776afc9 Table: RowsList passing incorrect index to onRowHover (#97599)
* chore: fix table returning the wrong index to onRowHover
2024-12-09 10:23:44 -06:00
c4e19f3570 Dashboard Schema v2: Panel links (#97441)
* panel links

* Update transformer scene -> v2; update snapshot

* clean up

* data links test

* Remove type assertion
2024-12-09 08:23:23 -07:00
7cc0604360 Scopes: Add ScopesContext to @grafana/runtime (#97566) 2024-12-09 16:37:50 +02:00
63dbe1b47d Update dependency @types/hoist-non-react-statics to v3.3.6 (#97629)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 11:10:49 +00:00
4f1307edb1 Update dependency @prometheus-io/lezer-promql to v0.300.1 (#97227)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 10:02:05 +00:00
2e342e5b1b CloudWatch: Add OpenSearch PPL and SQL support in Logs Insights (#97508)
Cloudwatch: OpenSearch PPL and SQL support in Logs Insights

Co-authored-by: Kevin Yu <kevinwcyu@users.noreply.github.com>
Co-authored-by: Nathan Vērzemnieks <njvrzm@users.noreply.github.com>
2024-12-06 15:27:19 +01:00
9f3073fd17 GrafanaUI: Revert: Fix inconsistent controlled/uncontrolled state in AutoSizeInput (#97551)
Revert "GrafanaUI: Fix inconsistent controlled/uncontrolled state in AutoSize…"

This reverts commit cd86546313444470fc6af0a9157722be9d666164.
2024-12-06 14:37:24 +02:00
4ea109593b Chore: Update dep version (#97507)
* update dep versions

* run gen-cue
2024-12-05 13:01:59 -07:00
9e885cab7c Dashboard Schema v2: Add tests for variables, annotations, and dataTransformer (#97314)
* Add tests for variables, annotations, dataTransformer

* Simplify variable validation; test additional variable fields

* Move helpers to a separate file

* remove unused param, rename helpers file

* fix

* Move remaining vizPanel test to helper

* use ts
2024-12-05 10:49:11 -07:00
20e619e445 Tempo: Reduce initial bundle size (#97084)
* feat(grafana-plugin-configs): externalise rxjs/operators

* feat(plugin-configs): add bundle analyser behind stats env var

* chore(tempo): add a build:stats script for bundle analysis

* feat(tempo): make query and config editors default export

* feat(tempo): lazy load query and config editors

* feat(tempo): lazy cheat sheet

* chore(tempo): remove webpackchunkname hints
2024-12-05 11:59:43 +00:00
3e96431bd6 Move createGraphFrames to grafana/o11y-ds-frontend package (#97394)
* Move createGraphFrames to o11y-ds-frontend package

* Remove duplicated mock response

* Rename files and function
2024-12-05 12:25:46 +01:00
016351c7ed [getTagKeys] Ensure we're not using suggestions when no scopes are present (#97353)
* Ensure we're not using suggestions when no scopes are present

* Simplify scopes check

Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>

---------

Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>
2024-12-04 10:30:32 +01:00
a33f16d568 Frontend: Set moduleResolution to bundler in TSconfig (#96450)
* build(typescript): switch module resolution to bundler for exports imports goodness

* chore: bump react-calendar and temp patch prometheus-io package

* Wip

* feat(decoupled-plugin): fix types errors in tests by including testing-library/jest-dom

* chore(betterer): pass custom tsconfig so betterer continues to run
2024-12-03 07:22:49 +01:00
88621d6fa0 Transformations: Relax regexp format in refIdMatcher (#97216) 2024-12-02 13:05:47 -06:00
8a1b89a5eb Report Button: Add feature toggle for commit button [Hackathon] (#97282)
add feature toggle for commit button
2024-12-02 19:08:15 +02:00
01a02d8f9e Chore: Add some selector for version below 8.5 (#97210)
* works also before the min version

* adding datasource picker

* adding toggle viz picker and panel editor content

* Panel editor content

* small readme fix for docker compose

* removing constant
2024-12-02 18:15:11 +02:00
5f1fae8efd Logs Panel: Add infinite scrolling support for Dashboards and Apps (#97095)
* LogsPanel: expose infinite scrolling to apps

* Logs panel: implement infinite scrolling callback and type guards

* Logs panel: expose infinite scrolling toggle in panel options

* Logs permalink: extract range function to a module

* Update unit test

* Logs panel: migrate test to dataplane format

* Formatting and docs

* Shortlinks: remove unnecessary mock

* Remove unnecessary params

* Formatting
2024-12-02 14:57:25 +01:00
3ff4f23f2f Update dependency @react-awesome-query-builder/ui to v6.6.4 (#97233)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 10:21:24 +00:00
21117c85dd Update dependency @leeoniya/ufuzzy to v1.0.17 (#97226)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 09:35:09 +00:00
8915e03f56 Yarn: Dedupe lock file and fix swc errors (#97202)
* chore(yarn): dedupe lock file and fix swc errors

* chore(renovate): remove swc/core from ignore list
2024-12-02 09:38:45 +01:00
99395b62d4 MultiCombobox: Add basic controlled functionality (#97117)
* Add basic controlled functionality

* Fix controlled component

* Make component completely controlled

* Fix PR feedback

* Add support for number values and values not in options

* Fix TS errors

* Fix test feedback

* Extract function
2024-11-29 16:09:38 +01:00
3d47dc8e5f Update Yarn to v4.5.3 (#96972)
* Update Yarn to v4.5.3

* updated yarn version.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2024-11-29 10:52:25 +02:00
2fdac80488 Update dependency @prometheus-io/lezer-promql to v0.300.0 (#96532)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-28 16:38:25 +01:00
a41902330f @grafana/runtime: User storage (#95834) 2024-11-28 15:49:34 +01:00
335241d93d ElementSelection: New element selection context to support selecting elements (#97029)
* ElementSelection: New element selction context to support selecting elements like panels

* Update

* Update
2024-11-28 15:06:00 +01:00
25da5f0806 Chore: Bump Storybook to 8.4.x (#96128)
* feat(storybook): upgrade to version 8.4

* chore(grafana-ui): replace all usage of preview with canvas

* chore(grafana-ui): add fs-extra as dev dependency

* feat(storybook): copy required assets to temp static directory due to 8.4 not supporting file paths

* chore(yarn): fix up lock file so swc-loader doesnt break for decoupled plugins

* Add ExampleFrame component to render grafana-ui examples

* Prevent Storybook from styling in ExampleFrame

* Use global styles in Storybook docs

* Update mdx docs to use ExampleFrame or correct Canvas usage

* update AutoSizeInput

* Update Index mdx

* remove the gfm mdx package

* silence sass warnings

* fix(storybook): add missing imports to fix failed rendering of stories/docs

* remove empty docs

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-11-28 14:58:36 +01:00
10eec83478 Grafana UI: Compress grot-cta image (#97052)
* chore(grafana-ui): reduce size of grot-cta

* chore(grafana-ui): apply less aggressive compression on grot-cta
2024-11-28 14:51:20 +01:00
4721d5164b Dashboard Schema v2: Transformation to v2 supports annotations (#96787)
* Annotations

* Default to configured default DS when datasource is undefined

---------

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
Co-authored-by: alexandra vargas <alexa1866@gmail.com>
2024-11-28 12:36:09 +02:00
c8d3ea58f8 Support importing local cue modules when generating TS types with cog (#96876)
* Support importing local cue modules when generating TS types with cog

* Generate enums as unions of values instead of an actual `enum` statement

* Update transformers to use the new TS enums

* Update go workspaces

---------

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-11-28 10:45:31 +01:00
b898a4540d Azure Monitor: Add a feature flag to toggle user auth for Azure Monitor only (#96858)
* Azure Monitor: Add a feature flag to toggle user auth for Azure Monitor only

* Fix condition for userIdentityEnabled

* Re-add removed test

* Remove unused prop

* Refactor onAuthTypeChange in AzureCredentialsForm

* Add frontend unit tests

* Lint
2024-11-27 14:01:54 +00:00
d18cdae3e2 Schema V2 to DashboardScene: Settings + Panels (#96074)
* Transform Save mode to Scene: Settings

* Transform Save mode to Scene: Panels

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: alexandra vargas <alexa1866@gmail.com>
Co-authored-by: Haris Rozajac <haris.rozajac12@gmail.com>
2024-11-27 14:35:37 +01:00
5b0b9c9ecc ToolbarButton: Auto width on smaller screen sizes (#96023)
* fix bug

* optimise

* delete annotation

* optimise
2024-11-27 13:50:44 +01:00
21bd47e512 scopes: behind its own feature flag (#97077)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-11-27 08:58:25 +01:00
5fadc35664 Dashboards: add showMenuAlways prop to PanelChrome (#96868)
* feat: add showMenuOnHover prop to always render menu in viz
2024-11-27 01:28:56 +02:00
d2b6960593 Feature toggles: remove lokiMetricDataplane (#97024)
* Feature toggles: remove lokiMetricDataplane

* Framing: remove test cases expecting metricDataplane to be false

* Remove test code

* Chore: rename test cases
2024-11-26 18:32:17 +02:00
ae27382be5 Prometheus: Add metrics explorer feature tracking for combobox (#97006)
add metrics explorer feature tracking for combobox
2024-11-25 14:53:40 -06:00
df628951f5 Combobox: Fix input overflowing parent with autosize (#96642) 2024-11-25 16:36:05 +01:00
1a453828d9 MultiCombobox: Initial downshift setup (#96664)
* Initial multi state handling

* Add basic styling

* Extract OptionListItem

* Fix linting issues

* Export types

* Remove React imports

* Make story internal

* Add proper story title

* Remove empty styles
2024-11-25 16:24:24 +01:00
cd86546313 GrafanaUI: Fix inconsistent controlled/uncontrolled state in AutoSizeInput (#96696)
* GrafanaUI: Fix delayed state in AutoSizeInput due to mixed controlled/uncontrolled state

* clean up state management into seperate hook

* update test

* Sync new prop value to state when uncontrolled, tests
2024-11-25 14:44:56 +00:00
edae283817 Chore: avoid redirect in test (#96917) 2024-11-25 08:54:42 -03:00