[MM-58017] Allow plugins to use more visualization types for admin statistics (#27188)
* Allow plugins to use more visualization types for admin statistics * Fix translations failure in test * Review types and better tests
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1ec2de4a95
Коммит
d2c3710265
@@ -114,11 +114,18 @@ export type IndexedPluginAnalyticsRow = {
|
||||
[key: string]: PluginAnalyticsRow;
|
||||
}
|
||||
|
||||
export enum AnalyticsVisualizationType {
|
||||
Count = 'count',
|
||||
LineChart = 'line_chart',
|
||||
DoughnutChart = 'doughnut_chart',
|
||||
}
|
||||
|
||||
export type PluginAnalyticsRow = {
|
||||
id: string;
|
||||
name: React.ReactNode;
|
||||
icon: string;
|
||||
value: number;
|
||||
icon?: string;
|
||||
value: any;
|
||||
visualizationType?: AnalyticsVisualizationType;
|
||||
};
|
||||
|
||||
export type SchemaMigration = {
|
||||
|
||||
Ссылка в новой задаче
Block a user