From dd40cfa35826fd71adbb46c2738efe5dbc92b29e Mon Sep 17 00:00:00 2001 From: Shewatipa Tseisi Date: Tue, 29 Sep 2026 08:26:06 +0200 Subject: [PATCH 1/6] feat(ci): initialize Blazor dashboard layout and validate component structure - Added steps to the CI workflow for initializing a Blazor application with a dashboard layout. - Implemented checks to ensure the correct removal of default layouts and the addition of necessary components in the application structure. - Enhanced the build process to validate the integration of the new dashboard layout and sidebar links. --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 424ba64..b9857ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -134,6 +134,19 @@ jobs: dotnet build -c Debug + # init --dashboard wires the layout: Routes default, stock MainLayout/NavMenu removed, + # error bar moved to App.razor, sidebar links built from the app's pages. + cd "$TMPDIR/app" + dotnet new blazor -o DashApp --no-restore + cd DashApp + shellui init --tailwind standalone --yes --dashboard 02 + grep -q 'typeof(Layout.DashboardLayout02)' Components/Routes.razor || (echo "init --dashboard 02 did not switch Routes.razor"; exit 1) + test ! -e Components/Layout/MainLayout.razor || (echo "stock MainLayout.razor was not removed"; exit 1) + test ! -e Components/Layout/NavMenu.razor || (echo "stock NavMenu.razor was not removed"; exit 1) + grep -q 'id="blazor-error-ui"' Components/App.razor || (echo "the error bar was not added to App.razor"; exit 1) + grep -q '"/counter"' Components/UI/AppSidebar.razor || (echo "AppSidebar links were not built from the pages"; exit 1) + dotnet build -c Debug + # Every direct target must install and compile together; this catches missing # dependencies and template compile errors that per-template tests can't see. ALL=$(python3 - "$GITHUB_WORKSPACE" <<'PY' From 0a41bcec8a60f2f984c0d93c2600624602abb3c4 Mon Sep 17 00:00:00 2001 From: Shewatipa Tseisi Date: Tue, 29 Sep 2026 08:26:26 +0200 Subject: [PATCH 2/6] feat(cli): enhance CLI syntax for dashboard layout and component management - Added options for `--dashboard` and `--replace-layout` to `shellui init` and `shellui add` commands, allowing users to specify dashboard layouts during initialization and component addition. - Updated documentation to reflect new command options and their functionalities, including details on dashboard layout configurations and the impact on existing layouts. - Improved the initialization process to handle Bootstrap removal and restyling of sample pages with Tailwind classes, ensuring a smoother setup experience for users. --- docs/CLI_SYNTAX.md | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/docs/CLI_SYNTAX.md b/docs/CLI_SYNTAX.md index f9138c3..70338df 100644 --- a/docs/CLI_SYNTAX.md +++ b/docs/CLI_SYNTAX.md @@ -16,12 +16,12 @@ shellui --version ## Command overview ```text -shellui init [--force] [--style