Commit Graph

4427 Commits

Author SHA1 Message Date
Laura Fernández
c5ca90747d
Grafana UI: TagsInput.story.tsx - Delete unnecessary VerticalGroup (#86582) 2024-04-19 12:34:49 +02:00
Laura Fernández
bfb79d20ff
Grafana UI: Menu.story.tsx - Replace VerticalGroup with Stack (#86529) 2024-04-18 17:35:36 +02:00
Laura Fernández
e65669bc0d
Grafana UI: Checkbox.story.tsx - Replace VerticalGroupwith Stack (#86524) 2024-04-18 17:05:19 +02:00
Laura Fernández
18bd11ca6a
Grafana UI: TextLink.story.tsx - Replace VerticalGroup with Stack (#86526) 2024-04-18 16:37:48 +02:00
Laura Fernández
bbf4281d8d
Grafana UI: Dropdown.story.tsx - Replace VerticalGroup with Stack (#86521) 2024-04-18 16:13:08 +02:00
Ashley Harrison
07044309f1
EmptyState: Add completed variant (#86497)
* add 'completed' variant

* add central text alignment
2024-04-18 11:22:28 +01:00
Laura Fernández
bc07eedaa9
Grafana UI: Replace VerticalGroup with Stack on alerts documentation in Storybook (#86400) 2024-04-18 12:16:57 +02:00
Laura Fernández
6b21d12ce0
Grafana UI: FilterPopup- Replace VerticalGroup and HorizontalGroup with Stack (#86398) 2024-04-18 12:16:38 +02:00
Torkel Ödegaard
3870ecd2e0
RefreshPicker: Change running state to be less distracting (#86405)
RefreshPicker: Change running state to not change button variant to destructive
2024-04-18 05:46:43 +02:00
Darren Janeczek
53d2714a18
Tooltips: Ensure new viz tooltips are visible within modals (#86258)
fix: ensure new viz tooltips are visible within modals
2024-04-17 13:54:10 -04:00
Joao Silva
1997faf617
Select: Increase size of virtualized list options (#86444) 2024-04-17 17:01:21 +01:00
Tobias Skarhed
1c2065af60
PanelChrome: Improve accessibility landmark markup (#85863)
* Add section and use Text component to get h2 for panel

* Remove heading when collapsible

* Make button text truncate

* Update test

* Remove labelledby as it is not needed anymore

* Use testid selectors in test

* Remove async
2024-04-17 16:44:07 +02:00
Matias Chomicki
ec43edd8a1
Loki/Prometheus Query Editor: Disabled cmd/ctrl+f keybinding within the editor (#86418)
* Prom: disable cmd f within the editor

* Loki: disable cmd f within the editor

* Update public/app/plugins/datasource/loki/components/monaco-query-field/MonacoQueryField.tsx

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* Monaco: upgrade to 0.34.1

* Loki/Prometheus: allow native search to be displayed

* Formatting

* Monaco: upgrade to 0.34.1

https://github.com/microsoft/monaco-editor/issues/102#issuecomment-1282897640

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-04-17 16:38:43 +02:00
Ashley Harrison
60abf01526
remove stray console.log (#86440) 2024-04-17 15:43:38 +02:00
Ashley Harrison
f99d5a1c1a
EmptyState: Add call-to-action variant (#85017)
* add default variant

* enhance story

* rename to "initial" + update docs

* default to showing a CTA

* use switch

* translations

* update and use LinkButton

* update default message

* rename "initial" to "nothing-here"

* update variant name to `call-to-action`

* i18n

* add CTA svg

* extract into its own component
2024-04-17 14:23:21 +01:00
Laura Fernández
f1de8940dc
Grafana UI: StackingEditor and addHideFrom - Replace HorizontalGroup with Stack (#86192) 2024-04-16 10:46:01 +02:00
Laura Fernández
82f910c0c5
Chore: Use handleReducedMotion to smooth the animation in LoadingBar (#85808) 2024-04-15 17:27:08 +02:00
renovate[bot]
2868264360
Update dependency @types/react-calendar to v4 (#86132)
* Update dependency @types/react-calendar to v4

* remove @types/react-calendar since it's no longer used

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-15 15:44:12 +02:00
renovate[bot]
6541be39d1 Update dependency @types/react to v18.2.78 2024-04-15 10:45:52 +00:00
renovate[bot]
fc6cad797d Update dependency @testing-library/react to v15.0.2 2024-04-15 09:42:14 +00:00
renovate[bot]
00daca7f43
Update dependency sass-loader to v14.2.0 (#86066)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 09:18:29 +01:00
Domas
54e1756b49
ButtonSelect: Respect isDisabled option property (#85954)
make buttonselect respect isDisabled
2024-04-15 10:13:39 +03:00
Torkel Ödegaard
31879f1f5a
useForceUpdate: Return stable function (#86094) 2024-04-15 09:13:16 +02:00
Laura Fernández
f3b814a024
Grafana UI: ToolbarButton.story.tsx - Replace HorizotalGroup and VerticalGroup with Stack (#86067) 2024-04-12 18:08:43 +02:00
renovate[bot]
c1b8ee8453 Update dependency typescript to v5.4.5 2024-04-12 15:06:30 +02:00
renovate[bot]
a5cd88c67e
Update dependency typescript to v5.4.3 (#84470)
* Update dependency typescript to v5.4.3

* refactor: solve TS errors

* refactor: update yarn.lock

* refactor: return type

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Laura Benz <laura.benz@grafana.com>
2024-04-12 14:46:47 +02:00
Ashley Harrison
b3401c802c
EmptyState: make "message" a required prop (#86029)
* make "message" a required prop on EmptyState

* run i18n:extract
2024-04-12 13:13:28 +01:00
renovate[bot]
c2a81f3020 Update react monorepo 2024-04-12 11:58:02 +00:00
renovate[bot]
63d63ea9fb Update dependency @testing-library/react to v15.0.1 2024-04-12 10:27:38 +00:00
renovate[bot]
51d5a4c8f2
Update dependency @testing-library/dom to v10 (#85958)
* Update dependency @testing-library/dom to v10

* update @testing-library/react as well

* fix unit tests

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-11 17:29:35 +02:00
Laura Fernández
2986273273
Grafana UI: CellActions - Replace HorizontalGroup with Stack (#85860) 2024-04-11 10:59:23 +02:00
renovate[bot]
1ed3dc22d5 Update react monorepo 2024-04-11 08:47:05 +00:00
renovate[bot]
8461310e36 Update dependency rc-cascader to v3.24.1 2024-04-11 08:27:47 +00:00
Laura Fernández
cd79fe1a7c
Grafana UI: ThemeDemo - Replace HorizontalGroup and VerticalGroup with Stack and Box (#85888) 2024-04-10 18:23:31 +02:00
renovate[bot]
b1ad46e426 Update dependency @types/node to v20.12.7 2024-04-10 15:26:09 +00:00
Ashley Harrison
3c69de6be5
Chore: removing some type assertions (#85839)
* fix some type assertions in loops

* some more cleanup

* some alerting fixes

* put comments in correct place to ignore rule

* couple more

* undo SilencesFilter changes
2024-04-10 14:54:31 +01:00
Laura Fernández
22d33bd354
Grafana UI: SecretTextArea - Replace HorizontalGroup with Stack and Box (#85849) 2024-04-10 13:41:02 +02:00
Laura Fernández
1dce01fdd7
Grafana UI: PanelChrome - Replace HorizontalGroup with Stack in documentation and stories (#85843) 2024-04-10 11:44:03 +02:00
renovate[bot]
0585b55bb1
Update dependency @floating-ui/react to v0.26.12 (#85842)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-10 12:26:02 +03:00
renovate[bot]
651223fe2d Update babel monorepo to v7.24.4 2024-04-10 09:06:54 +00:00
Ashley Harrison
bbf874b96d
ConfirmModal: Pressing enter in confirmation input now triggers primary action (#85812)
wrap confirm modal in a form
2024-04-10 09:22:22 +01:00
Laura Fernández
88f116e96b
CSS: use prefers-reduced-motion to let users skip animations (#85450) 2024-04-09 15:27:28 +02:00
Kristina
5305316f5a
Explore: Move Query History to be screen wide (#84321)
* WIP

* Use splitpanewrapper for drawer

* Get rich history pulling from multiple datasources

* highlight pane

* Fix datasource data handling

* create ds/explore map, move around ds lookup

* Handle no filters

* Fix tests and some errors

* Fix context menu issue

* (Poorly) enable scrolling, fix onClose to function

* Remove highlighting, use legacy key, fix casing

* fix filtering to handle non-simple data

* Fix linter, add translations

* Fixing tests~~

* Move to explore drawer and fix some more tests

* Kinda fix drawer stuff?

* Fix remaining card tests

* Fix test

* Fix tests

* Partially fix starred tab tests

* Fix integration tests

* Fix remaining tests 🤞

* Add a test and a clarifying comment behind a couple hooks

* Remove unused code

* Fix button styling and fix animation (but break width)

* Make Drawer using parent width (100%)

* Fix tests and some small catches

* Add tests for selectExploreDSMaps selector

---------

Co-authored-by: Piotr Jamroz <pm.jamroz@gmail.com>
2024-04-09 07:36:46 -05:00
Laura Fernández
00be24d6b3
Chore: Create handleReduceMotion util function to manage animations (#85785) 2024-04-09 13:10:37 +02:00
Laura Fernández
0bdb96552a
Grafana UI: Modal - Replace HorizontalGroup with Stack (#85756) 2024-04-09 10:31:11 +02:00
Laura Fernández
0e12f60ee6
Grafana UI: FilterPill.story.tsx - Replace HorizontalGroup with Stack (#85736) 2024-04-08 17:21:58 +02:00
Laura Fernández
f3fb083381
GrafanaUI: DateTimePicker - replace HorizontalGroup with Stack component (#85663) 2024-04-08 12:44:01 +02:00
Ashley Harrison
b3cff22db3
Chore: Improve types (#85659)
* fixing some types

* more type fixes

* few more

* last couple

* tiny tweak
2024-04-08 09:56:21 +01:00
Laura Fernández
9af259a0d6
GrafanaUI: ConfirmModal - replace HorizontalGroup with Stack and Box component (#85660) 2024-04-05 16:11:53 +02:00
Laura Fernández
362c95c606
Grafana UI: Button.story.tsx - Replace HorizontalGroup and VerticalGroup with Stack and Box (#85644) 2024-04-05 15:45:55 +02:00
Laura Fernández
661aaf352e
GrafanaUI: IconButton - replace HorizontalGroup and VerticalGroup with Stack component (#85639) 2024-04-05 12:03:57 +02:00
Kyle Cunningham
67045aa90c
Table Panel: Update background colors to respect transparency (#85565)
* Update background colors to respect alpha

* codeincarnate/fix-table-background/ lint

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-04-04 22:55:37 +07:00
Tobias Skarhed
f387cff836
Accessibility: Default Icon to aria-hidden (#84362)
* Icon: aria hide icon, unless a label is set

* Update doc

* Remove weird auto import

* Fix fialing tests

* Add recommendation for Tooltip

* Consider more aria attributes to support Tooltip

* Handle tabIndex and aria-hidden case

* Add comment about aria-label
2024-04-04 12:07:50 +02:00
Leon Sorokin
130d561924
Chore: Restore some removed UI components to reduce BC surface area (#85546) 2024-04-04 04:31:28 -05:00
Leon Sorokin
1522499c4a
VizTooltips: Remove remaining old bits (#85500)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-04-02 19:32:01 -05:00
Leon Sorokin
d601acac3a
VizTooltips: Remove old tooltips and annotations (#84420)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-04-02 15:32:46 -05:00
renovate[bot]
a360cf0c85
Update dependency @types/node to v20.12.2 (#85480)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-02 18:47:56 +03:00
renovate[bot]
ac6e51c94a Update dependency @types/react to v18.2.74 2024-04-02 15:27:41 +00:00
renovate[bot]
09d4b814f4 Update dependency @types/react-dom to v18.2.23 2024-04-02 10:48:52 +00:00
Torkel Ödegaard
e90b87589f
ModalsContext: Unify modals context and manager (#84916)
* ModalsContext: Unify modals context and manager

* Clear on location change

* fixes

* Update

* use generics to avoid anys

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-03-28 13:26:57 +01:00
renovate[bot]
50a57bb88c
Update dependency webpack to v5.91.0 (#85302)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-28 09:38:15 +00:00
renovate[bot]
2f18148da2 Update dependency @types/react to v18.2.73 2024-03-27 17:15:47 +00:00
renovate[bot]
c7b4427151
Update dependency date-fns to v3.6.0 (#85243)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 11:51:19 +00:00
Joao Silva
951d5b4e9f
Storybook: Fix link to Saga (#85179) 2024-03-27 11:50:36 +00:00
renovate[bot]
e184520c61 Update dependency @types/react to v18.2.72 2024-03-26 20:04:28 +00:00
Kyle Cunningham
c9f9e94a6c
Table Panel: Fix issue causing incorrect background coloring (#85121)
Fix color bug
2024-03-27 03:02:31 +07:00
renovate[bot]
a256c064df Update dependency @types/react to v18.2.71 2024-03-26 17:26:50 +00:00
renovate[bot]
1df15a3a4c
Update dependency @floating-ui/react to v0.26.10 (#85181)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-26 16:39:24 +00:00
Chris Bedwell
b4ed72f1b6
Tooltip / Toggletip content link styling: Remove global a element selector inside tooltips (#84353)
* fix: remove global a tag styles inside tooltips

* corret inside / outside button references in toggletip test

* Remove code and pre styling rules from tooltipUtils
2024-03-26 11:47:12 +00:00
Kyle Cunningham
154868e624
Table Panel: Fix image disappearing when datalinks applied (#84625)
* Fix link image disappearing

* Prettier

* i18n

* Fix offset to compensate for padding

* Prettier

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-03-26 04:13:24 +07:00
grafana-delivery-bot[bot]
99b5671fbe
Release: Bump version to 11.1.0-pre (#85115)
"Release: Updated versions in package to 11.1.0-pre"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2024-03-25 21:44:28 +02:00
Adam Bannach
d7f739c8e5
Fix InteractiveTable: React, less hooks rendered than previous render (#85043)
fix: react-hooks error if data length switches from above or below pageSize
2024-03-25 13:53:45 +02:00
Ashley Harrison
36ee1571b6
EmptyState: Rename "search" variant to "not-found" (#85062)
* rename "search" variant to "not-found"

* run i18n:extract
2024-03-25 09:55:48 +00:00
Leon Sorokin
d7fa99e2df
XYChart: Refactor to new model (behind feature toggle) (#82499)
Co-authored-by: drew08t <drew08@gmail.com>
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
2024-03-22 10:44:37 -05:00
Kyle Cunningham
658183d792
Table Panel: Fix hover regression (#84964)
Fix hover bug
2024-03-22 21:55:17 +07:00
Ashley Harrison
a0bcc44b63
GrafanaUI: Add new EmptyState component (#84891)
* add empty search state component

* extract translations

* nicer prop spreading

* actually expose component in grafana-ui

* use requestAnimationFrame

* add rollup-plugin-svg-import

* move to a single EmptyState component with variants

* update docs

* remove CTA

* add some more prop documentation

* just use 1 svg
2024-03-22 14:46:32 +00:00
Adam Bannach
16737c5b27
InteractiveTable: Add expand all to column (#84966)
* feat: add expand all to InteractiveTable

* chore: pr feedback; type tightening and better testing practice

* chore: pr feedback; type cleanup
2024-03-22 15:55:04 +02:00
Ashley Harrison
bc8c3f99ae
Chore: Remove custom values from TextLink story (#84889)
remove default values
2024-03-21 13:33:53 +02:00
Adela Almasan
9fced253f5
VizTooltips: Switch data links display to column (#84828) 2024-03-20 17:29:37 +02:00
renovate[bot]
e2109f9b2a Update babel monorepo to v7.24.3 2024-03-20 12:50:51 +00:00
renovate[bot]
d0935fe44c Update dependency @testing-library/react to v14.2.2 2024-03-20 12:31:21 +00:00
renovate[bot]
6166c88ab7 Update dependency core-js to v3.36.1 2024-03-19 17:06:50 +00:00
renovate[bot]
aa9dc9c821 Update dependency @types/react-table to v7.7.20 2024-03-19 16:47:05 +00:00
Kyle Cunningham
2a6a1fb3b3
Table Panel: Add ability to set background colors for entire rows (#83939)
* Table: hacky poc for colored rows

* update

* Update options editor

* Refactor out styling

* Make sure option applies

* Start unifying coloring logic

* Support various options

* Cleanups

* Fix up hover behavior

* Update label

* Fix bug with sorting and make cleanups

* Ensure text color also applies to whole row

* New treatment for cell inspect

* Update cell inspect spacing

* codeincarnate/table-row-background-selected-riffs/ run linter

* Fix hover colors

* Fix coloring

* The other part of color application

* Another color fix

* codeincarnate/table-row-background-selected-riffs/ lint

* Update cell value inspect

* Prettier

* Update cell value inspect coloring

* Fix text coloring

* Update inspect style

* Linting and betterer

* Fix tests

* i18n

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-03-19 23:23:12 +07:00
renovate[bot]
5b1b280798 Update dependency @types/react to v18.2.67 2024-03-19 16:21:08 +00:00
renovate[bot]
97156bb759 Update dependency @types/node to v20.11.30 2024-03-19 15:36:35 +00:00
renovate[bot]
b5d74ac200
Update babel monorepo to v7.24.1 (#84718)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 12:56:16 +02:00
Ashley Harrison
15194b41b4
Dropdown: Fix keyboard accessibility (#84683)
* fix dropdown keyboard a11y

* remove unnecessary css

* restore tabIndex to keep linting happy

* use Box in Menu

* fix unit test
2024-03-19 10:22:17 +00:00
Leon Sorokin
2e6bb6416d
VizTooltips: Fix position during bottom or right edge initial hover (#84623) 2024-03-18 11:20:43 -05:00
Ashley Harrison
3297d589c0
ConfirmButton: Stop pointerEvents on the correct element (#84648)
stop pointerEvents on the correct element
2024-03-18 14:04:43 +02:00
Torkel Ödegaard
4dcbf4e5bb
Select: Fixes virtualized select showing empty space above selected value (#84544)
* Select: Virtualized select bug replication

* Update with fix

* remove story

* Pin version

* Update

* Update
2024-03-15 16:00:58 +01:00
renovate[bot]
25ed621aa3
Update dependency date-fns to v3.5.0 (#84557)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 12:10:17 +00:00
renovate[bot]
a8432aad3d Update dependency @types/node to v20.11.28 2024-03-15 10:28:53 +00:00
renovate[bot]
05f737b712 Update dependency @types/react to v18.2.66 2024-03-15 09:02:47 +00:00
Ashley Harrison
321148511b
Chore: Rewrite ConfirmButton (#84402)
* convert to function component, clean up + fix a11y

* use position: fixed;

* fix
2024-03-14 15:50:44 +00:00
renovate[bot]
81a63efab2
Update dependency rc-cascader to v3.24.0 (#84453)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 17:39:28 +02:00
renovate[bot]
da66f560a5
Update dependency rc-tooltip to v6.2.0 (#84454)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 14:59:32 +00:00
Joao Silva
0b033106b0
Cascader: Add clear button (#84449) 2024-03-14 14:41:54 +00:00
Laura Fernández
38a8bf10f3
TimeRangePicker: Show UTC+00:00 instead of just UTC (#84395) 2024-03-14 13:06:34 +01:00
renovate[bot]
0b806597c3
Update dependency date-fns to v3.4.0 (#84390)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 09:10:59 +00:00
renovate[bot]
d480d3296c
Update d3 (#84383)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-13 15:42:18 +00:00
renovate[bot]
2420c5aa4d Update dependency @types/node to v20.11.27 2024-03-13 15:17:45 +00:00
renovate[bot]
d6acb474cf Update dependency @types/react-dom to v18.2.22 2024-03-13 12:47:58 +00:00
Alex Khomenko
7feeb7ce4e
Cascader: Add id prop (#84240)
* Cascader: Add id prop

* Remove placeholder
2024-03-13 14:01:24 +02:00
Leon Sorokin
220fea966b
CursorSync: Extract EventBus logic into shared plugin (#84111) 2024-03-12 17:15:38 -05:00
renovate[bot]
46a35775ae
Update dependency @types/lodash to v4.17.0 (#84299)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 17:13:14 +02:00
Joao Silva
6080a9c094
Cascader: Don't lose input value when typing (#84274) 2024-03-12 15:00:51 +00:00
renovate[bot]
a883df633e Update dependency @types/react to v18.2.65 2024-03-12 11:30:56 +00:00
Alex Khomenko
59fed9278b
Switch: Remove "transparent" prop (#83705)
* Switch: Remove transparent prop

* Cleanup

* Remove redundant prop
2024-03-12 12:51:58 +02:00
renovate[bot]
3085d53802 Update dependency @types/node to v20.11.26 2024-03-12 09:32:25 +00:00
renovate[bot]
6e661fa770
Update babel monorepo to v7.24.0 (#84206)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 08:46:11 +00:00
renovate[bot]
3449a43ff2 Update react monorepo 2024-03-11 16:24:00 +00:00
Ashley Harrison
0280fac0e3
DatePickerWithInput: Set zIndex for popover correctly (#84154)
set zIndex for popover correctly
2024-03-11 11:35:59 +00:00
renovate[bot]
534855d086 Update dependency @types/node to v20.11.25 2024-03-11 10:39:32 +00:00
renovate[bot]
ea84a66ff4 Update dependency @emotion/react to v11.11.4 2024-03-11 08:53:49 +00:00
Erik Sundell
a722b2608a
TimeZonePicker: Add e2e selector to change time zone settings button (#83248)
add selector to change time zone settings
2024-03-07 07:25:48 +01:00
Leon Sorokin
d549a3aabb
VizTooltips: Heatmap fixes and improvements (#83876)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-03-06 19:30:33 -06:00
Leon Sorokin
1dc6014b10
Dashboard: Revert descending z-index changes (#83466)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-03-06 16:31:54 +02:00
Leon Sorokin
a4b31ed140
BarChart: Improve x=time tick formatting (#83853) 2024-03-05 19:03:50 -06:00
Kyle Cunningham
cb008657cb
Table Panel: Update column filters to use Stack component (#83800)
* Update filter list to use stack

* Remove dead comments
2024-03-05 21:54:31 +02:00
Kyle Cunningham
f4da9bd09e
Table Panel: Text wrapping fix inspect viewing issues (#83867)
* Fix inspect viewing issues

* Fix long line wrapping

* Prettier

* Fix text wrapping

* Fix overflowing text
2024-03-06 02:00:41 +07:00
Torkel Ödegaard
9264e2a3bd
Table: Custom headerComponent field config option (#83254)
* Table: Custom headerComponent field config option

* Table custom header component (#83830)

* Add tests, fix bug

---------

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
Co-authored-by: Galen <galen.kistler@grafana.com>
2024-03-05 08:49:22 +01:00
Leon Sorokin
7cf419c09a
Dashboard: Revert LayoutItemContext (#83465) 2024-03-04 16:47:20 +02:00
Kyle Cunningham
886d8fae36
Table Panel: Improve text wrapping on hover (#83642)
* Fix up text wrapping

* Make sure there are basic cell styles

* codeincarnate/text-wrapping-hover-pt2/ run prettier

* Add comment for conditional

* Update condition

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-03-02 00:20:14 +07:00
Kyle Cunningham
33cb4f9bf4
Table: Preserve filtered value state (#83631)
* Hoist state

* codeincarnate/table-filter-state/ lint

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-03-02 00:19:21 +07:00
Ashley Harrison
086d47d83c
Chore: replace react-popper with floating-ui in ExemplarMarker (#83694)
* replace react-popper with floating-ui in ExemplarMarker

* fix e2e test

* floating-ui uses mousemove
2024-03-01 14:54:39 +00:00
Esteban Beltran
ca81d1f22d
Revert "Chore: Remove components from the graveyard folder in grafana/ui" (#83687)
Revert "Chore: Remove components from the graveyard folder in grafana/ui (#83…"

This reverts commit 6517431165.
2024-02-29 15:25:33 +01:00
Josh Hunt
0fd46a1bd3
Revert "CodeEditor: Ensure latest onChange callback is called" (#83677)
Revert "CodeEditor: Ensure latest onChange callback is called (#83599)"

This reverts commit 3363e3f2d3.
2024-02-29 11:40:11 +00:00
Ivana Huckova
a76e21c837
TimeSeries: Support vertical orientation (#83272)
* Time series with flipped axes

* Ass prop and fix timezone labes

* Remove not needed css

* Fix zoomplugin

* Update comment

* Fix zoomplugin

* Update

* Update TooltipPlugin2

* Update variable names

* Update naming and comments

* Update public/app/plugins/panel/timeseries/TimeSeriesPanel.tsx

Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com>

---------

Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com>
2024-02-29 09:53:00 +01:00
Alex Khomenko
8ed932bb60
Select: Add instructions for resetting a value (#83603) 2024-02-29 08:38:09 +02:00
Leon Sorokin
5eb7e09351
VizTooltips: Show data links without anchoring (#83638) 2024-02-28 17:06:05 -06:00
Leon Sorokin
9190fb28e8
VizTooltip: Improve edge positioning and a11y (#83584) 2024-02-28 11:42:46 -06:00
Josh Hunt
3363e3f2d3
CodeEditor: Ensure latest onChange callback is called (#83599) 2024-02-28 16:47:10 +00:00
Ryan McKinley
6517431165
Chore: Remove components from the graveyard folder in grafana/ui (#83545) 2024-02-28 08:36:53 -08:00
Ashley Harrison
d83319365f
DatePickerWithInput: use floating-ui so calendar can overflow scroll containers (#83521)
* move DatePickerWithInput to use floating-ui

* remove position: absolute from DatePicker, remove unnecessary css from CreateTokenModal
2024-02-28 09:45:11 +00:00
Leon Sorokin
0f1cefa942
VizTooltip: Cleanup (#83462) 2024-02-27 12:07:55 -06:00
Ashley Harrison
fc29182f16
Chore: Remove React 17 peer deps (#83524)
remove react 17 peer dep
2024-02-27 16:34:00 +00:00
renovate[bot]
d04c579fc2 Update dependency webpack to v5.90.3 2024-02-27 11:36:22 +00:00
renovate[bot]
801107892b Update dependency @types/react to v18.2.60 2024-02-27 10:22:14 +00:00
Leon Sorokin
2c3596854f
BarChart: TooltipPlugin2 (#80920)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-02-26 19:18:40 -06:00
Adela Almasan
99271441fb
Legend: Allow item copy in Table mode (#83319) 2024-02-27 02:35:45 +02:00
renovate[bot]
6097ce5b61 Update dependency @types/react-color to v3.0.12 2024-02-26 21:19:27 +00:00
renovate[bot]
0848e7dd69 Update dependency @types/react to v18.2.59 2024-02-26 21:01:35 +00:00
renovate[bot]
e9a1150b35 Update dependency @types/node to v20.11.20 2024-02-26 17:19:05 +00:00
Leon Sorokin
6e6b9a62a2
VizTooltips: Use global portal (#81986)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-02-24 00:18:24 +02:00
Jev Forsberg
a97562906c
Table: Add ability for Table to render Standard Options "No value" value when DataFrames or field values are empty (#82948)
* baldm0mma/no_value_message/ add fieldConfig to Table props

* baldm0mma/no_value_message/ add noValuesDisplayText to table props

* baldm0mma/no_value_message/ add fieldConfig to tablePanel

* baldm0mma/no_value_message/ add tests

* baldm0mma/no_value_message/ update test values

* baldm0mma/no_value_message/ update args in tests

* baldm0mma/no_value_message/ update with NO_DATA_TEXT const
2024-02-23 10:00:24 -07:00
Ashley Harrison
49e18a3e7a
Chore: replace react-popper with floating-ui in Popover (#82922)
* replace react-popper with floating-ui in Popover

* update HoverCard

* fix unit tests

* mock useTransitionStyles to ensure consistent unit test results
2024-02-23 15:00:24 +00:00
Ashley Harrison
604e02be15
Grid: Add alignItems prop (#83314)
add alignItems props to Grid
2024-02-23 14:25:44 +00:00
Ashley Harrison
b25667223c
Box: add direction prop to Box (#83296)
add "direction" prop to Box
2024-02-23 13:38:36 +02:00
Ashley Harrison
c63456612e
Chore: replace react-popper with floating-ui in time pickers (#82640)
* replace react-popper with floating-ui in RelativeTimeRangePicker

* replace react-popper with floating-ui in DateTimePicker
2024-02-23 10:45:04 +00:00
Kyle Cunningham
a4cc4179c8
Table: Fix units showing in footer after reductions without units (#82081)
* Add preservesUnits property to reducer registry items

* Hide units when appropriate

* Prettier

* some code cleanup

* Prevent error when no stat is selected.

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-02-22 22:28:15 -06:00
Alvaro Huarte
49299ebd9c
Table Component: Improve text-wrapping behavior of cells (#82872)
* Fix text-wrapping of cells in Tables

* Set wordbreak on hover for long texts without spaces
2024-02-23 06:20:56 +02:00
renovate[bot]
18ec6fcdd3
Update dependency sass-loader to v14 (#83255)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-22 18:26:01 +02:00
renovate[bot]
0b62c15e4b
Update dependency rc-drawer to v7 (#83162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-22 15:48:37 +00:00
Jack Westbrook
15d83960ec
Chore: Align usage of tsconfig in yarn workspaces to 1.3.0-rc1 (#83160)
chore(tsconfig): align all usage in workspaces to 1.3.0-rc1
2024-02-22 15:30:20 +01:00
Jack Westbrook
0dcdfc261b
Monaco Editor: Load via ESM (#78261)
* chore(monaco): bump monaco-editor to latest version

* feat(codeeditor): use esm to load monaco editor

* revert(monaco): put back previous version

* feat(monaco): setup MonacoEnvironment when bootstrapping app

* feat(monaco): load monaco languages from registry as workers

* feat(webpack): clean up warnings, remove need to copy monaco into lib

* fix(plugins): wip - remove amd loader workaround in systemjs hooks

* chore(azure): clean up so QueryField passes typecheck

* test(jest): update config to fix failing tests due to missing monaco-editor

* test(jest): update config to work with monaco-editor and kusto

* test(jest): prevent message eventlistener in nodeGraph/layout.worker tripping up monaco tests

* test(plugins): wip - remove amd related tests from systemjs hooks

* test(alerting): prefer clearAllMocks to prevent monaco editor failing due to missing matchMedia

* test(parca): fix failing test due to undefined backendSrv

* chore: move monacoEnv to app/core

* test: increase testing-lib timeout to 2secs, fix parca test to assert dom element

* feat(plugins): share kusto via systemjs

* test(e2e): increase timeout for checking monaco editor in exemplars spec

* test(e2e): assert monaco has loaded by checking the spinner is gone and window.monaco exists

* test(e2e): check for monaco editor textarea

* test(e2e): check monaco editor is loaded before assertions

* test(e2e): add waitForMonacoToLoad util to reduce duplication

* test(e2e): fix failing mysql spec

* chore(jest): add comment to setupTests explaining need to incresae default timeout

* chore(nodegraph): improve comment in layout.worker.utils to better explain the need for file
2024-02-22 12:31:40 +01:00
Torkel Ödegaard
bfdb4625a0
Grafana/UI: Replace Splitter with useSplitter hook and refactor PanelEdit snapping logic to useSnappingSplitter hook (#82895)
* Hook refactor

* Update

* Test

* Update

* Both directions work

* fixes

* refactoring

* Update

* Update

* update

* Remove consolo.log

* Update

* Fix
2024-02-21 12:34:19 +01:00
Laura Fernández
6b31b1fc03
TimeRangeList: absolute time range list not scrollable (#82887) 2024-02-21 12:28:57 +01:00
grafana-delivery-bot[bot]
8f3d49687e
Release: Bump version to 11.0.0-pre (#83119)
"Release: Updated versions in package to 11.0.0-pre"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2024-02-20 19:02:36 +00:00
Tobias Skarhed
6ca26dd043
Grafana UI: Add code variant to Text component (#82318)
* Text: Add code variant

* Add TextLinkVariants

* Add don't
2024-02-19 14:49:34 +02:00
renovate[bot]
2175509929 Update React Aria 2024-02-19 11:04:09 +00:00
Leon Sorokin
edb799bf82
VizTooltips: Fix drag-zoom causing annotation init in other shared-cursor panels (#82986) 2024-02-17 00:35:41 -06:00
Torkel Ödegaard
592b830fd8
DashboardScene: Panel edit ux tweaks (#82500)
* Panel edit ux

* Update

* Update

* switch panel plugin bugfix

* Icon change

* Update

* Update

* Fixes
2024-02-16 13:04:45 +01:00
Alex Khomenko
df8250ff48
Card: Remove mdx file and render docs from the story (#82565)
* Card: Generate docs from the story

* Update sort

* Update betterer to check for the "autodocs" tag
2024-02-16 13:13:50 +02:00
Adela Almasan
8de9c4c373
Timeseries: Add hover proximity option (#81421) 2024-02-16 00:29:36 +02:00
Leon Sorokin
4b67ac117f
VizTooltips: Fix sorting (#82278) 2024-02-15 12:54:43 -06:00
renovate[bot]
3427321f65 Update dependency webpack to v5.90.2 2024-02-15 18:31:17 +00:00
renovate[bot]
23a3fddca4 Update dependency @types/node to v20.11.19 2024-02-15 17:31:16 +00:00
renovate[bot]
749a31738d Update dependency @types/node to v20.11.18 2024-02-15 11:03:03 +00:00
Ashley Harrison
c0b5b32650
Chore: replace react-popper with floating-ui in InlineToast (#82381)
replace react-popper with floating-ui in InlineToast
2024-02-15 09:44:44 +00:00
Sven Grossmann
808be099a7
Rollback ansicolor package to 1.1.100 to fix ansi styled logs (#82506)
* rollback ansicolor

* upgrade ansicolor in grafana-ui
2024-02-15 10:30:11 +01:00
renovate[bot]
c490b702bf
Update dependency core-js to v3.36.0 (#82464)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-14 19:32:05 +02:00
Josh Hunt
2d4307d3d1
Chore: Update Inter font files (#82446)
* Chore: Update Inter font files

* change codeowner of fonts to us
2024-02-14 16:57:02 +00:00
Kyle Cunningham
26b25dad42
Tooltips: Hide dimension configuration when tooltip mode is hidden (#81627)
* Hide dimensions when tooltip mode is hidden

* add logic to heatmap

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-02-14 23:35:14 +07:00
Alvaro Huarte
06b5875c3c
Table Panel: Filter column values with operators or expressions (#79853)
* Select column values using comparison operators

* Select column values using expressions

* Capitalize operator labels

* Update docs/sources/panels-visualizations/visualizations/table/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Use $ instead of v to represent a variable

* Define operators as a map string of objects

* Fix typo

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-02-14 22:36:30 +07:00
renovate[bot]
7d21eb0631
Update React Aria (#82447)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-14 17:24:30 +02:00
Kyle Cunningham
88481fed1a
Table Panel: Fix display of ad-hoc filter actions (#82442)
Remove block display from ad-hoc filter actions
2024-02-14 16:34:14 +02:00
Torkel Ödegaard
fe795417f7
Grafana/UI: Add new Splitter component (#82357)
* Initial thing working

* Update

* Progress

* Update

* Update

* Simplify a bit more

* minor refacto

* more review fixes

* Update

* review fix

* minor fix

* update
2024-02-14 12:45:29 +01:00
Victor Marin
a1ff439a20
Fix query inspector in explore to scroll to bottom (#82369) 2024-02-14 10:00:16 +02:00
Ihor Yeromin
1abe4a02b4
Table: Update page index on data update (#81574)
* fix(table): page index reset on data update
2024-02-13 13:21:36 +01:00
Ashley Harrison
fea23862b4
Chore: remove react-popper from AnnotationEditor and AnnotationMarker (#82090)
update AnnotationEditor and AnnotationMarker to use floating-ui/react instead of react-popper
2024-02-12 17:18:10 +00:00
Ashley Harrison
685e84b1f8
Chore: Remove react-popper from DataLinkInput and SuggestionsInput (#82160)
* replace popper with floating-ui in DataLinkInput

* replace popper with floating-ui in SuggestionsInput
2024-02-12 13:22:24 +00:00
Joao Silva
71e7d654de
Card: Revert adding overline component (#82308) 2024-02-12 13:07:40 +00:00
Galen Kistler
de4acb27ce
Table: Add initial row index (#82200)
* Add initial row index prop in table
2024-02-09 07:49:48 -06:00
Joao Silva
bc83d8263b
Card: Add isCompact prop and Overline sub-component (#82077) 2024-02-09 12:37:28 +00:00
renovate[bot]
ed9e26122a Update dependency @types/node to v20.11.17 2024-02-09 10:47:01 +00:00
renovate[bot]
e612b9b46b Update dependency @types/react-dom to v18.2.19 2024-02-08 16:26:58 +00:00
renovate[bot]
685ba7d287
Update dependency i18next to v23 (#82084)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-08 13:29:17 +00:00
mikkancso
7814c817b9
Select: fix type of formatCreateLabel prop (#82138)
fix type of formatCreateLabel prop of Select
2024-02-08 11:04:51 +01:00
Gilles De Mey
791ead7806
Alerting: Detail view part 3 (#81286) 2024-02-07 18:02:20 +01:00
Gilles De Mey
e77ec26897
UI: No interactive table pagination controls for rows < page size (#82109) 2024-02-07 17:13:05 +01:00
Darren Janeczek
9fb04be7ff
enhancement: use SVG icon for cascader expand instead of > (#81844)
* feature: use icon for cascader expand
2024-02-07 10:26:39 -05:00
renovate[bot]
17358bd7c9
Update dependency expose-loader to v5 (#82058)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 12:43:33 +02:00
Adela Almasan
315eb5acc3
VizTooltips: Remove default width/height values (#81832) 2024-02-06 12:00:19 -08:00
renovate[bot]
d9b8bae028
Update dependency react-loading-skeleton to v3.4.0 (#81975)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 20:04:29 +02:00
paulJonesCalian
3942d67f89
chore: Fix typo in GraphTresholdsStyleMode enum (#81960) 2024-02-06 08:20:42 -08:00
renovate[bot]
1771010450 Update dependency @types/react to v18.2.55 2024-02-06 10:06:27 +00:00
Torkel Ödegaard
61c7fcc270
DashboardScene: Action toolbar progress (#81664)
* DashboardScene: Action toolbar progress

* Add discard confirmation modal

* minor fix

* Update

* tweaked

* Updating

* Progress

* Update

* Update

* Added some unit tests

* fix test

* Change name to Exit edit

* Tweaks

* fix test

* Minor margin fix

* Move share to left of edit
2024-02-05 16:08:12 +01:00
Darren Janeczek
96772e1a32
datatrails: improve handling of error states and disable states (#81669)
* fix: Cascader: allow disabled state

* fix: datatrails metrics selection scene stability
  - clear panels and filter data when datasource changes
  - detect metric names loading / error state and disable components accordingly
  - put all scene variable dependencies together
  - reset metric names without clearing panels when time range changes
2024-02-05 09:45:47 -05:00
renovate[bot]
d63590112f Update dependency @testing-library/jest-dom to v6.4.2 2024-02-05 14:07:30 +00:00