Dominik Prokop
ea792edd3a
NewPanelEditor/Panels: refactor setDefault to setPanelOptions ( #23404 )
...
* Remove deprecated setDefault usages
* Add simple support for conditinal field config properties
* Use new API in NewsPanel
* Update tests
* Fix check
2020-04-08 19:21:26 +02:00
Tobias Skarhed
b34281e250
Forms migration: Old Select to Legacy namespace ( #23200 )
...
* Export other components as Legacy
* More Select Legacy
* Add namespacing to more files
* Export new elements
* Move Legacy Select folder
* Let's not forget the scss file
* Move new Select folder
* Move new Select from Forms namespace
* Little oopsie
* Fix errors
* Fix merge issues
2020-04-02 10:57:35 +02:00
Dominik Prokop
1256d9e78d
grafana/data: PanelTypeChangedHandler API update to use PanelModel instead of panel options object [BREAKING] ( #22754 )
...
This changes PanelModel's API to support PanelModel API updates when changing panel type. Primary useful when changing panel type between Angular and React panels, as other migrations can be handled via DashboardMigrator.
API change: https://github.com/grafana/grafana/pull/22754/files#diff-d9e3f91dc7d5697f6d85ada008003b4b
2020-03-13 08:27:16 +01:00
Torkel Ödegaard
f47759b98e
TextPanel: Fixes issue with template variable value not properly html escaped ( #20588 )
...
* sanitize html after replacing variables
* TextPanel: Always html escape variable values
2019-11-22 10:28:54 +01:00
Dominik Prokop
9b7748ec13
Chore: Reorg packages ( #20111 )
...
Primarily- moving majority of the types and utils from @grafana/ui to @grafana/data
* Move types from grafana-ui to grafana-data
* Move valueFormats to grafana-data
* Move utils from grafana-ui to grafana-data
* Update imports in grafana-ui
* revert data's tsconfig change
* Update imports in grafana-runtime
* Fix import paths in grafana-ui
* Move rxjs to devDeps
* Core import updates batch 1
* Import updates batch 2
* Imports fix batch 3
* Imports fixes batch i don't know
* Fix imorts in grafana-toolkit
* Fix imports after master merge
2019-10-31 10:48:05 +01:00
Tobias Skarhed and Dominik Prokop
1db9fff056
strictNullChecks: First batch ( #18390 )
...
* First batch of strictNullChecks
* Remove undefined
* Check an alternative solution
* Fix strict nullChecks
* Low hanging strictNullChecks
* Fixing strict nulls issues and more
* Minor change
* fixed unit test
* Fix feedback
* Update public/vendor/ansicolor/ansicolor.ts
Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com >
* Update public/vendor/ansicolor/ansicolor.ts
Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com >
* Update public/vendor/ansicolor/ansicolor.ts
Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com >
* Fix build errors
2019-08-12 16:11:06 +02:00
Ryan McKinley
c194ae1ba5
Registry: add a reusable function registry ( #17047 )
2019-07-16 11:40:23 -07:00
Ryan McKinley
3f15170914
Refactor: move some files to @grafana/data ( #17952 )
...
* moving to data WIP
* more refactoring
* add missing test
* mock full path
* remove sinon from grafana-ui
2019-07-06 08:05:53 +02:00
Tobias Skarhed
8541214c9e
Markdown: Replace rendering library ( #17686 )
...
* Replace remarkable with marked
* Add wrapper and options for marked
2019-06-26 13:15:45 +02:00
Tobias Skarhed
17826796da
Chore: Fix noImplicitAny issues ( #17636 )
...
* noImplicitAny: TableRenderer
* noImplicitAny and add types
* HeatmapData interface
* Heatmap rendering
* Fix optional type
* Remove use of lodash
2019-06-19 13:40:42 +02:00
Ryan McKinley
56702902a1
Plugins: Remove dataFormats key and add skipDataQuery ( #16984 )
2019-05-10 07:46:14 +02:00
Torkel Ödegaard
060e97bea8
Plugins: ReactPanelPlugin to VizPanelPlugin ( #16779 )
...
* Plugins: ReactPanelPlugin renamed
* Plugins: renamed PanelPlugin to PanelPluginMeta and VizPanelPlugin to PanelPlugin
2019-04-26 19:16:38 +02:00
Dominik Prokop
19e824006a
Refactor: Make SelectOptionItem a generic type to enable select value typing ( #16718 )
...
* Make SelectOptionItem a generic type to enable select value typing
* TS ignores added because of optional value on Select items (it's no longer any)
2019-04-23 20:44:16 +02:00
Torkel Ödegaard
0d55141a2d
Panels: Refactoring how panel plugins sets hooks and components, #16166
2019-03-24 15:56:32 +01:00
ryan
82be27a42a
remove panel plugin setters
2019-03-22 13:12:35 -07:00
ryan
75022ebd63
single hook
2019-03-13 12:46:04 -07:00
ryan
15c111b39d
better comments
2019-03-12 21:30:48 -07:00
ryan
7311b14da1
API to fix/update properties before load
2019-03-12 16:10:14 -07:00
Torkel Ödegaard
48114edc86
Minor refactoring of new react text panel
2019-03-08 13:30:47 +01:00
ryan
2e8dd19636
use pure component
2019-03-06 15:54:19 -08:00
ryan
94b6fc54ff
use replaceVariables
2019-03-05 11:14:22 -08:00
ryan
e5ce759167
update
2019-02-23 21:53:20 -08: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
Torkel Ödegaard
124b3486eb
Merge branch 'master' into 15330-vizpicker-red-when-0-hits
2019-02-13 14:49:11 +01:00
Torkel Ödegaard
88ef2e1d32
Fixed a minor plugin json lingering issue
2019-02-12 18:31:35 +01:00
Johannes Schill
075fb8e91c
chore: Rename isDataPanel to noQueries
2019-02-12 12:28:53 +01:00
Johannes Schill
c4b2dcefbe
feat: Introduce IsDataPanel attribute to plugin.json
2019-02-12 12:28:53 +01:00
Johannes Schill
0811fbd6d0
fix: Add missing typing
2019-02-12 12:28:52 +01:00
Torkel Ödegaard
a02b4b47b6
Moving a couple of types to @grafana/ui
2018-12-23 09:15:32 +01:00
Torkel Ödegaard
7b805bdb81
minor react panels refafactor
2018-11-13 08:40:42 +01:00
Torkel Ödegaard
8e85295b2b
react panels query processing
2018-10-14 18:19:49 +02:00
Torkel Ödegaard
cd4619dad1
working on react data / query exectution
2018-10-14 15:39:34 +02:00
Torkel Ödegaard
565edc1ed3
added setting top hide plugins in alpha state
2018-10-09 17:47:43 +02:00
Torkel Ödegaard
211e0f2199
wip: another baby step, another million to go
2018-07-11 12:11:21 -07:00
Torkel Ödegaard
761283231c
react panels: working on changing type
2018-07-09 18:17:51 +02:00
Torkel Ödegaard
c86fc6fb47
react-panels: minor progress on data flow
2018-07-05 13:10:39 -07:00
Torkel Ödegaard
db52ea66bd
react panels minor progress
2018-06-19 16:57:55 +02:00
Torkel Ödegaard
13efc529ec
poc: began react panel experiments
2018-01-02 14:52:30 +01:00