From b7435e675cac1e7bc652ce11045cb3c7fb4d64fd Mon Sep 17 00:00:00 2001 From: Jan Fajerski Date: Wed, 4 Mar 2026 08:55:17 +0100 Subject: [PATCH] build: add option to build with only the mantine UI This adds the `--mantine-ui` switch to `web/ui/build_ui.sh` which allows to build without the old react UI. If built with only the mantine ui and started with `--enable-features=old-ui` the user will get a 404 response on th web port. Signed-off-by: Jan Fajerski --- Makefile | 5 +++++ web/ui/build_ui.sh | 5 +++++ web/ui/package.json | 1 + 3 files changed, 11 insertions(+) diff --git a/Makefile b/Makefile index 59f0a71259..90891ba2ce 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ DOCKERFILE_ARCH_EXCLUSIONS ?= Dockerfile.distroless:riscv64 DOCKER_REGISTRY_ARCH_EXCLUSIONS ?= quay.io:riscv64 UI_PATH = web/ui +BUILD_UI ?= all UI_NODE_MODULES_PATH = $(UI_PATH)/node_modules REACT_APP_NPM_LICENSES_TARBALL = "npm_licenses.tar.bz2" @@ -63,7 +64,11 @@ ui-install: .PHONY: ui-build ui-build: +ifeq ($(BUILD_UI),mantine) + cd $(UI_PATH) && CI="" npm run build:mantine-ui +else cd $(UI_PATH) && CI="" npm run build +endif .PHONY: ui-build-module ui-build-module: diff --git a/web/ui/build_ui.sh b/web/ui/build_ui.sh index 360ec33ea8..0ce4582d8a 100644 --- a/web/ui/build_ui.sh +++ b/web/ui/build_ui.sh @@ -58,5 +58,10 @@ for i in "$@"; do buildModule shift ;; + --mantine-ui) + buildModule + buildMantineUI + shift + ;; esac done diff --git a/web/ui/package.json b/web/ui/package.json index 5b71a58550..4ce33218fb 100644 --- a/web/ui/package.json +++ b/web/ui/package.json @@ -5,6 +5,7 @@ "private": true, "scripts": { "build": "bash build_ui.sh --all", + "build:mantine-ui": "bash build_ui.sh --mantine-ui", "build:module": "bash build_ui.sh --build-module", "start": "npm run start -w mantine-ui", "test": "npm run test --workspaces",