Skip to content

Commit

Permalink
update types, i18n and fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
seniorITdev committed Jun 24, 2024
1 parent af24c98 commit bef855b
Show file tree
Hide file tree
Showing 40 changed files with 1,790 additions and 834 deletions.
4 changes: 2 additions & 2 deletions apps/hpc-cdm/src/app/pages/operations-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export default (props: Props) => {
</C.PageTitle>
<C.List>
{data.data
.sort((o1, o2) =>
.sort((o1: { name: string }, o2: { name: string }) =>
o1.name.toLowerCase().localeCompare(o2.name.toLowerCase())
)
.map((o) => (
.map((o: { id: number; name: string }) => (
<C.ListItem
key={o.id}
text={o.name}
Expand Down
2 changes: 1 addition & 1 deletion apps/hpc-ftsadmin/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const Layout = () => {
position: 'sticky',
top: 0,
backgroundColor: 'white',
zIndex: Z_INDEX.HEADER,
zIndex: 1000,
}}
>
<C.MainNavigation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface FlowContextType {
isNewPending: any;
isUpdatePending: any;
canReactive: any;
pendingFieldsallApplied: any;
pendingFieldsAllApplied: any;
allFieldsReviewed: any;
pendingVersionV1: any;
}
Expand Down Expand Up @@ -133,7 +133,7 @@ const FlowContextProvider: React.FC<{
isNewPending: any;
isUpdatePending: any;
canReactive: any;
pendingFieldsallApplied: any;
pendingFieldsAllApplied: any;
allFieldsReviewed: any;
pendingVersionV1: any;
}> = ({
Expand Down Expand Up @@ -161,7 +161,7 @@ const FlowContextProvider: React.FC<{
isNewPending,
isUpdatePending,
canReactive,
pendingFieldsallApplied,
pendingFieldsAllApplied,
allFieldsReviewed,
pendingVersionV1,
}) => {
Expand Down Expand Up @@ -199,7 +199,7 @@ const FlowContextProvider: React.FC<{
isNewPending,
isUpdatePending,
canReactive,
pendingFieldsallApplied,
pendingFieldsAllApplied,
allFieldsReviewed,
pendingVersionV1,
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ interface Props {
canReactive?: boolean;
isErrorCorrection?: boolean | null;
isApprovedFlowVersion?: boolean | null;
pendingFieldsallApplied?: boolean;
pendingFieldsAllApplied?: boolean;
allFieldsReviewed?: boolean;
pendingVersionV1?: boolean;
}
Expand Down Expand Up @@ -487,7 +487,7 @@ export const FlowDestination = () => {
isNewPending,
isUpdatePending,
canReactive,
pendingFieldsallApplied,
pendingFieldsAllApplied,
allFieldsReviewed,
pendingVersionV1,
}: any = useContext(FlowContext);
Expand Down Expand Up @@ -515,7 +515,7 @@ export const FlowDestination = () => {
// isNewPending,
// isUpdatePending,
// canReactive,
// pendingFieldsallApplied,
// pendingFieldsAllApplied,
// allFieldsReviewed,
// pendingVersionV1,
// } = props;
Expand Down Expand Up @@ -1355,7 +1355,7 @@ export const FlowDestination = () => {
if (isPending && (approveFlag || rejectFlag)) {
if (
allFieldsReviewed ||
pendingFieldsallApplied ||
pendingFieldsAllApplied ||
!pendingVersionV1
) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ interface Props {
canReactive?: boolean;
isErrorCorrection?: boolean | null;
isApprovedFlowVersion?: boolean | null;
pendingFieldsallApplied?: boolean;
pendingFieldsAllApplied?: boolean;
allFieldsReviewed?: boolean;
pendingVersionV1?: boolean;
}
Expand Down Expand Up @@ -487,7 +487,7 @@ export const FlowVersions = () => {
isNewPending,
isUpdatePending,
canReactive,
pendingFieldsallApplied,
pendingFieldsAllApplied,
allFieldsReviewed,
pendingVersionV1,
}: any = useContext(FlowContext);
Expand Down Expand Up @@ -515,7 +515,7 @@ export const FlowVersions = () => {
// isNewPending,
// isUpdatePending,
// canReactive,
// pendingFieldsallApplied,
// pendingFieldsAllApplied,
// allFieldsReviewed,
// pendingVersionV1,
// } = props;
Expand Down Expand Up @@ -1355,7 +1355,7 @@ export const FlowVersions = () => {
if (isPending && (approveFlag || rejectFlag)) {
if (
allFieldsReviewed ||
pendingFieldsallApplied ||
pendingFieldsAllApplied ||
!pendingVersionV1
) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ interface Props {
canReactive?: boolean;
isErrorCorrection?: boolean | null;
isApprovedFlowVersion?: boolean | null;
pendingFieldsallApplied?: boolean;
pendingFieldsAllApplied?: boolean;
allFieldsReviewed?: boolean;
pendingVersionV1?: boolean;
}
Expand Down Expand Up @@ -487,7 +487,7 @@ export const FLowsInfo = () => {
isNewPending,
isUpdatePending,
canReactive,
pendingFieldsallApplied,
pendingFieldsAllApplied,
allFieldsReviewed,
pendingVersionV1,
}: any = useContext(FlowContext);
Expand Down Expand Up @@ -515,7 +515,7 @@ export const FLowsInfo = () => {
// isNewPending,
// isUpdatePending,
// canReactive,
// pendingFieldsallApplied,
// pendingFieldsAllApplied,
// allFieldsReviewed,
// pendingVersionV1,
// } = props;
Expand Down Expand Up @@ -1355,7 +1355,7 @@ export const FLowsInfo = () => {
if (isPending && (approveFlag || rejectFlag)) {
if (
allFieldsReviewed ||
pendingFieldsallApplied ||
pendingFieldsAllApplied ||
!pendingVersionV1
) {
try {
Expand Down
Loading

0 comments on commit bef855b

Please sign in to comment.