Skip to content

Commit

Permalink
Merge pull request #559 from odisha-muktasoft/mb-util-uat
Browse files Browse the repository at this point in the history
UI/UX audit for rate analysis
  • Loading branch information
Tulika-eGov authored Jul 23, 2024
2 parents 5b17866 + fbee419 commit 516edf4
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ const ViewAnalysisStatement = () => {
{ downloadStatus&&<MultiLink onHeadClick={() => HandleDownloadPdf()} downloadBtnClassName={"employee-download-btn-className"} label={t("CS_COMMON_DOWNLOAD")} /> }
</div>
<div>
<CitizenInfoLabel textType={"Componenet"} style={{margin:"0px", maxWidth:"100%", marginBottom:"1.5rem"}} info={t("CS_INFO")} text={t("STATEMENT_ANALYSIS_INFO_RATE")} />
<CitizenInfoLabel className="doc-banner" textType={"Componenet"} style={{margin:"0px", maxWidth:"100%", marginBottom:"1.5rem"}} info={t("CS_INFO")} text={t("STATEMENT_ANALYSIS_INFO_RATE")} />
</div>
<ViewComposer data={config} isLoading={false} />
{toast?.show && <Toast label={toast?.label} error={toast?.error} isDleteBtn={true} onClose={handleToastClose}></Toast>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ const ViewUtilization = () => {
{downloadStatus&&<MultiLink onHeadClick={() => HandleDownloadPdf()} downloadBtnClassName={"employee-download-btn-className"} label={t("CS_COMMON_DOWNLOAD")} />}
</div>
<div>
<CitizenInfoLabel textType={"Componenet"} style={{margin:"0px", maxWidth:"100%", marginBottom:"1.5rem"}} info={t("CS_INFO")} text={t("STATEMENT_UTILIZATION_INFO_RATE")} />
<CitizenInfoLabel className="doc-banner" textType={"Componenet"} style={{margin:"0px", maxWidth:"100%", marginBottom:"1.5rem"}} info={t("CS_INFO")} text={t("STATEMENT_UTILIZATION_INFO_RATE")} />
</div>
<ViewComposer data={config} isLoading={false} />
{toast?.show && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ const SORDetailsTemplate = (props) => {
{ label: t("RA_QTY"), key: "quantity" },
];

if(pageType === "VIEW")
{
if (pageType === "VIEW") {
columns.unshift({ label: t("RA_SNO"), key: "sno" });
}

Expand Down Expand Up @@ -131,16 +130,21 @@ const SORDetailsTemplate = (props) => {
let obj = {};
switch (index) {
case 1:
obj = pageType === "VIEW" ? { width: "1rem" } : { width: "8rem" };
obj = pageType === "VIEW" ? { width: "1rem", textAlign: "left" } : { width: "8rem" };
break;
case 2:
obj = pageType === "VIEW" ? { width: "8rem" } : { width: "70rem" };
obj = pageType === "VIEW" ? { width: "8rem", textAlign: "left" } : { width: "70rem" };
break;
case 3:
obj = pageType === "VIEW" ? { width: "70rem" } : { width: "10rem" };
obj = pageType === "VIEW" ? { width: "70rem", textAlign: "left" } : { width: "10rem" };
break;
case 4:
obj = pageType === "VIEW" ? { width: "10rem" } : (pageType === "VIEW" ? { width: "15rem", textAlign: "right" } : { width: "15rem" });
obj =
pageType === "VIEW"
? { width: "10rem", textAlign: "left" }
: pageType === "VIEW"
? { width: "15rem", textAlign: "right" }
: { width: "15rem" };
break;
case 5:
obj = pageType === "VIEW" ? { width: "15rem", textAlign: "right" } : { width: "15rem" };
Expand Down Expand Up @@ -184,11 +188,18 @@ const SORDetailsTemplate = (props) => {

return (
<div
style={{
style={
pageType !== "VIEW"?{

paddingRight: "4%",
}}
}:
{

paddingRight: "0%",
}
}
>
<div className="search-sor-container">
<div style={{ display: "flex", width: "70.25%", justifyContent: "space-between", flexWrap: "wrap" }}>
<span className="search-sor-label">{t(`RA_${props?.config?.sorType}_HEADER`)}</span>
{pageType !== "VIEW" && (
<div className="search-sor-button">
Expand All @@ -202,7 +213,7 @@ const SORDetailsTemplate = (props) => {
</div>
)}
</div>
<table className="reports-table sub-work-table" style={pageType === "VIEW" ? {} : {width:"104%"}}>
<table className="reports-table sub-work-table" style={pageType === "VIEW" ? {} : { width: "104%" }}>
<thead>
<tr>
{/*SORDetails?.filter((ob) => ob?.sorType === props?.config?.sorType).length > 0 &&
Expand Down Expand Up @@ -231,7 +242,7 @@ const SORDetailsTemplate = (props) => {
onChange={(e) => {
const { value } = e.target;
if (value ? has4DecimalPlaces(parseFloat(value)) : true) {
let detailsPicked = window.location.href.includes("update") ? SORDetails : formData
let detailsPicked = window.location.href.includes("update") ? SORDetails : formData;
let newSOR = detailsPicked?.map((obj) => {
if (obj?.sorCode === row?.sorCode) {
return { ...obj, quantity: value };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ const ExtraChargesViewTable = (props) => {
let obj = {};
switch (index) {
case 1:
obj = { width: "1rem" };
obj = { width: "1rem",textAlign: "left" };
break;
case 2:
obj = { width: "70rem" };
obj = { width: "70rem",textAlign: "left" };
break;
case 3:
obj = { width: "10rem" };
obj = { width: "10rem" ,textAlign: "left"};
break;
case 4:
obj = { width: "10rem" };
obj = { width: "10rem" ,textAlign: "left"};
break;
case 5:
obj = pageType === "VIEW" ? { width: "15rem", textAlign: "right" } : { width: "15rem" };
obj = pageType === "VIEW" ? { width: "15rem", textAlign: "right" } : { width: "15rem" ,textAlign: "right"};
break;
case 6:
obj = pageType === "VIEW" ? { width: "16rem", textAlign: "right" } : { width: "15rem" };
obj = pageType === "VIEW" ? { width: "16rem", textAlign: "right" } : { width: "15rem" ,textAlign: "right"};
break;
case 7:
obj = pageType === "VIEW" ? { width: "14rem", textAlign: "right" } : { width: "10rem" };
obj = pageType === "VIEW" ? { width: "14rem", textAlign: "right" } : { width: "10rem" ,textAlign: "right"};
break;
case 8:
obj = { width: "3%" };
Expand All @@ -75,7 +75,7 @@ const ExtraChargesViewTable = (props) => {
return (
<div
style={{
paddingRight: "4%",
paddingRight: "0%",
}}
>
<div className="search-sor-container">
Expand All @@ -85,7 +85,7 @@ const ExtraChargesViewTable = (props) => {
<thead>
<tr>
{columns.map((column, index) => (
<th key={index}>{column.label}</th>
<th key={index} style={getStyles(index + 1)}>{column.label}</th>
))}
</tr>
</thead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const RateAmountGroup = (props) => {
flexDirection: "row",
width: "100%",
justifyContent: "flex-end",
paddingRight: "2%",
paddingRight: "0%",
alignItems: "center",
marginTop: "-30px",
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const RateCardWithRightButton = (props) => {
</div>

<div style={bannerStyle}>
<CitizenInfoLabel style={{ margin: "0px" }} info={t("RA_ACTIVE_RATE_INFO_LABEL")} text={t("RA_ACTIVE_RATE_INFO_CONTENT_LABEL")} />
<CitizenInfoLabel className="doc-banner" textType={"Componenet"} style={{ margin: "0px", padding:"8px" }} info={t("RA_ACTIVE_RATE_INFO_LABEL")} text={t("RA_ACTIVE_RATE_INFO_CONTENT_LABEL")} />
</div>
</div>
</React.Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const TableWithOutHead = (props) => {
return fields?.map((row, index) => {
return (
<tr key={index}>
<td className="flex" style={{ width: "60%", margin: "0px", padding: "10px", textAlign: "right", paddingRight: "30px" }}>
<td className="flex" style={{ width: "60%", margin: "0px", padding: "10px", textAlign: "left", paddingRight: "30px" }}>
{ index===2?`${t(row?.name)}/ ${t(qty)} ${t(uom)}`:t(row?.name)}
</td>

Expand All @@ -44,14 +44,14 @@ const TableWithOutHead = (props) => {
flexDirection: "row",
width: "100%",
justifyContent: "flex-end",
paddingRight: "4%",
paddingRight: "0%",
alignItems: "center",
marginTop: "-30px",
}}
>
<table
className="table reports-table sub-work-table measurement-table-custom"
style={{ width: "40%", justifyContent: "right", paddingRight: "2%", alignItems: "right" }}
style={{ width: "40%", justifyContent: "right", paddingRight: "0%", alignItems: "right" }}
>
<tbody>{renderBody()}</tbody>
</table>
Expand Down

0 comments on commit 516edf4

Please sign in to comment.