Remove CC AI, add Variance to report screen.

This commit is contained in:
Patrick Fic
2025-05-29 08:51:05 -07:00
parent 6106b435a0
commit 8e86abc25d
4 changed files with 47 additions and 25 deletions

View File

@@ -379,8 +379,8 @@ async function DecodeLinFile(extensionlessFilePath, close_date) {
jobline = V3Ruleset(jobline, joblines);
break;
}
jobline.alerts = claimsClerk({ jobline, joblines });
//2025-05-27 Commenting out to prepare release without claims clerk.
// jobline.alerts = claimsClerk({ jobline, joblines });
return jobline;
});

View File

@@ -40,18 +40,19 @@ export default function JobLinesTableMolecule({ loading, job }) {
key: "line_desc",
width: "25%",
sorter: (a, b) => alphaSort(a.line_desc, b.line_desc),
render: (text, record) => (
<Space wrap size={"small"}>
{record.line_desc}
{record.alerts &&
record.alerts.length > 0 &&
record.alerts.map((alert) => (
<Tag key={`${record.id}-${alert.key}`} color="red">
{alert.key}
</Tag>
))}
</Space>
)
//2025-05-27 Removing CC AI
// render: (text, record) => (
// <Space wrap size={"small"}>
// {record.line_desc}
// {record.alerts &&
// record.alerts.length > 0 &&
// record.alerts.map((alert) => (
// <Tag key={`${record.id}-${alert.key}`} color="red">
// {alert.key}
// </Tag>
// ))}
// </Space>
// )
},
{
title: "Part Type",
@@ -116,7 +117,7 @@ export default function JobLinesTableMolecule({ loading, job }) {
filters: [
{ text: "Eligible for RPS Calculation", value: false },
{ text: "Ineligible for RPS Calculation", value: true },
{ text: "Lines with identified issues", value: "ai" }
// { text: "Lines with identified issues", value: "ai" }
],
width: "5%",
filteredValue: filters.ignore || null,

View File

@@ -55,11 +55,13 @@ export function ReportingJobsListMolecule({
<Space>
{text}
{record.alerts && record.alerts.length > 0 && (
<Tooltip title="Claims Clerk AI has detected possible issues with this estimate. Review the estimate to ensure you are following MPI guidelines.">
<Badge count={record.alerts.length} />
</Tooltip>
)}
{false &&
record.alerts &&
record.alerts.length > 0 && ( //2025-05-27 Removing CC AI
<Tooltip title="Claims Clerk AI has detected possible issues with this estimate. Review the estimate to ensure you are following MPI guidelines.">
<Badge count={record.alerts.length} />
</Tooltip>
)}
<RequiresReimportDisplay job={record} />
</Space>
</Link>
@@ -119,6 +121,23 @@ export function ReportingJobsListMolecule({
sorter: (a, b) => a.group_verified - b.group_verified,
render: (text, record) => <GroupVerifySwitch job={record} />
},
{
title: "$ Variance",
dataIndex: "jobRpsDollarsVariance",
key: "jobRpsDollarsVariance",
render: (text, record) => {
const variance = record.jobRpsDollars.subtract(record.expectedRpsDollars);
return (
<Space
style={{
color: variance.getAmount() > 0 ? "seagreen" : "tomato"
}}
>
{variance.toFormat()}
</Space>
);
}
},
{
title: "$ (Act./Target)",
dataIndex: "jobRpsDollars",
@@ -212,10 +231,10 @@ export function ReportingJobsListMolecule({
size="small"
pagination={false}
dataSource={data}
expandable={{
expandedRowRender: (record) => <JobsClaimsClerkMolecule job={record} />,
rowExpandable: (record) => record.alerts && record.alerts.length > 0
}}
// expandable={{
// expandedRowRender: (record) => <JobsClaimsClerkMolecule job={record} />,
// rowExpandable: (record) => record.alerts && record.alerts.length > 0
// }}
scroll={{
x: true
}}

View File

@@ -66,7 +66,9 @@ export function JobsDetailOrganism({ selectedJobId, setSelectedJobTargetPc }) {
<JobsTargetsStatsMolecule loading={loading} job={data ? data.jobs_by_pk : null} />
</Card>
<JobsClaimClerk loading={loading} job={data ? data.jobs_by_pk : null} />
{/* <JobsClaimClerk loading={loading} job={data ? data.jobs_by_pk : null} />
//2025-05-27 Removing CC AI
*/}
<Card title="Estimate Lines">
<JobsLinesTableMolecule loading={loading} job={data ? data.jobs_by_pk : {}} />