Commit Graph

3755 Commits

Author SHA1 Message Date
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
Nathan Marrs
65df5a0d7e
Gauge: Add overflow scrolling support for vertical and horizontal orientations (#71690)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-08-23 03:08:11 +03:00
Ashley Harrison
1f49d480a8
Drawer: Clicking a Select arrow within a Drawer no longer causes it to close (#73557)
ensure drawer doesn't close when clicking dropdown arrow
2023-08-22 16:11:18 +01:00
Ashley Harrison
57d8997b86
CodeEditor: Correctly fires onChange handler (#73030)
move onChange outside onEditorDidMount condition
2023-08-15 09:19:14 +01:00
Alex Simonok
140624603f
Drawer: Fix scrolling drawer content on Safari (#73080)
Add min-height to allow scroll drawer content on Safari
2023-08-14 13:03:31 +01:00
Alexa V
0dcba0952e
Dashboards: PanelChrome - remove untitled placeholder and add border when panel is transparent (#73150) 2023-08-10 15:17:56 +02:00
Joey
8c2f439cd7
Table: Support display of multiple sub tables (#71953)
* Add nested option to DataFrame. Refactor Table to use nested dataframes for sub-tables

* Use nested frames for TraceQL response

* debugging

* Fix cell text and table position

* Update getItemSize

* noHeader size

* Update sub table renderer

* Update table container height

* Cleanup and fix RawPrometheusContainer height

* Update resultTransformer and docker script

* Updates to TableContainer, resultTransformer after merge

* Fixes for table pagination in dashboards

* Cell height and show footer enhancement/fix

* Sub table links

* Update RawPrometheusContainer

* Remove console log

* Update tests

* Update storybook

* Remove Tempo demo

* Store nested data in single field via its values

* Move nested prop into custom

* Tempo demo

* Add field type & update incorrect logic

* Update docker compose image for Tempo

* Update packages/grafana-data/src/field/fieldOverrides.ts

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* Simplify logic for getting nestedFrames and rendering sub tables

* Update docs for table

* Update nested table bg color

* Lighten nested table bg color

* Renames

* Migrate frames using parentRowIndex and add deprecation notice

* Update title

* Align expander icon size between Table and interactive table

* Table: Refactor out the expanded rows bits

* fix spacing

* Add line along left side for expanded rows

* Disable hover row background when expanded

---------

Co-authored-by: André Pereira <adrapereira@gmail.com>
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-08-10 12:33:46 +01:00
Andrej Ocenas
15ac12637d
Table: Add storybook and docs for custom render cell type (#72619)
* Add storybook and docs for custom rendering cell

* Update packages/grafana-ui/src/components/Table/Table.mdx

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>

---------

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
2023-08-08 19:02:48 +02:00
Alexander Zobnin
f8c44676df
Grafana-ui: Fix RadioButtonList component (#72804)
* Grafana-ui: Fix RadioButtonList component

* Use just an index as a key
2023-08-03 14:56:44 +02:00
Laura Fernández
7147778dbd
GLDS: Make Text component story not internal (#72803) 2023-08-03 13:57:41 +02:00
RoxanaAnamariaTurc
2a2207db00
A11y: Added aria-label to ColorPicker component (#72666)
* A11y: Added aria-label to ColorPicker component

* Updated the code with changes suggested
2023-08-03 12:26:04 +03:00
ismail simsek
a44e0f2cfd
Fix setting oauthPassThru flag (#72472)
* Fix setting oauthPassThru flag

* Call onChange only if azure auth is enabled

* Move changes in onSettingsChange
2023-08-03 11:15:42 +02:00
Laura Fernández
7ec9a0c9da
GLDS: Move Text component from the unstable package to grafana-ui (#72660) 2023-08-02 14:58:00 +02:00
RoxanaAnamariaTurc
f59117057e
GrafanaUI: Added spacing token to Divider Component (#72725)
* GrafanaUI: Added spacing token to Divider Component

* Made changes suggested
2023-08-02 14:18:06 +03:00
Joao Silva
74f3352770
Saga: Add new spacing tokens to the theme (#69319) 2023-08-01 17:02:00 +01:00
Ashley Harrison
e0587dfb30
Chore: Replace deprecated usage of shape.borderRadius() (#72672)
* properly mark borderRadius() as deprecated, replace borderRadius() with default

* undo a couple of changes

* use radius.pill in FilterPill
2023-08-01 14:46:07 +01:00
Ashley Harrison
a0b0d704d9
Chore: type fixes (#72604)
* fixing some types

* some more type fixes

* undo rootReducer type change

* update betterer
2023-08-01 12:56:21 +01:00
Laura Fernández
7469f58709
GLDS: Check if tokens are used as borderRadius values (#71187) 2023-08-01 12:44:25 +02:00
Laura Fernández
b632eb33b9
Grafana UI: Text component show all text on hover when it is truncated (#68578) 2023-07-31 18:04:48 +02:00
Piotr Jamróz
2ae226de89
Explore: Decouple SplitOpen and getFieldLinksForExplore from Panel visualizations (#71811)
* Allow overriding internal data link supplier

* Remove SplitOpen and getFieldLinksForExplore dependencies

* Fix checking if row index is provided

* Fix unit test

* Add a comment

* Mark SplitOpen as deprecated

* Use Panel Context to provide internal data link supplier

* Update packages/grafana-ui/src/components/PanelChrome/PanelContext.ts

Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>

* Update packages/grafana-data/src/utils/dataLinks.ts

Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>

* Add missing eventsScope

* Fix infinite render loops

* Rename internal data link supplier to data link post processor

* Update packages/grafana-data/src/field/fieldOverrides.ts

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>

---------

Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-07-31 14:10:03 +02:00
renovate[bot]
58a2b5d64d
Update Monthly patch updates (#71651)
* Update Monthly patch updates

* dedupe packages

* lezer update rolled back

* rolled back react-virtualized-auto-sizer

* rolled back update to dangerously-set-html-content

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
2023-07-31 13:52:26 +02:00
Juan Cabanas
66cea5aac6
A11y: Make Annotations and Template Variables list and edit pages responsive (#71791) 2023-07-28 15:09:31 +02:00
Laura Fernández
0fa20b7152
Grafana-ui: Text component documentation in Storybook (#72389) 2023-07-28 14:58:37 +02:00
Krishna Dhakal
255999947e
Storybook: Forms tag docs fix (#72489) 2023-07-28 12:01:29 +02:00
Krishna Dhakal
a7deca396e
Storybook: Forms legend docs fix (#72487) 2023-07-28 12:01:07 +02:00
Haris Rozajac
8dd66090be
Frontend: Allows PanelChrome to be collapsed (#71991)
* Collapsible PanelChrome v1

* Enable either Collapsible or HoverHeader modes

* Clean up

* Update story

* Add test

* Revert to 'strict'

* Use useToggle

* Allow collapsibility when title is not passed

* Fix semantics and ellipsis wrapping

* Improve accessibility

* Add documentation
2023-07-27 13:53:51 -06:00
grafana-delivery-bot[bot]
eaca6c3f49
Release: Bump version to 10.2.0-pre (#72418)
"Release: Updated versions in package to 10.2.0-pre"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2023-07-27 09:21:29 +03:00
Drew Slobodnjak
59bed9e156
Geomap: Add network layer (#70192)
* Geomap: Add network layer

* Support text labels for nodes

* Add solid styling for edges

* Remove symbol option for edge style menu

* Add support for edge text labels

* Fix linter issues

* Simplify multiple data frame handling

* Add TODO notes

* Add node and edge style categories for options

* Remove data frame hardcoding

* Hide legend, attempt to hide tooltip by default

* Mark network layer as beta

* refactor updateEdge

* Fix some linter issues

* Remove attempt at disabling tooltip for network layer

* For edge text add a stroke and increase z index

* Restrict field selection based on frame type

* refactor

* add basic bad data handling (prevent entire panel from breaking)

* generate non hard coded graph frames for style editor filtering

* code cleanup; remove hardcoded reference to "edges" frame

* fix select clearing for Data option

* fix styling

* fix lookup

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-07-26 11:58:55 -07:00
Ashley Harrison
60058cb3da
Button: Fix global button styles! (#72391)
uncomment button focus styles!
2023-07-26 18:46:16 +03:00
RoxanaAnamariaTurc
deae64bb90
A11y: Fixed keyboard accessibility in Tooltip Component (#72323)
* A11y: Fixed keyboard accessibility in Tooltip Component

* Made updates and fixed the keyboard accessibility
2023-07-26 16:45:04 +01:00
RoxanaAnamariaTurc
4990f36d8b
A11Y: SelectOptionGroup component fix lint rule about element interactions (#72213)
* A11Y: SelectOptionGroup component fix lint rule about element interactions

* Undone changes following feedback received
2023-07-26 10:23:01 +01:00
Laura Benz
ce5609e8ee
refactor: add wrap for small screen widths (#71864) 2023-07-26 11:07:34 +02:00
Polina Boneva
1110cb4d44
Public Dashboard: Redesign modal (v2) (#71151)
* Update public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ConfigPublicDashboard/SettingsBar.tsx

Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>

* revert modal styling and add specific styling to Sharing

* Update public/app/features/dashboard/components/ShareModal/SharePublicDashboard/ConfigPublicDashboard/SettingsBar.tsx

Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>

* functions > const

* put a gat between all items in email config, instead of margins for each item

* fix html semantic elements

* ad theme to class component ShareModal

* add labels

* fix failing tests; now Settings has a summary and has to be opened to be able to see the On/Off toggles

* fix dashboard-public-create test with settings dropdown
2023-07-25 13:17:39 +03:00
Leon Sorokin
425c92a92b
TimeSeries: Fix zoom not working after editing panel (#72163)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-07-24 22:30:38 +03:00
Kunal Tiwari
c2a6dcf2b5
Dashboards: Fix small drop target for importing dashboards (#72170)
file gets uploaded even on the periphery side of the dropzone
2023-07-24 16:48:39 +00:00
Leon Sorokin
1de35bf3c3
TimeSeries / StateTimeline: Add support for rendering enum fields (#64179)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-07-21 11:38:11 -05:00
Joao Silva
1f86dde818
Timezone: Add exception for Simferopol timezone description (#72112) 2023-07-21 15:02:54 +01:00
Laura Fernández
c24b538b4e
Grafana-ui: TextLink documentation (#71762) 2023-07-20 17:48:46 +02:00
Laura Fernández
47f70bdb00
GLDS: Text component (#71439) 2023-07-20 12:59:42 +02:00
Adela Almasan
16562faea6
Timeseries: Fix TooltipPlugin hooks warning (#71978) 2023-07-19 15:52:26 -05:00
renovate[bot]
d2ff73d455
Update dependency stylelint-config-sass-guidelines to v10 (#71632)
* Update dependency stylelint-config-sass-guidelines to v10

* fixes

* fix typo

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-07-19 16:05:06 +01:00
Laura Fernández
64e7b0be3e
Grafana-ui: always apply target='_blank' and rel='noreferrer' on TextLink (#71934) 2023-07-19 14:06:21 +02:00
Sol
dbc0642009
Tooltip: Set tooltip of active panel to front of zIndex (with object syntax emotion CSS) (#71925) 2023-07-19 11:37:13 +01:00
Sol
b1555c9595
Tooltip: Set tooltip of active panel to front of zIndex (#70747)
* Set active graph tooltip to front

* added zIndexOffset to Props

* Use className in TooltipPlugin

Co-authored-by: sjd210 <solomon.dubock@grafana.com>

* Change to UseStyles2 pattern

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>
Co-authored-by: sjd210 <solomon.dubock@grafana.com>
2023-07-19 09:49:21 +01:00
Haris Rozajac
fd01f6cf31
Explore: Unify trace view panel (#70408)
* PanelChrome scales vertically

* Trace View with old Trace View Header works with PanelChrome

* Add top margin

* Remove console.log

* Use contain: 'strict' only when height is passed

* Clean up: use title prop in PanelChrome and everything else should be put under

* Remove test as the title will be passed to PanelChrome

* Remove unused import

* Remove titleWithLinks from PanelChrome

* Make NewTracePageHeader compatible with PanelChrome

* Fix test

* Remove margin

* Remove unused css

* Revert config changes

* Clean up: remove console log and commented out css

* Clean up unused css

* Fix tests

* Revert to a brighter color

* Show links next to duration

* Cleanup

* Remove container style and use default displayMode in PanelChrome

* Clean up

* Revert 'Give feedback' styling

* PanelChrome's width auto scales

* Fix GraphContainer's props

* TraceViewContainer doesn't need a div wrapper

* Remove loading

* Fix build issue

* FIx merge conflict

* Revert old trace page header so the header items shows correctly in dashboards

* Revert to match old trace view header

* Revert NewTracePageHeader so it can show header items in dashboards

* Revert

* Revert tests

* Make 'Give feedback' link aligned vertically

* Remove unused css

* Reduce spacing between title and container in dashboards; remove top padding for NewTracePageHeader

---------

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2023-07-18 08:15:07 -06:00
Dominik Prokop
34c9faf140
PanelContext: Provide events scope identifier (#71561)
* PanelContext: Provide events scope identifier

* What a console log
2023-07-18 06:27:33 -07:00