Commit Graph
5427 Commits
Author SHA1 Message Date
Laura Fernández a3046ce57d Grafana UI: Add warning info to the unstable package (#68388) 2023-05-15 14:57:14 +02:00
Ashley Harrison 5d91ace745 ToolbarButtonRow: prevent closure of overflow menu when interacting with portal elements (#68319)
* don't close the overflow menu when interacting with something in a portal

* keep overflow ref logic
2023-05-15 13:48:19 +01:00
Laura BenzandJoao Silva e7dc3575d1 Design System: Refactor IconButton and update documentation (#66774)
* refactor: remove unnecessary styling and adjust to button styling

* refactor: improve story

* refactor: use new default styling for border radius

* refactor: add missing pseudo classes and clean up

* refactor: repair disabled styling and add to story

* refactor: clean up and apply styles defined in figma

* refactor: set hover background in a pseudo-element

* refactor: unify large sizes

* refactor: add information for further use

* refactor: add comment

* refactor: comments and clean up import

* refactor: add changes after code review

* refactor: replace some bad example code in documentation

* refactor: update comment

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

* refactor: add changes requested in review

* refactor: move deprecation warning

* refactor: replace padding

* refactor: remove local styling

* refactor: create separate stories for different examples

* refactor: change style of story

* refactor: replace absolute value by variable

* Update toggles_gen.go

---------

Co-authored-by: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com>
2023-05-15 13:57:18 +02:00
Ashley Harrison b5f56537c9 Accessibility: Prevent TimePickerContent overflowing page height (#68356)
* add max-height to TimePickerContent/Calendar

* undo change to TimePickerCalendar
2023-05-15 10:07:19 +01:00
Domas bb2cbd2e01 DataLinks: Ensure replaceVariables provided to link.onBuildUrl is bound to data frame variables (#68371)
* bind variable replacer provided to link.onBuildUrl to data frame vars

* revert internal link change
2023-05-15 12:06:48 +03:00
Ashley Harrison 07c725800b Chore: some minor type fixes (#68402)
* some minor type fixes

* undo card change
2023-05-15 09:15:26 +01:00
Laura Fernández 3869d2f239 Grafana UI: Add invalid state to Switch component (#68215) 2023-05-12 16:30:23 +02:00
Laura Fernández 8de16908a2 Grafana UI: Add invalid state to RadioButtonGroup (#68183) 2023-05-12 16:29:09 +02:00
Ben Sully e7a67e749c Plugins: Pass panel data in plugin extension context (#67509)
* Plugins: Pass panel data in plugin extension context

Similar to https://github.com/grafana/grafana/pull/65861, this passes
the panel's data as part of the context object used when configuring
extension links.

This is useful if the plugin wants to conditionally show the link
depending on the presence or absence of certain features in the
data. For example in the ML plugin we only want to offer Outlier
Detection links for a query if the query returned more than 3 series.

* Update getPanelMenu extension test to include data object
2023-05-12 14:12:00 +02:00
Torkel Ödegaard debf04eb2c Modals: Be more consistent with Modal cancel button styling (#68302)
* Modals: Be more consistent with Modal cancel button styling

* Update docs

* Fix tests

* fixing tests
2023-05-12 09:21:07 +02:00
Leon Sorokin b96a2c1b62 Candlestick: Fix panel not rendering in candles-only mode (#68279) 2023-05-11 15:38:01 +03:00
Jack WestbrookandJoao Silva 33ba5310ab Chore: Upgrade Storybook to v7 (#65943)
* chore(grafana-ui): begin migration to storybook7

* refactor(storybook): begin cleanup of storybook and addon configs

* chore(storybook): add storybook/blocks to keep yarn berry happy

* chore(storybook): rename intro story for storybook 7

* chore(stories): rename internal stories to support SB7 story name mapper

* chore(betterer): update glob to support internal story renaming

* chore(stories): silence TS errors for subcomponents in SB7

* fix(clickoutsidewrapper): window | document can be undefined not null

* chore(storybook): remove patch for 6.5.16

* revert(storybook): put back story globs

* docs(storybook): replace removed <Props /> with <ArgsTypes /> in mdx files

* docs(storybook): use ArgTypes instead of ArgsTable

* chore(storybook): use correct ArgTypes import name in mdx files

* chore(storybook): patch blocks to expose Preview component for docs

* chore(storybook): rename deprecated ComponentStory and ComponentMeta for v7

* feat(storybook): add STORY env var to customise which stories storybook should load

* chore(storybook): bump to 7.0.4

* fix(storybook): set esbuild minify target to fix erroring docs in production builds

* fix(toolbarbuttonrow): fix import path to prevent error in storybook doc

* docs(storybook): fix up some more stories

* chore(storybook): more config updates to match storybook documentation

* chore(storybook): bump to 7.0.5

* Apply suggestions from code review

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

* chore(storybook): fix broken merge causing types issues

* chore(storybook): mimic broken alphabetical storySort and docs overview ordering

* docs(storybook): fix button docs adding p tags due to mdx2

* chore(storybook): bump to 7.0.10

* chore(storybook): apply patch on yarn install

* chore(text): update stories for storybook 7

* fix(storybook): make sure globs don't include internal stories in production

---------

Co-authored-by: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com>
2023-05-11 14:26:12 +02:00
Kyle Brandt 704ab1ca9b DataFrame: Add dataplane numeric types to DataFrameType enum (#68298)
- https://grafana.github.io/dataplane/contract/numeric
- https://github.com/grafana/grafana-plugin-sdk-go/blob/main/data/frame_type.go
2023-05-11 07:31:39 -04:00
Marcus Andersson 5605d2f4a5 PluginExtensions: Expose scopedVars via the context to plugins that extends the dashboard panel menu (#67917)
* Exposes the scoped vars to UI extensions via context.

* reverted the interpolation when running a query via the query runner.

* adding scoped vars to test.#
2023-05-11 12:58:19 +02:00
Joao Silva a19189af13 Accessibility: Adds aria tags to VizTooltip so screen readers announce them (#68247) 2023-05-11 12:34:34 +02:00
Torkel Ödegaard f8cf67347f Themes: Adds support for extraThemes (behind feature toggle) (#67981)
* Foundations to support more themes

* Fixes

* add another test theme

* Refactorings

* more refactoring

* Update

* Fixing tests

* Fix

* Update
2023-05-10 15:37:04 +02:00
renovate[bot]renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>Ashley Harrison
5e25334663 Update React Aria (#63786)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-05-10 12:27:04 +01:00
Giordano Ricci b99e9668a9 QueryRow: Make toggle actions screen-readers accessible (#67998) 2023-05-10 11:57:08 +01:00
Ryan McKinley 4ee894b0be Heatmap: Fix log scale editor (#68132) 2023-05-09 14:29:52 -07:00
Gilles De Mey 5d047160e9 Alerting: Update contact point state semantics (#67994) 2023-05-09 17:58:15 +02:00
Josh Hunt b8093bd0d9 Chore: Remove nth-child warning from dev mode (#67918) 2023-05-09 09:44:14 +00:00
Juan Cabanas 24668137f8 NavBar: app chrome state wrongly overwritten when ds modal is opened (#67952) 2023-05-08 16:51:42 -03:00
Joao Silva ee91b8c12c GrafanaUI: Export Toggletip (#67984) 2023-05-08 13:03:19 +02:00
Ryan McKinley 854d497f94 Schema: Fix dimension schemas (#67935) 2023-05-05 12:16:31 -07:00
Torkel Ödegaard ae1a85b5ad Drawer: Position under nav & minor redesign (#67824)
* Drawer: Redesign WIP

* Fix double margin

* Teak pos

* align paddings

* Hide toolbar actions when drawer is open

* deprecate expandable

* Updated test

* remove expandable var

* Added clickaway
2023-05-05 17:00:33 +02:00
Victor Marin eb2eb65de8 TablePanel: Do not allow auto-reset (#67477)
disallow react table to autoreset
2023-05-05 13:57:57 +03:00
Torkel Ödegaard 20217db100 Drawer: Introduce a size property that set's width percentage and minWidth (#67809)
* Drawer: Introduce drawer size that sets width and min-width

* media queries

* Change large drawer to 75%

* Change news drawer to medium as the news items have better layout then with images on the side

* Tweaks and fixed inline drawer issue

* review fixes

* Deprecate inline, update mdx docs

* remove inline var
2023-05-05 11:31:02 +02:00
Torkel Ödegaard fcb14d2548 InspectDrawer: Fixes issue with double scrollbars (#67884)
* InspectDrawer: Fixes issue with double scrollbars

* Fixed minor issue
2023-05-05 09:54:43 +02:00
Elliot Kirk e7cbe0276e Faro: Adding Faro data source selector feature toggle (#66623) 2023-05-04 17:35:10 -07:00
Ashley Harrison 37378c4dd8 Navigation: more nav interface cleanup (#67708)
more nav interface cleanup
2023-05-04 14:17:44 +01:00
Ryan McKinley 881ed3b599 Schema: Add basic folder schema (#67561) 2023-05-03 13:07:39 -07:00
Torkel Ödegaard 2b2afb1784 Theme: Change dark theme borders to improve contrast on primary background (#67699) 2023-05-03 18:28:37 +02:00
Giordano Ricci f03d0698d3 Explore: move panes into a keyed object (#66117) 2023-05-03 16:45:11 +01:00
Gábor Farkas b10d415569 grafana-data: improved field-config docs (#67696) 2023-05-03 08:34:29 +00:00
Domas 15d4169813 Frontend logging: Remove Sentry javascript agent support (#67493)
* remove Sentry

* fix sourcemap resolve
2023-05-02 12:10:56 +03:00
Shirley 2316178565 CloudWatch: Remove dynamic labels feature toggle (#67371) 2023-05-02 10:48:17 +02:00
Grot (@grafanabot) ab7b14fecb Release: Bump version to 10.1.0-pre (#67613)
"Release: Updated versions in package to 10.1.0-pre"
2023-05-02 09:48:59 +03:00
Ryan McKinley 86302bc1ec DataFrame: Deprecate MutableDataFrame (#67569) 2023-05-01 19:41:40 -07:00
Torkel Ödegaard 9d564f9afb Alert: Remove fix for custom content close button (#67592) 2023-05-01 21:15:09 +03:00
Torkel Ödegaard d189b8b47f Alert: Fixes a minor issue with new Alert design and updated scss files (#67589) 2023-05-01 19:33:30 +02:00
Torkel Ödegaard d2bc270097 Alert: Redesign with tinted background (#66918) 2023-05-01 15:50:25 +02:00
Kuba Siemiatkowski ba8bba78fc Datasource: Move the Delete data source button back to the bottom (#67552)
* - move delete button back to the lower section

* - remove the top Delete button

* - fix e2e tests
2023-05-01 12:16:16 +02:00
Leon Sorokin e5aeb7c322 TimeSeries: Fix leading null-fill for missing intervals (#67570) 2023-04-28 23:35:32 -05:00
Ryan McKinley e493bec3a8 Geomap: Improve migration logic (#65500) 2023-04-28 12:20:10 -07:00
Jack Westbrook 7bceab4ad4 Grafana Toolkit: Fix broken build directory structure (#67544)
fix(grafana-toolkit): make sure to build into cli directory so relative paths work
2023-04-28 19:57:02 +03:00
Juan Cabanas e88e50efe4 ShareModal: Responsive tabs and Public Dashboards modal fixed (#66805) 2023-04-28 13:37:11 -03:00
Jack Westbrook 7be23e7384 Grafana Toolkit: Prevent MODULE_NOT_FOUND errors (#67518)
fix(grafana-toolkit): put back ts-node to prevent MODULE_NOT_FOUND errors
2023-04-28 17:10:59 +02:00
Alexa V 07041b5b36 Dashboard: Revert fixed header shown on mobile devices in the new panel header (#67510) 2023-04-28 16:20:32 +02:00
Kuba SiemiatkowskiandTorkel Ödegaard f8faacd54a Datasource: Overhaul plugin error handling and action buttons (#67014)
* - initial work on data source config page

* - add links to test status box
- add tracking function

* - add test for the DataSourceConfigAlert component

* - fix flicker of the alert box

* - fix the build

* - small improvements

* - fix failing build

* - fix failing unit tests

* - prettier and betterer fixes

* - fix failing e2e tests

* - fix build again

* - rewrite solution according to the PR comments

* - cleanup

* - fix failing e2e

* - use absolute path in link

* Minor fixes

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-04-28 15:57:17 +02:00
Laura Fernández fe59b65f9e Grafana UI: Create Text component (#66932) 2023-04-28 15:31:40 +02:00