Commit Graph

232 Commits

Author SHA1 Message Date
Dominik Prokop
40dc29d135 Make series overrides color picker display correctly 2019-01-24 12:01:15 +01:00
Dominik Prokop
1e69a7b8b7 Update story for NamedColorsPalette 2019-01-24 10:37:53 +01:00
Dominik Prokop
d414e463bd Update imports of NamedColorsPalette 2019-01-24 10:37:34 +01:00
Dominik Prokop
549e0993c4 Restore missing styles 2019-01-24 10:28:48 +01:00
Dominik Prokop
071b1f8478 Fixed issue with color name retrieval not being aware of current theme 2019-01-24 09:56:52 +01:00
Torkel Ödegaard
02083d71c8 Loki query editor is starting to work, had to make changes to explore query field in order to update query from the outside without unmount between 2019-01-23 17:44:22 +01:00
Dominik Prokop
d13efb3372 Removed sass import of spectrum.scss 2019-01-23 16:37:23 +01:00
ijin08
7bdbe3ea9d Merge branch 'named-colors' of github.com:grafana/grafana into named-colors 2019-01-23 16:25:51 +01:00
ijin08
387c40c6d2 replaced palette colors with current palette adjusted for dark and light theme 2019-01-23 16:23:48 +01:00
Dominik Prokop
573e64ef11 Remove spectrum.js vendor dependency from grafana/ui 2019-01-23 16:02:21 +01:00
Dominik Prokop
580b919424 Fix hide timeout for color picker 2019-01-23 15:34:39 +01:00
Dominik Prokop
e5f74fdf93 Rename colorsPalette util to namedColorsPalette 2019-01-23 15:31:41 +01:00
Dominik Prokop
511895c079 Make small swatches react to theme changes 2019-01-23 15:30:33 +01:00
Dominik Prokop
3c7a5bdf7b Update styles of selected named color swatch 2019-01-23 14:59:43 +01:00
Dominik Prokop
8cce80a851 Implement pointer component for spectrum palette sliders 2019-01-23 14:46:38 +01:00
Torkel Ödegaard
8a9582dad5 minor updates 2019-01-23 13:54:34 +01:00
Dominik Prokop
ab7756ecb4 Make default color picker close on trigger mouse leave 2019-01-23 13:46:13 +01:00
Dominik Prokop
53f52a67e1 Added deprecation warning to old color picker API props. Moved named color support handling to color popovers 2019-01-23 13:29:56 +01:00
ijin08
2ec55d0650 changed color for label tooltips from blue/red-yellow gradient to black/white 2019-01-23 13:28:39 +01:00
Dominik Prokop
5c5265829a Reduce padding in color picker popover 2019-01-23 09:39:59 +01:00
Dominik Prokop
9fd9bba1f4 Implemented new spectrum palette 2019-01-22 20:00:22 +01:00
Dominik Prokop
ba4b774c96 Stories update for color picker 2019-01-22 13:36:21 +01:00
Dominik Prokop
c3e5737fb8 Make named colors optional in color picker, enable named colors in graph legend series picker 2019-01-22 13:35:57 +01:00
Dominik Prokop
5b63ee4bfb Storybook - add actions addon 2019-01-22 13:19:47 +01:00
Dominik Prokop
dd8f7aa7a9 CustomScrollbar - expose underlying's react-custom-scrollbars API to allow scroll tracks config.
Updated config for Graph legend not to display horizontal scroll track which caused legend being not accessible in ceertain situations (e.g. when native OS scroll overlay disabled)
2019-01-22 10:58:31 +01:00
Dominik Prokop
d86d063900 Make popover hide delay configurable to enable better UX 2019-01-22 09:14:30 +01:00
Dominik Prokop
2b34933554 Stories - fix import 2019-01-22 09:14:30 +01:00
Dominik Prokop
93bb30a561 Enable new color picker in Gauge and Thresholds editor, use ThemeProvider instead of ContextSrv 2019-01-22 09:14:30 +01:00
Dominik Prokop
ed48ecfe1d Updated table tests to new behavior for colors (values are always rendered as hex/rgb) 2019-01-22 09:11:30 +01:00
Dominik Prokop
597cbb5b9b Story updates 2019-01-22 09:11:30 +01:00
Dominik Prokop
b560dcac3d Update grafana/ui exports 2019-01-22 09:11:30 +01:00
Dominik Prokop
a214b5748e Refactor color picker to remove code duplicartion (introduced colorPickerFactory). Allow popver position update on content change 2019-01-22 09:11:30 +01:00
Dominik Prokop
4f516faa82 Fix lint 2019-01-22 09:11:30 +01:00
Dominik Prokop
25e60565ad Updated stories 2019-01-22 09:11:30 +01:00
Dominik Prokop
c8ac23f3c1 Rendering arrows for color picker, applying color changes to time series 2019-01-22 09:11:30 +01:00
Dominik Prokop
b02c89c3ba Stories updates 2019-01-22 09:11:30 +01:00
Dominik Prokop
e33614ade3 Unified color picker API, allowed for color specified for theme selection, updated code to changes in PopperController API 2019-01-22 09:11:30 +01:00
Dominik Prokop
977d53c8c9 Get rid of unused renderContent prop on PopperController 2019-01-22 09:11:30 +01:00
Dominik Prokop
0505add7f6 Enabled knobs for storybook and implemented some stories 2019-01-22 09:11:30 +01:00
Dominik Prokop
3d2955f24f Lint fix 2019-01-22 09:11:30 +01:00
Dominik Prokop
33fa40a1f3 Migrating color pickers to Popper from drop.js pt1 2019-01-22 09:11:30 +01:00
Dominik Prokop
c74b39696c Updates to Popper to be positions correctly within window 2019-01-22 09:11:30 +01:00
Dominik Prokop
4384eb2f0b Move tooltip themes to Tooltip component making Popper/PopperController theme agnostic 2019-01-22 09:11:30 +01:00
Dominik Prokop
ac37879016 WIP Basics of named color picker 2019-01-22 09:11:30 +01:00
Hugo Häggmark
a9c33ab658 Moved ValueMapping logic and tests to separate files 2019-01-22 06:40:04 +01:00
Hugo Häggmark
bbb7596113 Changed null logic for range value mappings after PR comments 2019-01-21 17:30:47 +01:00
Hugo Häggmark
38ea11d110 Added check for null value in ValueMappings and added tests 2019-01-21 16:07:55 +01:00
Dominik Prokop
c8ec35ce1f Merge branch 'master' into tooling/storybook-poc 2019-01-21 12:20:10 +01:00
Torkel Ödegaard
5ab9a7c2b8 Further refinements of typings 2019-01-18 19:11:30 +01:00
Torkel Ödegaard
5d17ad1103 more typings work around data query and data source 2019-01-18 18:59:32 +01:00
Torkel Ödegaard
98fabfae3e wip: typings 2019-01-18 17:23:00 +01:00
Torkel Ödegaard
453ca25847 Merge branch 'master' of github.com:grafana/grafana 2019-01-18 13:32:58 +01:00
Torkel Ödegaard
a0eddad323
Merge pull request #14934 from grafana/hugoh/refactor-gauge-to-work-with-thresholds
Refactor gauge to work with thresholds
2019-01-18 13:24:52 +01:00
Torkel Ödegaard
46ff9dda71 Fixed scrollbar issue where it jumped to the top 2019-01-18 13:24:26 +01:00
Torkel Ödegaard
3a827fc2f1 Added test case dashboard 2019-01-18 13:12:32 +01:00
Torkel Ödegaard
f16101101d Minor refactoring and name changes 2019-01-18 11:58:29 +01:00
Hugo Häggmark
4cc0be2568 Redid logic for fontcolor and thresholds in Gauge and added tests 2019-01-18 09:54:25 +01:00
Torkel Ödegaard
bc8f3374a3
Merge pull request #14936 from grafana/plugin-types-refactor
Plugin types refactor
2019-01-18 08:21:29 +01:00
Hugo Häggmark
c17ccf2289 Make sure we do not change -Infinity 2019-01-18 07:10:00 +01:00
Hugo Häggmark
8ccf212f34 Added tests for formatted value 2019-01-18 06:40:30 +01:00
Hugo Häggmark
4f6e87bbbf Small refactor of Gauge and tests 2019-01-18 06:40:30 +01:00
Hugo Häggmark
a6e2be862c Added typings and refactored valuemappings code 2019-01-18 06:40:30 +01:00
Hugo Häggmark
9a01f3e517 Moved Gauge to ui/components 2019-01-18 06:40:30 +01:00
Hugo Häggmark
554d010332 Preparing move to ui/viz 2019-01-18 06:40:30 +01:00
Hugo Häggmark
533b938fcd Removed baseColor 2019-01-18 06:40:30 +01:00
Torkel Ödegaard
20c8b9c4a0 began work on react query editor props and integration 2019-01-17 20:02:43 +01:00
Torkel Ödegaard
205e2acdd8 Added data source type to explore state 2019-01-17 19:17:29 +01:00
Torkel Ödegaard
ecab597e5e renaming DataSource type to DataSourceSettings and moved to grafana ui 2019-01-17 18:51:07 +01:00
Torkel Ödegaard
32f917557f Fixed issue with team and user picker, fixes #14935 2019-01-17 18:03:46 +01:00
Torkel Ödegaard
febb9e7168 Moved data source and data query types 2019-01-17 17:59:47 +01:00
Torkel Ödegaard
4fc9d794ca Moved plugin types to @grafana/ui 2019-01-17 17:37:34 +01:00
Torkel Ödegaard
a201c76c5f wip: moved plugin exports 2019-01-17 17:04:24 +01:00
Torkel Ödegaard
a6683dd90e Merge branch 'master' into react-query-editor 2019-01-17 14:57:49 +01:00
Torkel Ödegaard
bfadcd2968
Merge branch 'master' into page-layout-component 2019-01-17 14:48:54 +01:00
Torkel Ödegaard
7c22848cf6
Merge pull request #14897 from grafana/14812/formgroup-component
FormField component
2019-01-17 13:43:14 +01:00
Peter Holmberg
3ce45e7154 shortening callback functions 2019-01-17 11:57:15 +00:00
Torkel Ödegaard
9cb49d14cd Made scrollbar have scrollTop and setScrollTop props so we can control scroll position 2019-01-17 11:25:44 +01:00
Torkel Ödegaard
5681370680
mini stylefix to select component 2019-01-17 08:40:23 +01:00
Peter Holmberg
736db86d6e removing Label and going with FormLabel 2019-01-16 18:02:27 +00:00
Dominik Prokop
c08313842c Use light theme in storybook 2019-01-16 18:22:08 +01:00
Johannes Schill
234713466e test: Update snapshots and mocks 2019-01-16 16:29:07 +01:00
Johannes Schill
8237c22e24 fix: Add CustomScroller on DataSources page 2019-01-16 16:03:15 +01:00
Peter Holmberg
01251927b3 redoing input props 2019-01-16 14:43:22 +00:00
Torkel Ödegaard
8fef2138b2 another minor style change 2019-01-16 15:35:32 +01:00
Peter Holmberg
0d95527924 Merge branch 'master' into 14812/formgroup-component 2019-01-16 14:27:47 +00:00
Torkel Ödegaard
05b82bede3 More style tweaks to thresholds 2019-01-16 15:13:59 +01:00
Peter Holmberg
4c4e88910d move styling 2019-01-16 13:52:38 +00:00
Peter Holmberg
4c40274313 renaming after pr feedback 2019-01-16 13:46:57 +00:00
Torkel Ödegaard
cc8b450799 minor style change 2019-01-16 14:36:01 +01:00
Hugo Häggmark
013d46b707 Refactored ValueMappings 2019-01-16 12:29:43 +01:00
Hugo Häggmark
c90979a8f0 Moved ValueMappings to grafana/ui/component and renamed it ValueMappingsEditor 2019-01-16 12:29:04 +01:00
Hugo Häggmark
639dc6c3c3 Moved Label to grafana/ui/components 2019-01-16 12:29:04 +01:00
Torkel Ödegaard
6edc4e9f02
Merge pull request #14898 from grafana/hughag/template-variable-support-for-react-panels
Template variable support for react panels
2019-01-16 11:39:30 +01:00
Dominik Prokop
6d3e6b1fcb Experimenting with generating doc for ui component 2019-01-16 10:27:09 +01:00
Hugo Häggmark
45a08792be Fixed small bug with entries outside the min max values 2019-01-16 09:50:05 +01:00
Hugo Häggmark
f16a2c0f48 Fixed NaN issue when parsing 2019-01-16 09:50:05 +01:00
Hugo Häggmark
38c0e91666 Remove BasicGaugeColor from state 2019-01-16 09:50:05 +01:00
Hugo Häggmark
0b1aea905a Fixed so that we can not change base threshold 2019-01-16 09:50:05 +01:00
Hugo Häggmark
aaaf3f7ff1 Fixed so added threshold colors are always unique 2019-01-16 09:50:05 +01:00
Hugo Häggmark
2836bc2a13 Fixed issue with changing value not changing index 2019-01-16 09:50:05 +01:00