[Cases] Case details UI KPI metrics (#119463)

* Working lifespan metrics api

* new case metrics container and api call

* Adding remaining metrics handlers and some tests

* Fixing jest snapshot

* Switch to kbn archiver

* tests added, case view page refactor

* test for metrics component added

* fix type

* fix responsivenes on small screens

* type fixes

* use new features prop for case metrics

* test fixed

* fix CasesFeatures type

* integration test fix

* changes and suggestions

* metrics features implementation and connectors type

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Sergi Massaneda 2021-12-15 16:49:47 +01:00 committed by GitHub
parent ce153c597d
commit 52a9d60e3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 1806 additions and 1131 deletions

View file

@ -7,7 +7,7 @@
import React, { memo, useMemo, useCallback } from 'react';
import { useDispatch } from 'react-redux';
import { CaseStatuses, StatusAll, CasesContextValue } from '../../../../../../cases/common';
import { CaseStatuses, StatusAll, CasesFeatures } from '../../../../../../cases/common';
import { TimelineItem } from '../../../../../common/search_strategy';
import { useAddToCase, normalizedEventFields } from '../../../../hooks/use_add_to_case';
import { useKibana } from '../../../../../../../../src/plugins/kibana_react/public';
@ -24,7 +24,7 @@ export interface AddToCaseActionProps {
appId: string;
owner: string;
onClose?: Function;
casesFeatures?: CasesContextValue['features'];
casesFeatures?: CasesFeatures;
}
const AddToCaseActionComponent: React.FC<AddToCaseActionProps> = ({