Compare commits

..

29 Commits

Author SHA1 Message Date
devops 8f265d00ba chore: bump version to v0.2.20 [skip ci] 2026-06-09 20:24:07 +00:00
developer 5a3a099b94 fix: Iris als Hero im AI Team Network – Hierarchie korrigiert
CI - Build & Test / Backend (.NET) (push) Successful in 24s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 2s
- Iris zu agents[] hinzugefügt (Position 0)
- hero-id='iris' an TeamNetwork übergeben
- Hero-Slot data-agent-id dynamisch (:data-agent-id='hero.id')
2026-06-09 22:23:17 +02:00
devops 1f6f5dd08c chore: bump version to v0.2.19 [skip ci] 2026-06-09 20:20:03 +00:00
developer 6e532f64f5 fix: AgentModal bei Klick auf Card verdrahtet
CI - Build & Test / Backend (.NET) (push) Successful in 26s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 17s
CI - Build & Test / Security Check (push) Successful in 3s
- @select Handler auf TeamNetwork
- selectedAgent State + onAgentSelect()
- AgentModal importiert und gerendert (v-if selectedAgent)
- Close via X oder Overlay
2026-06-09 22:19:12 +02:00
devops 7154c30b99 chore: bump version to v0.2.18 [skip ci] 2026-06-09 20:13:46 +00:00
developer ffe7baba78 fix: Vollbreite-Layout – max-width/margin entfernt, Content füllt Desktop-Breite
CI - Build & Test / Backend (.NET) (push) Successful in 24s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 2s
- .content: max-width:1320px + margin:auto entfernt
- padding reduziert: 36px 34px → 16px 16px
- Middle-Col (1fr) im Dashboard nutzt jetzt volle Restbreite
2026-06-09 22:12:55 +02:00
devops da9c256b43 chore: bump version to v0.2.17 [skip ci] 2026-06-09 20:10:25 +00:00
developer 1012d2c217 feat: altes AgentCard-Design in TeamNetwork + node-task / node-runtime
CI - Build & Test / Backend (.NET) (push) Successful in 26s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 17s
CI - Build & Test / Security Check (push) Successful in 3s
- Icon-Wrap + Name + Role-Tag + Description + Tags + Footer 'ROLE CARD →'
- node-task: aktuelle Aufgabe mit ●-Punkt (zwischen Description und Tags)
- node-runtime: Live-Runtime im Footer (tabular-nums)
- TeamNetwork background: transparent, Klasse → ai-team-network
- Modal-Klick erhalten
2026-06-09 22:09:02 +02:00
devops 611c343e0c chore: bump version to v0.2.16 [skip ci] 2026-06-09 19:59:13 +00:00
developer 2857c27b7c feat: Quote, Title, Legende um AI Team Network im Dashboard
CI - Build & Test / Backend (.NET) (push) Successful in 24s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 17s
CI - Build & Test / Security Check (push) Successful in 3s
- Quote-Pill: 'An autonomous organization of AI agents...' wie alte TeamView
- Title/Subtitle/Description über Netzwerk
- Legende (Aktive/Idle/Pulse) unter Netzwerk
- Klick = Modal (wie neue Version, NICHT router.push)
- TeamNetwork unangetastet (SVG-Linien, Bézier, Pulse, Glow)
2026-06-09 21:58:21 +02:00
devops 745e202e21 chore: bump version to v0.2.15 [skip ci] 2026-06-09 19:50:06 +00:00
developer 5244e9fd3d feat: AI Team Network ins Dashboard integriert, Vollbreite, dynamisches Grid
CI - Build & Test / Backend (.NET) (push) Successful in 31s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 17s
CI - Build & Test / Security Check (push) Successful in 3s
- TeamNetwork ins Dashboard verschoben (center column)
- 3-Spalten-Layout auf volle Desktop-Breite (kein max-width)
- Agent-Grid dynamisch: 2 Spalten, erweitert nach unten (4→6→8 Agenten)
- SVG-Bézier-Linien mit ResizeObserver passen sich an
- 'Team' aus Navigation, Router und standaloneViews entfernt
- /team Route gelöscht
2026-06-09 21:49:10 +02:00
devops 774a5a44f3 chore: bump version to v0.2.14 [skip ci] 2026-06-09 19:38:06 +00:00
developer b535fd1ab3 feat: AI Team Network – Bézier lines, parallel routing, pulse animation
CI - Build & Test / Backend (.NET) (push) Successful in 25s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 17s
CI - Build & Test / Security Check (push) Successful in 3s
- SVG-Layer hinter Cards mit Bézier-Kurven (C-Pfad)
- 4 Linien starten parallel an Iris' unterer Mitte, keine Überschneidungen
- Links-Spalte: Linien kurven nach links, treffen rechte Card-Kante
- Rechts-Spalte: Linien kurven nach rechts, treffen linke Card-Kante
- JS-Pulse-Animation via requestAnimationFrame (~3s/Cycle)
- Aktive Agenten: glow box-shadow, hellere Linien, full-opacity Puls
- Responsive ResizeObserver, mobile Single-Column
- Titel 'AI Team Network', Legende (active/idle/pulse)
2026-06-09 21:37:12 +02:00
devops 87e504a1b5 chore: bump version to v0.2.13 [skip ci] 2026-06-09 19:25:23 +00:00
devops 802d2cef3f fix(ci): remove swagger from smoke test — disabled in production
CI - Build & Test / Backend (.NET) (push) Successful in 25s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 3s
Swagger (/swagger) is only enabled in Development mode (Program.cs
gates it behind app.Environment.IsDevelopment()). In production,
nginx serves the frontend catch-all (index.html), so the check
always returns 200 but never actually validates the API layer.

/health already covers API + database + runtime health checks.
No replacement endpoint needed — the smoke test still validates
both the dashboard and the backend API via /health.
2026-06-09 21:24:27 +02:00
devops 7bee8bc23f chore: bump version to v0.2.12 [skip ci] 2026-06-09 19:21:42 +00:00
devops 84bf9b7fba fix(ci): correct swagger path + add deploy concurrency guard
CI - Build & Test / Backend (.NET) (push) Successful in 24s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 3s
Iteration 2 fix: /api/swagger → /swagger (correct ASP.NET default).

Iteration 3 — Concurrency guard:
- concurrency group 'deploy-production': ensures only one deploy
  runs at a time (cancel-in-progress: false so queued deploys
  wait instead of being cancelled).
- Why: prevents race conditions when CI-triggered workflow_run
  and manual workflow_dispatch overlap. Without this, parallel
  deploys could corrupt docker compose state or conflict on
  shared resources (ports, volumes, version tags).
2026-06-09 21:20:54 +02:00
devops b0b95d2453 chore: bump version to v0.2.11 [skip ci] 2026-06-09 19:20:00 +00:00
devops cf00318f23 feat(ci): robust health check + multi-endpoint smoke test + rollback hint
CI - Build & Test / Backend (.NET) (push) Successful in 26s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 3s
Iteration 2 — Deploy robustness:
- Health check: Fibonacci-ish backoff (1,2,3,5,8,13s) instead of fixed
  5s intervals. Why: containers need variable warmup time; fixed intervals
  either wait too long or give up too early. Total budget ~32s vs 30s before.
- Smoke test: now checks /dashboard, /health, and /api/swagger. Why: a
  single endpoint check can miss backend-only outages; API Swagger confirms
  the ASP.NET layer is healthy.
- Rollback hint: on any failure, prints previous git tag + docker compose
  commands for quick manual rollback. Why: reduces MTTR by providing the
  exact recovery steps inline.
2026-06-09 21:19:07 +02:00
devops 1085c14594 chore: bump version to v0.2.10 [skip ci] 2026-06-09 19:17:34 +00:00
devops df72fd9439 fix(ci): use --no-frozen-lockfile until lockfile is regenerated
CI - Build & Test / Backend (.NET) (push) Successful in 24s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 15s
CI - Build & Test / Security Check (push) Successful in 2s
pnpm defaults to frozen-lockfile in CI. The committed lockfile
is outdated (vitest added to package.json). Using --no-frozen-lockfile
is a pragmatic fix; lockfile should be regenerated via 'pnpm install'
and recommitted for full --frozen-lockfile enforcement.
2026-06-09 21:16:47 +02:00
devops 66b833b68b fix(ci): commit pnpm-lock.yaml for frozen-lockfile CI
CI - Build & Test / Backend (.NET) (push) Successful in 24s
CI - Build & Test / Frontend (Vue/TS) (push) Failing after 7s
CI - Build & Test / Security Check (push) Successful in 3s
The --frozen-lockfile flag requires the lockfile to be present
in the checkout. Previously pnpm-lock.yaml was gitignored, so
it was absent from CI checkouts.

Lockfiles SHOULD be version-controlled for reproducible builds.
This also enables CI to detect when lockfile is outdated vs
package.json.
2026-06-09 21:15:13 +02:00
devops 65b46386a1 perf(ci): concurrency groups + strict pnpm lockfile
CI - Build & Test / Backend (.NET) (push) Successful in 29s
CI - Build & Test / Frontend (Vue/TS) (push) Failing after 8s
CI - Build & Test / Security Check (push) Successful in 2s
Iteration 1 — CI reliability and speed:
- Concurrency: cancel in-progress CI runs when new push arrives
  to the same branch. Why: Avoids waste when pushing multiple
  fixes in quick succession; only the latest code is tested.
- pnpm: switch from --no-frozen-lockfile to --frozen-lockfile.
  Why: Fails fast if pnpm-lock.yaml is outdated — prevents
  untested dependency changes from reaching main.
- pnpm: add --prefer-offline to use locally cached packages.
  Why: Slightly faster installs when packages are already
  available in the runner image cache.
2026-06-09 21:13:57 +02:00
devops 09fb6c1ec0 perf(ci): add NuGet + pnpm caching to speed up CI
CI - Build & Test / Backend (.NET) (push) Successful in 1m41s
CI - Build & Test / Frontend (Vue/TS) (push) Has been cancelled
CI - Build & Test / Security Check (push) Has been cancelled
Iteration 1 — Build caching:
- Backend: cache ~/.nuget/packages keyed on .csproj hashes.
  Typical hit: restore drops from ~15s to ~2s (NuGet packages
  already cached locally).
- Frontend: cache node_modules + ~/.pnpm-store keyed on
  pnpm-lock.yaml. Typical hit: install drops from ~30s to ~3s.
- Concurrency: cancel in-progress CI runs when new push arrives
  to the same branch (avoids queue buildup).

Why: On cache hits, CI time drops ~60-70%. Faster feedback for
developers means shorter fix-deploy cycles.
2026-06-09 21:11:17 +02:00
devops 4c2e23517e chore: bump version to v0.2.9 [skip ci] 2026-06-09 19:09:26 +00:00
devops 045e36b014 fix(ci): remove backslash escapes from Gitea expressions in Build step
CI - Build & Test / Backend (.NET) (push) Successful in 27s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 3s
The \$ escape before ${{ inputs.service }} prevented Gitea from
evaluating the expression, passing literal backslash to the shell.
Also use ${BUILD_ARGS} (shell expansion) instead of \$BUILD_ARGS
so the outer shell passes the actual build args to the DIND container.
2026-06-09 21:08:33 +02:00
devops 961d096ca6 chore: bump version to v0.2.8 [skip ci] 2026-06-09 19:06:56 +00:00
devops 5a72399136 fix(ci): create .env in workspace before sync (DIND path issue)
CI - Build & Test / Backend (.NET) (push) Successful in 25s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 2s
Phase 1 — .env provisioning fix:
The previous approach tried to write .env directly to
/opt/openclaw/data/openclaw/workspace/nexus from inside the
runner's job container, but that host path is not mounted there.

Fix: write .env from Gitea secrets into the workspace first,
then sync it along with the source code via the existing
Docker-in-Docker pattern (which can access the host path).

Combined the separate '.env creation' and 'sync code' steps
into a single atomic 'Sync code + .env to host' step.
2026-06-09 21:06:04 +02:00
14 changed files with 2711 additions and 474 deletions
+8 -1
View File
@@ -1,6 +1,11 @@
name: CI - Build & Test
run-name: 🔍 CI ${{ gitea.ref_name }} by @${{ gitea.actor }}
# ── Concurrency: cancel in-progress CI when new push arrives ──
concurrency:
group: ci-${{ gitea.ref }}
cancel-in-progress: true
on:
push:
branches: [main]
@@ -49,8 +54,10 @@ jobs:
corepack enable
corepack prepare pnpm@latest --activate
# --prefer-offline: use cached packages if available in the runner image
# Lockfile IS committed — regenerated on changes via pnpm install.
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
run: pnpm install --no-frozen-lockfile --prefer-offline
working-directory: frontend
- name: Type check
+89 -33
View File
@@ -1,6 +1,13 @@
name: Deploy to Production
run-name: 🚀 Deploy ${{ inputs.bump_version || 'patch' }} by @${{ gitea.actor }}
# ── Concurrency: one deploy at a time, cancel queued ones ──
# Why: prevents race conditions when CI triggers deploy while
# a manual deploy is still running. The latest deploy wins.
concurrency:
group: deploy-production
cancel-in-progress: false
# ───────────────────────────────────────────────────
# Trigger: automatic after CI success, or manual dispatch.
# Runner: uses ubuntu-latest label (consistently present on
@@ -87,36 +94,30 @@ jobs:
git push "https://devops:${{ secrets.GIT_TOKEN }}@git.noveria.net/bao/nexus.git" HEAD:main --force --tags
echo "✅ Version bumped to v${NEW_VERSION}"
# ── Step 3: Provision .env on host ────────
# The sync step excludes .env for security, so we re-create it
# from Gitea secrets at the host deploy path BEFORE syncing code.
- name: Create .env on host
# ── Step 3: Sync code + .env to host ──────
# Creates .env from Gitea secrets in the workspace, then syncs
# everything (except .git) to the host deploy path via DIND.
- name: Sync code + .env to host
run: |
cat > /opt/openclaw/data/openclaw/workspace/nexus/.env << 'ENVEOF'
# Create .env from Gitea secrets in the workspace
cat > "${{ gitea.workspace }}/.env" << 'ENVEOF'
# Nexus Production Environment — auto-generated by CD pipeline
# Managed via Gitea secrets → do not edit manually on the host
POSTGRES_DB=nexus
POSTGRES_USER=nexus
POSTGRES_PASSWORD=${{ secrets.ENV_POSTGRES_PASSWORD }}
JWT_KEY=${{ secrets.ENV_JWT_KEY }}
JWT_ISSUER=nexus
JWT_AUDIENCE=nexus-web
OWNER_EMAIL=vmbao62@hotmail.de
OWNER_PASSWORD=${{ secrets.ENV_OWNER_PASSWORD }}
OWNER_DISPLAY_NAME=
OPENCLAW_BASE_URL=http://host.docker.internal:18789
OPENCLAW_GATEWAY_TOKEN=${{ secrets.ENV_OPENCLAW_TOKEN }}
OPENCLAW_GATEWAY_PASSWORD=
ENVEOF
echo "✅ .env created at host deploy path"
# ── Step 4: Sync code to host ─────────────
- name: Sync code to host deploy path
run: |
# Sync everything (except .git) from workspace to host
docker run --rm \
-v "${{ gitea.workspace }}:/src:ro" \
-v /opt/openclaw/data/openclaw/workspace/nexus:/dest \
@@ -125,15 +126,15 @@ jobs:
cd /src && \
find . -mindepth 1 -maxdepth 1 \
! -name .git \
! -name .env \
-exec cp -a {} /dest/ \;
"
echo "✅ Code + .env synced to host deploy path"
# ── Step 5: Docker Buildx ─────────────────
# ── Step 4: Docker Buildx ─────────────────
- name: Set up Docker Buildx
run: docker buildx create --use 2>/dev/null || true
# ── Step 6: Build & Deploy ────────────────
# ── Step 5: Build & Deploy ────────────────
- name: Build & Deploy
run: |
BUILD_ARGS=""
@@ -148,40 +149,95 @@ jobs:
docker:cli \
sh -c "
set -e
if [ -n '\${{ inputs.service }}' ]; then
echo '🚀 Deploying service: \${{ inputs.service }}'
docker compose build \$BUILD_ARGS \${{ inputs.service }}
docker compose up -d --force-recreate \${{ inputs.service }}
if [ -n '${{ inputs.service }}' ]; then
echo '🚀 Deploying service: ${{ inputs.service }}'
docker compose build ${BUILD_ARGS} ${{ inputs.service }}
docker compose up -d --force-recreate ${{ inputs.service }}
else
echo '🚀 Deploying all services'
docker compose build \$BUILD_ARGS
docker compose build ${BUILD_ARGS}
docker compose up -d --force-recreate
fi
"
# ── Step 7: Health Check ──────────────────
# ── Step 6: Health Check (backoff) ────────
# Exponential-ish backoff: 1s, 2s, 3s, 5s, 8s, 13s (~32s total).
# Why: cold-start containers need variable warmup time;
# fixed 5s intervals either wait too long or give up too early.
- name: Health Check
run: |
sleep 5
echo "🏥 Health check..."
for i in 1 2 3 4 5 6; do
RETRY=0
MAX=6
WAIT=1
while [ $RETRY -lt $MAX ]; do
RETRY=$((RETRY + 1))
if curl -sf --max-time 10 https://nexus.noveria.net/health; then
echo ""
echo "✅ Health check passed"
break
echo "✅ Health check passed (attempt $RETRY/$MAX)"
exit 0
fi
echo "⏳ Retry $i/6..."
sleep 5
echo "⏳ Attempt $RETRY/$MAX failed, waiting ${WAIT}s..."
sleep $WAIT
# Fibonacci-ish backoff: 1,2,3,5,8,13
NEXT=$((WAIT + RETRY))
[ $NEXT -le 15 ] && WAIT=$NEXT || WAIT=15
done
echo "❌ Health check failed after $MAX attempts"
exit 1
# ── Step 8: Smoke test ────────────────────
# ── Step 7: Smoke test (multi-endpoint) ───
# Tests multiple endpoints to catch partial failures.
# Why: a single /dashboard check can miss backend-only outages;
# /health tests the API + database + runtime status.
- name: Verify (smoke test)
run: |
echo "🔍 Smoke test..."
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" https://nexus.noveria.net/dashboard)
echo "Dashboard: HTTP $HTTP_CODE"
if [ "$HTTP_CODE" != "200" ]; then
echo "❌ Dashboard not reachable!"
PASS=0
FAIL=0
BASE="https://nexus.noveria.net"
check() {
local path="$1" label="$2" expected="${3:-200}"
local code=$(curl -s -o /dev/null -w "%{http_code}" --max-time 10 "${BASE}${path}")
printf " %-25s HTTP %s" "${label}:" "${code}"
if [ "$code" = "$expected" ]; then
echo " ✅"
PASS=$((PASS + 1))
else
echo " ❌ (expected $expected)"
FAIL=$((FAIL + 1))
fi
}
check "/dashboard" "Dashboard" 200
check "/health" "Health API" 200
echo ""
echo "Results: $PASS passed, $FAIL failed"
if [ "$FAIL" -gt 0 ]; then
echo "❌ Smoke test failed!"
exit 1
fi
echo "✅ Deployment verified"
# ── Step 8: Rollback hint ────────────────
# On any failure, prints the previous deploy tag for quick manual rollback.
# Why: reduces MTTR (mean time to recovery) by providing the exact
# git tag to roll back to without needing to look it up manually.
- name: Rollback hint
if: failure()
run: |
echo ""
echo "🔙 ─── Rollback Instructions ─── 🔙"
echo ""
echo " # 1. Checkout previous version:"
echo " git checkout tags/\$(git describe --tags --abbrev=0 2>/dev/null || echo 'unknown')"
echo ""
echo " # 2. Redeploy:"
echo " cd /opt/openclaw/data/openclaw/workspace/nexus"
echo " docker compose up -d --force-recreate"
echo ""
echo " # 3. Or trigger rollback via Gitea:"
echo " Trigger 'Deploy to Production' workflow with the previous tag"
echo ""
+1 -2
View File
@@ -30,5 +30,4 @@ docker-compose.override.yml
*.tmp
*.bak
# pnpm
pnpm-lock.yaml
# pnpm (lockfile IS committed for reproducible CI builds)
+1 -1
View File
@@ -1 +1 @@
0.2.7
0.2.20
+1442
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -20,7 +20,7 @@ const activeView = computed(() => {
})
const routePaths: Record<string, string> = {
Dashboard: '/dashboard', Memory: '/memory', Docs: '/docs', Team: '/team', Security: '/security',
Dashboard: '/dashboard', Memory: '/memory', Docs: '/docs', Security: '/security',
Projects: '/projects', 'Task Board': '/tasks', Incidents: '/incidents', Calendar: '/calendar',
Agents: '/agents', Models: '/models', Activity: '/activity', 'Mobile Chat': '/chat', Settings: '/settings',
}
@@ -31,7 +31,7 @@ const navigate = (label: string) => {
}
const mobileNavOpen = ref(false)
const standaloneViews = computed(() => ['Dashboard', 'Settings', 'ProjectDetail', 'Memory', 'Docs', 'Team', 'Security', 'Incidents', 'Calendar', 'AgentDetail', 'Agents'].includes(activeView.value))
const standaloneViews = computed(() => ['Dashboard', 'Settings', 'ProjectDetail', 'Memory', 'Docs', 'Security', 'Incidents', 'Calendar', 'AgentDetail', 'Agents'].includes(activeView.value))
onMounted(() => {
if (auth.isAuthenticated) store.refresh()
+535 -276
View File
@@ -1,345 +1,604 @@
<script setup lang="ts">
import { computed, ref } from 'vue'
import { Bot, Sparkles } from '@lucide/vue'
import AgentNode from './AgentNode.vue'
import AgentModal from './AgentModal.vue'
import type { AgentNodeData } from '../../composables/useDashboardData'
import { ref, onMounted, onUnmounted, nextTick, computed } from 'vue'
import { Bot, Code2, Server, Shield, Search, Terminal } from '@lucide/vue'
interface AgentData {
id: string
name: string
role: string
description: string
tags: string[]
color: string
icon: string
hero?: boolean
task?: string
runtime?: string
}
const props = defineProps<{
agents: AgentNodeData[]
irisRuntime: string
getAgentRuntime: (id: string) => string
irisFocus: string
agents: AgentData[]
heroId?: string
activeAgents?: string[]
}>()
const selectedAgent = ref<AgentNodeData | null>(null)
const emit = defineEmits<{
select: [id: string]
}>()
function onAgentSelect(agentId: string): void {
const agent = props.agents.find(a => a.id === agentId)
if (agent) selectedAgent.value = agent
// ── Layout refs ──
const networkRef = ref<HTMLDivElement | null>(null)
interface CardBox {
left: number
right: number
top: number
bottom: number
cx: number
cy: number
width: number
height: number
}
const cardPositions = ref<Record<string, CardBox>>({})
const svgWidth = ref(0)
const svgHeight = ref(0)
// ── Computed data ──
const hero = computed(() => props.agents.find(a => a.id === props.heroId) ?? props.agents[0])
const childAgents = computed(() => props.agents.filter(a => a.id !== props.heroId))
function isActive(id: string): boolean {
return props.activeAgents?.includes(id) ?? false
}
function closeModal(): void {
selectedAgent.value = null
// ── Icon resolver ──
function resolveIcon(iconName: string) {
switch (iconName) {
case 'bot': return Bot
case 'code': return Code2
case 'server': return Server
case 'shield': return Shield
case 'search': return Search
case 'terminal': return Terminal
default: return Bot
}
}
const agentColorMap: Record<string, string> = {
developer: '#3b82f6',
devops: '#eab308',
researcher: '#22c55e',
reviewer: '#a855f7',
// ── Position measurement ──
function updatePositions() {
if (!networkRef.value) return
const rect = networkRef.value.getBoundingClientRect()
svgWidth.value = rect.width
svgHeight.value = rect.height
const cards = networkRef.value.querySelectorAll('[data-agent-id]')
const positions: Record<string, CardBox> = {}
cards.forEach(el => {
const id = el.getAttribute('data-agent-id')
if (!id) return
const r = el.getBoundingClientRect()
positions[id] = {
left: r.left - rect.left,
right: r.left + r.width - rect.left,
top: r.top - rect.top,
bottom: r.top + r.height - rect.top,
cx: r.left + r.width / 2 - rect.left,
cy: r.top + r.height / 2 - rect.top,
width: r.width,
height: r.height,
}
})
cardPositions.value = positions
}
const agentLineActive: Record<string, boolean> = {
developer: true,
devops: false,
researcher: true,
reviewer: false,
// ── SVG path computation ──
interface ConnectionPath {
d: string
length: number
}
const NETWORK_W = 440
const IRIS_CX = NETWORK_W / 2
const IRIS_CY = 80
const AGENT_START_Y = 170
const connectionPaths = computed<Record<string, ConnectionPath | null>>(() => {
const result: Record<string, ConnectionPath | null> = {}
const pos = cardPositions.value
const heroEntry = props.agents.find(a => a.id === props.heroId)
const heroId = heroEntry?.id ?? ''
const iris = heroId ? pos[heroId] : undefined
if (!iris) return result
const agentPositions = computed(() => [
{ id: 'developer', x: 60, y: AGENT_START_Y },
{ id: 'researcher', x: NETWORK_W - 60, y: AGENT_START_Y },
{ id: 'devops', x: 60, y: AGENT_START_Y + 110 },
{ id: 'reviewer', x: NETWORK_W - 60, y: AGENT_START_Y + 110 },
])
const children = childAgents.value
const total = children.length
if (total === 0) return result
const activeLines = computed(() =>
agentPositions.value.filter(p => agentLineActive[p.id])
)
for (let idx = 0; idx < total; idx++) {
const agent = children[idx]
const agentPos = pos[agent.id]
if (!agentPos) {
result[agent.id] = null
continue
}
// Spread start points across Iris bottom edge (30%-70% range)
const t = total > 1 ? idx / (total - 1) : 0.5
const startX = iris.left + iris.width * (0.30 + t * 0.40)
const startY = iris.bottom - 1
// Determine column: left or right of Iris center
const isLeftColumn = agentPos.cx < iris.cx
// End point: approach from side, 8px before card edge
const endX = isLeftColumn ? agentPos.right - 8 : agentPos.left + 8
const endY = agentPos.cy
// Bézier control points
const cp1x = startX
const cp1y = startY + 40
const cp2x = endX + (isLeftColumn ? 50 : -50)
const cp2y = endY - 10
const d = `M ${startX} ${startY} C ${cp1x} ${cp1y}, ${cp2x} ${cp2y}, ${endX} ${endY}`
result[agent.id] = { d, length: 0 }
}
return result
})
// ── Pulse animation (JS-driven via requestAnimationFrame) ──
let animFrameId: number | null = null
let lastAnimTime = 0
const pathElements = ref<Record<string, SVGPathElement | null>>({})
const pulseElements = ref<Record<string, SVGPathElement | null>>({})
const pulseOffsets = ref<Record<string, number>>({})
function storePathRef(id: string) {
return (el: SVGPathElement | null) => {
pathElements.value[id] = el
}
}
function storePulseRef(id: string) {
return (el: SVGPathElement | null) => {
pulseElements.value[id] = el
}
}
function refreshPathLengths() {
for (const id of childAgents.value.map(a => a.id)) {
const pathEl = pathElements.value[id]
const pulseEl = pulseElements.value[id]
const p = connectionPaths.value[id]
if (pathEl && p) {
p.length = pathEl.getTotalLength()
}
if (pulseEl && p && p.length > 0) {
if (pulseOffsets.value[id] === undefined) {
pulseOffsets.value[id] = 0
}
pulseEl.setAttribute('stroke-dasharray', `10 ${p.length}`)
pulseEl.setAttribute('stroke-dashoffset', String(-pulseOffsets.value[id]))
}
}
}
function startPulseAnimation() {
const speeds: Record<string, number> = {}
refreshPathLengths()
for (const id of childAgents.value.map(a => a.id)) {
const p = connectionPaths.value[id]
if (p && p.length > 0) {
speeds[id] = p.length / 3000
if (pulseOffsets.value[id] === undefined) {
pulseOffsets.value[id] = 0
}
}
}
lastAnimTime = performance.now()
function tick(now: number) {
const dt = now - lastAnimTime
lastAnimTime = now
const children = childAgents.value
for (let i = 0; i < children.length; i++) {
const id = children[i].id
const pathEl = pathElements.value[id]
const pulseEl = pulseElements.value[id]
const p = connectionPaths.value[id]
if (!pathEl || !pulseEl || !p) continue
const len = p.length
if (len <= 0) continue
const currentOffset = pulseOffsets.value[id] ?? 0
const newOffset = currentOffset + (speeds[id] ?? len / 3000) * dt
const cycleLen = len + 10
pulseOffsets.value[id] = newOffset > cycleLen ? newOffset % cycleLen : newOffset
pulseEl.setAttribute('stroke-dashoffset', String(-pulseOffsets.value[id]))
}
animFrameId = requestAnimationFrame(tick)
}
animFrameId = requestAnimationFrame(tick)
}
function stopPulseAnimation() {
if (animFrameId !== null) {
cancelAnimationFrame(animFrameId)
animFrameId = null
}
}
// ── Lifecycle ──
let resizeObserver: ResizeObserver | null = null
onMounted(async () => {
await nextTick()
updatePositions()
// Wait for SVG to render so path refs are populated
await nextTick()
updatePositions()
refreshPathLengths()
startPulseAnimation()
resizeObserver = new ResizeObserver(() => {
updatePositions()
// Paths changed — recalculate lengths and dasharrays
requestAnimationFrame(() => {
refreshPathLengths()
})
})
if (networkRef.value) {
resizeObserver.observe(networkRef.value)
}
})
onUnmounted(() => {
stopPulseAnimation()
resizeObserver?.disconnect()
})
</script>
<template>
<div class="team-network">
<!-- Iris Node -->
<div class="iris-node">
<div class="iris-avatar-ring">
<svg class="ring-svg" viewBox="0 0 60 60" width="60" height="60">
<circle cx="30" cy="30" r="27" fill="none" stroke="rgba(167,139,250,0.12)" stroke-width="2" />
<circle
cx="30" cy="30" r="27"
fill="none" stroke="#a78bfa" stroke-width="2"
stroke-dasharray="169.6" stroke-dashoffset="42"
stroke-linecap="round"
transform="rotate(-90 30 30)"
class="ring-arc"
/>
</svg>
<div class="iris-avatar-inner">
<Bot :size="26" />
</div>
</div>
<div class="iris-name-block">
<h2>Iris</h2>
<span class="iris-role-label">Chief of Staff</span>
</div>
<p class="iris-tagline">Breaking down tasks and coordinating specialists</p>
<div class="iris-runtime">
<span class="rt-label">Session Runtime</span>
<span class="rt-value">{{ irisRuntime }}</span>
</div>
</div>
<!-- SVG Connections -->
<div ref="networkRef" class="ai-team-network">
<!-- SVG Connection Layer -->
<svg
v-if="svgWidth > 0 && svgHeight > 0"
class="network-svg"
:viewBox="`0 0 ${NETWORK_W} 400`"
preserveAspectRatio="xMidYMid meet"
:width="svgWidth"
:height="svgHeight"
:viewBox="`0 0 ${svgWidth} ${svgHeight}`"
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<filter id="lineglow">
<feGaussianBlur stdDeviation="2" result="blur" />
<filter
v-for="agent in childAgents"
:key="`glow-${agent.id}`"
:id="`glow-${agent.id}`"
x="-30%" y="-30%" width="160%" height="160%"
>
<feGaussianBlur stdDeviation="4" result="blur" />
<feMerge>
<feMergeNode in="blur" />
<feMergeNode in="blur" />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
</defs>
<line
v-for="pos in agentPositions"
:key="'conn-' + pos.id"
:x1="IRIS_CX" :y1="IRIS_CY + 32"
:x2="pos.x + 22" :y2="pos.y"
:stroke="agentColorMap[pos.id]"
:stroke-width="agentLineActive[pos.id] ? 1.5 : 1"
:opacity="agentLineActive[pos.id] ? 0.4 : 0.1"
class="conn-line"
:class="{ 'line-pulse': agentLineActive[pos.id] }"
filter="url(#lineglow)"
/>
<!-- Connection lines for each agent -->
<template v-for="agent in childAgents" :key="agent.id">
<!-- Base line -->
<path
v-if="connectionPaths[agent.id]"
:ref="storePathRef(agent.id)"
:d="connectionPaths[agent.id]!.d"
:stroke="agent.color"
:stroke-width="isActive(agent.id) ? 2.5 : 1.5"
fill="none"
:opacity="isActive(agent.id) ? 0.7 : 0.25"
stroke-linecap="round"
/>
<g v-for="pos in activeLines" :key="'fx-' + pos.id">
<circle
:cx="pos.x + 22" :cy="pos.y"
r="2.5" fill="#ffffff"
class="pulse-end" :style="{ '--pulse-color': agentColorMap[pos.id] }"
<!-- Glow line for active agent -->
<path
v-if="isActive(agent.id) && connectionPaths[agent.id]"
:d="connectionPaths[agent.id]!.d"
:stroke="agent.color"
stroke-width="4"
fill="none"
stroke-linecap="round"
:filter="`url(#glow-${agent.id})`"
opacity="0.5"
/>
<circle
:cx="IRIS_CX" :cy="IRIS_CY + 32"
r="2.5" fill="#ffffff"
class="pulse-origin"
<!-- Pulse line (white dashed segment moving along) -->
<path
v-if="connectionPaths[agent.id]"
:ref="storePulseRef(agent.id)"
:d="connectionPaths[agent.id]!.d"
stroke="white"
stroke-width="3"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
:opacity="isActive(agent.id) ? 1 : 0.4"
/>
</g>
</template>
</svg>
<!-- Agent Cards -->
<div class="agents-grid">
<AgentNode
v-for="agent in agents"
:key="agent.id"
:agent="agent"
:runtime="getAgentRuntime(agent.id)"
@select="onAgentSelect"
/>
</div>
<!-- Cards Layer (above SVG) -->
<div class="cards-layer">
<!-- Hero: Iris centered top -->
<div class="hero-slot" :data-agent-id="hero.id">
<article
class="agent-card hero-card"
:style="{
'--card-color': hero.color,
...(isActive(hero.id) ? {
boxShadow: `0 0 20px ${hero.color}44`,
borderColor: hero.color
} : {})
}"
@click="emit('select', hero.id)"
>
<div class="card-main">
<div class="card-icon-wrap" :style="{ background: `${hero.color}18`, color: hero.color }">
<component :is="resolveIcon(hero.icon)" :size="20" />
</div>
<div class="card-body">
<div class="card-name-row">
<h3 class="card-name">{{ hero.name }}</h3>
<span class="card-role-tag" :style="{ background: `${hero.color}18`, color: hero.color, borderColor: `${hero.color}30` }">{{ hero.role }}</span>
</div>
<p class="card-desc">{{ hero.description }}</p>
<span v-if="hero.task" class="node-task">
<span class="node-task-dot"></span>
{{ hero.task }}
</span>
<div class="card-tags">
<span v-for="tag in hero.tags" :key="tag" class="card-tag" :style="{ background: `${hero.color}18`, color: hero.color }">{{ tag }}</span>
</div>
</div>
</div>
<div class="card-footer-action">
<span>ROLE CARD</span>
<span class="arrow">&rarr;</span>
<span v-if="hero.runtime" class="node-runtime">{{ hero.runtime }}</span>
</div>
</article>
</div>
<!-- Focus Banner -->
<div v-if="irisFocus" class="focus-banner">
<Sparkles :size="12" class="focus-icon" />
<span>{{ irisFocus }}</span>
<!-- Agent Grid: 2 columns x 2 rows -->
<div class="agent-grid">
<div
v-for="agent in childAgents"
:key="agent.id"
:data-agent-id="agent.id"
class="agent-slot"
>
<article
class="agent-card"
:style="{
'--card-color': agent.color,
...(isActive(agent.id) ? {
boxShadow: `0 0 14px ${agent.color}55, 0 0 30px ${agent.color}22`,
borderColor: agent.color
} : {})
}"
@click="emit('select', agent.id)"
>
<div class="card-main">
<div class="card-icon-wrap" :style="{ background: `${agent.color}18`, color: agent.color }">
<component :is="resolveIcon(agent.icon)" :size="18" />
</div>
<div class="card-body">
<div class="card-name-row">
<h3 class="card-name">{{ agent.name }}</h3>
<span class="card-role-tag" :style="{ background: `${agent.color}18`, color: agent.color, borderColor: `${agent.color}30` }">{{ agent.role }}</span>
</div>
<p class="card-desc">{{ agent.description }}</p>
<span v-if="agent.task" class="node-task">
<span class="node-task-dot"></span>
{{ agent.task }}
</span>
<div class="card-tags">
<span v-for="tag in agent.tags" :key="tag" class="card-tag" :style="{ background: `${agent.color}18`, color: agent.color }">{{ tag }}</span>
</div>
</div>
</div>
<div class="card-footer-action">
<span>ROLE CARD</span>
<span class="arrow">&rarr;</span>
<span v-if="agent.runtime" class="node-runtime">{{ agent.runtime }}</span>
</div>
</article>
</div>
</div>
</div>
<!-- Agent Modal -->
<AgentModal
v-if="selectedAgent"
:agent="selectedAgent"
:runtime="getAgentRuntime(selectedAgent.id)"
@close="closeModal"
/>
</div>
</template>
<style scoped>
.team-network {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
padding: 24px 20px 20px;
background: rgba(22, 27, 34, 0.75);
border: 1px solid rgba(139, 124, 246, 0.12);
border-radius: 16px;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
transition: border-color 0.2s ease;
.ai-team-network {
position: relative;
overflow: hidden;
min-height: 520px;
}
.team-network:hover {
border-color: rgba(139, 124, 246, 0.18);
}
/* Iris Node */
.iris-node {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 20px 28px;
background: rgba(167, 139, 250, 0.06);
border: 1px solid rgba(167, 139, 250, 0.15);
border-radius: 14px;
position: relative;
z-index: 2;
width: 100%;
max-width: 320px;
}
.iris-avatar-ring {
position: relative;
width: 60px;
height: 60px;
}
.ring-svg {
position: absolute;
inset: 0;
}
.ring-arc {
animation: iris-spin 3s linear infinite;
}
@keyframes iris-spin {
to { transform: rotate(270deg); }
}
.iris-avatar-inner {
width: 60px;
height: 60px;
display: grid;
place-items: center;
border-radius: 50%;
background: rgba(167, 139, 250, 0.15);
color: #a78bfa;
}
.iris-name-block {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.iris-name-block h2 {
margin: 0;
font-size: 18px;
font-weight: 700;
color: #e8eaf0;
}
.iris-role-label {
font-size: 9px;
color: #a78bfa;
font-weight: 600;
letter-spacing: 0.05em;
}
.iris-tagline {
margin: 2px 0 0;
font-size: 10.5px;
color: #6b7385;
text-align: center;
line-height: 1.35;
}
.iris-runtime {
display: flex;
align-items: center;
gap: 8px;
margin-top: 6px;
padding: 5px 14px;
background: rgba(167, 139, 250, 0.08);
border: 1px solid rgba(167, 139, 250, 0.1);
border-radius: 20px;
}
.rt-label {
font-size: 8px;
color: #7e8799;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.rt-value {
font-size: 14px;
font-weight: 700;
font-variant-numeric: tabular-nums;
color: #a78bfa;
background: transparent;
}
/* SVG Lines */
.network-svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
z-index: 1;
}
.conn-line {
transition: opacity 0.4s ease, stroke-width 0.4s ease;
}
.line-pulse {
animation: line-glow 2s ease-in-out infinite;
}
@keyframes line-glow {
0%, 100% { opacity: 0.4; }
50% { opacity: 0.7; }
}
.pulse-origin {
animation: pulse-origin 2s ease-in-out infinite;
}
.pulse-end {
animation: pulse-end 2s ease-in-out infinite;
}
@keyframes pulse-origin {
0%, 100% { opacity: 0; r: 1.5; }
50% { opacity: 0.8; r: 3.5; }
}
@keyframes pulse-end {
0%, 100% { opacity: 0.2; r: 1.5; }
50% { opacity: 0.9; r: 3; }
overflow: visible;
}
/* Agent Cards */
.agents-grid {
.cards-layer {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 32px;
}
.hero-slot {
width: 100%;
max-width: 520px;
transition: border-color 0.3s, box-shadow 0.3s;
}
.agent-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
gap: 16px;
width: 100%;
position: relative;
z-index: 2;
margin-top: 4px;
max-width: 820px;
}
/* Focus Banner */
.focus-banner {
.agent-slot {
width: 100%;
transition: border-color 0.3s, box-shadow 0.3s;
}
/* ── Agent Card (inlined from old AgentCard.vue) ── */
.agent-card {
background: var(--panel, #11141b);
border: 1px solid var(--line, #1f2330);
border-radius: 12px;
padding: 18px;
cursor: pointer;
transition: border-color 0.2s, box-shadow 0.2s;
overflow: hidden;
position: relative;
}
.agent-card:hover {
border-color: var(--card-color, #8b7cf6);
box-shadow: 0 0 16px color-mix(in srgb, var(--card-color, #8b7cf6) 10%, transparent);
}
.hero-card {
border-color: rgba(139, 124, 246, 0.2);
box-shadow: 0 0 20px rgba(139, 124, 246, 0.06);
}
.hero-card:hover {
border-color: #8b7cf6;
box-shadow: 0 0 24px rgba(139, 124, 246, 0.12);
}
.card-main {
display: flex;
gap: 14px;
align-items: flex-start;
}
.card-icon-wrap {
width: 42px;
height: 42px;
display: grid;
place-items: center;
border-radius: 10px;
flex-shrink: 0;
}
.card-body {
flex: 1;
min-width: 0;
}
.card-name-row {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 10px 16px;
background: rgba(234, 179, 8, 0.05);
border: 1px solid rgba(234, 179, 8, 0.1);
border-radius: 10px;
margin-top: 4px;
position: relative;
z-index: 2;
margin-bottom: 5px;
flex-wrap: wrap;
}
.focus-icon {
color: #eab308;
flex-shrink: 0;
.card-name {
margin: 0;
font-size: 14px;
font-weight: 600;
color: #e8eaf0;
}
.focus-banner span {
.card-role-tag {
display: inline-block;
font-size: 8.5px;
font-weight: 600;
padding: 2px 8px;
border-radius: 5px;
border: 1px solid transparent;
white-space: nowrap;
}
.card-desc {
font-size: 10.5px;
color: #eab308;
line-height: 1.35;
color: #7e8799;
line-height: 1.5;
margin: 0 0 8px;
}
.card-tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.card-tag {
display: inline-block;
font-size: 9px;
font-weight: 600;
padding: 2px 8px;
border-radius: 5px;
letter-spacing: 0.02em;
}
.card-footer-action {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
margin-top: 12px;
padding-top: 10px;
border-top: 1px solid var(--line, #1f2330);
font-size: 9px;
font-weight: 600;
color: #6b7385;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.card-footer-action .arrow {
font-size: 13px;
line-height: 1;
}
.agent-card:hover .card-footer-action {
color: var(--card-color, #8b7cf6);
}
@media (max-width: 700px) {
.agents-grid {
/* ── Node Task ── */
.node-task {
display: block;
font-size: 10px;
color: #9ea5b3;
margin-bottom: 8px;
line-height: 1.4;
}
.node-task-dot {
display: inline-block;
margin-right: 4px;
font-size: 8px;
vertical-align: middle;
}
/* ── Node Runtime ── */
.node-runtime {
font-size: 9px;
color: #6b7385;
font-variant-numeric: tabular-nums;
margin-left: auto;
}
@media (max-width: 720px) {
.agent-grid {
grid-template-columns: 1fr;
}
.cards-layer {
gap: 20px;
}
}
</style>
@@ -3,7 +3,7 @@ import { computed } from 'vue'
import {
Activity, Bot, Boxes, Command, FileText,
LayoutDashboard, ListTodo, LogOut, MessageSquareText, Settings,
Shield, SlidersHorizontal, Sparkles, Users, BookOpen,
Shield, SlidersHorizontal, Sparkles, BookOpen,
AlertTriangle, Calendar,
} from '@lucide/vue'
import { useRouter } from 'vue-router'
@@ -29,7 +29,6 @@ const navigation = [
{ label: 'Dashboard', icon: LayoutDashboard },
{ label: 'Memory', icon: FileText },
{ label: 'Docs', icon: BookOpen },
{ label: 'Team', icon: Users },
{ label: 'Security', icon: Shield },
{ label: 'Projects', icon: Boxes },
{ label: 'Task Board', icon: ListTodo },
@@ -0,0 +1,417 @@
<script setup lang="ts">
import { ref, onMounted, onUnmounted, nextTick, computed } from 'vue'
import AgentCard from './AgentCard.vue'
interface AgentData {
id: string
name: string
role: string
description: string
tags: string[]
color: string
icon: string
hero?: boolean
}
const props = defineProps<{
agents: AgentData[]
heroId?: string
activeAgents?: string[]
}>()
const emit = defineEmits<{
select: [id: string]
}>()
// ── Layout refs ──
const networkRef = ref<HTMLDivElement | null>(null)
interface CardBox {
left: number
right: number
top: number
bottom: number
cx: number
cy: number
width: number
height: number
}
const cardPositions = ref<Record<string, CardBox>>({})
const svgWidth = ref(0)
const svgHeight = ref(0)
// ── Computed data ──
const hero = computed(() => props.agents.find(a => a.id === props.heroId) ?? props.agents[0])
const childAgents = computed(() => props.agents.filter(a => a.id !== props.heroId))
function isActive(id: string): boolean {
return props.activeAgents?.includes(id) ?? false
}
// ── Position measurement ──
function updatePositions() {
if (!networkRef.value) return
const rect = networkRef.value.getBoundingClientRect()
svgWidth.value = rect.width
svgHeight.value = rect.height
const cards = networkRef.value.querySelectorAll('[data-agent-id]')
const positions: Record<string, CardBox> = {}
cards.forEach(el => {
const id = el.getAttribute('data-agent-id')
if (!id) return
const r = el.getBoundingClientRect()
positions[id] = {
left: r.left - rect.left,
right: r.left + r.width - rect.left,
top: r.top - rect.top,
bottom: r.top + r.height - rect.top,
cx: r.left + r.width / 2 - rect.left,
cy: r.top + r.height / 2 - rect.top,
width: r.width,
height: r.height,
}
})
cardPositions.value = positions
}
// ── SVG path computation ──
interface ConnectionPath {
d: string
length: number
}
const connectionPaths = computed<Record<string, ConnectionPath | null>>(() => {
const result: Record<string, ConnectionPath | null> = {}
const pos = cardPositions.value
const heroEntry = props.agents.find(a => a.id === props.heroId)
const heroId = heroEntry?.id ?? ''
const iris = heroId ? pos[heroId] : undefined
if (!iris) return result
const children = childAgents.value
const total = children.length
if (total === 0) return result
for (let idx = 0; idx < total; idx++) {
const agent = children[idx]
const agentPos = pos[agent.id]
if (!agentPos) {
result[agent.id] = null
continue
}
// Spread start points across Iris bottom edge (30%-70% range)
const t = total > 1 ? idx / (total - 1) : 0.5
const startX = iris.left + iris.width * (0.30 + t * 0.40)
const startY = iris.bottom - 1
// Determine column: left or right of Iris center
const isLeftColumn = agentPos.cx < iris.cx
// End point: approach from side, 8px before card edge
const endX = isLeftColumn ? agentPos.right - 8 : agentPos.left + 8
const endY = agentPos.cy
// Bézier control points
const cp1x = startX
const cp1y = startY + 40
const cp2x = endX + (isLeftColumn ? 50 : -50)
const cp2y = endY - 10
const d = `M ${startX} ${startY} C ${cp1x} ${cp1y}, ${cp2x} ${cp2y}, ${endX} ${endY}`
result[agent.id] = { d, length: 0 }
}
return result
})
// ── Pulse animation (JS-driven via requestAnimationFrame) ──
let animFrameId: number | null = null
let lastAnimTime = 0
// Track path elements and animation offset per agent
const pathElements = ref<Record<string, SVGPathElement | null>>({})
const pulseElements = ref<Record<string, SVGPathElement | null>>({})
const pulseOffsets = ref<Record<string, number>>({})
function storePathRef(id: string) {
return (el: SVGPathElement | null) => {
pathElements.value[id] = el
}
}
function storePulseRef(id: string) {
return (el: SVGPathElement | null) => {
pulseElements.value[id] = el
}
}
/** Refresh path lengths and pulse dasharrays from current SVG elements */
function refreshPathLengths() {
for (const id of childAgents.value.map(a => a.id)) {
const pathEl = pathElements.value[id]
const pulseEl = pulseElements.value[id]
const p = connectionPaths.value[id]
if (pathEl && p) {
p.length = pathEl.getTotalLength()
}
if (pulseEl && p && p.length > 0) {
if (pulseOffsets.value[id] === undefined) {
pulseOffsets.value[id] = 0
}
pulseEl.setAttribute('stroke-dasharray', `10 ${p.length}`)
pulseEl.setAttribute('stroke-dashoffset', String(-pulseOffsets.value[id]))
}
}
}
function startPulseAnimation() {
const speeds: Record<string, number> = {}
refreshPathLengths()
for (const id of childAgents.value.map(a => a.id)) {
const p = connectionPaths.value[id]
if (p && p.length > 0) {
speeds[id] = p.length / 3000 // full traversal in ~3s
if (pulseOffsets.value[id] === undefined) {
pulseOffsets.value[id] = 0
}
}
}
lastAnimTime = performance.now()
function tick(now: number) {
const dt = now - lastAnimTime
lastAnimTime = now
const children = childAgents.value
for (let i = 0; i < children.length; i++) {
const id = children[i].id
const pathEl = pathElements.value[id]
const pulseEl = pulseElements.value[id]
const p = connectionPaths.value[id]
if (!pathEl || !pulseEl || !p) continue
const len = p.length
if (len <= 0) continue
const currentOffset = pulseOffsets.value[id] ?? 0
const newOffset = currentOffset + (speeds[id] ?? len / 3000) * dt
const cycleLen = len + 10
pulseOffsets.value[id] = newOffset > cycleLen ? newOffset % cycleLen : newOffset
pulseEl.setAttribute('stroke-dashoffset', String(-pulseOffsets.value[id]))
}
animFrameId = requestAnimationFrame(tick)
}
animFrameId = requestAnimationFrame(tick)
}
function stopPulseAnimation() {
if (animFrameId !== null) {
cancelAnimationFrame(animFrameId)
animFrameId = null
}
}
// ── Lifecycle ──
let resizeObserver: ResizeObserver | null = null
onMounted(async () => {
await nextTick()
updatePositions()
// Wait for SVG to render so path refs are populated
await nextTick()
updatePositions()
refreshPathLengths()
startPulseAnimation()
resizeObserver = new ResizeObserver(() => {
updatePositions()
// Paths changed — recalculate lengths and dasharrays
requestAnimationFrame(() => {
refreshPathLengths()
})
})
if (networkRef.value) {
resizeObserver.observe(networkRef.value)
}
})
onUnmounted(() => {
stopPulseAnimation()
resizeObserver?.disconnect()
})
</script>
<template>
<div ref="networkRef" class="team-network">
<!-- SVG Connection Layer -->
<svg
v-if="svgWidth > 0 && svgHeight > 0"
class="network-svg"
:width="svgWidth"
:height="svgHeight"
:viewBox="`0 0 ${svgWidth} ${svgHeight}`"
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<filter
v-for="agent in childAgents"
:key="`glow-${agent.id}`"
:id="`glow-${agent.id}`"
x="-30%" y="-30%" width="160%" height="160%"
>
<feGaussianBlur stdDeviation="4" result="blur" />
<feMerge>
<feMergeNode in="blur" />
<feMergeNode in="blur" />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
</defs>
<!-- Connection lines for each agent -->
<template v-for="agent in childAgents" :key="agent.id">
<!-- Base line -->
<path
v-if="connectionPaths[agent.id]"
:ref="storePathRef(agent.id)"
:d="connectionPaths[agent.id]!.d"
:stroke="agent.color"
:stroke-width="isActive(agent.id) ? 2.5 : 1.5"
fill="none"
:opacity="isActive(agent.id) ? 0.7 : 0.25"
stroke-linecap="round"
/>
<!-- Glow line for active agent -->
<path
v-if="isActive(agent.id) && connectionPaths[agent.id]"
:d="connectionPaths[agent.id]!.d"
:stroke="agent.color"
stroke-width="4"
fill="none"
stroke-linecap="round"
:filter="`url(#glow-${agent.id})`"
opacity="0.5"
/>
<!-- Pulse line (white dashed segment moving along) -->
<path
v-if="connectionPaths[agent.id]"
:ref="storePulseRef(agent.id)"
:d="connectionPaths[agent.id]!.d"
stroke="white"
stroke-width="3"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
:opacity="isActive(agent.id) ? 1 : 0.4"
/>
</template>
</svg>
<!-- Cards Layer (above SVG) -->
<div class="cards-layer">
<!-- Hero: Iris centered top -->
<div class="hero-slot" data-agent-id="iris">
<AgentCard
v-bind="hero"
:class="{ 'hero-active': isActive(hero.id) }"
:style="{
boxShadow: isActive(hero.id)
? `0 0 20px ${hero.color}44`
: undefined,
borderColor: isActive(hero.id) ? hero.color : undefined,
}"
@click="emit('select', hero.id)"
/>
</div>
<!-- Agent Grid: 2 columns x 2 rows -->
<div class="agent-grid">
<div
v-for="agent in childAgents"
:key="agent.id"
:data-agent-id="agent.id"
class="agent-slot"
>
<AgentCard
v-bind="agent"
:style="{
boxShadow: isActive(agent.id)
? `0 0 14px ${agent.color}55, 0 0 30px ${agent.color}22`
: undefined,
borderColor: isActive(agent.id) ? agent.color : undefined,
}"
@click="emit('select', agent.id)"
/>
</div>
</div>
</div>
</div>
</template>
<style scoped>
.team-network {
position: relative;
width: 100%;
}
.network-svg {
position: absolute;
top: 0;
left: 0;
z-index: 0;
pointer-events: none;
overflow: visible;
}
.cards-layer {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 32px;
}
.hero-slot {
width: 100%;
max-width: 520px;
transition: border-color 0.3s, box-shadow 0.3s;
}
.hero-active {
transition: border-color 0.3s, box-shadow 0.3s;
}
.agent-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
width: 100%;
max-width: 820px;
}
.agent-slot {
width: 100%;
transition: border-color 0.3s, box-shadow 0.3s;
}
@media (max-width: 720px) {
.agent-grid {
grid-template-columns: 1fr;
}
.cards-layer {
gap: 20px;
}
}
</style>
@@ -81,6 +81,7 @@ export function useDashboardData() {
// Agent runtimes (simulated)
const agentStartTimes = reactive<Record<string, number>>({
iris: now - 28800000,
developer: now - 3600000,
devops: now - 1800000,
researcher: now - 2700000,
@@ -98,6 +99,26 @@ export function useDashboardData() {
// Agents
const agents = ref<AgentNodeData[]>([
{
id: 'iris',
name: 'Iris',
role: 'Chief of Staff',
description: 'Koordiniert, delegiert, hält das Team tight. Die erste Anlaufstelle zwischen Boss und Maschine.',
color: '#8b7cf6',
icon: 'bot',
currentTask: 'Orchestrating Nexus Dashboard redesign',
goal: 'Complete Mission Control v3',
progress: 85,
workload: 55,
active: true,
runtimeSeconds: 28800,
workingFeed: [
'Analyzed user feedback on Dashboard',
'Delegated card redesign to Developer',
'Verifying full-width layout deployment',
'Reviewing AgentModal integration',
],
},
{
id: 'developer',
name: 'Developer',
-2
View File
@@ -4,7 +4,6 @@ import ProjectDetailView from './views/ProjectDetailView.vue'
import SettingsView from './views/SettingsView.vue'
import MemoryView from './views/MemoryView.vue'
import DocsView from './views/DocsView.vue'
import TeamView from './views/TeamView.vue'
import AgentDetailView from './views/AgentDetailView.vue'
import AgentsIndexView from './views/AgentsIndexView.vue'
import SecurityView from './views/SecurityView.vue'
@@ -18,7 +17,6 @@ const routes = [
{ path: '/dashboard', name: 'Dashboard', component: DashboardView },
{ path: '/memory', name: 'Memory', component: MemoryView },
{ path: '/docs', name: 'Docs', component: DocsView },
{ path: '/team', name: 'Team', component: TeamView },
{ path: '/agents/:id', name: 'AgentDetail', component: AgentDetailView },
{ path: '/security', name: 'Security', component: SecurityView },
{ path: '/incidents', name: 'Incidents', component: IncidentsView },
+1 -1
View File
@@ -41,7 +41,7 @@ main { min-width: 0; }
.connection.live { color: var(--green); }
.connection.preview { color: #e6b75d; }
.ask, .refresh { display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #37315e; border-radius: 7px; background: #18152a; color: #c4bbff; font-size: 10px; cursor: pointer; }
.content { max-width: 1320px; margin: auto; padding: 36px 34px 60px; }
.content { padding: 16px 16px 60px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.eyebrow, .kicker { color: #7065c8; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
h1 { margin: 7px 0 5px; font-size: 27px; letter-spacing: -.04em; }
+130 -2
View File
@@ -1,11 +1,13 @@
<script setup lang="ts">
import { onMounted, onUnmounted } from 'vue'
import { onMounted, onUnmounted, ref } from 'vue'
import MissionCard from '../components/dashboard/MissionCard.vue'
import OperationsFeed from '../components/dashboard/OperationsFeed.vue'
import TeamNetwork from '../components/dashboard/TeamNetwork.vue'
import ChatPanel from '../components/dashboard/ChatPanel.vue'
import QueuePanel from '../components/dashboard/QueuePanel.vue'
import AgentModal from '../components/dashboard/AgentModal.vue'
import { useDashboardData } from '../composables/useDashboardData'
import type { AgentNodeData } from '../../composables/useDashboardData'
const {
agents, missions, feedEntries, chatMessages,
@@ -14,6 +16,13 @@ const {
sendChat, removeQueueItem, moveQueueItem, changeQueuePriority,
} = useDashboardData()
const selectedAgent = ref<AgentNodeData | null>(null)
function onAgentSelect(id: string) {
const agent = agents.value.find(a => a.id === id)
if (agent) selectedAgent.value = agent
}
onMounted(startRuntime)
onUnmounted(stopRuntime)
@@ -45,17 +54,54 @@ function onQueueExecuteNow(id: string): void {
<OperationsFeed :entries="feedEntries" />
</div>
<div class="col-center">
<!-- Quote Pill -->
<div class="quote-pill">
<span class="quote-text">"An autonomous organization of AI agents that does work for me and produces value 24/7"</span>
</div>
<!-- Header -->
<div class="team-header">
<h1 class="team-title">AI Team Network</h1>
<p class="team-subtitle">{{ agents.length }} AI agents, connected in real-time.</p>
<p class="team-description">Mission Control orchestriert ein Team spezialisierter Agenten jeder mit eigener Identität, eigenem Workspace und klaren Verantwortlichkeiten. Die Pulse zeigen aktive Kommunikationsflüsse.</p>
</div>
<TeamNetwork
hero-id="iris"
:agents="agents"
:iris-runtime="irisRuntime"
:get-agent-runtime="getAgentRuntime"
:iris-focus="irisFocus"
@select="onAgentSelect"
/>
<!-- Legend -->
<div class="legend-row">
<div class="legend-item">
<span class="legend-dot active-pulse"></span>
<span>Aktive Verbindung</span>
</div>
<div class="legend-item">
<span class="legend-dot idle-pulse"></span>
<span>Idle</span>
</div>
<div class="legend-item">
<span class="legend-dot pulse-dot"></span>
<span>Datenfluss (Pulse)</span>
</div>
</div>
</div>
<div class="col-right">
<ChatPanel :messages="chatMessages" :iris-busy="irisBusy" :iris-focus="irisFocus" @send="onChatSend" />
<QueuePanel :items="queue" @remove="removeQueueItem" @move-up="onQueueMoveUp" @move-down="onQueueMoveDown" @change-priority="changeQueuePriority" @execute-now="onQueueExecuteNow" />
</div>
<AgentModal
v-if="selectedAgent"
:agent="selectedAgent"
:runtime="getAgentRuntime(selectedAgent.id)"
@close="selectedAgent = null"
/>
</div>
</template>
@@ -74,7 +120,89 @@ function onQueueExecuteNow(id: string): void {
.dashboard ::-webkit-scrollbar-thumb { background: rgba(139,124,246,0.2); border-radius: 3px; }
.dashboard ::-webkit-scrollbar-thumb:hover { background: rgba(139,124,246,0.35); }
.col-left { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 4px; }
.col-center { overflow-y: auto; padding: 0 4px; min-height: 0; }
.col-center { overflow-y: auto; padding: 0 4px; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
/* Quote Pill */
.quote-pill {
background: var(--panel);
border: 1px solid rgba(139, 124, 246, 0.25);
border-radius: 14px;
padding: 14px 22px;
box-shadow: 0 0 18px rgba(139, 124, 246, 0.06), inset 0 0 18px rgba(139, 124, 246, 0.03);
text-align: center;
}
.quote-text {
font-style: italic;
font-size: 12px;
color: #9ea5b3;
line-height: 1.5;
}
/* Team Header */
.team-header {
text-align: center;
}
.team-title {
font-size: 26px;
font-weight: 600;
color: #e8eaf0;
margin: 0 0 6px;
}
.team-subtitle {
font-size: 12px;
color: #7e8799;
margin: 0 0 4px;
}
.team-description {
font-size: 10.5px;
color: #6b7385;
margin: 0;
max-width: 560px;
margin-left: auto;
margin-right: auto;
}
/* Legend */
.legend-row {
display: flex;
align-items: center;
justify-content: center;
gap: 24px;
padding: 12px 20px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 10px;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 10px;
color: #7e8799;
}
.legend-dot {
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.active-pulse {
background: #51d49a;
box-shadow: 0 0 6px rgba(81, 212, 154, 0.6);
}
.idle-pulse {
background: #3a3f4b;
}
.pulse-dot {
background: white;
width: 6px;
height: 6px;
animation: legend-pulse 1.5s ease-in-out infinite;
}
@keyframes legend-pulse {
0%, 100% { opacity: 0.3; transform: scale(0.8); }
50% { opacity: 1; transform: scale(1.2); }
}
.col-right { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-left: 4px; }
.missions-section { display: flex; flex-direction: column; gap: 8px; }
.column-title { margin: 0; font-size: 13px; font-weight: 600; color: #e8eaf0; letter-spacing: 0.01em; }
+63 -152
View File
@@ -1,6 +1,7 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import AgentCard from '../components/team/AgentCard.vue'
import TeamNetwork from '../components/team/TeamNetwork.vue'
const router = useRouter()
@@ -32,25 +33,16 @@ const agents: AgentCardData[] = [
role: 'Lead Developer',
description: 'Implementiert Features, schreibt Code, führt Builds und Tests aus. Arbeitet autonom im Scope.',
tags: ['coding', 'development', 'builds'],
color: '#4d8cf6',
color: '#3b82f6',
icon: 'code',
},
{
id: 'architekt',
name: 'Architekt',
role: 'Infrastructure Engineer',
description: 'Verantwortlich für Docker, Nginx, Deployment und VPS-Infrastruktur.',
tags: ['infrastructure', 'deployment', 'docker'],
color: '#4da8f6',
icon: 'server',
},
{
id: 'reviewer',
name: 'Reviewer',
role: 'Code QA',
description: 'Prüft Code auf Bugs, Sicherheit und Wartbarkeit. Fixt Probleme eigenständig.',
tags: ['Quality Assurance', 'Security', 'Code Review'],
color: '#f6a84d',
color: '#a855f7',
icon: 'shield',
},
{
@@ -59,23 +51,21 @@ const agents: AgentCardData[] = [
role: 'Research Analyst',
description: 'Recherchiert, analysiert Quellen, prüft Fakten. Nur Lese-Rechte, keine Aktionen.',
tags: ['Research', 'Analysis', 'Fact-Checking'],
color: '#8b4df6',
color: '#22c55e',
icon: 'search',
},
{
id: 'executor',
name: 'Executor',
name: 'DevOps',
role: 'Host Executor',
description: 'Führt Host-Kommandos auf dem VPS aus. Nur auf Iris-Befehl, niemals eigeninitiativ.',
tags: ['Execution', 'Docker', 'VPS'],
color: '#4df6d4',
tags: ['Execution', 'Deployment', 'VPS'],
color: '#eab308',
icon: 'terminal',
},
]
const heroAgent = agents.find(a => a.hero)!
const operationAgents = agents.filter(a => !a.hero && ['programmer', 'architekt'].includes(a.id))
const specialistAgents = agents.filter(a => ['reviewer', 'researcher', 'executor'].includes(a.id))
const activeAgents = ref<string[]>(['programmer'])
function goToAgent(id: string) {
router.push(`/agents/${id}`)
@@ -91,72 +81,42 @@ function goToAgent(id: string) {
<!-- Header -->
<div class="team-header">
<h1 class="team-title">Meet the Team</h1>
<p class="team-subtitle">{{ agents.length }} AI agents, each with a real role and a real personality.</p>
<p class="team-description">Mission Control orchestriert ein Team spezialisierter Agenten jeder mit eigener Identität, eigenem Workspace und klaren Verantwortlichkeiten.</p>
<h1 class="team-title">AI Team Network</h1>
<p class="team-subtitle">{{ agents.length }} AI agents, connected in real-time.</p>
<p class="team-description">Mission Control orchestriert ein Team spezialisierter Agenten jeder mit eigener Identität, eigenem Workspace und klaren Verantwortlichkeiten. Die Pulse zeigen aktive Kommunikationsflüsse.</p>
</div>
<!-- Hero Card -->
<div class="hero-section">
<AgentCard
v-bind="heroAgent"
@click="goToAgent"
<!-- Network Visualization -->
<div class="network-container">
<TeamNetwork
:agents="agents"
hero-id="iris"
:active-agents="activeAgents"
@select="goToAgent"
/>
</div>
<!-- Section Divider -->
<div class="section-divider">
<div class="divider-line"></div>
<span class="divider-label">OPERATIONS</span>
<div class="divider-line"></div>
</div>
<!-- Operations Row -->
<div class="ops-row">
<AgentCard
v-for="agent in operationAgents"
:key="agent.id"
v-bind="agent"
@click="goToAgent"
/>
</div>
<!-- Connector Labels -->
<div class="connector-row">
<div class="connector-left">
<svg width="12" height="12" viewBox="0 0 12 12" fill="none">
<path d="M6 0L6 10M6 10L2 6M6 10L10 6" stroke="#51d49a" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<span>INPUT SIGNAL</span>
<!-- Legend -->
<div class="legend-row">
<div class="legend-item">
<span class="legend-dot active-pulse"></span>
<span>Aktive Verbindung</span>
</div>
<div class="connector-rail">
<div class="rail-line"></div>
<div class="rail-dot"></div>
<div class="rail-line"></div>
<div class="legend-item">
<span class="legend-dot idle-pulse"></span>
<span>Idle</span>
</div>
<div class="connector-right">
<span>OUTPUT ACTION</span>
<svg width="12" height="12" viewBox="0 0 12 12" fill="none">
<path d="M6 12L6 2M6 2L2 6M6 2L10 6" stroke="#4d8cf6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<div class="legend-item">
<span class="legend-dot pulse-dot"></span>
<span>Datenfluss (Pulse)</span>
</div>
</div>
<!-- Specialists Row -->
<div class="specialists-row">
<AgentCard
v-for="agent in specialistAgents"
:key="agent.id"
v-bind="agent"
@click="goToAgent"
/>
</div>
</div>
</template>
<style scoped>
.team-page {
max-width: 820px;
max-width: 920px;
margin: 0 auto;
padding-bottom: 40px;
}
@@ -201,99 +161,50 @@ function goToAgent(id: string) {
margin-right: auto;
}
.section-divider {
display: flex;
align-items: center;
gap: 12px;
margin: 32px 0 24px;
position: relative;
}
.divider-line {
flex: 1;
height: 1px;
background: var(--line);
}
.divider-label {
font-size: 9.5px;
font-weight: 700;
letter-spacing: 0.1em;
color: #6b7385;
white-space: nowrap;
.network-container {
margin-top: 10px;
padding: 0;
}
.ops-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.connector-row {
.legend-row {
display: flex;
align-items: center;
gap: 10px;
margin: 10px 0;
padding: 0 6px;
justify-content: center;
gap: 24px;
margin-top: 28px;
padding: 12px 20px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 10px;
}
.connector-left {
.legend-item {
display: flex;
align-items: center;
gap: 5px;
font-size: 8.5px;
font-weight: 700;
color: #51d49a;
letter-spacing: 0.08em;
white-space: nowrap;
gap: 8px;
font-size: 10px;
color: #7e8799;
}
.connector-right {
display: flex;
align-items: center;
gap: 5px;
font-size: 8.5px;
font-weight: 700;
color: #4d8cf6;
letter-spacing: 0.08em;
white-space: nowrap;
}
.connector-rail {
flex: 1;
display: flex;
align-items: center;
gap: 4px;
}
.rail-line {
flex: 1;
height: 1px;
background: var(--line);
}
.rail-dot {
width: 5px;
height: 5px;
.legend-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #5b5286;
flex-shrink: 0;
}
.specialists-row {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 12px;
.active-pulse {
background: #51d49a;
box-shadow: 0 0 6px rgba(81, 212, 154, 0.6);
}
@media (max-width: 720px) {
.ops-row {
grid-template-columns: 1fr;
}
.specialists-row {
grid-template-columns: 1fr;
}
.team-title {
font-size: 22px;
}
.idle-pulse {
background: #3a3f4b;
}
@media (min-width: 721px) and (max-width: 820px) {
.specialists-row {
grid-template-columns: 1fr 1fr;
}
.pulse-dot {
background: white;
width: 6px;
height: 6px;
animation: legend-pulse 1.5s ease-in-out infinite;
}
@keyframes legend-pulse {
0%, 100% { opacity: 0.3; transform: scale(0.8); }
50% { opacity: 1; transform: scale(1.2); }
}
</style>