feat: AI Team Network – Bézier lines, parallel routing, pulse animation
- 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)
This commit is contained in:
+63
-152
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user