Просмотр исходного кода

added some comments about state of components things

Torkel Ödegaard 6 лет назад
Родитель
Сommit
af4de51a9a

+ 3 - 0
packages/grafana-ui/src/components/BarGauge/BarGauge.tsx

@@ -25,6 +25,9 @@ export interface Props extends Themeable {
   decimals?: number;
 }
 
+/*
+ * This visualization is still in POC state, needed more tests & better structure
+ */
 export class BarGauge extends PureComponent<Props> {
   static defaultProps: Partial<Props> = {
     maxValue: 100,

+ 3 - 0
packages/grafana-ui/src/utils/singlestat.ts

@@ -6,6 +6,9 @@ export interface SingleStatProcessingOptions {
   stat: string;
 }
 
+//
+// This is a temporary thing, waiting for a better data model and maybe unification between time series & table data
+//
 export function processSingleStatPanelData(options: SingleStatProcessingOptions): SingleStatValueInfo[] {
   const { panelData, stat } = options;