Skip to content

Commit 7df0081

Browse files
authored
Merge pull request #386 from sf-aastha-paruthi/u/aparuthi/CallToAction
@W-19369394 CallToAction for flexcards and lwc
2 parents 3cb61dc + 269b585 commit 7df0081

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/utils/resultsbuilder/FlexcardAssessmentReporter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
SummaryItemDetailParam,
1010
} from '../reportGenerator/reportInterfaces';
1111
import { createFilterGroupParam, createRowDataParam, getOrgDetailsForReport } from '../reportGenerator/reportUtil';
12+
import { reportingHelper } from './reportingHelper';
1213

1314
export class FlexcardAssessmentReporter {
1415
private static rowId = 0;
@@ -28,6 +29,7 @@ export class FlexcardAssessmentReporter {
2829
filterGroups: this.getFilterGroupsForReport(flexCardAssessmentInfos),
2930
headerGroups: this.getHeaderGroupsForReport(),
3031
rows: this.getRowsForReport(flexCardAssessmentInfos, instanceUrl),
32+
callToAction: reportingHelper.getCallToAction(flexCardAssessmentInfos),
3133
};
3234
}
3335

src/utils/resultsbuilder/LWCAssessmentReporter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
} from '../reportGenerator/reportInterfaces';
1111
import { createFilterGroupParam, createRowDataParam, getOrgDetailsForReport } from '../reportGenerator/reportUtil';
1212
import { FileDiffUtil } from '../lwcparser/fileutils/FileDiffUtil';
13+
import { reportingHelper } from './reportingHelper';
1314

1415
export class LWCAssessmentReporter {
1516
private static rowId = 0;
@@ -28,6 +29,7 @@ export class LWCAssessmentReporter {
2829
filterGroups: this.getFilterGroupsForReport(lwcAssessmentInfos),
2930
headerGroups: this.getHeaderGroupsForReport(),
3031
rows: this.getRowsForReport(lwcAssessmentInfos),
32+
callToAction: reportingHelper.getCallToAction(lwcAssessmentInfos),
3133
};
3234
}
3335

src/utils/resultsbuilder/reportingHelper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Messages } from '@salesforce/core';
2-
import { nameLocation, oldNew } from '../interfaces';
2+
import { FlexCardAssessmentInfo, LWCAssessmentInfo, nameLocation, oldNew } from '../interfaces';
33
import { CTASummary } from '../reportGenerator/reportInterfaces';
44
import {
55
IPAssessmentInfo,
@@ -68,7 +68,9 @@ export class reportingHelper {
6868
| OSAssessmentInfo
6969
| DataRaptorAssessmentInfo
7070
| ApexAssessmentInfo
71+
| LWCAssessmentInfo
7172
| GlobalAutoNumberAssessmentInfo
73+
| FlexCardAssessmentInfo
7274
>
7375
): CTASummary[] {
7476
const callToAction = [];

0 commit comments

Comments
 (0)