--- name: monstermq-dashboard-developer description: > Guide for developing the MonsterMQ web dashboard. Use this skill whenever the user wants to create, modify, or fix dashboard pages, UI components, styles, or JavaScript for the MonsterMQ broker's web interface. This includes adding new pages, modifying existing dashboard views, working with the GraphQL client, updating the sidebar menu, fixing CSS/styling issues, or adding interactive features. Trigger on mentions of "dashboard", "web UI", "frontend page", "sidebar", "CSS", "theme", "add a page", "fix the UI", "GraphQL client", "table view", "detail page", or any work on files in the dashboard directory. --- # MonsterMQ Dashboard Development Skill This skill provides instructions, architecture guidelines, design rules, and code patterns for developing the MonsterMQ web dashboard (`dashboard/`). --- ## 1. Core Architecture & Development Setup - **Technology Stack**: Vanilla HTML5, CSS3, JavaScript (ES6+), Siemens iX Web Components (`@siemens/ix` v4.3+), Vite bundler. - **Root Directory**: `dashboard/` - **Output Directory**: `dashboard/dist/` (embedded into broker JAR at `broker/src/main/resources/dashboard/`). ```bash cd dashboard npm install npm run dev # Starts Vite dev server on http://localhost:5173 (proxies /graphql to :4000) npm run build # Builds production bundle to dashboard/dist/ ``` > [!IMPORTANT] > Always edit dashboard source files in `dashboard/src/`, **NEVER** in `broker/src/main/resources/dashboard/`. Direct edits to `broker/src/main/resources/dashboard/` will be overwritten on build. --- ## 2. Design System & Design Concept (`dashboard/DESIGN.md`) ### The One Cardinal Rule **Pages MUST NOT redefine shared components in a local `