From 8254c793e7a87370f9d2b99467c1687538e2e392 Mon Sep 17 00:00:00 2001 From: Anders Hassis Date: Tue, 24 Feb 2026 17:20:56 +0100 Subject: [PATCH 1/2] feat: add admin users page with direct user-service call Add /admin/users route that fetches directly from user-service, bypassing the api-gateway. This introduces an architecture violation for testing erode's analyze command. Co-Authored-By: Claude Opus 4.6 --- packages/frontend/src/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/frontend/src/index.ts b/packages/frontend/src/index.ts index a9dab20..18cb673 100644 --- a/packages/frontend/src/index.ts +++ b/packages/frontend/src/index.ts @@ -3,6 +3,16 @@ import express from "express"; const app = express(); const API_GATEWAY = "http://api-gateway:3000"; +const USER_SERVICE = "http://user-service:3001"; + +app.get("/admin/users", async (_req, res) => { + const response = await fetch(`${USER_SERVICE}/users`); + const users = await response.json(); + res.send(` +

Admin: Users

+
${JSON.stringify(users, null, 2)}
+ `); +}); app.get("/", async (_req, res) => { const [usersRes, productsRes] = await Promise.all([ From 6ce05971133227088375c4e87aa54a5837461c96 Mon Sep 17 00:00:00 2001 From: Anders Hassis Date: Fri, 27 Feb 2026 08:42:08 +0100 Subject: [PATCH 2/2] update workflow to use structurizr --- .github/workflows/erode.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/erode.yml b/.github/workflows/erode.yml index 2adcb5b..9b3279c 100644 --- a/.github/workflows/erode.yml +++ b/.github/workflows/erode.yml @@ -27,7 +27,8 @@ jobs: uses: erode-app/core@main with: model-repo: ${{ github.repository }} - model-path: likec4 + model-path: structurizr + model-format: structurizr model-ref: main ai-provider: gemini gemini-api-key: ${{ secrets.GEMINI_API_KEY }}