@@ -23,12 +23,13 @@ import { DwLastDemo } from '../../components/dashboard/widgets/dw_last_demo';
23
23
import { DwLastUpdated } from '../../components/dashboard/widgets/dw_last_updated_engagements' ;
24
24
import { DwLastUseCases } from '../../components/dashboard/widgets/dw_last_use_cases' ;
25
25
import { DwLastWeeklyReport } from '../../components/dashboard/widgets/dw_last_weekly_report' ;
26
- import { DwTopPractices } from '../../components/dashboard/widgets/dw_top_practices' ;
26
+ //import { DwLastWeeklyReport2 } from '../../components/dashboard/widgets/dw_last_weekly_report2';
27
+ //import { DwTopPractices } from '../../components/dashboard/widgets/dw_top_practices';
27
28
import { DwTopTags } from '../../components/dashboard/widgets/dw_top_tags' ;
28
29
import { EnabledUsersFilter } from '../../services/enabled_users_service/enabled_users_service' ;
29
30
import { EngagementQueryMediator } from '../../components/dashboard/widgets/engagement_query_mediator' ;
30
31
import { Feature } from '../../components/feature/feature' ;
31
- import { PracticeCountFilter } from '../../services/practice_count_service/practice_count_service' ;
32
+ // import { PracticeCountFilter } from '../../services/practice_count_service/practice_count_service';
32
33
import { SortOrder } from '../../services/engagement_service/engagement_service' ;
33
34
import { SummaryCountFilter } from '../../services/summary_count_service/summary_count_service' ;
34
35
import { createBase64ParseableFilter } from '../engagement_list/engagement_list_route' ;
@@ -37,7 +38,7 @@ import { useEnabledUsers } from '../../hooks/use_enabled_users';
37
38
import { useEngagementCollection } from '../../hooks/engagement_collection_hook' ;
38
39
import { useEngagementFormConfig } from '../../context/engagement_config_context/engagement_config_hook' ;
39
40
import { useHistory } from 'react-router' ;
40
- import { usePracticeCount } from '../../hooks/use_practice_count' ;
41
+ // import { usePracticeCount } from '../../hooks/use_practice_count';
41
42
import { useServiceProviders } from '../../context/service_provider_context/service_provider_context' ;
42
43
import { useSummaryCount } from '../../hooks/use_summary_count' ;
43
44
import { useVersion } from '../../context/version_context/version_context' ;
@@ -70,7 +71,7 @@ export function Dashboard() {
70
71
artifactService,
71
72
useCaseService,
72
73
enabledUsersService,
73
- practiceCountService,
74
+ // practiceCountService,
74
75
summaryCountService,
75
76
} = useServiceProviders ( ) ;
76
77
const [ isRegionSelectOpen , setIsRegionSelectOpen ] = useState ( false ) ;
@@ -89,16 +90,16 @@ export function Dashboard() {
89
90
undefined
90
91
) ;
91
92
92
- const practiceFetcher = useCallback ( ( ) => {
93
- const filter : PracticeCountFilter = {
94
- regions : selectedRegions ,
95
- } ;
96
- return practiceCountService . getPracticeCount ( filter ) ;
97
- } , [ practiceCountService , selectedRegions ] ) ;
93
+ // const practiceFetcher = useCallback(() => {
94
+ // const filter: PracticeCountFilter = {
95
+ // regions: selectedRegions,
96
+ // };
97
+ // return practiceCountService.getPracticeCount(filter);
98
+ // }, [practiceCountService, selectedRegions]);
98
99
99
- const { practiceCount, isLoading : isLoadingPractices } = usePracticeCount (
100
- practiceFetcher
101
- ) ;
100
+ // const { practiceCount, isLoading: isLoadingPractices } = usePracticeCount(
101
+ // practiceFetcher
102
+ // );
102
103
103
104
const categoryFetcher = useCallback ( ( ) => {
104
105
const filter : CategoryFilter = {
@@ -239,18 +240,36 @@ export function Dashboard() {
239
240
} }
240
241
/>
241
242
</ GridItem >
243
+ { /* <GridItem sm={12} xl={12} xl2={6}>
244
+ {withArtifacts(
245
+ DwLastWeeklyReport2,
246
+ () =>
247
+ artifactService.getArtifacts({
248
+ page: 1,
249
+ perPage: 5,
250
+ type: 'weeklyReport',
251
+ startDate: dateFilter?.startDate,
252
+ endDate: dateFilter?.endDate,
253
+ regions: selectedRegions,
254
+ sortOrder: 'DESC',
255
+ sortFields: 'updated',
256
+ }),
257
+
258
+ engagementService.getEngagementById
259
+ )}
260
+ </GridItem> */ }
242
261
< GridItem colSpan = { 1 } sm = { 12 } md = { 6 } xl = { 6 } xl2 = { 6 } >
243
262
< DashboardPeopleEnabledCard
244
263
usersEnabled = { enabledUsers }
245
264
isLoading = { isLoadingEnabledUsers }
246
265
/>
247
266
</ GridItem >
248
- < GridItem colSpan = { 1 } sm = { 12 } md = { 6 } xl = { 6 } xl2 = { 6 } >
267
+ { /* <GridItem colSpan={1} sm={12} md={6} xl={6} xl2={6}>
249
268
<DwTopPractices
250
269
practices={practiceCount}
251
270
isLoading={isLoadingPractices}
252
271
/>
253
- </ GridItem >
272
+ </GridItem> */ }
254
273
< GridItem colSpan = { 1 } sm = { 12 } md = { 6 } xl = { 6 } xl2 = { 6 } >
255
274
< DwTopTags
256
275
categories = { categories }
0 commit comments