diff --git a/forms-flow-web/src/components/Form/List.scss b/forms-flow-web/src/components/Form/List.scss index d22fb4290e..86957c27f1 100644 --- a/forms-flow-web/src/components/Form/List.scss +++ b/forms-flow-web/src/components/Form/List.scss @@ -138,9 +138,7 @@ flex-wrap: wrap; .description-content{ max-width: 68vw; } -.clientForm-table-col{ - min-height: 300px; -} + .upload-progress{ height: 5px; margin-top: 11px; diff --git a/forms-flow-web/src/components/Form/constants/FormTable.js b/forms-flow-web/src/components/Form/constants/FormTable.js index 9c876ed86f..bba071cb27 100644 --- a/forms-flow-web/src/components/Form/constants/FormTable.js +++ b/forms-flow-web/src/components/Form/constants/FormTable.js @@ -1,8 +1,6 @@ import React, { useEffect, useState } from "react"; -import { Dropdown } from "react-bootstrap"; import { useDispatch, useSelector } from "react-redux"; import { push } from "connected-react-router"; -import Pagination from "react-js-pagination"; import { setBPMFormLimit, setBPMFormListPage, @@ -19,7 +17,7 @@ import { resetFormProcessData } from "../../../apiManager/services/processServices"; import { HelperServices } from "@formsflow/service"; -import { CustomButton, DownArrowIcon } from "@formsflow/components"; +import { CustomButton,TableFooter ,NoDataFound } from "@formsflow/components"; import userRoles from "../../../constants/permissions"; import SortableHeader from '../../CustomComponents/SortableHeader'; @@ -104,20 +102,6 @@ function FormTable() { setExpandedRowIndex(prevIndex => prevIndex === index ? null : index); }; - const noDataFound = () => { - return ( - - - -
-

{t("No forms found")}

-

{t("Please change the selected filters to view Forms")}

-
- - - - ); - }; return ( <> @@ -214,64 +198,21 @@ function FormTable() { })} {formData.length ? ( - <> - -
- - {t("Showing")} {(limit * pageNo) - (limit - 1)} {t("to")}{" "} - {limit * pageNo > totalForms ? totalForms : limit * pageNo}{" "} - {t("of")} {totalForms} {t("results")} - -
- - -
- -
- - -
- {t("Rows per page")} -
- - - {limit} - - - {pageOptions.map((option) => ( - { - onSizePerPageChange(option.value); - }} - > - {option.text} - - ))} - - - < DownArrowIcon /> -
-
- - + ) : ( )} ) : !searchFormLoading ? ( - noDataFound() + ) : null} diff --git a/forms-flow-web/src/components/Modeler/DecisionTable.js b/forms-flow-web/src/components/Modeler/DecisionTable.js index 3920bc63a8..6b1f4932b6 100644 --- a/forms-flow-web/src/components/Modeler/DecisionTable.js +++ b/forms-flow-web/src/components/Modeler/DecisionTable.js @@ -4,6 +4,7 @@ import { CustomButton, CustomSearch , ReusableProcessTableRow , TableFooter, + NoDataFound, BuildModal} from "@formsflow/components"; import LoadingOverlay from "react-loading-overlay-ts"; import { useTranslation } from "react-i18next"; @@ -204,7 +205,8 @@ const contents = [ > - + {dmn.length ? + {dmn.map((dmnItem) => ( - + : !isLoading ? ( + + ) : null} diff --git a/forms-flow-web/src/components/Modeler/SubFlowTable.js b/forms-flow-web/src/components/Modeler/SubFlowTable.js index 91083e724f..a2fc8b5ceb 100644 --- a/forms-flow-web/src/components/Modeler/SubFlowTable.js +++ b/forms-flow-web/src/components/Modeler/SubFlowTable.js @@ -3,6 +3,7 @@ import { CustomButton, CustomSearch , TableFooter , ReusableProcessTableRow, + NoDataFound, BuildModal} from "@formsflow/components"; import { useSelector, useDispatch } from "react-redux"; import { useTranslation } from "react-i18next"; @@ -30,7 +31,7 @@ const SubFlow = React.memo(() => { const process = useSelector((state) => state.process.processList); const totalCount = useSelector((state) => state.process.totalBpmnCount); const [search, setSearch] = useState(searchText || ""); - const [searchSubflowLoading, setSearchSubflowLoading] = useState(false); + const [searchBpmnLoading, setSearchBpmnLoading] = useState(false); const [currentBpmnSort, setCurrentBpmnSort] = useState({ activeKey: "name", name: { sortOrder: "asc" }, @@ -81,7 +82,7 @@ const SubFlow = React.memo(() => { }, () => { setIsLoading(false); - setSearchSubflowLoading(false); + setSearchBpmnLoading(false); } ) ); @@ -131,7 +132,7 @@ const SubFlow = React.memo(() => { dispatch(setBpmnSearchText("")); }; const handleSearch = () => { - setSearchSubflowLoading(true); + setSearchBpmnLoading(true); setActivePage(1); dispatch(setBpmnSearchText(search)); }; @@ -160,7 +161,7 @@ const SubFlow = React.memo(() => { handleSearch={handleSearch} handleClearSearch={handleClearSearch} placeholder={t("Search BPMN Name")} - searchLoading={searchSubflowLoading} + searchLoading={searchBpmnLoading} title={t("Search BPMN Name")} dataTestId="BPMN-search-input" /> @@ -222,7 +223,8 @@ const SubFlow = React.memo(() => { > - + {process.length ? + {process.map((processItem) => ( { onLimitChange={onLimitChange} pageOptions={pageOptions} /> - + : !isLoading ? ( + + ) : null}