FInal changes for 1.4.0 release.

This commit is contained in:
Patrick FIc
2025-06-18 11:54:52 -07:00
parent 8e86abc25d
commit 17033cc874
6 changed files with 18 additions and 8 deletions

View File

@@ -188,5 +188,10 @@
"title": "Release Notes for 1.3.5",
"date": "10/17/2024",
"notes": "Improvements:\r\n* Improved group detection for latest RPS rule sets.\r\n* Audit functionality will now rely on header names instead of order."
},
"1.4.0": {
"title": "Release Notes for 1.4.0",
"date": "06/17/2025",
"notes": "New Features: \r\n* Added a scenario manager to scorecards to dynamically remove and add jobs to see impacts without adjusting dates.\r\n* Added ability to print a job. \r\n\r\nImprovements:\r\n* Added dark mode for app.\r\n* Added variance dollars to the scorecard.\r\n* Adjusted layout of job details to more prominently display savings information."
}
}

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "imexrps",
"version": "1.4.0-alpha.3",
"version": "1.4.0-alpha.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "imexrps",
"version": "1.4.0-alpha.3",
"version": "1.4.0-alpha.4",
"hasInstallScript": true,
"dependencies": {
"@ant-design/pro-layout": "^7.22.3",

View File

@@ -3,7 +3,7 @@
"productName": "ImEX RPS",
"author": "ImEX Systems Inc. <support@thinkimex.com>",
"description": "ImEX RPS",
"version": "1.4.0-alpha.4",
"version": "1.4.0",
"main": "electron/main.js",
"homepage": "./",
"dependencies": {

View File

@@ -14,13 +14,13 @@ import JobGroupMolecule from "../job-group/job-group.molecule";
import moment from "moment";
import { useReactToPrint } from "react-to-print";
export default function JobsDetailDescriptionMolecule({ loading, job }) {
export default function JobsDetailDescriptionMolecule({ loading, job, jobDetailRef }) {
const hasQuantityGreaterThan1 = useMemo(() => {
return job?.joblines?.find((jl) => !jl.ignore && jl.quantity > 1);
}, [job]);
const handlePrint = useReactToPrint({
content: () => window.jobDetailRef.current,
contentRef: jobDetailRef,
bodyClass: "audit-container-print"
});

View File

@@ -87,7 +87,9 @@ export function ReportingTotalsStatsMolecule({ reportingLoading, scoreCard, excl
Clear
</Button>
}
message={`There are ${excludedJobIds.length} jobs excluded from the totals above.`}
message={`There ${excludedJobIds.length == 1 ? "is" : "are"} ${excludedJobIds.length} job${
excludedJobIds.length > 1 ? "s" : ""
} excluded from the totals above.`}
/>
)}
</>

View File

@@ -29,7 +29,6 @@ export function JobsDetailOrganism({ selectedJobId, setSelectedJobTargetPc }) {
skip: !selectedJobId
});
const jobDetailRef = useRef();
window.jobDetailRef = jobDetailRef;
useEffect(() => {
if (data && data.jobs_by_pk)
@@ -60,7 +59,11 @@ export function JobsDetailOrganism({ selectedJobId, setSelectedJobTargetPc }) {
return (
<div ref={jobDetailRef} className="jobs-detail-container">
<Card>
<JobsDetailDescriptionMolecule loading={loading} job={data ? data.jobs_by_pk : null} />
<JobsDetailDescriptionMolecule
loading={loading}
job={data ? data.jobs_by_pk : null}
jobDetailRef={jobDetailRef}
/>
</Card>
<Card title="Job Targets">
<JobsTargetsStatsMolecule loading={loading} job={data ? data.jobs_by_pk : null} />