Skip to content

Commit 8c2c532

Browse files
committed
merge conflicts
2 parents db74b06 + 48623b4 commit 8c2c532

File tree

4 files changed

+38
-9
lines changed

4 files changed

+38
-9
lines changed

src/components/StatusBar/StatusBar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const StatusBar = ({ backgroundColor, statusArray, apiRequestStatus, addClass })
1616

1717
return (
1818
<div className={`container ${addClass}`}>
19-
<div className='row border'>
19+
<div className='row border' data-cy='status-bar'>
2020
{statusArray.map((statusObject, index) => {
2121
const { statusLabel, statusIcon } = statusObject
2222
const border = index !== statusArray.length - 1 ? 'border-end' : ''

src/compounds/ActionsGroup/actions/SendMessage.jsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,20 @@ const SendMessage = ({ backgroundColor, onSubmit, handleClose }) => {
7878
</ListGroup>
7979
</Modal.Body>
8080
<Modal.Footer>
81+
<p className='fw-light fst-italic disclaimer'>
82+
{/* The "small" tag will make the font size 0.875em of the parent element. It's also accessibility friendly */}
83+
<small>
84+
Please note that Supplier pricing and other information marked confidential by Supplier must be treated as such.
85+
</small>
86+
</p>
87+
88+
<p className='fw-light fst-italic disclaimer'>
89+
<small>
90+
Do not include any Sensitive Personal Data (e.g. data consisting of racial or ethnic origin, political opinions, religious or
91+
philosophical beliefs, or trade union membership, genetic data, biometric data, data concerning health or data concerning a
92+
natural person's sex life or sexual orientation) or potentially regulated information in messages or attachments.
93+
</small>
94+
</p>
8195
<Button variant='primary' onClick={handleSubmit} type='submit'>
8296
Send
8397
</Button>

src/compounds/ActionsGroup/actions/styles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
#send-message {
55
height: 150px;
66
}
7+
8+
.disclaimer {
9+
font-size: 14px;
10+
line-height: 16px;
11+
}

src/compounds/Document/Document.jsx

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import Notice from '../../components/Notice/Notice'
66
import { allowNull } from '../../resources/utilityFunctions'
77
import './document.scss'
88

9-
const Document = ({ addClass, acceptSOW, backgroundColor, document }) => {
10-
const { identifier, date, documentStatusColor, documentType,
11-
documentTypeColor, documentStatus, lineItems, requestIdentifier,
12-
shippingPrice, shipTo, shipFrom, sowID, subtotalPrice,
13-
taxAmount, terms, totalPrice } = document
9+
const Document = ({ document, addClass }) => {
10+
const {
11+
adPO, date, documentStatusColor, documentType, documentTypeColor, documentStatus, identifier, lineItems, poNumber,
12+
relatedSOWIdentifier, requestIdentifier, shippingPrice, shipTo, shipFrom, subtotalPrice, taxAmount, terms, totalPrice,
13+
turnaroundTime,
14+
} = document
1415
const [show, setShow] = useState(false)
1516
const [showNotice, setShowNotice] = useState(false)
1617
const handleClose = () => setShow(false)
@@ -23,7 +24,7 @@ const Document = ({ addClass, acceptSOW, backgroundColor, document }) => {
2324
{documentType}
2425
</div>
2526
<div className='border-end p-2'>
26-
<b>{identifier}:</b> {subtotalPrice}
27+
<b>{(documentType === 'SOW') ? identifier : poNumber}:</b> {subtotalPrice}
2728
</div>
2829
<small className='text-muted fw-light p-2'>
2930
{date}
@@ -75,8 +76,12 @@ const Document = ({ addClass, acceptSOW, backgroundColor, document }) => {
7576
)}
7677
<div className='d-block d-md-flex justify-content-between'>
7778
<div className='details'>
78-
<h6>Details:</h6>
79-
<b>Proposal:</b> {identifier}<br />
79+
<h5>Details:</h5>
80+
{poNumber && <><b>PO:</b> {poNumber}<br /></>}
81+
{adPO && <><b>AD PO:</b> {identifier}<br /></>}
82+
{documentType === 'SOW'
83+
? <><b>Proposal:</b> {identifier}</>
84+
: <><b>Related SOW:</b> {relatedSOWIdentifier}</>}<br />
8085
<b>Amount:</b> {subtotalPrice}<br />
8186
<b>Request:</b> {requestIdentifier} <br />
8287
<b>Date:</b> {date}<br />
@@ -103,6 +108,7 @@ const Document = ({ addClass, acceptSOW, backgroundColor, document }) => {
103108
totalPrice={totalPrice}
104109
/>
105110
)}
111+
{turnaroundTime && <h5><b>Turnaround Time:</b> {turnaroundTime}</h5>}
106112
</Offcanvas.Body>
107113
</Offcanvas>
108114
</>
@@ -116,13 +122,16 @@ Document.propTypes = {
116122
backgroundColor: PropTypes.string,
117123
acceptSOW: PropTypes.func.isRequired,
118124
document: PropTypes.shape({
125+
adPO: PropTypes.string,
119126
identifier: PropTypes.string.isRequired,
120127
date: PropTypes.string.isRequired,
121128
documentStatus: PropTypes.string.isRequired,
122129
documentStatusColor: PropTypes.string,
123130
documentType: PropTypes.string.isRequired,
124131
documentTypeColor: PropTypes.string,
125132
lineItems: PropTypes.arrayOf(PropTypes.shape({})).isRequired,
133+
poNumber: PropTypes.string,
134+
relatedSOWIdentifier: PropTypes.string,
126135
requestIdentifier: PropTypes.string.isRequired,
127136
shippingPrice: PropTypes.string.isRequired,
128137
shipTo: PropTypes.shape({
@@ -138,6 +147,7 @@ Document.propTypes = {
138147
taxAmount: PropTypes.string.isRequired,
139148
terms: PropTypes.string.isRequired,
140149
totalPrice: PropTypes.string.isRequired,
150+
turnaroundTime: PropTypes.string,
141151
}),
142152
}
143153

0 commit comments

Comments
 (0)