Commit Graph

3800 Commits

Author SHA1 Message Date
Laura Fernández
611df82259
Grafana UI: create Grid component in the unstable package (#75299) 2023-09-26 14:02:50 +02:00
Gilles De Mey
5a1580c659
Alerting: Contact points v2 part 3 (#72444) 2023-09-26 11:44:18 +03:00
Leon Sorokin
ade0de5ae9
Dashboard: Reduce scope of contain: strict to TextPanel (#75329) 2023-09-25 23:47:38 +03:00
renovate[bot]
da23aef83d
Update babel monorepo (#75353)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-25 14:27:35 +01:00
Aditi Patel
56c75cc542
I18n: Markup ExploreToolbar component (#74292)
* chore: markup explore-split-toolbar and data-source-dropdown

* chore: markup explore-refesh-picker

* fix:  apostrophe in empty-recent-list paragraph

* chore: added markup for add to dashboard

* fix: corrected prefix

* fix: typos

* chore: updated markup prefixes in all other languages

* chore: added i18n markup for aria-labels

* i18n files generated

* i18n aria-label added for Add to Dashboard

* fix: fixed prefixes according to the grafana guidelines

* chore: generated i18n json files

* fix: fixed prefixes

* fix: apos; entity rendering

* chore: updated markup files

* chore: updated markup Locale file

* fix: updated prefix names

* chore: updated markup files

* fix: updated markup prefix for data-source-picker

* fix: trimmed extra spaces

* chore: updated markup files

* fix: added back translation phrases

* fix: Updated prefix name in DataSourceDropdown.tsx

* fix: created addToDashboard variable with translation markup
2023-09-25 10:38:17 +02:00
Leon Sorokin
aadd5bacfa
Chore: uPlot v1.6.26 (#75199) 2023-09-22 11:33:39 -05:00
Tobias Skarhed
10a874ba6a
Stack: Improve layout (#75144)
* stack test cases

* more example

* Make changes to Stack

* Update mdx

* Add forwardRef

* Export Vertical and Horizontal components

* Fix spelling mistake

* PR feedback

* Fix export

* horizantal and vertical to row and column

* Fix failing import

---------

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
2023-09-22 16:56:07 +02:00
Alex Khomenko
cfd468bcdd
InteractiveTable: Add controlled sort (#75289)
* InteractiveTable: Enable controlled sort

* InteractiveTable: Add docs and test

* InteractiveTable: Tweak docs

* InteractiveTable: More doc tweaks

* InteractiveTable: Remove assertion rules

* InteractiveTable: Review updates
2023-09-22 17:31:12 +03:00
renovate[bot]
f0b75360db
Update dependency @grafana/faro-web-sdk to v1.2.1 (#75291)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-22 15:11:32 +01:00
Ashley Harrison
ff0642bf6e
Chore: Type improvements 🧹 (#75271)
* fix some e2e flows types

* some type fixes

* must... fix... more...

* MOAR

* MOREMOREMORE

* 1 more
2023-09-22 15:06:49 +01:00
Leon Sorokin
c358135a63
TimeSeries: Apply selected line style to custom pathBuilders (#75261) 2023-09-22 04:32:32 -05:00
Torkel Ödegaard
fb494c8880
TabsBar: Fix height so that it aligns with grid, and alignItems center (#75230)
better fix
2023-09-22 08:46:19 +02:00
kay delaney
70cb87380d
UI: Remove unused ErrorIndicator component (#75185)
Closes #75068
2023-09-21 17:50:18 +01:00
Joao Silva
42cc6b1842
GrafanaUI: Create Box component (#73637) 2023-09-21 17:13:19 +01:00
Alex Khomenko
9fca10bfc3
InteractiveTable: Add horizontal scroll (#74888) 2023-09-21 14:43:38 +03:00
Leon Sorokin
492ba97ba1
BarChart: Axes centered zero, borders, and colors (#75136) 2023-09-20 11:15:29 -05:00
Josh Hunt
b1d853a480
Chore: Remove withCenteredStory storybook decorators (#75154) 2023-09-20 13:17:51 +00:00
Khushi Jain
24ac1da817
GrafanaUI: Add aria-label prop to RadioButtonGroup (#67019)
* Accessibility: Added label prop to RadioButtonGroup

* Update packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButtonGroup.tsx

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

* Update RadioButtonGroup.tsx

* Update RadioButtonGroup.tsx

* corrected ariaLabel

* fix accessibility

* change to kebab case

---------

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
2023-09-20 14:11:44 +02:00
Josh Hunt
8a33f68ba7
Storybook: Remove flexbox from story container (#75115)
* Storybook: Remove flexbox from story container

* Update packages/grafana-ui/src/components/Monaco/CodeEditor.internal.story.tsx

Co-authored-by: Laura Benz <48948963+L-M-K-B@users.noreply.github.com>

---------

Co-authored-by: Laura Benz <48948963+L-M-K-B@users.noreply.github.com>
2023-09-20 12:58:05 +03:00
Tobias Skarhed
95c9947af2
Flex: Use forwardRef and useStyles2 additional args (#75138)
Refactor for forwardRef and use of new useStyles2
2023-09-20 10:51:32 +02:00
Leon Sorokin
9dc0c8be11
TimeSeries: Rename axisShow -> axisBorderShow (#75127)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-09-19 23:43:15 +03:00
Leon Sorokin
780b60dc81
XYChart: Fix numerous axis options (#75044) 2023-09-19 14:44:50 -05:00
Josh Hunt
7b4536cb2f
Chore: Remove memoize-one from grafana-ui (#75016) 2023-09-19 14:34:13 +00:00
Joao Silva
53e5804049
GrafanaUI: Update border radius of InlineToast (#75098) 2023-09-19 15:18:23 +01:00
Laura Benz
a52fff4e86
Grafana-UI: Add tooltip for interval picker in RefreshPicker (#74534)
* feat: add tooltip for interval picker

* refactor: remove ts error

* feat: extract new translations

* refactor: deprecate unused tooltip property

* refactor: correct syntax of dynamic string

* refactor: remove interval and autogenerated strings

* refactor: localisation

* refactor
2023-09-19 15:06:19 +02:00
Josh Hunt
a54846e75c
GrafanaUI: Support memoization of useStyles additional arguments (#75000)
* GrafanaUI: Support memoisation of useStyles additional arguments

* remove spooky any
2023-09-18 13:40:21 +00:00
Ashley Harrison
f0f1da842b
Toggletip: Remove form story and update padding (#75007)
remove form story and update padding
2023-09-18 14:28:58 +01:00
Laura Benz
dfd6134ff1
Grafana-UI: Add title in order to read out keyboard shortcuts (#74553)
refactor: remove aria-hidden, add title
2023-09-18 10:44:12 +02:00
Andrej Ocenas
e4f26a5e4b
Flamegraph: Move to package (#73113) 2023-09-12 12:28:48 +02:00
Polina Boneva
b14263af45
Dashboard: Remove old panel code and leave only new panel design (#74196)
* delete PanelHeader

* PanelHeaderMenuItem is only used in PageHeader

* PanelHeaderCorner only used by PanelEditorTableView

* PanelHeaderMenuTrigger not used anywhere

* PanelHeaderMenuWrapperNew is PanelHeaderMenuWrapper, old one is deleted

* remove newPanelChromeUI from test

* delete feature flag newPanelChromeUI

* PanelHeaderMenuWrapperNew is PanelHeaderMenuWrapper, old one is deleted
2023-09-12 11:54:41 +03:00
Adela Almasan
dc6cd4bb29
Legend: Truncate only for table mode (#74668)
no legend truncation for list mode
2023-09-11 11:26:13 -05:00
Konrad Lalik
7baf9cc033
Alerting: Custom contact point for OnCall in Grafana AM (#72021) 2023-09-06 12:33:35 +02:00
Ashley Harrison
e2724f39d9
Time Range: Using relative time takes timezone into account (#74013)
* account for timezone when using relative times
Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: L-M-K-B <48948963+L-M-K-B@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: tskarhed <1438972+tskarhed@users.noreply.github.com>

* keep as it was originally for now

* add e2e test for relative time zone overrides

* empty commit to add coauthors

Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: L-M-K-B <48948963+L-M-K-B@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: tskarhed <1438972+tskarhed@users.noreply.github.com>

* fix types

* switch to using table panel in e2e test

* use regex for partial text match

* actually go to the dashboard...

* use include.text

* check for visibility first

* try waiting on backend request to complete

* CI driven development is fun

* make sure we're waiting for both data query calls

* open dashboard instead

* kick drone

* Revert "open dashboard instead"

This reverts commit bab9c77c4d.

* check timezone second

* refactor to avoid detached elements

---------

Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: L-M-K-B <48948963+L-M-K-B@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: tskarhed <1438972+tskarhed@users.noreply.github.com>
2023-09-04 10:38:35 +01:00
Laura Fernández
f4ad247df2
Grafana UI: fix ColorSwatch aria-label (#74280) 2023-09-01 17:52:55 +02:00
Aditi Patel
8b08ae337e
PublicDashboards: Increase title length (#73972) 2023-08-31 10:15:08 -03:00
Haris Rozajac
2ea22b44e1
Frontend PanelChrome: Fix header title moving down when collapsing (#74123)
* PanelChrome: Fixes height when collapsed and collapse icon placement

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-08-31 13:25:52 +02:00
Javier Ruiz
6dea273044
Grafana/ui: Expose trigger method from useForm to children (#73831)
Form: Expose trigger method from useForm to children
2023-08-31 11:22:07 +02:00
Ihor Yeromin
f97e1c81e6
Axis: Add separate show axis option (#74117)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-08-30 18:57:44 -07:00
Laura Fernández
e079e00bfb
Grafana-ui: Get rid of duplicated code in TimeRangeContent (#74112) 2023-08-30 16:38:54 +02:00
Laura Fernández
26d5afecaf
Grafana UI: DateTimePicker not updated when changing input onblur (#73839) 2023-08-30 15:15:42 +02:00
Denny Chang
a90f3b58b5
i18n: Mark up HelpModal for translations (#73806)
* fix: i18n Help Modal

* fix: change translation modal to grafana-ui.modal

* fix: lint

* fix: by run yarn:i18n pseudo
2023-08-30 14:08:18 +01:00
Andrej Ocenas
a6ff50300e
Pyroscope: Template variable support (#73572) 2023-08-30 10:48:39 +02:00
Tobias Skarhed
43be03a2d8
Grafana UI: Stack component (#73593)
* Add Stack component and sotry

* Add item

* Add MDX and story

* Add forwardRef

* Add usage instructions

* Remove story

* Update docs

* Add unstable export

* Fix story

* Update default values and mdx

* Change export
2023-08-29 13:59:13 +02:00
Ashley Harrison
0853819ff7
Chore: friday typings 5 (#73844)
* fix some event.target as stuff

* segment async story

* segmentinput story

* SegmentSelect

* fixing some tests

* more test fixes

* undo change to SilencesFilter
2023-08-29 09:14:15 +01:00
Chris Bedwell
31e29de024
A11y: Fix toggletip predictable focus for keyboard users (#72100)
* Updated toggletip to use strategy fixed, added tests and temporary story so it can easily be checked

* Added FocusScope restoreFocus and appropriate tests to toggletip

* Open toggletip in test for making sure focus remains when using escape

* Add aria-expanded to toggletip toggle child

* Added to temp story for Toggletip

* Remove focusScope for toggletip and handle focus restoration manually

* Remove toggletip temp story and add toggletip long content story

---------

Co-authored-by: joshhunt <josh@trtr.co>
2023-08-25 15:00:58 +00:00
RoxanaAnamariaTurc
cb6239d913
Grafana UI: Create custom Flex Component (#73226) 2023-08-24 15:05:43 +01:00
Haris Rozajac
19ae937aa8
Explore: Unified Node Graph Container (#72558)
* Improve naming; fix tests

* Pass countWarning to titleItems

* Center warning text

* Revert variable name

* Switch from arrow function to direct assignment

* Add ability to make component controlled

* Replace remaining isOpen with collapsed

* Fix test; update story and docs

* Add test; add uncontrolled functionality
2023-08-24 15:30:25 +02:00
Ashley Harrison
45ff0b5cf6
DatePicker: Fix calendar not showing correct selected range when changing time zones (#73273)
* user essentials mob! 🔱

* user essentials mob! 🔱

lastFile:packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/CalendarBody.tsx

* user essentials mob! 🔱

lastFile:packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/CalendarBody.tsx

* user essentials mob! 🔱

* user essentials mob! 🔱

lastFile:e2e/dashboards-suite/dashboard-timepicker.spec.ts

* user essentials mob! 🔱

lastFile:e2e/dashboards-suite/dashboard-timepicker.spec.ts

* user essentials mob! 🔱

* user essentials mob! 🔱

* restore custom.ini

* run betterer + prettier

---------

Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: Roxana Turc <anamaria-roxana.turc@grafana.com>
Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
Co-authored-by: eledobleefe <laura.fernandez@grafana.com>
2023-08-23 12:57:32 +00:00
renovate[bot]
c5be239990
Update dependency @types/jest to v29.5.4 (#63635)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-23 11:15:39 +01:00
Ashley Harrison
02f2ff1870
Chore: some more type fixes (#73606)
* some type fixes

* some select/table fixes

* some uplot type improvements

* couple more
2023-08-23 10:11:59 +01:00