Dominik Prokop
739cdcfb6e
Feature: Migrate Legend components to grafana/ui ( #16468 )
...
* Introduced Abstract list, List and InlineList components for easier lists generation
* Enable custom item key on abstract list items
* Enable $.flot in storybook
* Expose onOptionsChange to react panel. Allow React panels to be function components
* Update type on graph panel options to group graph draw options
* Introduce GraphPanelController for state and effects handling of new graph panel
* Group visualisation related stories under Visualisations
2019-04-24 10:14:18 +02:00
Ryan McKinley
5f474c6328
Refactor: move getQueryRunner() to PanelModel ( #16679 )
...
* move queryRunner to panelModel
* Added interval back as prop, not used yet
* PanelQueryRunner: Refactoring, added getQueryRunner to PanelModel
* PanelQueryRunner: interpolatel min interval
2019-04-18 14:10:18 -07:00
Ryan McKinley
5976b421fe
refactor: move timeInfo to DataRequestInfo ( #16664 )
...
* use timeInfo from request
* move timeInfo to DataRequestInfo
2019-04-18 00:00:46 -07:00
Ryan McKinley
0643dff2f6
QueryRunner: Move queryRunner to panelModel ( #16656 )
...
* move queryRunner to panelModel
* remove isEditing from PanelChrome
* move listener to QueriesTab
* Fixed issue with isFirstLoad set to false before loading state is Done
* QueryRunner: Fixed issue with error and delayed loading state indication
* Anoter fix to issues with multiple setState calls in observable callbacks
2019-04-18 08:22:14 +02:00
Ryan McKinley
f4cd9bc73c
PanelQueryRunner: move error handling to QueryRunnerOptions ( #16654 )
2019-04-17 21:05:57 +02:00
Ryan McKinley
ed0192104c
refactor: Merge PanelChrome and DataPanel, do query execution in PanelQueryRunner ( #16632 )
...
Moves query execution logic to PanelQueryRunner and structures PanelChrome so it subscribes to the query results rather than necessarily controlling their execution.
2019-04-17 10:51:50 -07:00
Ryan McKinley
514818f16d
Panel Plugins: pass query request/response to react panel plugins ( #16577 )
...
* pass query request/response to panel plugins
* rename finishTime to endTime
* move QueryResponseData to a sub variable
* rename to PanelData
* make data not optional
* make data not optional
* missing optional
2019-04-16 13:23:34 -07:00
Torkel Ödegaard
47e51cb6b3
Refactor: Plugin exports & data source / panel types ( #16364 )
...
* wip: began work off removing meta and pluginExports from DataSourceApi interface
* WIP: changing how plugins are exports and loaded
* Down the refactoring rabit hole that keeps expanding
* TestData now returns DataSourcePlugin
* Refactoring: fixed app config page loading, type renamings and more typings
* Refactor: Correct casing on DatasourceStatus => DataSourceStatus
2019-04-04 18:30:15 +02:00
Ryan McKinley
ede2d54849
Refactor: React Panels to only use SeriesData[] ( #16306 )
...
* only use SeriesData[] in react panels
* update target
* Refactor: Added refId filtering for queryResponse and queryError
2019-04-02 07:22:52 +02:00
Ryan McKinley
77b3da3e8b
refactor(data models): Renamed TableData to SeriesData ( #16185 )
2019-03-25 14:46:16 +01:00
ryan
7498de044c
cleanup and guess all columns
2019-03-21 21:52:58 -07:00
ryan
b4a3aecbbc
merge master
2019-03-13 09:03:32 -07:00
ijin08
dc98fb5e82
added two new variables in default theme for panel padding, replaced panelhorizontalpadding and variables.panelverticalpadding with new variables
2019-03-12 14:24:48 +01:00
ryan
439b044204
move toTableData to grafana/ui
2019-03-07 13:09:53 -08:00
ryan
abf015ace2
use TableData for timeseries in react
2019-03-07 12:13:38 -08:00
ryan
948729e951
remove console.log
2019-03-05 22:00:12 -08:00
ryan
f5aba36814
add ScopedVars to replace function
2019-03-05 21:56:52 -08:00
ryan
251008f590
use replaceVariables rather than onInterpolate
2019-03-04 11:44:38 -08:00
Hugo Häggmark
3a65e27e83
Fixes #15739
2019-03-04 10:42:59 +01:00
Dominik Prokop
d19616a16b
Merge branch 'master' into cli/watch-sass-var
2019-02-19 17:27:25 +01:00
Torkel Ödegaard
abddb442a1
Changed how react panels store their options ( #15468 )
...
Changed how react panels store their options
* Added a ReactPanelPlugin as the interface that react panels export, this way react panels have clearer api, and gives us hooks to handle migrations and a way for panel to handle panel changes in the future
* Moved gauge value options into a sub oject and made editor more generic, will be moved out of gauge pane later and shared between singlestat, gauge, bargauge, honecomb
* Also remove nested options prop that was there due to bug
* Added missing Gauge props
* Fixed gauge issue that will require migration later and also value options editor did not handle null decimals or 0 decimals
* Fixed unit tests
* More fixes for react panels
2019-02-18 11:41:14 +01:00
Dominik Prokop
6da57d4c08
Make clear that variable scss files are generated from templates
2019-02-18 11:03:52 +01:00
Torkel Ödegaard
89ad525986
Fixed issue with PanelHeader and grid-drag-handle class still being applied in fullscreen, fixes #15480
2019-02-17 08:11:57 +01:00
Torkel Ödegaard
2bc26a01f9
Fixes to error handling and clearing, also publishing of legacy events so old query editors work with react panels fully
2019-02-14 15:18:55 +01:00
Torkel Ödegaard
cc61d9c5cc
Merge branch 'master' into move-error-boundry
2019-02-14 13:10:49 +01:00
Peter Holmberg
0c72fb3be1
Merge branch 'master' into move-error-boundry
2019-02-13 16:52:52 +01:00
Torkel Ödegaard
ef9e74fabb
Fixed issue with sass variables used from typescript, the prettier lowercases export variables
2019-02-13 16:36:59 +01:00
Peter Holmberg
aad558ce9c
using error callback from datapanel instead
2019-02-13 15:54:10 +01:00
Peter Holmberg
1c5118748a
implement show error in panelcorner
2019-02-12 17:01:07 +01:00
Peter Holmberg
f52aa4de4e
Merge branch '15217-panels-without-queries' into move-error-boundry
2019-02-12 16:13:15 +01:00
Peter Holmberg
f0565684c7
Merge branch '15217-panels-without-queries' of https://github.com/grafana/grafana into 15217-panels-without-queries
2019-02-12 16:11:04 +01:00
Peter Holmberg
530a370379
bubble error from datapanel to panelchrome
2019-02-12 16:06:02 +01:00
Torkel Ödegaard
a1453607a9
Changed noQueries to a dataFormats array that will allow a panel to define supported formats and prefered (first in array)
2019-02-12 16:05:29 +01:00
Johannes Schill
c3965e332d
chore: Rename renderPanel to renderPanelBody
2019-02-12 12:28:53 +01:00
Johannes Schill
d5918498da
chore: Rename renderDataPanel to renderPanel
2019-02-12 12:28:53 +01:00
Johannes Schill
01208ccd68
chore: Rename renderHelper > renderDataPanel and move logic to smaller functions
2019-02-12 12:28:53 +01:00
Johannes Schill
b5dbf26dc4
chore: PR feedback, shorten boolean check
2019-02-12 12:28:53 +01:00
Johannes Schill
075fb8e91c
chore: Rename isDataPanel to noQueries
2019-02-12 12:28:53 +01:00
Johannes Schill
d3115325a9
feat: Only use the DataPanel component when panel plugin has isDataPanel set to true in plugin.json. And fix PanelData when using snapshots
2019-02-12 12:28:53 +01:00
Johannes Schill
be58e275a5
chore: PR feedback, shorten boolean check
2019-02-12 09:55:09 +01:00
Johannes Schill
2db9cb3d93
chore: Rename isDataPanel to noQueries
2019-02-12 09:48:46 +01:00
Torkel Ödegaard
fc91e1cf57
Fixed issue with gauge requests being cancelled
2019-02-11 17:47:47 +01:00
Johannes Schill
ec02ddd27b
feat: Only use the DataPanel component when panel plugin has isDataPanel set to true in plugin.json. And fix PanelData when using snapshots
2019-02-07 21:34:50 +01:00
Torkel Ödegaard
d1d5bbf697
Merge pull request #15188 from grafana/fix/table-data-to-component
...
React panel table data fix
2019-02-01 13:57:26 +01:00
Peter Holmberg
57596462a4
sending paneldata to component, gauge can handle table data
2019-02-01 10:53:58 +01:00
Torkel Ödegaard
aeaac7480b
New solo panel route working in all scenarios I can test
2019-02-01 08:15:21 +01:00
Peter Holmberg
ed0f5b71c7
Merge branch 'master' into table-data-support
2019-01-31 14:16:06 +01:00
Peter Holmberg
88cb38adde
creating table data type
2019-01-31 09:59:21 +01:00
Torkel Ödegaard
aafd4a339a
Moved dashboard state components to state folder
2019-01-31 08:56:17 +01:00
Torkel Ödegaard
6663b2fab9
Moved time_srv to services folder, this should not belong to dashboard feature but it is too dependant on dashboard to move it out now, needs a bigger refactoring to isolate from dashboard
2019-01-31 08:44:46 +01:00
Peter Holmberg
4b47e857f2
adjusting types to match
2019-01-30 13:43:17 +01:00
Peter Holmberg
ae0b9692be
first implementation
2019-01-30 10:39:42 +01:00
Hugo Häggmark
1faa5819a8
Initial commit
2019-01-15 17:15:46 +01:00
Dominik Prokop
0c8f0416a0
Move panel width/height calculation to PanelChrome
2019-01-14 14:47:41 +01:00
Johannes Schill
f428db282c
fix: Remove the onRenderError prop and add an ErrorBoundary component
2019-01-08 13:32:08 +01:00
Johannes Schill
4f943687d8
feat: Display error when plot fail to render
2019-01-08 09:55:23 +01:00
Torkel Ödegaard
a02b4b47b6
Moving a couple of types to @grafana/ui
2018-12-23 09:15:32 +01:00
Johannes Schill
d62cd8a5c5
Fix transparent option #14333
2018-12-06 10:34:27 +01:00
Johannes Schill
827ffaccd3
Pass some panel props down as strings to trigger render #14333
2018-12-05 14:57:57 +01:00
Peter Holmberg
6084275119
started on thresholds
2018-11-20 17:01:58 +01:00
Peter Holmberg
cc7bf31c3e
Merge remote-tracking branch 'origin/develop' into unit-picker
2018-11-16 16:54:02 +01:00
Torkel Ödegaard
080d611004
minor changes to react panels
2018-11-14 13:20:19 +01:00
Torkel Ödegaard
90c41bb087
changed how size is calcualted and propagated and added proper interval calc to DataPanel
2018-11-14 12:03:25 +01:00
Peter Holmberg
e4e41474b1
first stuff
2018-11-14 11:06:02 +01:00
Torkel Ödegaard
dedeaf541e
wip panel size handling
2018-11-13 18:50:12 +01:00
Torkel Ödegaard
f274195d81
wip: refactoring interval and time override handling
2018-11-13 15:05:07 +01:00
Johannes Schill
6d4d7c5032
wip: panel-header: On panel refresh, get new timeRange from timeSrv, not the old one from the state
2018-11-12 11:38:41 +01:00
Johannes Schill
a3f1a1c6b3
wip: panel-header: Remove the TimeData type
2018-11-12 11:31:33 +01:00
Johannes Schill
e55f3f883f
wip: panel-header: Move getResolution and calculateInterval into utils-functions and use the same code from react and angular
2018-11-12 11:31:33 +01:00
Johannes Schill
9fd62b80d9
wip: panel-header: Start implementing the applyPanelTimeOverrides in the react panels by moving it to a util, make it pure and call it from angular and react.
2018-11-12 11:31:33 +01:00
Torkel Ödegaard
37eb7ca62b
further refactoring of #13984
2018-11-07 13:55:02 +01:00
Torkel Ödegaard
a24f6998f2
refactorings and some clean-up / removal of things not used
2018-11-07 13:36:35 +01:00
Johannes Schill
9c28ff8f84
wip: panel-header: Remove custom menu items from panels completely
2018-11-06 16:44:13 +01:00
Johannes Schill
dd7437e9e9
wip: panel-header: Reverted a lot of code to pause the "custom menu options" for now
2018-11-06 16:37:51 +01:00
Johannes Schill
49550ccedf
wip: panel-header: More merge conflicts during cherry pick
2018-11-06 16:12:04 +01:00
Johannes Schill
dbf7f3fb61
wip: panel-header: More merge conflicts during cherry pick
2018-11-06 16:05:34 +01:00
Johannes Schill
6c0c1254fe
wip: panel-header: More merge conflicts
2018-11-06 15:44:04 +01:00
Johannes Schill
ca4612af26
wip: panel-header: Merge conflicts
2018-11-06 15:35:15 +01:00
Johannes Schill
9f6683de2c
wip: Initial commit for PanelHeaderMenu
2018-11-06 15:23:52 +01:00
Torkel Ödegaard
35e62bbbe0
wip: react panel options architecture
2018-11-05 17:46:09 +01:00
Torkel Ödegaard
a28c25a2e0
progress on react time series infra
2018-10-15 08:22:20 +02:00
Torkel Ödegaard
8e85295b2b
react panels query processing
2018-10-14 18:19:49 +02:00
Torkel Ödegaard
543c67a297
react panels: got data
2018-10-14 16:31:20 +02:00
Torkel Ödegaard
cd4619dad1
working on react data / query exectution
2018-10-14 15:39:34 +02:00
Torkel Ödegaard
2e1d45a875
changed DataPanel from HOC to use render props
2018-10-14 12:41:09 +02:00
Torkel Ödegaard
dc3a81200b
wip: you can now change panel type in edit mode
2018-07-09 13:24:15 -07:00
Torkel Ödegaard
761283231c
react panels: working on changing type
2018-07-09 18:17:51 +02:00
Torkel Ödegaard
50f24c98f7
wip: minor progres on react panels edit mode
2018-07-08 07:39:25 -07:00
Torkel Ödegaard
c86fc6fb47
react-panels: minor progress on data flow
2018-07-05 13:10:39 -07:00
Torkel Ödegaard
ab9e1b35cd
wip: minor progress on DataPanel
2018-07-01 17:34:42 +02:00
Torkel Ödegaard
230606146d
wip: react panel minor progrss
2018-06-19 21:25:57 +02:00
Torkel Ödegaard
13bc9f6fb2
updated
2018-06-19 17:30:10 +02:00
Torkel Ödegaard
db52ea66bd
react panels minor progress
2018-06-19 16:57:55 +02:00
Torkel Ödegaard
aa5c9f199a
react panel minor progress
2018-06-19 14:51:57 +02:00