Compare commits
30 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c9d8852609 | |||
| 11e9a257a1 | |||
| ead202ad8b | |||
| effc86e15b | |||
| 0f9809e423 | |||
| c2736d20c1 | |||
| 084cff4fe6 | |||
| ef3fc6039e | |||
| 3599513128 | |||
| 7dd8f53f2f | |||
| 90bb7251e3 | |||
| e57bef95e5 | |||
| 71b4465595 | |||
| 9b63e5368e | |||
| 8f265d00ba | |||
| 5a3a099b94 | |||
| 1f6f5dd08c | |||
| 6e532f64f5 | |||
| 7154c30b99 | |||
| ffe7baba78 | |||
| da9c256b43 | |||
| 1012d2c217 | |||
| 611c343e0c | |||
| 2857c27b7c | |||
| 745e202e21 | |||
| 5244e9fd3d | |||
| 774a5a44f3 | |||
| b535fd1ab3 | |||
| 87e504a1b5 | |||
| 802d2cef3f |
@@ -189,7 +189,7 @@ jobs:
|
|||||||
# ── Step 7: Smoke test (multi-endpoint) ───
|
# ── Step 7: Smoke test (multi-endpoint) ───
|
||||||
# Tests multiple endpoints to catch partial failures.
|
# Tests multiple endpoints to catch partial failures.
|
||||||
# Why: a single /dashboard check can miss backend-only outages;
|
# Why: a single /dashboard check can miss backend-only outages;
|
||||||
# testing /api/swagger confirms the API layer is healthy too.
|
# /health tests the API + database + runtime status.
|
||||||
- name: Verify (smoke test)
|
- name: Verify (smoke test)
|
||||||
run: |
|
run: |
|
||||||
echo "🔍 Smoke test..."
|
echo "🔍 Smoke test..."
|
||||||
@@ -212,7 +212,6 @@ jobs:
|
|||||||
|
|
||||||
check "/dashboard" "Dashboard" 200
|
check "/dashboard" "Dashboard" 200
|
||||||
check "/health" "Health API" 200
|
check "/health" "Health API" 200
|
||||||
check "/swagger" "API Swagger" 200
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Results: $PASS passed, $FAIL failed"
|
echo "Results: $PASS passed, $FAIL failed"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const activeView = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const routePaths: Record<string, string> = {
|
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',
|
Projects: '/projects', 'Task Board': '/tasks', Incidents: '/incidents', Calendar: '/calendar',
|
||||||
Agents: '/agents', Models: '/models', Activity: '/activity', 'Mobile Chat': '/chat', Settings: '/settings',
|
Agents: '/agents', Models: '/models', Activity: '/activity', 'Mobile Chat': '/chat', Settings: '/settings',
|
||||||
}
|
}
|
||||||
@@ -31,7 +31,7 @@ const navigate = (label: string) => {
|
|||||||
}
|
}
|
||||||
const mobileNavOpen = ref(false)
|
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(() => {
|
onMounted(() => {
|
||||||
if (auth.isAuthenticated) store.refresh()
|
if (auth.isAuthenticated) store.refresh()
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { X } from '@lucide/vue'
|
import { X, ExternalLink } from '@lucide/vue'
|
||||||
import type { AgentNodeData } from '../../composables/useDashboardData'
|
import type { AgentNodeData } from '../../composables/useDashboardData'
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
@@ -25,6 +25,9 @@ defineEmits<{
|
|||||||
<div>
|
<div>
|
||||||
<h2>{{ agent.name }}</h2>
|
<h2>{{ agent.name }}</h2>
|
||||||
<span class="modal-role">{{ agent.role }}</span>
|
<span class="modal-role">{{ agent.role }}</span>
|
||||||
|
<a :href="`/agents/${agent.id}`" class="agent-link-btn" title="Open agent config">
|
||||||
|
<ExternalLink :size="12" />
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="modal-close-btn" @click="$emit('close')" aria-label="Close">
|
<button class="modal-close-btn" @click="$emit('close')" aria-label="Close">
|
||||||
@@ -38,7 +41,34 @@ defineEmits<{
|
|||||||
<!-- Current Task -->
|
<!-- Current Task -->
|
||||||
<section class="modal-section">
|
<section class="modal-section">
|
||||||
<h3 class="section-label">Current Task</h3>
|
<h3 class="section-label">Current Task</h3>
|
||||||
<p class="section-value">{{ agent.currentTask }}</p>
|
<p class="section-value">
|
||||||
|
{{ agent.currentTask }}
|
||||||
|
<span class="thinking-dots">
|
||||||
|
<span class="thinking-dot blue"></span>
|
||||||
|
<span class="thinking-dot violet"></span>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Live Thinking -->
|
||||||
|
<section class="modal-section">
|
||||||
|
<h3 class="section-label">Live Thinking</h3>
|
||||||
|
<div class="thinking-panel">
|
||||||
|
<div class="thinking-stream" ref="thinkingStreamRef">
|
||||||
|
<div
|
||||||
|
v-for="(msg, idx) in agent.thinkingStream"
|
||||||
|
:key="idx"
|
||||||
|
class="thinking-entry"
|
||||||
|
:style="{ animationDelay: `${idx * 0.05}s` }"
|
||||||
|
>
|
||||||
|
<span class="entry-time">{{ msg.time }}</span>
|
||||||
|
<span class="entry-text">{{ msg.text }}</span>
|
||||||
|
</div>
|
||||||
|
<div v-if="!agent.thinkingStream?.length" class="thinking-placeholder">
|
||||||
|
Waiting for thought stream...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Goal + Progress -->
|
<!-- Goal + Progress -->
|
||||||
@@ -66,7 +96,8 @@ defineEmits<{
|
|||||||
class="work-step"
|
class="work-step"
|
||||||
>
|
>
|
||||||
<span class="step-dot"></span>
|
<span class="step-dot"></span>
|
||||||
<span class="step-text">{{ step }}</span>
|
<span class="step-time">{{ step.time }}</span>
|
||||||
|
<span class="step-text">{{ step.text }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -74,15 +105,6 @@ defineEmits<{
|
|||||||
<!-- Footer Stats -->
|
<!-- Footer Stats -->
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<span class="footer-badge">Runtime: {{ runtime }}</span>
|
<span class="footer-badge">Runtime: {{ runtime }}</span>
|
||||||
<span
|
|
||||||
class="footer-badge"
|
|
||||||
:style="{
|
|
||||||
color: agent.workload > 65 ? '#eab308' : '#22c55e',
|
|
||||||
borderColor: agent.workload > 65 ? 'rgba(234,179,8,0.2)' : 'rgba(34,197,94,0.2)',
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
Workload: {{ agent.workload }}%
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -168,6 +190,29 @@ defineEmits<{
|
|||||||
color: #6b7385;
|
color: #6b7385;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
.agent-link-btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
margin-left: 4px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: transparent;
|
||||||
|
color: #6b7385;
|
||||||
|
opacity: 0.4;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: opacity 0.2s;
|
||||||
|
flex-shrink: 0;
|
||||||
|
text-decoration: none;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.agent-link-btn:hover {
|
||||||
|
opacity: 1;
|
||||||
|
color: var(--agent-color);
|
||||||
|
}
|
||||||
|
|
||||||
.modal-close-btn {
|
.modal-close-btn {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
@@ -211,6 +256,9 @@ defineEmits<{
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #e8eaf0;
|
color: #e8eaf0;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Progress */
|
/* Progress */
|
||||||
@@ -241,6 +289,87 @@ defineEmits<{
|
|||||||
transition: width 0.5s ease;
|
transition: width 0.5s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Live Thinking */
|
||||||
|
.thinking-panel {
|
||||||
|
position: relative;
|
||||||
|
border: 1px solid rgba(139, 124, 246, 0.2);
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 14px;
|
||||||
|
background: rgba(12, 16, 22, 0.6);
|
||||||
|
overflow: hidden;
|
||||||
|
animation: panel-pulse 2.5s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
@keyframes panel-pulse {
|
||||||
|
0%, 100% { border-color: rgba(139, 124, 246, 0.25); box-shadow: 0 0 12px rgba(139,124,246,0.08); }
|
||||||
|
50% { border-color: rgba(139, 124, 246, 0.5); box-shadow: 0 0 24px rgba(139,124,246,0.18), 0 0 40px rgba(139,124,246,0.06); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.thinking-dots {
|
||||||
|
display: inline-flex;
|
||||||
|
gap: 6px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.thinking-dot {
|
||||||
|
width: 7px;
|
||||||
|
height: 7px;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
.thinking-dot.blue {
|
||||||
|
background: #3b82f6;
|
||||||
|
box-shadow: 0 0 8px #3b82f6;
|
||||||
|
animation: pulse-dot-blue 1.2s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
.thinking-dot.violet {
|
||||||
|
background: #8b7cf6;
|
||||||
|
box-shadow: 0 0 8px #8b7cf6;
|
||||||
|
animation: pulse-dot-violet 1.8s ease-in-out infinite 0.3s;
|
||||||
|
}
|
||||||
|
@keyframes pulse-dot-blue {
|
||||||
|
0%, 100% { opacity: 0.4; transform: scale(0.7); }
|
||||||
|
50% { opacity: 1; transform: scale(1.3); }
|
||||||
|
}
|
||||||
|
@keyframes pulse-dot-violet {
|
||||||
|
0%, 100% { opacity: 0.3; transform: scale(0.6); }
|
||||||
|
50% { opacity: 1; transform: scale(1.4); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.thinking-stream {
|
||||||
|
max-height: 160px;
|
||||||
|
overflow-y: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
.thinking-entry {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
align-items: baseline;
|
||||||
|
animation: slide-in-right 0.3s ease-out both;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
@keyframes slide-in-right {
|
||||||
|
from { opacity: 0; transform: translateX(-16px); }
|
||||||
|
to { opacity: 1; transform: translateX(0); }
|
||||||
|
}
|
||||||
|
.entry-time {
|
||||||
|
font-size: 8.5px;
|
||||||
|
color: #6b7385;
|
||||||
|
flex-shrink: 0;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
min-width: 42px;
|
||||||
|
}
|
||||||
|
.entry-text {
|
||||||
|
color: #9ea5b3;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
.thinking-placeholder {
|
||||||
|
font-size: 10px;
|
||||||
|
color: #4a5160;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
/* Working Feed */
|
/* Working Feed */
|
||||||
.work-feed {
|
.work-feed {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -265,6 +394,13 @@ defineEmits<{
|
|||||||
color: #7e8799;
|
color: #7e8799;
|
||||||
line-height: 1.35;
|
line-height: 1.35;
|
||||||
}
|
}
|
||||||
|
.step-time {
|
||||||
|
font-size: 8.5px;
|
||||||
|
color: #6b7385;
|
||||||
|
flex-shrink: 0;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
min-width: 36px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Footer */
|
/* Footer */
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
|
|||||||
@@ -1,79 +1,83 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { Clock, ChevronRight } from '@lucide/vue'
|
import { Plus, Circle, ChevronRight } from '@lucide/vue'
|
||||||
import type { MissionData } from '../../composables/useDashboardData'
|
import type { OpenTask } from '../../composables/useDashboardData'
|
||||||
|
|
||||||
const props = defineProps<{
|
defineProps<{
|
||||||
mission: MissionData
|
tasks: OpenTask[]
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const statusColor: Record<string, string> = {
|
const emit = defineEmits<{
|
||||||
healthy: '#22c55e',
|
newTask: []
|
||||||
attention: '#eab308',
|
'go-board': []
|
||||||
blocked: '#ef4444',
|
}>()
|
||||||
paused: '#6b7280',
|
|
||||||
}
|
|
||||||
|
|
||||||
const statusLabel = computed(() => {
|
const expandedId = ref<string | null>(null)
|
||||||
const map: Record<string, string> = {
|
|
||||||
healthy: 'Healthy',
|
function toggleExpand(id: string) {
|
||||||
attention: 'Warning',
|
expandedId.value = expandedId.value === id ? null : id
|
||||||
blocked: 'Blocked',
|
}
|
||||||
paused: 'Paused',
|
|
||||||
}
|
|
||||||
return map[props.mission.status] ?? props.mission.status
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<article class="mission-card" tabindex="0">
|
<div class="task-card-panel">
|
||||||
<div class="mission-head">
|
<div class="task-header">
|
||||||
<h3>{{ mission.name }}</h3>
|
<h2 class="task-title">Offene Aufgaben</h2>
|
||||||
<span
|
<button class="new-task-btn" @click="emit('newTask')">
|
||||||
class="mission-status"
|
<Plus :size="12" />
|
||||||
:style="{ color: statusColor[mission.status] }"
|
<span>New Task</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="task-list">
|
||||||
|
<div v-if="tasks.length === 0" class="task-empty">
|
||||||
|
Keine offenen Aufgaben. Erstelle eine mit + New Task.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<TransitionGroup name="task">
|
||||||
|
<div
|
||||||
|
v-for="task in tasks"
|
||||||
|
:key="task.id"
|
||||||
|
class="task-item"
|
||||||
|
:class="{ expanded: expandedId === task.id }"
|
||||||
|
@click="toggleExpand(task.id)"
|
||||||
>
|
>
|
||||||
{{ statusLabel }}
|
<div class="task-main">
|
||||||
|
<Circle
|
||||||
|
:size="8"
|
||||||
|
class="task-source-dot"
|
||||||
|
:class="task.source === 'iris' ? 'dot-iris' : 'dot-bao'"
|
||||||
|
fill="currentColor"
|
||||||
|
/>
|
||||||
|
<div class="task-content">
|
||||||
|
<div class="task-title-row">
|
||||||
|
<span class="task-name">{{ task.title }}</span>
|
||||||
|
<span class="task-time">{{ task.createdAt }}</span>
|
||||||
|
</div>
|
||||||
|
<span
|
||||||
|
class="task-source-tag"
|
||||||
|
:class="task.source === 'iris' ? 'tag-iris' : 'tag-bao'"
|
||||||
|
>
|
||||||
|
{{ task.source === 'iris' ? 'Iris' : 'Bao' }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="progress-track">
|
<div v-if="expandedId === task.id" class="task-detail">
|
||||||
<div
|
{{ task.detail }}
|
||||||
class="progress-fill"
|
</div>
|
||||||
:style="{
|
</div>
|
||||||
width: `${mission.progress}%`,
|
</TransitionGroup>
|
||||||
background: `linear-gradient(90deg, ${statusColor[mission.status]}, color-mix(in srgb, ${statusColor[mission.status]} 65%, #fff))`,
|
|
||||||
}"
|
|
||||||
></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mission-body">
|
<button class="task-board-btn" @click="emit('go-board')">
|
||||||
<div class="mission-detail">
|
<span>Zum Task Board</span>
|
||||||
<span class="detail-label">Current Task</span>
|
|
||||||
<span class="detail-value">{{ mission.currentTask }}</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mission-footer">
|
|
||||||
<div class="mission-meta">
|
|
||||||
<Clock :size="10" />
|
|
||||||
<span>{{ mission.lastActivity }}</span>
|
|
||||||
</div>
|
|
||||||
<div class="mission-tasks">
|
|
||||||
<span class="tasks-count">{{ mission.remainingTasks }}</span>
|
|
||||||
<span class="tasks-label">remaining</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mission-arrow">
|
|
||||||
<ChevronRight :size="14" />
|
<ChevronRight :size="14" />
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.mission-card {
|
.task-card-panel {
|
||||||
position: relative;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
@@ -81,121 +85,181 @@ const statusLabel = computed(() => {
|
|||||||
background: rgba(22, 27, 34, 0.65);
|
background: rgba(22, 27, 34, 0.65);
|
||||||
border: 1px solid rgba(139, 124, 246, 0.08);
|
border: 1px solid rgba(139, 124, 246, 0.08);
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
cursor: pointer;
|
transition: border-color 0.2s ease;
|
||||||
transition: all 0.25s ease;
|
|
||||||
backdrop-filter: blur(6px);
|
backdrop-filter: blur(6px);
|
||||||
-webkit-backdrop-filter: blur(6px);
|
-webkit-backdrop-filter: blur(6px);
|
||||||
}
|
}
|
||||||
.mission-card:hover {
|
.task-card-panel:hover {
|
||||||
border-color: rgba(139, 124, 246, 0.2);
|
border-color: rgba(139, 124, 246, 0.15);
|
||||||
transform: translateY(-1px);
|
|
||||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
||||||
}
|
|
||||||
.mission-card:focus-visible {
|
|
||||||
outline: 2px solid #a78bfa;
|
|
||||||
outline-offset: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mission-head {
|
.task-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
.mission-head h3 {
|
.task-title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 12px;
|
font-size: 11px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #e8eaf0;
|
color: #e8eaf0;
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
.mission-status {
|
.new-task-btn {
|
||||||
font-size: 8px;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
padding: 4px 10px;
|
||||||
|
background: rgba(139, 124, 246, 0.12);
|
||||||
|
border: 1px solid rgba(139, 124, 246, 0.2);
|
||||||
|
border-radius: 6px;
|
||||||
|
color: #a78bfa;
|
||||||
|
font-size: 9px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-transform: capitalize;
|
cursor: pointer;
|
||||||
letter-spacing: 0.04em;
|
transition: all 0.2s;
|
||||||
flex-shrink: 0;
|
}
|
||||||
|
.new-task-btn:hover {
|
||||||
|
background: rgba(139, 124, 246, 0.2);
|
||||||
|
border-color: rgba(139, 124, 246, 0.35);
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-track {
|
.task-list {
|
||||||
height: 3px;
|
|
||||||
background: rgba(255, 255, 255, 0.06);
|
|
||||||
border-radius: 3px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.progress-fill {
|
|
||||||
height: 100%;
|
|
||||||
border-radius: 3px;
|
|
||||||
transition: width 0.5s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mission-body {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
border-radius: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.15s;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
}
|
||||||
|
.task-item:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.03);
|
||||||
|
border-color: rgba(139, 124, 246, 0.08);
|
||||||
|
}
|
||||||
|
.task-item.expanded {
|
||||||
|
background: rgba(139, 124, 246, 0.04);
|
||||||
|
border-color: rgba(139, 124, 246, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-main {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
.mission-detail {
|
|
||||||
|
.task-source-dot {
|
||||||
|
margin-top: 4px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.dot-iris {
|
||||||
|
color: #a78bfa;
|
||||||
|
}
|
||||||
|
.dot-bao {
|
||||||
|
color: #3b82f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-content {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 3px;
|
gap: 3px;
|
||||||
}
|
}
|
||||||
.detail-label {
|
.task-title-row {
|
||||||
font-size: 8px;
|
|
||||||
color: #6b7385;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 0.06em;
|
|
||||||
}
|
|
||||||
.detail-value {
|
|
||||||
font-size: 10px;
|
|
||||||
color: #7e8799;
|
|
||||||
line-height: 1.35;
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mission-footer {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
gap: 8px;
|
||||||
}
|
}
|
||||||
.mission-meta {
|
.task-name {
|
||||||
display: flex;
|
font-size: 10px;
|
||||||
align-items: center;
|
font-weight: 500;
|
||||||
gap: 4px;
|
color: #d1d5db;
|
||||||
font-size: 9px;
|
line-height: 1.35;
|
||||||
|
}
|
||||||
|
.task-time {
|
||||||
|
font-size: 8.5px;
|
||||||
color: #6b7385;
|
color: #6b7385;
|
||||||
}
|
flex-shrink: 0;
|
||||||
.mission-tasks {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 4px;
|
|
||||||
}
|
|
||||||
.tasks-count {
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: #a78bfa;
|
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
}
|
}
|
||||||
.tasks-label {
|
.task-source-tag {
|
||||||
|
display: inline-block;
|
||||||
font-size: 8px;
|
font-size: 8px;
|
||||||
color: #6b7385;
|
font-weight: 600;
|
||||||
text-transform: uppercase;
|
padding: 1px 7px;
|
||||||
letter-spacing: 0.04em;
|
border-radius: 4px;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
align-self: flex-start;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
.tag-iris {
|
||||||
|
background: rgba(167, 139, 250, 0.15);
|
||||||
|
color: #a78bfa;
|
||||||
|
}
|
||||||
|
.tag-bao {
|
||||||
|
background: rgba(59, 130, 246, 0.15);
|
||||||
|
color: #3b82f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mission-arrow {
|
.task-detail {
|
||||||
position: absolute;
|
padding: 6px 10px;
|
||||||
right: 10px;
|
margin: 0 0 2px 16px;
|
||||||
bottom: 10px;
|
font-size: 9.5px;
|
||||||
color: #6b7385;
|
color: #7e8799;
|
||||||
opacity: 0;
|
line-height: 1.45;
|
||||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
background: rgba(0, 0, 0, 0.15);
|
||||||
|
border-radius: 6px;
|
||||||
|
border-left: 2px solid rgba(139, 124, 246, 0.2);
|
||||||
}
|
}
|
||||||
.mission-card:hover .mission-arrow {
|
|
||||||
opacity: 1;
|
.task-empty {
|
||||||
transform: translateX(2px);
|
text-align: center;
|
||||||
|
padding: 16px 8px;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #6b7385;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-board-btn {
|
||||||
|
width: 100%; margin-top: 12px; padding: 10px;
|
||||||
|
display: flex; align-items: center; justify-content: center; gap: 6px;
|
||||||
|
background: rgba(139, 124, 246, 0.08);
|
||||||
|
border: 1px solid rgba(139, 124, 246, 0.15);
|
||||||
|
border-radius: 10px; color: #a78bfa;
|
||||||
|
font-size: 10px; font-weight: 600; cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
.task-board-btn:hover {
|
||||||
|
background: rgba(139, 124, 246, 0.15);
|
||||||
|
border-color: rgba(139, 124, 246, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* TransitionGroup */
|
||||||
|
.task-enter-active {
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
.task-leave-active {
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.task-enter-from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(-6px);
|
||||||
|
}
|
||||||
|
.task-leave-to {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(6px);
|
||||||
|
}
|
||||||
|
.task-move {
|
||||||
|
transition: transform 0.3s ease;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,10 +1,52 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Activity } from '@lucide/vue'
|
import { ref, computed } from 'vue'
|
||||||
|
import { Activity, ChevronLeft, ChevronRight, X } from '@lucide/vue'
|
||||||
import type { FeedEntry } from '../../composables/useDashboardData'
|
import type { FeedEntry } from '../../composables/useDashboardData'
|
||||||
|
|
||||||
defineProps<{
|
const props = defineProps<{
|
||||||
entries: FeedEntry[]
|
entries: FeedEntry[]
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
|
// ── Compact feed (5 items) ──
|
||||||
|
const compactEntries = computed(() => props.entries.slice(0, 5))
|
||||||
|
|
||||||
|
// ── Feed Detail Modal ──
|
||||||
|
const showDetailModal = ref(false)
|
||||||
|
const selectedDayOffset = ref(0) // 0 = today, -1 = yesterday, etc.
|
||||||
|
|
||||||
|
function openDetailModal() {
|
||||||
|
selectedDayOffset.value = 0
|
||||||
|
showDetailModal.value = true
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeDetailModal() {
|
||||||
|
showDetailModal.value = false
|
||||||
|
}
|
||||||
|
|
||||||
|
function dayLabel(offset: number): string {
|
||||||
|
if (offset === 0) return 'Heute'
|
||||||
|
if (offset === -1) return 'Gestern'
|
||||||
|
if (offset === -2) return 'Vorgestern'
|
||||||
|
const d = new Date()
|
||||||
|
d.setDate(d.getDate() + offset)
|
||||||
|
return d.toLocaleDateString('de-DE', { weekday: 'long', day: 'numeric', month: 'long' })
|
||||||
|
}
|
||||||
|
|
||||||
|
function navigateDay(dir: -1 | 1) {
|
||||||
|
const next = selectedDayOffset.value + dir
|
||||||
|
if (next >= -6 && next <= 0) {
|
||||||
|
selectedDayOffset.value = next
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const filteredEntries = computed(() => {
|
||||||
|
const targetDate = new Date()
|
||||||
|
targetDate.setDate(targetDate.getDate() + selectedDayOffset.value)
|
||||||
|
const targetStr = targetDate.toISOString().slice(0, 10)
|
||||||
|
return props.entries.filter(e => e.timestamp.slice(0, 10) === targetStr)
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -17,7 +59,7 @@ defineProps<{
|
|||||||
<div class="feed-list">
|
<div class="feed-list">
|
||||||
<TransitionGroup name="feed">
|
<TransitionGroup name="feed">
|
||||||
<div
|
<div
|
||||||
v-for="(entry, idx) in entries.slice(0, 8)"
|
v-for="(entry, idx) in compactEntries"
|
||||||
:key="entry.timestamp + '-' + idx"
|
:key="entry.timestamp + '-' + idx"
|
||||||
class="feed-entry"
|
class="feed-entry"
|
||||||
>
|
>
|
||||||
@@ -33,7 +75,61 @@ defineProps<{
|
|||||||
<div v-if="entries.length === 0" class="feed-empty">
|
<div v-if="entries.length === 0" class="feed-empty">
|
||||||
<span>No operations recorded yet.</span>
|
<span>No operations recorded yet.</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<button v-if="entries.length > 5" class="feed-more-btn" @click="openDetailModal">
|
||||||
|
Mehr anzeigen
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- ── Feed Detail Modal ── -->
|
||||||
|
<Teleport to="body">
|
||||||
|
<div v-if="showDetailModal" class="modal-overlay" @click.self="closeDetailModal">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h2 class="modal-title">Operations Log</h2>
|
||||||
|
<button class="modal-close-btn" @click="closeDetailModal">
|
||||||
|
<X :size="16" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-nav">
|
||||||
|
<button
|
||||||
|
class="nav-btn"
|
||||||
|
:disabled="selectedDayOffset <= -6"
|
||||||
|
@click="navigateDay(-1)"
|
||||||
|
>
|
||||||
|
<ChevronLeft :size="14" />
|
||||||
|
</button>
|
||||||
|
<span class="nav-label">{{ dayLabel(selectedDayOffset) }}</span>
|
||||||
|
<button
|
||||||
|
class="nav-btn"
|
||||||
|
:disabled="selectedDayOffset >= 0"
|
||||||
|
@click="navigateDay(1)"
|
||||||
|
>
|
||||||
|
<ChevronRight :size="14" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-entries">
|
||||||
|
<div v-if="filteredEntries.length === 0" class="modal-empty">
|
||||||
|
Keine Einträge für diesen Tag.
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
v-for="(entry, idx) in filteredEntries"
|
||||||
|
:key="entry.timestamp + '-' + idx"
|
||||||
|
class="feed-entry"
|
||||||
|
>
|
||||||
|
<span class="feed-time">{{ entry.time }}</span>
|
||||||
|
<span class="feed-bullet">·</span>
|
||||||
|
<span class="feed-agent" :class="'agent-' + entry.agent.toLowerCase()">
|
||||||
|
{{ entry.agent }}
|
||||||
|
</span>
|
||||||
|
<span class="feed-action">{{ entry.action }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Teleport>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -121,9 +217,8 @@ defineProps<{
|
|||||||
}
|
}
|
||||||
.feed-action {
|
.feed-action {
|
||||||
color: #7e8799;
|
color: #7e8799;
|
||||||
white-space: nowrap;
|
white-space: normal;
|
||||||
overflow: hidden;
|
word-break: break-word;
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.feed-empty {
|
.feed-empty {
|
||||||
@@ -133,6 +228,26 @@ defineProps<{
|
|||||||
color: #6b7385;
|
color: #6b7385;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feed-more-btn {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
padding: 8px;
|
||||||
|
margin-top: 4px;
|
||||||
|
background: rgba(139, 124, 246, 0.08);
|
||||||
|
border: 1px solid rgba(139, 124, 246, 0.12);
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #a78bfa;
|
||||||
|
font-size: 9.5px;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.feed-more-btn:hover {
|
||||||
|
background: rgba(139, 124, 246, 0.14);
|
||||||
|
border-color: rgba(139, 124, 246, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
/* TransitionGroup */
|
/* TransitionGroup */
|
||||||
.feed-enter-active {
|
.feed-enter-active {
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
@@ -152,4 +267,104 @@ defineProps<{
|
|||||||
.feed-move {
|
.feed-move {
|
||||||
transition: transform 0.3s ease;
|
transition: transform 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ── Modal Overlay ── */
|
||||||
|
:global(.modal-overlay) {
|
||||||
|
position: fixed;
|
||||||
|
inset: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
background: rgba(0, 0, 0, 0.6);
|
||||||
|
backdrop-filter: blur(4px);
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
:global(.modal-content) {
|
||||||
|
background: #161b22;
|
||||||
|
border: 1px solid rgba(139, 124, 246, 0.15);
|
||||||
|
border-radius: 16px;
|
||||||
|
padding: 24px;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 520px;
|
||||||
|
max-height: 80vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
:global(.modal-header) {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
:global(.modal-title) {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #e8eaf0;
|
||||||
|
}
|
||||||
|
:global(.modal-close-btn) {
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
border: none;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
border-radius: 6px;
|
||||||
|
color: #7e8799;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s;
|
||||||
|
}
|
||||||
|
:global(.modal-close-btn:hover) {
|
||||||
|
background: rgba(255, 255, 255, 0.1);
|
||||||
|
color: #e8eaf0;
|
||||||
|
}
|
||||||
|
:global(.modal-nav) {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
:global(.nav-btn) {
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
border: 1px solid rgba(139, 124, 246, 0.15);
|
||||||
|
background: rgba(139, 124, 246, 0.08);
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #a78bfa;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s;
|
||||||
|
}
|
||||||
|
:global(.nav-btn:hover:not(:disabled)) {
|
||||||
|
background: rgba(139, 124, 246, 0.16);
|
||||||
|
border-color: rgba(139, 124, 246, 0.3);
|
||||||
|
}
|
||||||
|
:global(.nav-btn:disabled) {
|
||||||
|
opacity: 0.3;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
:global(.nav-label) {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #d1d5db;
|
||||||
|
min-width: 100px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
:global(.modal-entries) {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
overflow-y: auto;
|
||||||
|
max-height: 50vh;
|
||||||
|
padding-right: 4px;
|
||||||
|
}
|
||||||
|
:global(.modal-empty) {
|
||||||
|
text-align: center;
|
||||||
|
padding: 24px 0;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #6b7385;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,345 +1,665 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref } from 'vue'
|
import { ref, onMounted, onUnmounted, nextTick, computed } from 'vue'
|
||||||
import { Bot, Sparkles } from '@lucide/vue'
|
import { Bot, Code2, Server, Shield, Search, Terminal } from '@lucide/vue'
|
||||||
import AgentNode from './AgentNode.vue'
|
|
||||||
import AgentModal from './AgentModal.vue'
|
interface AgentData {
|
||||||
import type { AgentNodeData } from '../../composables/useDashboardData'
|
id: string
|
||||||
|
name: string
|
||||||
|
role: string
|
||||||
|
description: string
|
||||||
|
tags: string[]
|
||||||
|
color: string
|
||||||
|
icon: string
|
||||||
|
hero?: boolean
|
||||||
|
task?: string
|
||||||
|
runtime?: string
|
||||||
|
model?: string
|
||||||
|
}
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
agents: AgentNodeData[]
|
agents: AgentData[]
|
||||||
irisRuntime: string
|
heroId?: string
|
||||||
getAgentRuntime: (id: string) => string
|
activeAgents?: string[]
|
||||||
irisFocus: string
|
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const selectedAgent = ref<AgentNodeData | null>(null)
|
const emit = defineEmits<{
|
||||||
|
select: [id: string]
|
||||||
|
}>()
|
||||||
|
|
||||||
function onAgentSelect(agentId: string): void {
|
// ── Layout refs ──
|
||||||
const agent = props.agents.find(a => a.id === agentId)
|
const networkRef = ref<HTMLDivElement | null>(null)
|
||||||
if (agent) selectedAgent.value = agent
|
|
||||||
|
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 {
|
// ── Icon resolver ──
|
||||||
selectedAgent.value = null
|
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> = {
|
// ── Position measurement ──
|
||||||
developer: '#3b82f6',
|
function updatePositions() {
|
||||||
devops: '#eab308',
|
if (!networkRef.value) return
|
||||||
researcher: '#22c55e',
|
const rect = networkRef.value.getBoundingClientRect()
|
||||||
reviewer: '#a855f7',
|
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> = {
|
// ── SVG path computation ──
|
||||||
developer: true,
|
interface ConnectionPath {
|
||||||
devops: false,
|
d: string
|
||||||
researcher: true,
|
length: number
|
||||||
reviewer: false,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const NETWORK_W = 440
|
const connectionPaths = computed<Record<string, ConnectionPath | null>>(() => {
|
||||||
const IRIS_CX = NETWORK_W / 2
|
const result: Record<string, ConnectionPath | null> = {}
|
||||||
const IRIS_CY = 80
|
const pos = cardPositions.value
|
||||||
const AGENT_START_Y = 170
|
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(() => [
|
const children = childAgents.value
|
||||||
{ id: 'developer', x: 60, y: AGENT_START_Y },
|
const total = children.length
|
||||||
{ id: 'researcher', x: NETWORK_W - 60, y: AGENT_START_Y },
|
if (total === 0) return result
|
||||||
{ id: 'devops', x: 60, y: AGENT_START_Y + 110 },
|
|
||||||
{ id: 'reviewer', x: NETWORK_W - 60, y: AGENT_START_Y + 110 },
|
|
||||||
])
|
|
||||||
|
|
||||||
const activeLines = computed(() =>
|
for (let idx = 0; idx < total; idx++) {
|
||||||
agentPositions.value.filter(p => agentLineActive[p.id])
|
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.38 + t * 0.24)
|
||||||
|
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 + 70
|
||||||
|
const cp2x = endX + (isLeftColumn ? 35 : -35)
|
||||||
|
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', `40 ${p.length}`)
|
||||||
|
pulseEl.setAttribute('stroke-dashoffset', String(-pulseOffsets.value[id]))
|
||||||
|
}
|
||||||
|
const pulseEl2 = pulseElements2.value[id]
|
||||||
|
if (pulseEl2 && p && p.length > 0) {
|
||||||
|
if (pulseOffsets2.value[id] === undefined) {
|
||||||
|
pulseOffsets2.value[id] = 0
|
||||||
|
}
|
||||||
|
pulseEl2.setAttribute('stroke-dasharray', `40 ${p.length}`)
|
||||||
|
pulseEl2.setAttribute('stroke-dashoffset', String(-pulseOffsets2.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
|
||||||
|
}
|
||||||
|
if (pulseOffsets2.value[id] === undefined) {
|
||||||
|
pulseOffsets2.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 pulseEl2 = pulseElements2.value[id]
|
||||||
|
const p = connectionPaths.value[id]
|
||||||
|
if (!pathEl || !pulseEl || !p) continue
|
||||||
|
|
||||||
|
const len = p.length
|
||||||
|
if (len <= 0) continue
|
||||||
|
|
||||||
|
const speed = speeds[id] ?? len / 3000
|
||||||
|
const cycleLen = len + 40
|
||||||
|
|
||||||
|
// Pulse 1
|
||||||
|
const currentOffset = pulseOffsets.value[id] ?? 0
|
||||||
|
const newOffset = currentOffset + speed * dt
|
||||||
|
pulseOffsets.value[id] = newOffset > cycleLen ? newOffset % cycleLen : newOffset
|
||||||
|
pulseEl.setAttribute('stroke-dashoffset', String(-pulseOffsets.value[id]))
|
||||||
|
|
||||||
|
// Pulse 2 (offset by half cycle)
|
||||||
|
if (pulseEl2) {
|
||||||
|
const offset2 = (pulseOffsets.value[id] + cycleLen / 2) % cycleLen
|
||||||
|
pulseOffsets2.value[id] = offset2
|
||||||
|
pulseEl2.setAttribute('stroke-dashoffset', String(-offset2))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="team-network">
|
<div ref="networkRef" class="ai-team-network">
|
||||||
<!-- Iris Node -->
|
<!-- SVG Connection Layer -->
|
||||||
<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 -->
|
|
||||||
<svg
|
<svg
|
||||||
|
v-if="svgWidth > 0 && svgHeight > 0"
|
||||||
class="network-svg"
|
class="network-svg"
|
||||||
:viewBox="`0 0 ${NETWORK_W} 400`"
|
:width="svgWidth"
|
||||||
preserveAspectRatio="xMidYMid meet"
|
:height="svgHeight"
|
||||||
|
:viewBox="`0 0 ${svgWidth} ${svgHeight}`"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
>
|
>
|
||||||
<defs>
|
<defs>
|
||||||
<filter id="lineglow">
|
<filter
|
||||||
<feGaussianBlur stdDeviation="2" result="blur" />
|
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>
|
<feMerge>
|
||||||
|
<feMergeNode in="blur" />
|
||||||
<feMergeNode in="blur" />
|
<feMergeNode in="blur" />
|
||||||
<feMergeNode in="SourceGraphic" />
|
<feMergeNode in="SourceGraphic" />
|
||||||
</feMerge>
|
</feMerge>
|
||||||
</filter>
|
</filter>
|
||||||
</defs>
|
</defs>
|
||||||
|
|
||||||
<line
|
<!-- Connection lines for each agent -->
|
||||||
v-for="pos in agentPositions"
|
<template v-for="agent in childAgents" :key="agent.id">
|
||||||
:key="'conn-' + pos.id"
|
<!-- Base line -->
|
||||||
:x1="IRIS_CX" :y1="IRIS_CY + 32"
|
<path
|
||||||
:x2="pos.x + 22" :y2="pos.y"
|
v-if="connectionPaths[agent.id]"
|
||||||
:stroke="agentColorMap[pos.id]"
|
:ref="storePathRef(agent.id)"
|
||||||
:stroke-width="agentLineActive[pos.id] ? 1.5 : 1"
|
:d="connectionPaths[agent.id]!.d"
|
||||||
:opacity="agentLineActive[pos.id] ? 0.4 : 0.1"
|
:stroke="agent.color"
|
||||||
class="conn-line"
|
:stroke-width="isActive(agent.id) ? 2.5 : 1.5"
|
||||||
:class="{ 'line-pulse': agentLineActive[pos.id] }"
|
fill="none"
|
||||||
filter="url(#lineglow)"
|
:opacity="isActive(agent.id) ? 0.7 : 0.25"
|
||||||
|
stroke-linecap="round"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<g v-for="pos in activeLines" :key="'fx-' + pos.id">
|
<!-- Glow line for active agent -->
|
||||||
<circle
|
<path
|
||||||
:cx="pos.x + 22" :cy="pos.y"
|
v-if="isActive(agent.id) && connectionPaths[agent.id]"
|
||||||
r="2.5" fill="#ffffff"
|
:d="connectionPaths[agent.id]!.d"
|
||||||
class="pulse-end" :style="{ '--pulse-color': agentColorMap[pos.id] }"
|
: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"
|
<!-- Pulse line 1 (white dashed segment moving along) -->
|
||||||
r="2.5" fill="#ffffff"
|
<path
|
||||||
class="pulse-origin"
|
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>
|
|
||||||
|
<!-- Pulse line 2 (offset by half cycle) -->
|
||||||
|
<path
|
||||||
|
v-if="connectionPaths[agent.id]"
|
||||||
|
:ref="storePulseRef2(agent.id)"
|
||||||
|
:d="connectionPaths[agent.id]!.d"
|
||||||
|
stroke="white"
|
||||||
|
stroke-width="3"
|
||||||
|
fill="none"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
:opacity="isActive(agent.id) ? 0.8 : 0.3"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
<!-- Agent Cards -->
|
<!-- Cards Layer (above SVG) -->
|
||||||
<div class="agents-grid">
|
<div class="cards-layer">
|
||||||
<AgentNode
|
<!-- Hero: Iris centered top -->
|
||||||
v-for="agent in agents"
|
<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>
|
||||||
|
<div v-if="hero.task" class="task-row">
|
||||||
|
<span class="node-task">
|
||||||
|
<span class="node-task-dot">●</span>
|
||||||
|
{{ hero.task }}
|
||||||
|
</span>
|
||||||
|
<span v-if="hero.runtime" class="node-runtime">{{ hero.runtime }}</span>
|
||||||
|
<span v-if="hero.model" class="node-model">{{ hero.model }}</span>
|
||||||
|
</div>
|
||||||
|
<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-arrow">
|
||||||
|
<span class="arrow-icon">→</span>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Agent Grid: 2 columns x 2 rows -->
|
||||||
|
<div class="agent-grid">
|
||||||
|
<div
|
||||||
|
v-for="agent in childAgents"
|
||||||
:key="agent.id"
|
:key="agent.id"
|
||||||
:agent="agent"
|
:data-agent-id="agent.id"
|
||||||
:runtime="getAgentRuntime(agent.id)"
|
class="agent-slot"
|
||||||
@select="onAgentSelect"
|
>
|
||||||
/>
|
<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>
|
||||||
|
<div v-if="agent.task" class="task-row">
|
||||||
|
<span class="node-task">
|
||||||
|
<span class="node-task-dot">●</span>
|
||||||
|
{{ agent.task }}
|
||||||
|
</span>
|
||||||
|
<span v-if="agent.runtime" class="node-runtime">{{ agent.runtime }}</span>
|
||||||
|
<span v-if="agent.model" class="node-model">{{ agent.model }}</span>
|
||||||
|
</div>
|
||||||
|
<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-arrow">
|
||||||
|
<span class="arrow-icon">→</span>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Focus Banner -->
|
|
||||||
<div v-if="irisFocus" class="focus-banner">
|
|
||||||
<Sparkles :size="12" class="focus-icon" />
|
|
||||||
<span>{{ irisFocus }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Agent Modal -->
|
|
||||||
<AgentModal
|
|
||||||
v-if="selectedAgent"
|
|
||||||
:agent="selectedAgent"
|
|
||||||
:runtime="getAgentRuntime(selectedAgent.id)"
|
|
||||||
@close="closeModal"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.team-network {
|
.ai-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;
|
|
||||||
position: relative;
|
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%;
|
width: 100%;
|
||||||
max-width: 320px;
|
background: transparent;
|
||||||
}
|
|
||||||
.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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SVG Lines */
|
|
||||||
.network-svg {
|
.network-svg {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
z-index: 0;
|
||||||
height: 100%;
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 1;
|
overflow: visible;
|
||||||
}
|
|
||||||
.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; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Agent Cards */
|
.cards-layer {
|
||||||
.agents-grid {
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-slot {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 520px;
|
||||||
|
transition: border-color 0.3s, box-shadow 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.agent-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
gap: 10px;
|
gap: 16px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
max-width: 820px;
|
||||||
z-index: 2;
|
|
||||||
margin-top: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Focus Banner */
|
.agent-slot {
|
||||||
.focus-banner {
|
width: 100%;
|
||||||
|
transition: border-color 0.3s, box-shadow 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Agent Card (inlined from old AgentCard.vue) ── */
|
||||||
|
.agent-card {
|
||||||
|
background: rgba(18, 22, 30, 0.45);
|
||||||
|
backdrop-filter: blur(12px);
|
||||||
|
-webkit-backdrop-filter: blur(12px);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 18px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.agent-card:hover {
|
||||||
|
background: rgba(18, 22, 30, 0.65);
|
||||||
|
border-color: var(--card-color, #8b7cf6);
|
||||||
|
box-shadow: 0 0 16px color-mix(in srgb, var(--card-color, #8b7cf6) 10%, transparent);
|
||||||
|
}
|
||||||
|
.hero-card {
|
||||||
|
background: rgba(18, 22, 30, 0.45);
|
||||||
|
backdrop-filter: blur(12px);
|
||||||
|
-webkit-backdrop-filter: blur(12px);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||||
|
box-shadow: 0 0 20px rgba(139, 124, 246, 0.06);
|
||||||
|
}
|
||||||
|
.hero-card:hover {
|
||||||
|
background: rgba(18, 22, 30, 0.65);
|
||||||
|
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;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
width: 100%;
|
margin-bottom: 5px;
|
||||||
padding: 10px 16px;
|
flex-wrap: wrap;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
.focus-icon {
|
.card-name {
|
||||||
color: #eab308;
|
margin: 0;
|
||||||
flex-shrink: 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;
|
font-size: 10.5px;
|
||||||
color: #eab308;
|
color: #7e8799;
|
||||||
line-height: 1.35;
|
line-height: 1.5;
|
||||||
|
margin: 0 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
/* ── Task + Runtime Row ── */
|
||||||
.agents-grid {
|
.task-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 8px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.node-task {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #9ea5b3;
|
||||||
|
line-height: 1.4;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.node-task-dot {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 4px;
|
||||||
|
font-size: 8px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.node-runtime {
|
||||||
|
font-size: 9px;
|
||||||
|
color: #6b7385;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.node-model {
|
||||||
|
font-size: 8.5px;
|
||||||
|
color: #6b7385;
|
||||||
|
font-weight: 500;
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-left: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Tags ── */
|
||||||
|
.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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Hover Arrow (bottom-right) ── */
|
||||||
|
.card-arrow {
|
||||||
|
position: absolute;
|
||||||
|
right: 12px;
|
||||||
|
bottom: 12px;
|
||||||
|
color: #6b7385;
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateX(-6px);
|
||||||
|
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||||
|
}
|
||||||
|
.agent-card:hover .card-arrow {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
.arrow-icon {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 720px) {
|
||||||
|
.agent-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
.cards-layer {
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { computed } from 'vue'
|
|||||||
import {
|
import {
|
||||||
Activity, Bot, Boxes, Command, FileText,
|
Activity, Bot, Boxes, Command, FileText,
|
||||||
LayoutDashboard, ListTodo, LogOut, MessageSquareText, Settings,
|
LayoutDashboard, ListTodo, LogOut, MessageSquareText, Settings,
|
||||||
Shield, SlidersHorizontal, Sparkles, Users, BookOpen,
|
Shield, SlidersHorizontal, Sparkles, BookOpen,
|
||||||
AlertTriangle, Calendar,
|
AlertTriangle, Calendar,
|
||||||
} from '@lucide/vue'
|
} from '@lucide/vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
@@ -29,7 +29,6 @@ const navigation = [
|
|||||||
{ label: 'Dashboard', icon: LayoutDashboard },
|
{ label: 'Dashboard', icon: LayoutDashboard },
|
||||||
{ label: 'Memory', icon: FileText },
|
{ label: 'Memory', icon: FileText },
|
||||||
{ label: 'Docs', icon: BookOpen },
|
{ label: 'Docs', icon: BookOpen },
|
||||||
{ label: 'Team', icon: Users },
|
|
||||||
{ label: 'Security', icon: Shield },
|
{ label: 'Security', icon: Shield },
|
||||||
{ label: 'Projects', icon: Boxes },
|
{ label: 'Projects', icon: Boxes },
|
||||||
{ label: 'Task Board', icon: ListTodo },
|
{ 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>
|
||||||
@@ -5,32 +5,36 @@ export interface AgentNodeData {
|
|||||||
name: string
|
name: string
|
||||||
role: string
|
role: string
|
||||||
description: string
|
description: string
|
||||||
|
tags: string[]
|
||||||
color: string
|
color: string
|
||||||
icon: string
|
icon: string
|
||||||
|
task: string
|
||||||
|
runtime: string
|
||||||
|
model?: string
|
||||||
|
hero?: boolean
|
||||||
currentTask: string
|
currentTask: string
|
||||||
goal: string
|
goal: string
|
||||||
progress: number
|
progress: number
|
||||||
workload: number // 0-100
|
workload: number // 0-100
|
||||||
active: boolean
|
active: boolean
|
||||||
runtimeSeconds: number
|
runtimeSeconds: number
|
||||||
workingFeed: string[]
|
workingFeed: Array<{ time: string; text: string }>
|
||||||
|
thinkingStream?: Array<{ time: string; text: string }>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MissionData {
|
export interface OpenTask {
|
||||||
id: string
|
id: string
|
||||||
name: string
|
title: string
|
||||||
progress: number
|
detail: string
|
||||||
currentTask: string
|
source: 'bao' | 'iris'
|
||||||
lastActivity: string
|
createdAt: string
|
||||||
remainingTasks: number
|
|
||||||
status: 'healthy' | 'attention' | 'blocked' | 'paused'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FeedEntry {
|
export interface FeedEntry {
|
||||||
time: string
|
time: string
|
||||||
agent: string
|
agent: string
|
||||||
action: string
|
action: string
|
||||||
timestamp: number
|
timestamp: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ChatMessage {
|
export interface ChatMessage {
|
||||||
@@ -81,6 +85,7 @@ export function useDashboardData() {
|
|||||||
|
|
||||||
// Agent runtimes (simulated)
|
// Agent runtimes (simulated)
|
||||||
const agentStartTimes = reactive<Record<string, number>>({
|
const agentStartTimes = reactive<Record<string, number>>({
|
||||||
|
iris: now - 28800000,
|
||||||
developer: now - 3600000,
|
developer: now - 3600000,
|
||||||
devops: now - 1800000,
|
devops: now - 1800000,
|
||||||
researcher: now - 2700000,
|
researcher: now - 2700000,
|
||||||
@@ -98,13 +103,46 @@ export function useDashboardData() {
|
|||||||
|
|
||||||
// Agents
|
// Agents
|
||||||
const agents = ref<AgentNodeData[]>([
|
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.',
|
||||||
|
tags: ['Orchestration', 'Delegation', 'Approval'],
|
||||||
|
color: '#8b7cf6',
|
||||||
|
icon: 'bot',
|
||||||
|
hero: true,
|
||||||
|
task: 'Orchestrating Nexus Dashboard redesign',
|
||||||
|
runtime: '14:23',
|
||||||
|
currentTask: 'Orchestrating Nexus Dashboard redesign',
|
||||||
|
goal: 'Complete Mission Control v3',
|
||||||
|
progress: 85,
|
||||||
|
workload: 55,
|
||||||
|
active: true,
|
||||||
|
runtimeSeconds: 28800,
|
||||||
|
model: 'GPT-5.4',
|
||||||
|
workingFeed: [
|
||||||
|
{ time: '22:38', text: 'Analyzed user feedback on Dashboard' },
|
||||||
|
{ time: '22:36', text: 'Delegated card redesign to Developer' },
|
||||||
|
{ time: '22:34', text: 'Verifying full-width layout deployment' },
|
||||||
|
{ time: '22:32', text: 'Reviewing AgentModal integration' },
|
||||||
|
],
|
||||||
|
thinkingStream: [
|
||||||
|
{ time: '22:24', text: 'Analysing constraint: full-width layout' },
|
||||||
|
{ time: '22:25', text: 'Removing max-width from global CSS' },
|
||||||
|
{ time: '22:26', text: 'Verifying Dashboard grid reflow' },
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'developer',
|
id: 'developer',
|
||||||
name: 'Developer',
|
name: 'Developer',
|
||||||
role: 'Backend & Frontend',
|
role: 'Backend & Frontend',
|
||||||
description: 'Implements features across the stack with TypeScript, C#, and Vue.',
|
description: 'Implements features across the stack with TypeScript, C#, and Vue.',
|
||||||
|
tags: ['Coding', 'Development', 'Builds'],
|
||||||
color: '#3b82f6',
|
color: '#3b82f6',
|
||||||
icon: 'code',
|
icon: 'code',
|
||||||
|
task: 'Building Dungeon System API endpoints',
|
||||||
|
runtime: '01:00',
|
||||||
currentTask: 'Building Dungeon System API endpoints',
|
currentTask: 'Building Dungeon System API endpoints',
|
||||||
goal: 'Complete Dungeon CRUD + room generation',
|
goal: 'Complete Dungeon CRUD + room generation',
|
||||||
progress: 62,
|
progress: 62,
|
||||||
@@ -112,19 +150,28 @@ export function useDashboardData() {
|
|||||||
active: true,
|
active: true,
|
||||||
runtimeSeconds: 3600,
|
runtimeSeconds: 3600,
|
||||||
workingFeed: [
|
workingFeed: [
|
||||||
'Created DungeonController',
|
{ time: '22:30', text: 'Created DungeonController' },
|
||||||
'Defined dungeon schema',
|
{ time: '22:28', text: 'Defined dungeon schema' },
|
||||||
'Implementing room generation algorithm',
|
{ time: '22:26', text: 'Implementing room generation algorithm' },
|
||||||
'Writing unit tests for RoomFactory',
|
{ time: '22:24', text: 'Writing unit tests for RoomFactory' },
|
||||||
],
|
],
|
||||||
|
thinkingStream: [
|
||||||
|
{ time: '22:22', text: 'Parsing dungeon spec from Iris' },
|
||||||
|
{ time: '22:23', text: 'Designing RoomFactory interface' },
|
||||||
|
{ time: '22:24', text: 'Implementing corridor connection logic' },
|
||||||
|
],
|
||||||
|
model: 'DeepSeek V4 Flash',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'devops',
|
id: 'devops',
|
||||||
name: 'DevOps',
|
name: 'DevOps',
|
||||||
role: 'Infrastructure & CI/CD',
|
role: 'Infrastructure & CI/CD',
|
||||||
description: 'Manages Docker, deployment pipelines, and system reliability.',
|
description: 'Manages Docker, deployment pipelines, and system reliability.',
|
||||||
|
tags: ['Deployment', 'Docker', 'CI/CD'],
|
||||||
color: '#eab308',
|
color: '#eab308',
|
||||||
icon: 'server',
|
icon: 'server',
|
||||||
|
task: 'Optimizing Docker Compose caching',
|
||||||
|
runtime: '00:30',
|
||||||
currentTask: 'Optimizing Docker Compose caching',
|
currentTask: 'Optimizing Docker Compose caching',
|
||||||
goal: 'Reduce build times by 40%',
|
goal: 'Reduce build times by 40%',
|
||||||
progress: 45,
|
progress: 45,
|
||||||
@@ -132,19 +179,28 @@ export function useDashboardData() {
|
|||||||
active: false,
|
active: false,
|
||||||
runtimeSeconds: 1800,
|
runtimeSeconds: 1800,
|
||||||
workingFeed: [
|
workingFeed: [
|
||||||
'Analyzed Docker layer cache',
|
{ time: '22:20', text: 'Analyzed Docker layer cache' },
|
||||||
'Optimized COPY order in Dockerfile',
|
{ time: '22:18', text: 'Optimized COPY order in Dockerfile' },
|
||||||
'Added .dockerignore for node_modules',
|
{ time: '22:16', text: 'Added .dockerignore for node_modules' },
|
||||||
'Testing incremental builds',
|
{ time: '22:14', text: 'Testing incremental builds' },
|
||||||
],
|
],
|
||||||
|
thinkingStream: [
|
||||||
|
{ time: '22:20', text: 'Checking build cache hit rates' },
|
||||||
|
{ time: '22:21', text: 'Benchmarking multi-stage vs single-stage' },
|
||||||
|
{ time: '22:22', text: 'Calculating potential speedup from caching' },
|
||||||
|
],
|
||||||
|
model: 'DeepSeek V4 Pro',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'researcher',
|
id: 'researcher',
|
||||||
name: 'Researcher',
|
name: 'Researcher',
|
||||||
role: 'Analysis & Documentation',
|
role: 'Analysis & Documentation',
|
||||||
description: 'Researches APIs, patterns, and best practices. Maintains docs.',
|
description: 'Researches APIs, patterns, and best practices. Maintains docs.',
|
||||||
|
tags: ['Research', 'Analysis', 'Docs'],
|
||||||
color: '#22c55e',
|
color: '#22c55e',
|
||||||
icon: 'search',
|
icon: 'search',
|
||||||
|
task: 'Analyzing WebSocket alternatives',
|
||||||
|
runtime: '00:45',
|
||||||
currentTask: 'Analyzing WebSocket alternatives',
|
currentTask: 'Analyzing WebSocket alternatives',
|
||||||
goal: 'Recommend real-time communication strategy',
|
goal: 'Recommend real-time communication strategy',
|
||||||
progress: 30,
|
progress: 30,
|
||||||
@@ -152,18 +208,27 @@ export function useDashboardData() {
|
|||||||
active: true,
|
active: true,
|
||||||
runtimeSeconds: 2700,
|
runtimeSeconds: 2700,
|
||||||
workingFeed: [
|
workingFeed: [
|
||||||
'Evaluated WebSocket vs SSE vs WebRTC',
|
{ time: '22:18', text: 'Evaluated WebSocket vs SSE vs WebRTC' },
|
||||||
'Documented SignalR limitations',
|
{ time: '22:17', text: 'Documented SignalR limitations' },
|
||||||
'Prototyping WebSocket fallback',
|
{ time: '22:16', text: 'Prototyping WebSocket fallback' },
|
||||||
],
|
],
|
||||||
|
thinkingStream: [
|
||||||
|
{ time: '22:18', text: 'Cross-referencing WebSocket latency benchmarks' },
|
||||||
|
{ time: '22:19', text: 'Checking SSE browser support matrix' },
|
||||||
|
{ time: '22:20', text: 'Drafting recommendation summary' },
|
||||||
|
],
|
||||||
|
model: 'DeepSeek V4 Pro',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'reviewer',
|
id: 'reviewer',
|
||||||
name: 'Reviewer',
|
name: 'Reviewer',
|
||||||
role: 'Code Quality & Testing',
|
role: 'Code Quality & Testing',
|
||||||
description: 'Reviews pull requests, enforces standards, runs test suites.',
|
description: 'Reviews pull requests, enforces standards, runs test suites.',
|
||||||
|
tags: ['Code Review', 'Testing', 'Quality'],
|
||||||
color: '#a855f7',
|
color: '#a855f7',
|
||||||
icon: 'shield',
|
icon: 'shield',
|
||||||
|
task: 'Reviewing Dungeon System PR',
|
||||||
|
runtime: '00:15',
|
||||||
currentTask: 'Reviewing Dungeon System PR',
|
currentTask: 'Reviewing Dungeon System PR',
|
||||||
goal: 'Zero critical findings before merge',
|
goal: 'Zero critical findings before merge',
|
||||||
progress: 80,
|
progress: 80,
|
||||||
@@ -171,64 +236,38 @@ export function useDashboardData() {
|
|||||||
active: false,
|
active: false,
|
||||||
runtimeSeconds: 900,
|
runtimeSeconds: 900,
|
||||||
workingFeed: [
|
workingFeed: [
|
||||||
'Reviewed DungeonController.cs',
|
{ time: '22:15', text: 'Reviewed DungeonController.cs' },
|
||||||
'Found 3 minor style issues',
|
{ time: '22:14', text: 'Found 3 minor style issues' },
|
||||||
'Approved RoomValidator',
|
{ time: '22:13', text: 'Approved RoomValidator' },
|
||||||
'Running integration tests',
|
{ time: '22:12', text: 'Running integration tests' },
|
||||||
],
|
],
|
||||||
|
thinkingStream: [
|
||||||
|
{ time: '22:15', text: 'Analyzing DungeonController PR diff' },
|
||||||
|
{ time: '22:16', text: 'Checking RoomValidator edge cases' },
|
||||||
|
{ time: '22:17', text: 'Verifying integration test coverage' },
|
||||||
|
],
|
||||||
|
model: 'DeepSeek V4 Pro',
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
|
||||||
// Missions
|
// Open Tasks
|
||||||
const missions = ref<MissionData[]>([
|
const openTasks = ref<OpenTask[]>([
|
||||||
{
|
{ id: 't1', title: 'Agent Thinking Panel visualisieren', detail: 'Live-Animation der Denkprozesse im AgentModal', source: 'iris', createdAt: '22:30' },
|
||||||
id: 'dungeon-system',
|
{ id: 't2', title: 'CI/CD Pipeline Monitoring Dashboard', detail: 'Echtzeit-Status der Gitea Actions im Dashboard', source: 'iris', createdAt: '21:15' },
|
||||||
name: 'Dungeon System',
|
{ id: 't3', title: 'Dungeon System Dokumentation', detail: 'API-Doku für Room-Generation-Endpunkte schreiben', source: 'bao', createdAt: '20:00' },
|
||||||
progress: 62,
|
|
||||||
currentTask: 'Implement room generation',
|
|
||||||
lastActivity: '3 min ago',
|
|
||||||
remainingTasks: 8,
|
|
||||||
status: 'healthy',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'dashboard-redesign',
|
|
||||||
name: 'Dashboard Redesign',
|
|
||||||
progress: 45,
|
|
||||||
currentTask: 'AI Team Network layout',
|
|
||||||
lastActivity: 'Just now',
|
|
||||||
remainingTasks: 6,
|
|
||||||
status: 'healthy',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'infra-optimization',
|
|
||||||
name: 'Infra Optimization',
|
|
||||||
progress: 30,
|
|
||||||
currentTask: 'Optimize build caching',
|
|
||||||
lastActivity: '12 min ago',
|
|
||||||
remainingTasks: 4,
|
|
||||||
status: 'attention',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'auth-system',
|
|
||||||
name: 'Auth System',
|
|
||||||
progress: 88,
|
|
||||||
currentTask: 'Finalize refresh token flow',
|
|
||||||
lastActivity: '45 min ago',
|
|
||||||
remainingTasks: 2,
|
|
||||||
status: 'healthy',
|
|
||||||
},
|
|
||||||
])
|
])
|
||||||
|
|
||||||
// Feed
|
// Feed
|
||||||
|
const ts = (offset: number) => new Date(now + offset).toISOString()
|
||||||
const feedEntries = ref<FeedEntry[]>([
|
const feedEntries = ref<FeedEntry[]>([
|
||||||
{ time: '20:42', agent: 'Developer', action: 'Created DungeonController endpoints', timestamp: now - 60000 },
|
{ time: '22:50', agent: 'Developer', action: 'Created DungeonController endpoints', timestamp: ts(-120000) },
|
||||||
{ time: '20:38', agent: 'DevOps', action: 'Optimized Docker COPY order', timestamp: now - 300000 },
|
{ time: '22:46', agent: 'DevOps', action: 'Optimized Docker COPY order for layer caching', timestamp: ts(-360000) },
|
||||||
{ time: '20:35', agent: 'Iris', action: 'Delegated room generation to Developer', timestamp: now - 540000 },
|
{ time: '22:42', agent: 'Iris', action: 'Delegated room generation to Developer with spec', timestamp: ts(-600000) },
|
||||||
{ time: '20:28', agent: 'Researcher', action: 'Documented WebSocket vs SSE analysis', timestamp: now - 780000 },
|
{ time: '22:35', agent: 'Researcher', action: 'Documented WebSocket vs SSE analysis results', timestamp: ts(-960000) },
|
||||||
{ time: '20:22', agent: 'Reviewer', action: 'Approved RoomValidator PR', timestamp: now - 900000 },
|
{ time: '22:28', agent: 'Reviewer', action: 'Approved RoomValidator PR with minor fixes', timestamp: ts(-1200000) },
|
||||||
{ time: '20:15', agent: 'DevOps', action: 'Added .dockerignore for node_modules', timestamp: now - 1200000 },
|
{ time: '22:18', agent: 'DevOps', action: 'Added .dockerignore for node_modules and build artifacts', timestamp: ts(-1500000) },
|
||||||
{ time: '20:08', agent: 'Iris', action: 'Broke down Dungeon System tasks', timestamp: now - 1500000 },
|
{ time: '22:08', agent: 'Iris', action: 'Broke down Dungeon System tasks into sub-tasks', timestamp: ts(-1800000) },
|
||||||
{ time: '19:55', agent: 'Developer', action: 'Defined dungeon schema models', timestamp: now - 1800000 },
|
{ time: '21:55', agent: 'Developer', action: 'Defined dungeon schema models with validation', timestamp: ts(-2400000) },
|
||||||
])
|
])
|
||||||
|
|
||||||
// Chat
|
// Chat
|
||||||
@@ -277,7 +316,7 @@ export function useDashboardData() {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
agents,
|
agents,
|
||||||
missions,
|
openTasks,
|
||||||
feedEntries,
|
feedEntries,
|
||||||
chatMessages,
|
chatMessages,
|
||||||
irisBusy,
|
irisBusy,
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import ProjectDetailView from './views/ProjectDetailView.vue'
|
|||||||
import SettingsView from './views/SettingsView.vue'
|
import SettingsView from './views/SettingsView.vue'
|
||||||
import MemoryView from './views/MemoryView.vue'
|
import MemoryView from './views/MemoryView.vue'
|
||||||
import DocsView from './views/DocsView.vue'
|
import DocsView from './views/DocsView.vue'
|
||||||
import TeamView from './views/TeamView.vue'
|
|
||||||
import AgentDetailView from './views/AgentDetailView.vue'
|
import AgentDetailView from './views/AgentDetailView.vue'
|
||||||
import AgentsIndexView from './views/AgentsIndexView.vue'
|
import AgentsIndexView from './views/AgentsIndexView.vue'
|
||||||
import SecurityView from './views/SecurityView.vue'
|
import SecurityView from './views/SecurityView.vue'
|
||||||
@@ -18,7 +17,6 @@ const routes = [
|
|||||||
{ path: '/dashboard', name: 'Dashboard', component: DashboardView },
|
{ path: '/dashboard', name: 'Dashboard', component: DashboardView },
|
||||||
{ path: '/memory', name: 'Memory', component: MemoryView },
|
{ path: '/memory', name: 'Memory', component: MemoryView },
|
||||||
{ path: '/docs', name: 'Docs', component: DocsView },
|
{ path: '/docs', name: 'Docs', component: DocsView },
|
||||||
{ path: '/team', name: 'Team', component: TeamView },
|
|
||||||
{ path: '/agents/:id', name: 'AgentDetail', component: AgentDetailView },
|
{ path: '/agents/:id', name: 'AgentDetail', component: AgentDetailView },
|
||||||
{ path: '/security', name: 'Security', component: SecurityView },
|
{ path: '/security', name: 'Security', component: SecurityView },
|
||||||
{ path: '/incidents', name: 'Incidents', component: IncidentsView },
|
{ path: '/incidents', name: 'Incidents', component: IncidentsView },
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ main { min-width: 0; }
|
|||||||
.connection.live { color: var(--green); }
|
.connection.live { color: var(--green); }
|
||||||
.connection.preview { color: #e6b75d; }
|
.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; }
|
.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; }
|
.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; }
|
.eyebrow, .kicker { color: #7065c8; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
|
||||||
h1 { margin: 7px 0 5px; font-size: 27px; letter-spacing: -.04em; }
|
h1 { margin: 7px 0 5px; font-size: 27px; letter-spacing: -.04em; }
|
||||||
|
|||||||
@@ -1,19 +1,28 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, onUnmounted } from 'vue'
|
import { onMounted, onUnmounted, ref } from 'vue'
|
||||||
import MissionCard from '../components/dashboard/MissionCard.vue'
|
import TaskCard from '../components/dashboard/MissionCard.vue'
|
||||||
import OperationsFeed from '../components/dashboard/OperationsFeed.vue'
|
import OperationsFeed from '../components/dashboard/OperationsFeed.vue'
|
||||||
import TeamNetwork from '../components/dashboard/TeamNetwork.vue'
|
import TeamNetwork from '../components/dashboard/TeamNetwork.vue'
|
||||||
import ChatPanel from '../components/dashboard/ChatPanel.vue'
|
import ChatPanel from '../components/dashboard/ChatPanel.vue'
|
||||||
import QueuePanel from '../components/dashboard/QueuePanel.vue'
|
import QueuePanel from '../components/dashboard/QueuePanel.vue'
|
||||||
|
import AgentModal from '../components/dashboard/AgentModal.vue'
|
||||||
import { useDashboardData } from '../composables/useDashboardData'
|
import { useDashboardData } from '../composables/useDashboardData'
|
||||||
|
import type { AgentNodeData } from '../../composables/useDashboardData'
|
||||||
|
|
||||||
const {
|
const {
|
||||||
agents, missions, feedEntries, chatMessages,
|
agents, openTasks, feedEntries, chatMessages,
|
||||||
irisBusy, irisFocus, irisRuntime, queue,
|
irisBusy, irisFocus, irisRuntime, queue,
|
||||||
getAgentRuntime, startRuntime, stopRuntime,
|
getAgentRuntime, startRuntime, stopRuntime,
|
||||||
sendChat, removeQueueItem, moveQueueItem, changeQueuePriority,
|
sendChat, removeQueueItem, moveQueueItem, changeQueuePriority,
|
||||||
} = useDashboardData()
|
} = 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)
|
onMounted(startRuntime)
|
||||||
onUnmounted(stopRuntime)
|
onUnmounted(stopRuntime)
|
||||||
|
|
||||||
@@ -39,23 +48,59 @@ function onQueueExecuteNow(id: string): void {
|
|||||||
<div class="dashboard">
|
<div class="dashboard">
|
||||||
<div class="col-left">
|
<div class="col-left">
|
||||||
<section class="missions-section">
|
<section class="missions-section">
|
||||||
<h2 class="column-title">Active Missions</h2>
|
<TaskCard :tasks="openTasks" @new-task="console.log('New task requested')" @go-board="console.log('Go to Task Board')" />
|
||||||
<MissionCard v-for="m in missions" :key="m.id" :mission="m" />
|
|
||||||
</section>
|
</section>
|
||||||
<OperationsFeed :entries="feedEntries" />
|
<OperationsFeed :entries="feedEntries" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-center">
|
<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
|
<TeamNetwork
|
||||||
|
hero-id="iris"
|
||||||
:agents="agents"
|
:agents="agents"
|
||||||
:iris-runtime="irisRuntime"
|
:iris-runtime="irisRuntime"
|
||||||
:get-agent-runtime="getAgentRuntime"
|
:get-agent-runtime="getAgentRuntime"
|
||||||
:iris-focus="irisFocus"
|
: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>
|
||||||
<div class="col-right">
|
<div class="col-right">
|
||||||
<ChatPanel :messages="chatMessages" :iris-busy="irisBusy" :iris-focus="irisFocus" @send="onChatSend" />
|
<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" />
|
<QueuePanel :items="queue" @remove="removeQueueItem" @move-up="onQueueMoveUp" @move-down="onQueueMoveDown" @change-priority="changeQueuePriority" @execute-now="onQueueExecuteNow" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<AgentModal
|
||||||
|
v-if="selectedAgent"
|
||||||
|
:agent="selectedAgent"
|
||||||
|
:runtime="getAgentRuntime(selectedAgent.id)"
|
||||||
|
@close="selectedAgent = null"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -74,7 +119,89 @@ function onQueueExecuteNow(id: string): void {
|
|||||||
.dashboard ::-webkit-scrollbar-thumb { background: rgba(139,124,246,0.2); border-radius: 3px; }
|
.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); }
|
.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-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; }
|
.col-right { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-left: 4px; }
|
||||||
.missions-section { display: flex; flex-direction: column; gap: 8px; }
|
.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; }
|
.column-title { margin: 0; font-size: 13px; font-weight: 600; color: #e8eaf0; letter-spacing: 0.01em; }
|
||||||
|
|||||||
+63
-152
@@ -1,6 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { ref } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import AgentCard from '../components/team/AgentCard.vue'
|
import TeamNetwork from '../components/team/TeamNetwork.vue'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
@@ -32,25 +33,16 @@ const agents: AgentCardData[] = [
|
|||||||
role: 'Lead Developer',
|
role: 'Lead Developer',
|
||||||
description: 'Implementiert Features, schreibt Code, führt Builds und Tests aus. Arbeitet autonom im Scope.',
|
description: 'Implementiert Features, schreibt Code, führt Builds und Tests aus. Arbeitet autonom im Scope.',
|
||||||
tags: ['coding', 'development', 'builds'],
|
tags: ['coding', 'development', 'builds'],
|
||||||
color: '#4d8cf6',
|
color: '#3b82f6',
|
||||||
icon: 'code',
|
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',
|
id: 'reviewer',
|
||||||
name: 'Reviewer',
|
name: 'Reviewer',
|
||||||
role: 'Code QA',
|
role: 'Code QA',
|
||||||
description: 'Prüft Code auf Bugs, Sicherheit und Wartbarkeit. Fixt Probleme eigenständig.',
|
description: 'Prüft Code auf Bugs, Sicherheit und Wartbarkeit. Fixt Probleme eigenständig.',
|
||||||
tags: ['Quality Assurance', 'Security', 'Code Review'],
|
tags: ['Quality Assurance', 'Security', 'Code Review'],
|
||||||
color: '#f6a84d',
|
color: '#a855f7',
|
||||||
icon: 'shield',
|
icon: 'shield',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -59,23 +51,21 @@ const agents: AgentCardData[] = [
|
|||||||
role: 'Research Analyst',
|
role: 'Research Analyst',
|
||||||
description: 'Recherchiert, analysiert Quellen, prüft Fakten. Nur Lese-Rechte, keine Aktionen.',
|
description: 'Recherchiert, analysiert Quellen, prüft Fakten. Nur Lese-Rechte, keine Aktionen.',
|
||||||
tags: ['Research', 'Analysis', 'Fact-Checking'],
|
tags: ['Research', 'Analysis', 'Fact-Checking'],
|
||||||
color: '#8b4df6',
|
color: '#22c55e',
|
||||||
icon: 'search',
|
icon: 'search',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'executor',
|
id: 'executor',
|
||||||
name: 'Executor',
|
name: 'DevOps',
|
||||||
role: 'Host Executor',
|
role: 'Host Executor',
|
||||||
description: 'Führt Host-Kommandos auf dem VPS aus. Nur auf Iris-Befehl, niemals eigeninitiativ.',
|
description: 'Führt Host-Kommandos auf dem VPS aus. Nur auf Iris-Befehl, niemals eigeninitiativ.',
|
||||||
tags: ['Execution', 'Docker', 'VPS'],
|
tags: ['Execution', 'Deployment', 'VPS'],
|
||||||
color: '#4df6d4',
|
color: '#eab308',
|
||||||
icon: 'terminal',
|
icon: 'terminal',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const heroAgent = agents.find(a => a.hero)!
|
const activeAgents = ref<string[]>(['programmer'])
|
||||||
const operationAgents = agents.filter(a => !a.hero && ['programmer', 'architekt'].includes(a.id))
|
|
||||||
const specialistAgents = agents.filter(a => ['reviewer', 'researcher', 'executor'].includes(a.id))
|
|
||||||
|
|
||||||
function goToAgent(id: string) {
|
function goToAgent(id: string) {
|
||||||
router.push(`/agents/${id}`)
|
router.push(`/agents/${id}`)
|
||||||
@@ -91,72 +81,42 @@ function goToAgent(id: string) {
|
|||||||
|
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
<div class="team-header">
|
<div class="team-header">
|
||||||
<h1 class="team-title">Meet the Team</h1>
|
<h1 class="team-title">AI Team Network</h1>
|
||||||
<p class="team-subtitle">{{ agents.length }} AI agents, each with a real role and a real personality.</p>
|
<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.</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>
|
</div>
|
||||||
|
|
||||||
<!-- Hero Card -->
|
<!-- Network Visualization -->
|
||||||
<div class="hero-section">
|
<div class="network-container">
|
||||||
<AgentCard
|
<TeamNetwork
|
||||||
v-bind="heroAgent"
|
:agents="agents"
|
||||||
@click="goToAgent"
|
hero-id="iris"
|
||||||
|
:active-agents="activeAgents"
|
||||||
|
@select="goToAgent"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Section Divider -->
|
<!-- Legend -->
|
||||||
<div class="section-divider">
|
<div class="legend-row">
|
||||||
<div class="divider-line"></div>
|
<div class="legend-item">
|
||||||
<span class="divider-label">OPERATIONS</span>
|
<span class="legend-dot active-pulse"></span>
|
||||||
<div class="divider-line"></div>
|
<span>Aktive Verbindung</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="legend-item">
|
||||||
<!-- Operations Row -->
|
<span class="legend-dot idle-pulse"></span>
|
||||||
<div class="ops-row">
|
<span>Idle</span>
|
||||||
<AgentCard
|
|
||||||
v-for="agent in operationAgents"
|
|
||||||
:key="agent.id"
|
|
||||||
v-bind="agent"
|
|
||||||
@click="goToAgent"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="legend-item">
|
||||||
<!-- Connector Labels -->
|
<span class="legend-dot pulse-dot"></span>
|
||||||
<div class="connector-row">
|
<span>Datenfluss (Pulse)</span>
|
||||||
<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>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="connector-rail">
|
|
||||||
<div class="rail-line"></div>
|
|
||||||
<div class="rail-dot"></div>
|
|
||||||
<div class="rail-line"></div>
|
|
||||||
</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>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Specialists Row -->
|
|
||||||
<div class="specialists-row">
|
|
||||||
<AgentCard
|
|
||||||
v-for="agent in specialistAgents"
|
|
||||||
:key="agent.id"
|
|
||||||
v-bind="agent"
|
|
||||||
@click="goToAgent"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.team-page {
|
.team-page {
|
||||||
max-width: 820px;
|
max-width: 920px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
}
|
}
|
||||||
@@ -201,99 +161,50 @@ function goToAgent(id: string) {
|
|||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-divider {
|
.network-container {
|
||||||
display: flex;
|
margin-top: 10px;
|
||||||
align-items: center;
|
padding: 0;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ops-row {
|
.legend-row {
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr 1fr;
|
|
||||||
gap: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.connector-row {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
justify-content: center;
|
||||||
margin: 10px 0;
|
gap: 24px;
|
||||||
padding: 0 6px;
|
margin-top: 28px;
|
||||||
|
padding: 12px 20px;
|
||||||
|
background: var(--panel);
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
.connector-left {
|
.legend-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 5px;
|
gap: 8px;
|
||||||
font-size: 8.5px;
|
font-size: 10px;
|
||||||
font-weight: 700;
|
color: #7e8799;
|
||||||
color: #51d49a;
|
|
||||||
letter-spacing: 0.08em;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
.connector-right {
|
.legend-dot {
|
||||||
display: flex;
|
width: 8px;
|
||||||
align-items: center;
|
height: 8px;
|
||||||
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;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: #5b5286;
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
.active-pulse {
|
||||||
.specialists-row {
|
background: #51d49a;
|
||||||
display: grid;
|
box-shadow: 0 0 6px rgba(81, 212, 154, 0.6);
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
|
||||||
gap: 12px;
|
|
||||||
}
|
}
|
||||||
|
.idle-pulse {
|
||||||
@media (max-width: 720px) {
|
background: #3a3f4b;
|
||||||
.ops-row {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
.specialists-row {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
.team-title {
|
|
||||||
font-size: 22px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
.pulse-dot {
|
||||||
@media (min-width: 721px) and (max-width: 820px) {
|
background: white;
|
||||||
.specialists-row {
|
width: 6px;
|
||||||
grid-template-columns: 1fr 1fr;
|
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>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user