From ed86ed835b12b7774cd1596b3f9a324028147aca Mon Sep 17 00:00:00 2001 From: Alejandro Brugarolas <117646518+abrugaro@users.noreply.github.com> Date: Thu, 20 Feb 2025 14:35:04 +0100 Subject: [PATCH] :bug: Fix questionnaire import row placement issue (#2185) Solves [MTA-4630](https://issues.redhat.com/browse/MTA-4630) Signed-off-by: Alejandro Brugarolas --- README.md | 4 +-- .../assessment-settings-page.tsx | 25 +++++++++++-------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 7a6b2adee6..ad4ebf970c 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ The React and Patternfly based UI is composed of web pages served by an http ser such as hot reload. The webpack-dev-server serves the UI on port **9000**. The `/auth` and `/hub` routes are forwarded to port **8080** for Express to handle. -The Express [server/src/setupProxy.js](server/src/setupProxy.js) proxies use the environment +The Express [common/src/proxies.ts](common/src/proxies.ts) proxies use the environment variables `TACKLE_HUB_URL` and `SSO_SERVER_URL` to define the backend endpoints: - If the Tackle Hub variable `TACKLE_HUB_URL` is not defined, the URL `http://localhost:9002` is @@ -109,7 +109,7 @@ variables `TACKLE_HUB_URL` and `SSO_SERVER_URL` to define the backend endpoints: ### Running the UI outside the cluster -To enable running the UI outside the cluster, port forwardings must be activated to route +To enable running the UI outside the cluster, ports forwardings must be activated to route the Tackle Keycloak (SSO) and Tackle Hub requests to the services on the cluster. Use the script `npm run port-forward` to easily start the forwards. The script `npm run start:dev` will also setup port forwarding to all tackle2 services concurrently with starting the dev server. diff --git a/client/src/app/pages/assessment-management/assessment-settings/assessment-settings-page.tsx b/client/src/app/pages/assessment-management/assessment-settings/assessment-settings-page.tsx index efea63d633..6316404cac 100644 --- a/client/src/app/pages/assessment-management/assessment-settings/assessment-settings-page.tsx +++ b/client/src/app/pages/assessment-management/assessment-settings/assessment-settings-page.tsx @@ -250,14 +250,17 @@ const AssessmentSettings: React.FC = () => { } numRenderedColumns={numRenderedColumns} > - {currentPageItems?.map((questionnaire, rowIndex) => { - const formattedDate = dayjs(questionnaire.createTime) - .utc() - .format("YYYY-MM-DD HH:mm:ss"); + + {currentPageItems?.map((questionnaire, rowIndex) => { + const formattedDate = dayjs(questionnaire.createTime) + .utc() + .format("YYYY-MM-DD HH:mm:ss"); - return ( - - + return ( + { > {questionnaire.required} { - - ); - })} + ); + })} +