From 64f21ac8b1f5ea2fce582fac38827094f24db151 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Mon, 30 Mar 2026 17:18:00 +0100 Subject: [PATCH] feat: add PublicDashboard feature set and update ComponentsModal test for improved readability --- App/Dockerfile.tpl | 5 +++++ Common/Tests/UI/Components/ComponentsModal.test.tsx | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/App/Dockerfile.tpl b/App/Dockerfile.tpl index 66ce234e3c..8628c382e5 100644 --- a/App/Dockerfile.tpl +++ b/App/Dockerfile.tpl @@ -72,6 +72,10 @@ WORKDIR /usr/src/app/FeatureSet/StatusPage COPY ./App/FeatureSet/StatusPage/package*.json /usr/src/app/FeatureSet/StatusPage/ RUN npm install +WORKDIR /usr/src/app/FeatureSet/PublicDashboard +COPY ./App/FeatureSet/PublicDashboard/package*.json /usr/src/app/FeatureSet/PublicDashboard/ +RUN npm install + WORKDIR /usr/src/app # Expose ports. @@ -89,6 +93,7 @@ COPY ./App/FeatureSet/Accounts /usr/src/app/FeatureSet/Accounts COPY ./App/FeatureSet/Dashboard /usr/src/app/FeatureSet/Dashboard COPY ./App/FeatureSet/AdminDashboard /usr/src/app/FeatureSet/AdminDashboard COPY ./App/FeatureSet/StatusPage /usr/src/app/FeatureSet/StatusPage +COPY ./App/FeatureSet/PublicDashboard /usr/src/app/FeatureSet/PublicDashboard # Bundle frontend source RUN npm run build-frontends:prod # Bundle app source diff --git a/Common/Tests/UI/Components/ComponentsModal.test.tsx b/Common/Tests/UI/Components/ComponentsModal.test.tsx index 2c282d1498..be335a1fc3 100644 --- a/Common/Tests/UI/Components/ComponentsModal.test.tsx +++ b/Common/Tests/UI/Components/ComponentsModal.test.tsx @@ -85,7 +85,9 @@ describe("ComponentsModal", () => { categories={mockedCategories} />, ); - expect(screen.getByPlaceholderText("Search components...")).toBeInTheDocument(); + expect( + screen.getByPlaceholderText("Search components..."), + ).toBeInTheDocument(); }); it("should display categories and components", () => { @@ -325,7 +327,9 @@ describe("ComponentsModal", () => { />, ); mockedComponents.forEach((comp: ComponentMetadata) => { - const searchInput: HTMLElement = screen.getByPlaceholderText("Search components..."); + const searchInput: HTMLElement = screen.getByPlaceholderText( + "Search components...", + ); fireEvent.change(searchInput, { target: { value: comp.title } }); fireEvent.change(searchInput, { target: { value: "" } }); // clear search