Commit Graph

3903 Commits

Author SHA1 Message Date
Leon Sorokin
8081fc8dfc
TooltipPlugin2: Various fixes for different panel types (#77958) 2023-11-09 15:14:59 -06:00
Laura Fernández
dff971672f
Accessibility: Fix keyboard focus indicator not visible on "Seach by Data source" list options in high contrast mode (#77878) 2023-11-09 12:42:54 +01:00
Zoltán Bedi
22035565d2
SQL: Add timeFilter macro to query builder (#74575)
* Add timeFilter macro to query builder

* Only render SQLWhereRow when fields are there

* Change the default query to timeseries and remove 50 limit

* Add timeFilter macro for the first time when timeSeries

* Add test for timeFilter macro

* Lint fix

* Annotation query format should be table

* Set order by as default

* Revert changes that made time series default

* Fix e2e test

* Fix e2e test

* Make sure to reset the date value when operator is changed

* Add docs
2023-11-09 09:23:26 +01:00
Juan Cabanas
fa468fb17c
TimePicker: Close overlay content when toolbar button is clicked for the second time (#77796)
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-11-08 11:39:37 -03:00
Torkel Ödegaard
a46ff31c4f
ButtonSelect: Fix missing border when dropdown menu is shown (#77677) 2023-11-08 14:38:21 +01:00
Adela Almasan
8ad3087d3c
Tooltips: Update styling (#77831) 2023-11-07 15:17:33 -06:00
Alex Khomenko
e286a3a652
Grafana/ui: Unify flex shorthand props (#77768)
* Update flex props

* Make the story external

* Add ResponsiveProp
2023-11-07 17:45:57 +02:00
Esteban Beltran
0b03344baa
Chore: Update to typescript 5 (#76511)
* Update dependency typescript to v5

* Update yarn.lock

* Fix typescript errors

* Update typescript version sdk

* Revert useDescription.ts

* Fix ts errors

* Fix Typescript errors after Symbol.unscopables type change

* Fix colormanipulator errors

* Update packages/grafana-data/src/vector/FunctionalVector.ts

* Fix ts errors in dashboardmigrator

* Fix sandbox component typescript error

* Update yarn

* Update to typescript 5.2

* Fix typescript error

* update typescript/vscode patch/sdk/whatever

* fix ts errors in elasticsearch

* Fix two errors in alerting

* Fix error in dashboard-scene

* Fix errors in dashboard tests

* Fix errors in explore tests

* Fix error in plugins sandbox

* fix error in DashboardQueryRunner

* fix errors in grafana-data

* fix errors in PanelChrome story

* update betterer

* better fix for cloud monitoring

* fix error in reducer tester

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
2023-11-07 13:20:20 +00:00
Victor Marin
f6c5b80cca
Table: Fix no data message alignment and table selector name (#77700)
* on multiple queries show no data message aligned + set a default table name for empty series

* simplify style

* check if there are fields
2023-11-07 11:13:19 +02:00
Torkel Ödegaard
63c7a0e8ca
Tooltip: Fixes tooltip positioning when using lazy content (#77676) 2023-11-07 07:00:07 +01:00
Ihor Yeromin
4b87f38f66
Bar Gauge: Add max height option (#76042)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-11-07 07:11:13 +02:00
Alex Khomenko
25779bb6e5
Stack: Use the component from grafana/ui (#77543)
* grafana/ui: Move Stack out of unstable

* grafana/ui: Replace imports

* Replace the import from experimental

* Cleanup

* Remove invalid prop

* Add flexGrow

* Remove Stack used in Field

* Remove import
2023-11-06 18:15:52 +02:00
Ryan McKinley
0d1d45ee58
Graph: Move graph component to graveyard folder (#77579) 2023-11-02 18:24:30 +02:00
Ashley Harrison
5892a64e9f
CustomScrollbar: Remove chevrons from scroll indicators (#77498)
remove chevrons from scroll indicators
2023-11-02 15:21:36 +00:00
Krishna Dhakal
774a8a889a
Grafana-UI: Create fast path in Text component (#76167)
Text component fast path

Truncated text an isolated component
2023-11-02 12:23:59 +01:00
Alex Khomenko
d62170e4ce
Grafana/ui: Move the Stack component out of unstable (#77495)
* grafana/ui: Move Stack out of unstable

* grafana/ui: Replace imports
2023-11-02 12:22:57 +02:00
Ryan McKinley
c6e27e00b4
Chore: Move internal GraphNG+Timeseries components into core (#77525)
* move to core where possible

* update imports

* ignore import order for now

* add graveyard files

* update codeowners
2023-11-01 21:59:55 -07:00
Ryan McKinley
fb9732e319
Chore: Prepare to remove <Graph /> from @grafana/ui (#77522) 2023-11-01 14:13:48 -07:00
ssama88
d1798819c0
Storybook: Formatted SegmentAsync story (#77307) 2023-11-01 10:47:56 +00:00
Joao Silva
f42bb86667
GrafanaUI: Make sure ContextMenu does not get cut off at the top (#77435) 2023-11-01 10:07:08 +00:00
renovate[bot]
375f0c98b2
Update dependency @testing-library/jest-dom to v6 (#77445)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-01 09:43:32 +00:00
renovate[bot]
9dcfc51b4f
Update dependency @types/node to v20 (#77446)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-01 09:42:26 +00:00
Alex Khomenko
f5cbd4f9d0
grafana/ui: Rename Flex component to Stack (#77453)
* grafana/ui: Remove Stack and rename FLex to Stack

* Update types

* Update grafana/ui imports

* Update Grafana imports

* Update docs
2023-11-01 09:48:02 +02:00
Ryan McKinley
d511925fc9
Chore: Add more deprecation notices to packages/grafana-ui/src/components/Graph/ (#77480)
more deprecations
2023-10-31 16:17:25 -07:00
Adela Almasan
2b9c929315
Tooltips: Components update (#77410) 2023-10-31 12:07:52 -05:00
Torkel Ödegaard
899b3e2b0c
PanelChrome: Fixes z-index issue with status message when hover header is true (#77443) 2023-10-31 18:03:00 +01:00
Ashley Harrison
3551f49019
Toggletip: Update background color and border (#77437)
update toggletip background + border
2023-10-31 15:11:53 +00:00
Alex Khomenko
7ba3b52e65
RadioButton: Fix alignment (#77416) 2023-10-31 10:15:37 +02:00
Joao Silva
7430cce0e0
Storybook: Rework the intro page (#77305) 2023-10-30 16:53:49 +00:00
Leon Sorokin
3bc1a8d714
Table: Fix right column alignment (#77339) 2023-10-30 01:09:08 -05:00
Leon Sorokin
85518fbe67
Chore: uPlot v1.6.27 (#77317) 2023-10-27 17:34:05 -05:00
Ihor Yeromin
8effa165dd
Tooltip: New styles (#76964) 2023-10-27 09:22:48 -05:00
Ashley Harrison
dba846fe54
Chore: Some renovate config tidy up (#77275)
* update some comments, remove some things from the ignore list

* remove @mdx-js/react since storybook now directly depends on it

* add issue link to comment

* exclude @locker from grouped patch updates

* ignore grafana-e2e from renovate
2023-10-27 15:09:23 +01:00
Torkel Ödegaard
5d706705ea
RadioButtonGroup: Fixes icon alignment (#77196) 2023-10-27 11:35:06 +02:00
renovate[bot]
edd0e80ba0
Update dependency rc-cascader to v3.20.0 (#77210)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-27 09:42:23 +01:00
Joao Silva
f183e68b1c
GrafanaUI: Move Box out of unstable and into GrafanaUI (#77080) 2023-10-26 13:46:11 +01:00
Josh Hunt
db40c90eed
Icon: Restore default fa-spin to spinner in icon (#77205)
Restore default fa-spin to spinner in icon
2023-10-26 12:17:39 +00:00
Leon Sorokin
3aaeaf4203
Thresholds: Don't use series fill opacity for transparent steps (#77104) 2023-10-26 02:14:41 +03:00
Josh Hunt
333c858bc6
GrafanaUI: Prevent code editors from 'trapping' scroll (#77125)
* GrafanaUI: Prevent CodeEditor from 'trapping' scroll

* fix test

* fix lint for unused import
2023-10-25 19:21:54 +03:00
Ashley Harrison
5f2fd8935d
Spinner: Fix so that the size property is correctly applied (#77135)
* correctly apply spinner sizes, refactor to have standard sizes

* better prop definitions so constant values show in IDEs

* 12 is xs, not sm
2023-10-25 15:39:32 +01:00
Sven Grossmann
b88b206ee2
Table: fix cellProps.style.textAlign being readOnly in some cases (#77137)
`cellProps.style.textAlign` is readOnly in some cases
2023-10-25 09:38:17 -05:00
Ashley Harrison
07cc7504ee
Icon: Simplify and remove wrapping <div> (#76819)
* remove wrapping div

* update tests, just gotta figure out how to handle fontawesome :(

* add spinner.svg which matches the font-awesome spinner

* add mock for react-inlinesvg

* update mock and fix some tests

* fix FormField test

* fix CorrelationsPage tests

* increase timeout
2023-10-24 12:16:32 +01:00
Ashley Harrison
ced065c7e9
Chore: fix some more types (#76535)
* clean up some e2e/runtime types

* fix some stories

* some more fixes

* fix route props

* update unit tests

* update more unit tests

* don't throw here
2023-10-24 11:53:22 +01:00
Leon Sorokin
344e99e069
VizLegend: Omit sectionRight when no right axis exists (#76923)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-10-23 15:01:46 -05:00
Alex Khomenko
90437df056
Box: Add gap prop (#76953)
* Box: Add gap prop

* Update packages/grafana-ui/src/components/Layout/Box/Box.tsx

Co-authored-by: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com>

---------

Co-authored-by: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com>
2023-10-23 20:31:29 +03:00
Galen Kistler
88957c7f44
Table: Optimization - render icons on hover (#76906)
* only render icons on hover
* Table: Optimization - remove plaintext cell wrapper (#76916)

* remove inner wrapper div from plain text cells
* reuse result of typeof value === 'string'
---------

Co-authored-by: Galen <galen.kistler@grafana.com>

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-10-23 11:12:40 -05:00
renovate[bot]
8985f79aab
Update dependency webpack to v5.89.0 (#76832)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-20 09:23:11 +01:00
renovate[bot]
241996b9ba
Update dependency rc-cascader to v3.19.0 (#76760)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-19 10:05:59 +01:00
Ashley Harrison
d632dd672c
Tooltip: Ensure tooltip text is correctly announced by screenreaders (#76683)
* add aria-describedby, tooltip role and unit tests

Co-authored-by: L-M-K-B <48948963+L-M-K-B@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>

* remove `delayShow` so tooltip text is announced correctly

* adjust IconButton, fix unit tests

* undo tooltip aria-label change

* only set aria-describedby if there's no aria-label

---------

Co-authored-by: L-M-K-B <48948963+L-M-K-B@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
2023-10-18 16:05:20 +01:00
Jack Westbrook
fc488bb6a3
Chore: Update babel dependencies to 7.23.2 (#76746)
chore(npm): update babel dependencies to 7.23.2
2023-10-18 17:01:22 +02:00