feat(board): rework quick-peek modal (Linear-style) + board toolbar
Modal redesign — compact summary instead of two long cards:
- Topbar: breadcrumb + state pill + copyable task-id/link chip; review
actions (approve / request changes) live in the modal header too
- Main column: title, meta chips (ball, created, last update), compact
description, then square summary tiles (done/total with progress,
active, open, blocked) + per-agent pills — details stay in Vollansicht
- Right sidebar: properties as slim Linear-style rows (status, priority,
assignee, due, source) with hover-reveal controls; activity moved next
to properties as a compact timeline with a new comment composer
(POST tasks/{id}/activity via new store action postTaskActivity)
- Unified button system (32px: primary/ghost/approve/changes/icon)
- flattenBoard includes nested children again so quick-peek works for
child rows inside master cards
Board (issue-tracker basics):
- Toolbar with search (title/detail/id/child titles) and ball filters:
Alle / Du bist dran / Bei Iris / Haengt
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,14 +37,6 @@
|
|||||||
--st-block: #fb7185;
|
--st-block: #fb7185;
|
||||||
--st-idle: #6b6796;
|
--st-idle: #6b6796;
|
||||||
|
|
||||||
/* ── Agent/Role Semantic Colors ───────────────────── */
|
|
||||||
--clr-iris: #c084fc;
|
|
||||||
--clr-bao: #60a5fa;
|
|
||||||
--clr-agent: #6ee7b7;
|
|
||||||
--clr-review: #fdba74;
|
|
||||||
--clr-stale: #fda4af;
|
|
||||||
--clr-other: #fb923c;
|
|
||||||
|
|
||||||
/* ── Glows ────────────────────────────────────────── */
|
/* ── Glows ────────────────────────────────────────── */
|
||||||
--glow: 0 0 0 1px rgba(124,108,255,.20), 0 0 28px -4px rgba(124,108,255,.55);
|
--glow: 0 0 0 1px rgba(124,108,255,.20), 0 0 28px -4px rgba(124,108,255,.55);
|
||||||
--glow-blue: 0 0 24px -2px rgba(79,124,255,.65);
|
--glow-blue: 0 0 24px -2px rgba(79,124,255,.65);
|
||||||
@@ -86,13 +78,6 @@
|
|||||||
--text-secondary: var(--tx-2);
|
--text-secondary: var(--tx-2);
|
||||||
--text-muted: var(--tx-3);
|
--text-muted: var(--tx-3);
|
||||||
--text-dim: var(--tx-3);
|
--text-dim: var(--tx-3);
|
||||||
|
|
||||||
/* Agent semantic colors (legacy aliases) */
|
|
||||||
--nx-iris: var(--clr-iris);
|
|
||||||
--nx-bao: var(--clr-bao);
|
|
||||||
--nx-agent: var(--clr-agent);
|
|
||||||
--nx-review: var(--clr-review);
|
|
||||||
--nx-stale: var(--clr-stale);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Glass card utility ────────────────────────────── */
|
/* ── Glass card utility ────────────────────────────── */
|
||||||
@@ -148,53 +133,3 @@
|
|||||||
/* ── Typography helpers ────────────────────────────── */
|
/* ── Typography helpers ────────────────────────────── */
|
||||||
.font-display { font-family: 'Space Grotesk', sans-serif; }
|
.font-display { font-family: 'Space Grotesk', sans-serif; }
|
||||||
.font-mono-v2 { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
|
.font-mono-v2 { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
|
||||||
|
|
||||||
/* ── Button Variants (nexus-token-basiert) ──────────── */
|
|
||||||
.nexus-btn-gradient {
|
|
||||||
border: none;
|
|
||||||
background: var(--grad);
|
|
||||||
color: #fff;
|
|
||||||
box-shadow: var(--glow-purple);
|
|
||||||
border-radius: var(--r-sm);
|
|
||||||
font-weight: 600;
|
|
||||||
font-family: 'Manrope', sans-serif;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: opacity .15s, transform .15s;
|
|
||||||
}
|
|
||||||
.nexus-btn-gradient:hover { opacity: .85; transform: translateY(-1px); }
|
|
||||||
.nexus-btn-gradient:active { transform: translateY(0); }
|
|
||||||
|
|
||||||
.nexus-btn-icon {
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
border: 1px solid var(--line);
|
|
||||||
background: transparent;
|
|
||||||
color: var(--tx-2);
|
|
||||||
border-radius: var(--r-sm);
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background .15s, color .15s;
|
|
||||||
}
|
|
||||||
.nexus-btn-icon:hover { background: rgba(124,108,255,.10); color: var(--tx); }
|
|
||||||
|
|
||||||
.nexus-btn-ghost-subtle {
|
|
||||||
border: 1px solid var(--line);
|
|
||||||
background: transparent;
|
|
||||||
color: var(--tx-2);
|
|
||||||
border-radius: var(--r-sm);
|
|
||||||
font-family: 'Manrope', sans-serif;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background .15s, color .15s;
|
|
||||||
}
|
|
||||||
.nexus-btn-ghost-subtle:hover { background: rgba(124,108,255,.08); color: var(--tx); }
|
|
||||||
|
|
||||||
.nexus-btn-danger {
|
|
||||||
border: 1px solid rgba(251,113,133,.3);
|
|
||||||
background: rgba(251,113,133,.12);
|
|
||||||
color: var(--st-block);
|
|
||||||
border-radius: var(--r-sm);
|
|
||||||
font-weight: 600;
|
|
||||||
font-family: 'Manrope', sans-serif;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background .15s;
|
|
||||||
}
|
|
||||||
.nexus-btn-danger:hover { background: rgba(251,113,133,.22); }
|
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ function avatarLabel() {
|
|||||||
|
|
||||||
.m-av.iris {
|
.m-av.iris {
|
||||||
background: var(--grad);
|
background: var(--grad);
|
||||||
color: var(--tx);
|
color: #fff;
|
||||||
box-shadow: var(--glow-purple);
|
box-shadow: var(--glow-purple);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -328,13 +328,13 @@ function avatarLabel() {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
}
|
}
|
||||||
.badge-blue { background:rgba(79,124,255,.14); color:var(--a-blue); border-color:rgba(79,124,255,.3); }
|
.badge-blue { background:rgba(79,124,255,.14); color:#9db6ff; border-color:rgba(79,124,255,.3); }
|
||||||
.badge-purple { background:rgba(181,87,246,.14); color:var(--a-purple); border-color:rgba(181,87,246,.3); }
|
.badge-purple { background:rgba(181,87,246,.14); color:#d7a8ff; border-color:rgba(181,87,246,.3); }
|
||||||
.badge-amber { background:rgba(251,191,36,.13); color:var(--st-queue); border-color:rgba(251,191,36,.3); }
|
.badge-amber { background:rgba(251,191,36,.13); color:#fcd34d; border-color:rgba(251,191,36,.3); }
|
||||||
.badge-green { background:rgba(61,220,151,.13); color:var(--st-work); border-color:rgba(61,220,151,.3); }
|
.badge-green { background:rgba(61,220,151,.13); color:#7ef0bd; border-color:rgba(61,220,151,.3); }
|
||||||
.badge-cyan { background:rgba(52,214,245,.13); color:var(--st-think); border-color:rgba(52,214,245,.3); }
|
.badge-cyan { background:rgba(52,214,245,.13); color:#8ee9fb; border-color:rgba(52,214,245,.3); }
|
||||||
.badge-rose { background:rgba(251,113,133,.13); color:var(--st-block); border-color:rgba(251,113,133,.3); }
|
.badge-rose { background:rgba(251,113,133,.13); color:#fda4b0; border-color:rgba(251,113,133,.3); }
|
||||||
.badge-slate { background:rgba(150,140,255,.08); color:var(--tx-2); border-color:var(--line-2); }
|
.badge-slate { background:rgba(150,140,255,.08); color:var(--tx-2); border-color:var(--line-2); }
|
||||||
|
|
||||||
.m-pill {
|
.m-pill {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
@@ -428,7 +428,7 @@ function avatarLabel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.m-bar.work i {
|
.m-bar.work i {
|
||||||
background: linear-gradient(90deg, var(--st-work), var(--st-work));
|
background: linear-gradient(90deg, #2bb87f, #3ddc97);
|
||||||
box-shadow: var(--glow-work);
|
box-shadow: var(--glow-work);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -510,7 +510,7 @@ function avatarLabel() {
|
|||||||
font-family: 'JetBrains Mono', monospace;
|
font-family: 'JetBrains Mono', monospace;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
color: var(--st-think);
|
color: #9fe8fb;
|
||||||
min-height: 72px;
|
min-height: 72px;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -593,7 +593,7 @@ function avatarLabel() {
|
|||||||
.m-model-btn.active {
|
.m-model-btn.active {
|
||||||
background: var(--grad);
|
background: var(--grad);
|
||||||
border: none;
|
border: none;
|
||||||
color: var(--tx);
|
color: #fff;
|
||||||
box-shadow: var(--glow-purple);
|
box-shadow: var(--glow-purple);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ defineEmits<{
|
|||||||
|
|
||||||
.nc-av.iris-av {
|
.nc-av.iris-av {
|
||||||
background: var(--grad);
|
background: var(--grad);
|
||||||
color: var(--tx);
|
color: #fff;
|
||||||
box-shadow: var(--glow-purple);
|
box-shadow: var(--glow-purple);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -255,7 +255,7 @@ defineEmits<{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.node.is-work .nc-bar i {
|
.node.is-work .nc-bar i {
|
||||||
background: linear-gradient(90deg, var(--st-work), var(--st-work));
|
background: linear-gradient(90deg, #2bb87f, #3ddc97);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Meta ────────────────────────────────────── */
|
/* ── Meta ────────────────────────────────────── */
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ defineEmits<{
|
|||||||
border: 1px solid rgba(251,113,133,.3);
|
border: 1px solid rgba(251,113,133,.3);
|
||||||
font-size: 12.5px;
|
font-size: 12.5px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--st-block);
|
color: #fda4b0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background .15s;
|
transition: background .15s;
|
||||||
font-family: 'Manrope', sans-serif;
|
font-family: 'Manrope', sans-serif;
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ function renderEdges() {
|
|||||||
|
|
||||||
const edgeList = buildEdges(props.agents)
|
const edgeList = buildEdges(props.agents)
|
||||||
|
|
||||||
let defs = `<defs><linearGradient id="eg2" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="var(--a-blue)"/><stop offset="1" stop-color="var(--a-purple)"/></linearGradient></defs>`
|
let defs = `<defs><linearGradient id="eg2" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#4f7cff"/><stop offset="1" stop-color="#b557f6"/></linearGradient></defs>`
|
||||||
let paths = ''
|
let paths = ''
|
||||||
let pulses = ''
|
let pulses = ''
|
||||||
let idCounter = 0
|
let idCounter = 0
|
||||||
@@ -105,17 +105,17 @@ function renderEdges() {
|
|||||||
if (e.kind === 'flow' && live) {
|
if (e.kind === 'flow' && live) {
|
||||||
// Active flow: gradient stroke + animate pulse
|
// Active flow: gradient stroke + animate pulse
|
||||||
paths += `<path id="${pathId}" d="${d}" fill="none" stroke="url(#eg2)" stroke-width="2.2" opacity="0.85"/>`
|
paths += `<path id="${pathId}" d="${d}" fill="none" stroke="url(#eg2)" stroke-width="2.2" opacity="0.85"/>`
|
||||||
paths += `<path d="${d}" fill="none" stroke="var(--st-work)" stroke-width="2.2" stroke-dasharray="5 20" opacity="0.8" style="animation:dashmove 1.1s linear infinite"/>`
|
paths += `<path d="${d}" fill="none" stroke="#3ddc97" stroke-width="2.2" stroke-dasharray="5 20" opacity="0.8" style="animation:dashmove 1.1s linear infinite"/>`
|
||||||
pulses += `<circle r="3.4" fill="var(--st-work)"><animateMotion dur="2s" repeatCount="indefinite" rotate="auto"><mpath href="#${pathId}"/></animateMotion></circle>`
|
pulses += `<circle r="3.4" fill="#eafff6"><animateMotion dur="2s" repeatCount="indefinite" rotate="auto"><mpath href="#${pathId}"/></animateMotion></circle>`
|
||||||
} else if (e.kind === 'flow') {
|
} else if (e.kind === 'flow') {
|
||||||
// Inactive flow
|
// Inactive flow
|
||||||
paths += `<path id="${pathId}" d="${d}" fill="none" stroke="url(#eg2)" stroke-width="1.8" opacity="0.45"/>`
|
paths += `<path id="${pathId}" d="${d}" fill="none" stroke="url(#eg2)" stroke-width="1.8" opacity="0.45"/>`
|
||||||
pulses += `<circle r="2.8" fill="var(--a-mid)" opacity="0.7"><animateMotion dur="3s" repeatCount="indefinite"><mpath href="#${pathId}"/></animateMotion></circle>`
|
pulses += `<circle r="2.8" fill="#c9b8ff" opacity="0.7"><animateMotion dur="3s" repeatCount="indefinite"><mpath href="#${pathId}"/></animateMotion></circle>`
|
||||||
} else {
|
} else {
|
||||||
// Orchestration (Iris → Agent)
|
// Orchestration (Iris → Agent)
|
||||||
const targetAgent = props.agents.find(a => a.id === e.b)
|
const targetAgent = props.agents.find(a => a.id === e.b)
|
||||||
const op = targetAgent && isActive(targetAgent.status) ? 0.52 : 0.34
|
const op = targetAgent && isActive(targetAgent.status) ? 0.52 : 0.34
|
||||||
paths += `<path d="${d}" fill="none" stroke="var(--a-mid)" stroke-width="1.45" stroke-dasharray="2 6" opacity="${op}"/>`
|
paths += `<path d="${d}" fill="none" stroke="#8b7cff" stroke-width="1.45" stroke-dasharray="2 6" opacity="${op}"/>`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -336,7 +336,7 @@ function handleReset() {
|
|||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: var(--grad);
|
background: var(--grad);
|
||||||
border: none;
|
border: none;
|
||||||
color: var(--tx);
|
color: #fff;
|
||||||
font-family: 'Manrope', sans-serif;
|
font-family: 'Manrope', sans-serif;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ watch(
|
|||||||
.iris-av :deep(svg) {
|
.iris-av :deep(svg) {
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
color: var(--tx);
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.iris-name {
|
.iris-name {
|
||||||
@@ -196,7 +196,7 @@ watch(
|
|||||||
padding: 24px 0;
|
padding: 24px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-msg-info.error { color: var(--st-block); font-style: normal; }
|
.chat-msg-info.error { color: #fda4b0; font-style: normal; }
|
||||||
|
|
||||||
.chat-row {
|
.chat-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -222,7 +222,7 @@ watch(
|
|||||||
|
|
||||||
.bubble.me {
|
.bubble.me {
|
||||||
background: var(--grad);
|
background: var(--grad);
|
||||||
color: var(--tx);
|
color: #fff;
|
||||||
border-bottom-right-radius: 5px;
|
border-bottom-right-radius: 5px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
box-shadow: var(--glow-purple);
|
box-shadow: var(--glow-purple);
|
||||||
@@ -313,6 +313,6 @@ watch(
|
|||||||
.send :deep(svg) {
|
.send :deep(svg) {
|
||||||
width: 17px;
|
width: 17px;
|
||||||
height: 17px;
|
height: 17px;
|
||||||
color: var(--tx);
|
color: #fff;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ function prioLabel(p: TaskItem['priority']): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function prioColor(p: TaskItem['priority']): string {
|
function prioColor(p: TaskItem['priority']): string {
|
||||||
return p === 'high' ? 'var(--st-block)' : p === 'medium' ? 'var(--st-queue)' : 'var(--a-blue)'
|
return p === 'high' ? '#fda4b0' : p === 'medium' ? '#fcd34d' : '#9db6ff'
|
||||||
}
|
}
|
||||||
|
|
||||||
function dotClass(s: TaskItem['status']): string {
|
function dotClass(s: TaskItem['status']): string {
|
||||||
|
|||||||
@@ -1,103 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
/**
|
|
||||||
* ActivityTimeline — Wiederverwendbare Aktivitäts-Feed-Komponente
|
|
||||||
*
|
|
||||||
* Standardisierte Timeline-Darstellung für Task-Aktivität,
|
|
||||||
* Agent-Aktivität und allgemeine Ereignis-Feeds.
|
|
||||||
* Verwendet ausschließlich nexus-tokens.css Variablen.
|
|
||||||
*/
|
|
||||||
|
|
||||||
export interface ActivityEntry {
|
|
||||||
id?: string
|
|
||||||
message: string
|
|
||||||
timestamp?: string
|
|
||||||
type?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
withDefaults(defineProps<{
|
|
||||||
entries: ActivityEntry[]
|
|
||||||
loading?: boolean
|
|
||||||
emptyLabel?: string
|
|
||||||
}>(), {
|
|
||||||
emptyLabel: 'Noch keine Aktivität',
|
|
||||||
})
|
|
||||||
|
|
||||||
function formatDate(date?: string | null): string {
|
|
||||||
if (!date) return ''
|
|
||||||
return new Date(date).toLocaleString('de-DE', {
|
|
||||||
dateStyle: 'medium',
|
|
||||||
timeStyle: 'short',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div class="activity-timeline">
|
|
||||||
<!-- Loading -->
|
|
||||||
<div v-if="loading" class="activity-empty">Lade…</div>
|
|
||||||
|
|
||||||
<!-- Empty -->
|
|
||||||
<div v-else-if="!entries.length" class="activity-empty">{{ emptyLabel }}</div>
|
|
||||||
|
|
||||||
<!-- Entries -->
|
|
||||||
<article v-for="(entry, index) in entries" :key="entry.id ?? index" class="activity-item">
|
|
||||||
<div class="activity-dot"></div>
|
|
||||||
<div class="activity-body">
|
|
||||||
<div class="activity-message">{{ entry.message }}</div>
|
|
||||||
<div v-if="entry.timestamp" class="activity-time">
|
|
||||||
{{ formatDate(entry.timestamp) }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</article>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.activity-timeline {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activity-empty {
|
|
||||||
font-size: 11px;
|
|
||||||
color: var(--tx-3);
|
|
||||||
font-style: italic;
|
|
||||||
padding: 8px;
|
|
||||||
text-align: center;
|
|
||||||
font-family: 'Manrope', sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activity-item {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 10px minmax(0, 1fr);
|
|
||||||
gap: 10px;
|
|
||||||
align-items: start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activity-dot {
|
|
||||||
width: 8px;
|
|
||||||
height: 8px;
|
|
||||||
border-radius: 999px;
|
|
||||||
margin-top: 5px;
|
|
||||||
background: var(--grad);
|
|
||||||
box-shadow: 0 0 0 4px rgba(124, 108, 255, .12);
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activity-body {
|
|
||||||
min-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activity-message {
|
|
||||||
color: var(--tx);
|
|
||||||
font-size: 12.5px;
|
|
||||||
line-height: 1.45;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activity-time {
|
|
||||||
color: var(--tx-3);
|
|
||||||
font-size: 10.5px;
|
|
||||||
margin-top: 4px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,11 +1,4 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
/**
|
|
||||||
* Badge — Nexus V2 Status- und Label-Badge
|
|
||||||
*
|
|
||||||
* Erweitert: zusätzliche nexus-token-basierte Varianten für
|
|
||||||
* Agenten-Rollen, Status-Pills und Prioritäten.
|
|
||||||
* Original shadcn-Varianten bleiben erhalten.
|
|
||||||
*/
|
|
||||||
import type { HTMLAttributes } from 'vue'
|
import type { HTMLAttributes } from 'vue'
|
||||||
import { cva, type VariantProps } from 'class-variance-authority'
|
import { cva, type VariantProps } from 'class-variance-authority'
|
||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
@@ -15,25 +8,10 @@ const badgeVariants = cva(
|
|||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
// Original shadcn
|
|
||||||
default: 'border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80',
|
default: 'border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80',
|
||||||
secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
secondary: 'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
||||||
destructive: 'border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80',
|
destructive: 'border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80',
|
||||||
outline: 'text-foreground',
|
outline: 'text-foreground',
|
||||||
|
|
||||||
// Nexus V2 — Token-basierte Varianten (Farben aus nexus-tokens.css)
|
|
||||||
work: 'nexus-badge-work',
|
|
||||||
think: 'nexus-badge-think',
|
|
||||||
blocked: 'nexus-badge-blocked',
|
|
||||||
queue: 'nexus-badge-queue',
|
|
||||||
done: 'nexus-badge-done',
|
|
||||||
review: 'nexus-badge-review',
|
|
||||||
iris: 'nexus-badge-iris',
|
|
||||||
bao: 'nexus-badge-bao',
|
|
||||||
agent: 'nexus-badge-agent',
|
|
||||||
priorityHigh: 'nexus-badge-prio-high',
|
|
||||||
priorityMed: 'nexus-badge-prio-med',
|
|
||||||
priorityLow: 'nexus-badge-prio-low',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
@@ -57,78 +35,3 @@ const props = withDefaults(defineProps<Props>(), {
|
|||||||
<slot />
|
<slot />
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
/* Nexus V2 Token-basierte Badge-Varianten */
|
|
||||||
.nexus-badge-work {
|
|
||||||
border-color: rgba(61, 220, 151, .25);
|
|
||||||
background: rgba(34, 197, 94, .12);
|
|
||||||
color: var(--st-work);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-think {
|
|
||||||
border-color: rgba(52, 214, 245, .25);
|
|
||||||
background: rgba(52, 214, 245, .1);
|
|
||||||
color: var(--st-think);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-blocked {
|
|
||||||
border-color: rgba(251, 113, 133, .25);
|
|
||||||
background: rgba(244, 63, 94, .12);
|
|
||||||
color: var(--st-block);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-queue {
|
|
||||||
border-color: rgba(251, 191, 36, .25);
|
|
||||||
background: rgba(251, 191, 36, .12);
|
|
||||||
color: var(--st-queue);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-done {
|
|
||||||
border-color: rgba(34, 197, 94, .25);
|
|
||||||
background: rgba(34, 197, 94, .12);
|
|
||||||
color: var(--st-work);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-review {
|
|
||||||
border-color: rgba(249, 115, 22, .25);
|
|
||||||
background: rgba(249, 115, 22, .12);
|
|
||||||
color: var(--clr-review);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-iris {
|
|
||||||
border-color: rgba(147, 51, 234, .25);
|
|
||||||
background: rgba(147, 51, 234, .12);
|
|
||||||
color: var(--clr-iris);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-bao {
|
|
||||||
border-color: rgba(59, 130, 246, .25);
|
|
||||||
background: rgba(59, 130, 246, .12);
|
|
||||||
color: var(--clr-bao);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-agent {
|
|
||||||
border-color: rgba(16, 185, 129, .2);
|
|
||||||
background: rgba(16, 185, 129, .12);
|
|
||||||
color: var(--clr-agent);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-prio-high {
|
|
||||||
border-color: var(--st-block);
|
|
||||||
background: transparent;
|
|
||||||
color: var(--st-block);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-prio-med {
|
|
||||||
border-color: var(--st-queue);
|
|
||||||
background: transparent;
|
|
||||||
color: var(--st-queue);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nexus-badge-prio-low {
|
|
||||||
border-color: var(--a-blue);
|
|
||||||
background: transparent;
|
|
||||||
color: var(--a-blue);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -1,54 +1,16 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
/**
|
|
||||||
* Card — Nexus V2 glass-panel Karte
|
|
||||||
*
|
|
||||||
* Verwendet nexus-tokens.css als Single Source of Truth.
|
|
||||||
* Hintergrund-kompatibel mit shadcn-Card-Props.
|
|
||||||
* Wrapped content in .glass-panel styles aus tokens.css.
|
|
||||||
*/
|
|
||||||
import type { HTMLAttributes } from 'vue'
|
import type { HTMLAttributes } from 'vue'
|
||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
class?: HTMLAttributes['class']
|
class?: HTMLAttributes['class']
|
||||||
/** Variante: 'glass' (default) | 'raised' | 'subtle' */
|
|
||||||
variant?: 'glass' | 'raised' | 'subtle'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<Props>(), {
|
const props = defineProps<Props>()
|
||||||
variant: 'glass',
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div :class="cn('rounded-xl border bg-card text-card-foreground shadow', props.class)">
|
||||||
:class="cn(
|
|
||||||
'rounded-xl border',
|
|
||||||
{
|
|
||||||
'glass-panel': variant === 'glass',
|
|
||||||
'card-raised': variant === 'raised',
|
|
||||||
'card-subtle': variant === 'subtle',
|
|
||||||
},
|
|
||||||
props.class,
|
|
||||||
)"
|
|
||||||
>
|
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
/* glass-panel ist in nexus-tokens.css definiert */
|
|
||||||
|
|
||||||
.card-raised {
|
|
||||||
background: var(--glass-2);
|
|
||||||
border: 1px solid var(--line-2);
|
|
||||||
border-radius: var(--r);
|
|
||||||
backdrop-filter: blur(12px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-subtle {
|
|
||||||
background: rgba(255, 255, 255, .02);
|
|
||||||
border: 1px solid var(--line);
|
|
||||||
border-radius: var(--r);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -1,106 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
/**
|
|
||||||
* EmptyState — Standardisierte Leerzustands-Anzeige
|
|
||||||
*
|
|
||||||
* Konsistente Darstellung für "keine Daten"-Zustände im Dashboard,
|
|
||||||
* TaskBoard und allen V2-Views.
|
|
||||||
* Verwendet ausschließlich nexus-tokens.css Variablen.
|
|
||||||
*/
|
|
||||||
|
|
||||||
withDefaults(defineProps<{
|
|
||||||
/** Icon-Klasse (optional, z.B. für SVG-Nutzung) */
|
|
||||||
icon?: string
|
|
||||||
/** Primärer Text */
|
|
||||||
title?: string
|
|
||||||
/** Sekundärer Erklärungstext */
|
|
||||||
description?: string
|
|
||||||
/** Kompakte Darstellung (inline-flex) */
|
|
||||||
compact?: boolean
|
|
||||||
}>(), {
|
|
||||||
title: 'Keine Einträge',
|
|
||||||
compact: false,
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div class="empty-state" :class="{ compact }">
|
|
||||||
<div v-if="icon" class="empty-icon" v-html="icon"></div>
|
|
||||||
<slot name="icon">
|
|
||||||
<div v-if="!icon" class="empty-icon-default">
|
|
||||||
<svg width="28" height="28" viewBox="0 0 28 28" fill="none">
|
|
||||||
<rect x="4" y="6" width="20" height="16" rx="3" stroke="currentColor" stroke-width="1.2" />
|
|
||||||
<line x1="10" y1="12" x2="18" y2="12" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" />
|
|
||||||
<line x1="10" y1="16" x2="15" y2="16" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" />
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
</slot>
|
|
||||||
<div v-if="!compact" class="empty-title">{{ title }}</div>
|
|
||||||
<div v-if="description" class="empty-desc">{{ description }}</div>
|
|
||||||
<div v-if="$slots.action" class="empty-action">
|
|
||||||
<slot name="action" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.empty-state {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 24px 12px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-state.compact {
|
|
||||||
flex-direction: row;
|
|
||||||
gap: 8px;
|
|
||||||
padding: 8px 12px;
|
|
||||||
justify-content: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-icon,
|
|
||||||
.empty-icon-default {
|
|
||||||
color: var(--tx-3);
|
|
||||||
opacity: 0.5;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.compact .empty-icon,
|
|
||||||
.compact .empty-icon-default {
|
|
||||||
margin-bottom: 0;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-icon-default {
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-title {
|
|
||||||
font-size: 12px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: var(--tx-2);
|
|
||||||
font-family: 'Manrope', sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.compact .empty-title {
|
|
||||||
font-size: 11px;
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: italic;
|
|
||||||
color: var(--tx-3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-desc {
|
|
||||||
margin-top: 4px;
|
|
||||||
font-size: 11px;
|
|
||||||
color: var(--tx-3);
|
|
||||||
font-family: 'Manrope', sans-serif;
|
|
||||||
max-width: 280px;
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty-action {
|
|
||||||
margin-top: 12px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
/**
|
|
||||||
* PageHeading — Standardisierter Seiten-Header für V2 Views
|
|
||||||
*
|
|
||||||
* Bietet konsistentes grad-text Styling, Eyebrow/Subtitle und Action-Slot.
|
|
||||||
* Verwendet ausschließlich nexus-tokens.css Variablen.
|
|
||||||
*/
|
|
||||||
|
|
||||||
withDefaults(defineProps<{
|
|
||||||
/** Gradient-Text Überschrift */
|
|
||||||
title: string
|
|
||||||
/** Kleiner Eyebrow-Text über der Überschrift (violett) */
|
|
||||||
eyebrow?: string
|
|
||||||
/** Subtitle unter der Überschrift */
|
|
||||||
subtitle?: string
|
|
||||||
}>(), {})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<header class="page-heading">
|
|
||||||
<div>
|
|
||||||
<p v-if="eyebrow || $slots.eyebrow" class="eyebrow">
|
|
||||||
<slot name="eyebrow">{{ eyebrow }}</slot>
|
|
||||||
</p>
|
|
||||||
<h1><span class="grad-text">{{ title }}</span></h1>
|
|
||||||
<p v-if="subtitle" class="board-subtitle">{{ subtitle }}</p>
|
|
||||||
<slot name="meta" />
|
|
||||||
</div>
|
|
||||||
<div v-if="$slots.actions" class="heading-actions">
|
|
||||||
<slot name="actions" />
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.page-heading {
|
|
||||||
display: flex;
|
|
||||||
align-items: flex-start;
|
|
||||||
justify-content: space-between;
|
|
||||||
gap: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-heading h1 {
|
|
||||||
margin: 0;
|
|
||||||
font-size: 22px;
|
|
||||||
font-weight: 700;
|
|
||||||
font-family: 'Space Grotesk', sans-serif;
|
|
||||||
letter-spacing: -0.02em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.eyebrow {
|
|
||||||
color: var(--a-mid);
|
|
||||||
font-size: 9px;
|
|
||||||
font-weight: 700;
|
|
||||||
letter-spacing: 0.18em;
|
|
||||||
margin: 0 0 4px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.board-subtitle {
|
|
||||||
margin: 4px 0 0;
|
|
||||||
font-size: 11px;
|
|
||||||
color: var(--tx-3);
|
|
||||||
font-family: 'Manrope', sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.grad-text {
|
|
||||||
background: var(--grad);
|
|
||||||
-webkit-background-clip: text;
|
|
||||||
background-clip: text;
|
|
||||||
color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.heading-actions {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,116 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
/**
|
|
||||||
* SectionHeader — Titelzeile für Sektionen/Spalten im Dashboard V2
|
|
||||||
*
|
|
||||||
* Kapselt wiederholtes Muster: dot + label + count aus TaskBoard-Spalten
|
|
||||||
* und Iris-Panel-Sektionen. Verwendet ausschließlich Token-Farben.
|
|
||||||
*/
|
|
||||||
|
|
||||||
withDefaults(defineProps<{
|
|
||||||
label: string
|
|
||||||
/** Status-Farbe des Dots: 'work' | 'think' | 'idle' | 'block' | 'queue' | 'review' | 'iris' | 'bao' */
|
|
||||||
dotColor?: 'work' | 'think' | 'idle' | 'block' | 'queue' | 'review' | 'iris' | 'bao'
|
|
||||||
/** Numerischer Count (rechts) */
|
|
||||||
count?: number
|
|
||||||
/** Variante: 'column' (Spalten-Header) oder 'section' (Iris-Panel) */
|
|
||||||
variant?: 'column' | 'section'
|
|
||||||
}>(), {
|
|
||||||
variant: 'column',
|
|
||||||
})
|
|
||||||
|
|
||||||
function dotColorVar(color: string): string {
|
|
||||||
const map: Record<string, string> = {
|
|
||||||
work: 'var(--st-work)',
|
|
||||||
think: 'var(--st-think)',
|
|
||||||
idle: 'var(--st-idle)',
|
|
||||||
block: 'var(--st-block)',
|
|
||||||
queue: 'var(--st-queue)',
|
|
||||||
review: 'var(--st-queue)', // orange-ähnlich
|
|
||||||
iris: 'var(--a-purple)',
|
|
||||||
bao: 'var(--a-blue)',
|
|
||||||
}
|
|
||||||
return map[color] || 'var(--st-idle)'
|
|
||||||
}
|
|
||||||
|
|
||||||
function dotRingVar(color: string): string {
|
|
||||||
const map: Record<string, string> = {
|
|
||||||
work: 'rgba(61, 220, 151, .25)',
|
|
||||||
think: 'rgba(52, 214, 245, .25)',
|
|
||||||
idle: 'rgba(107, 103, 150, .25)',
|
|
||||||
block: 'rgba(251, 113, 133, .25)',
|
|
||||||
queue: 'rgba(251, 191, 36, .25)',
|
|
||||||
review: 'rgba(251, 146, 60, .25)',
|
|
||||||
iris: 'rgba(181, 87, 246, .25)',
|
|
||||||
bao: 'rgba(79, 124, 255, .25)',
|
|
||||||
}
|
|
||||||
return map[color] || 'rgba(107, 103, 150, .25)'
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div class="section-header" :class="variant">
|
|
||||||
<span
|
|
||||||
class="section-dot"
|
|
||||||
:style="{
|
|
||||||
background: dotColorVar(dotColor || 'idle'),
|
|
||||||
boxShadow: `0 0 0 2px ${dotRingVar(dotColor || 'idle')}`,
|
|
||||||
}"
|
|
||||||
></span>
|
|
||||||
<span class="section-label">{{ label }}</span>
|
|
||||||
<span v-if="count !== undefined" class="section-count">{{ count }}</span>
|
|
||||||
<slot />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.section-header {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-header.column {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
border-bottom: 1px solid var(--line);
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-header.section {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
padding-bottom: 8px;
|
|
||||||
border-bottom: 1px solid var(--line);
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-dot {
|
|
||||||
width: 9px;
|
|
||||||
height: 9px;
|
|
||||||
border-radius: 50%;
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-label {
|
|
||||||
font-size: 11px;
|
|
||||||
font-weight: 700;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: .06em;
|
|
||||||
color: var(--tx-2);
|
|
||||||
font-family: 'Space Grotesk', sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-header.section .section-label {
|
|
||||||
font-size: 11px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-count {
|
|
||||||
margin-left: auto;
|
|
||||||
font-family: 'JetBrains Mono', monospace;
|
|
||||||
font-size: 10px;
|
|
||||||
font-weight: 700;
|
|
||||||
font-variant-numeric: tabular-nums;
|
|
||||||
padding: 2px 8px;
|
|
||||||
border-radius: 10px;
|
|
||||||
background: var(--glass-2);
|
|
||||||
color: var(--tx-2);
|
|
||||||
border: 1px solid var(--line);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
/**
|
|
||||||
* StatusDot — Nexus V2 animierter Status-Indikator
|
|
||||||
*
|
|
||||||
* Kapselt die pulse-keyframes aus nexus-tokens.css.
|
|
||||||
* Status-Farben und Pulse-Animationen stammen ausschließlich aus Tokens.
|
|
||||||
*
|
|
||||||
* Props:
|
|
||||||
* status – 'work' | 'think' | 'idle' | 'block' | 'queue'
|
|
||||||
* size – 'sm' (8px) | 'md' (9px) | 'lg' (12px), default 'md'
|
|
||||||
* pulse – Animation aktiv (default: true für work/think/block)
|
|
||||||
* label – Text-Label rechts neben dem Dot (optional)
|
|
||||||
*/
|
|
||||||
|
|
||||||
withDefaults(defineProps<{
|
|
||||||
status: 'work' | 'think' | 'idle' | 'block' | 'queue'
|
|
||||||
size?: 'sm' | 'md' | 'lg'
|
|
||||||
pulse?: boolean
|
|
||||||
label?: string
|
|
||||||
}>(), {
|
|
||||||
size: 'md',
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<span class="status-dot-wrapper">
|
|
||||||
<span
|
|
||||||
class="dot"
|
|
||||||
:class="[status, size, { pulse: pulse !== false }]"
|
|
||||||
:aria-label="label || status"
|
|
||||||
role="status"
|
|
||||||
></span>
|
|
||||||
<span v-if="label" class="dot-label">{{ label }}</span>
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.status-dot-wrapper {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dot {
|
|
||||||
display: inline-block;
|
|
||||||
border-radius: 50%;
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dot.sm { width: 7px; height: 7px; }
|
|
||||||
.dot.md { width: 9px; height: 9px; }
|
|
||||||
.dot.lg { width: 12px; height: 12px; }
|
|
||||||
|
|
||||||
/* Farben aus nexus-tokens.css — Single Source of Truth */
|
|
||||||
.dot.work { background: var(--st-work); }
|
|
||||||
.dot.think { background: var(--st-think); }
|
|
||||||
.dot.idle { background: var(--st-idle); }
|
|
||||||
.dot.block { background: var(--st-block); }
|
|
||||||
.dot.queue { background: var(--st-queue); }
|
|
||||||
|
|
||||||
/* Pulse-Animationen (Keyframes in tokens.css definiert) */
|
|
||||||
.dot.work.pulse { animation: pulse-work 1.8s infinite; box-shadow: 0 0 0 0 rgba(61,220,151,.55); }
|
|
||||||
.dot.think.pulse { animation: pulse-think 1.8s infinite; box-shadow: 0 0 0 0 rgba(52,214,245,.55); }
|
|
||||||
.dot.block.pulse { animation: pulse-block 1.4s infinite; box-shadow: 0 0 0 0 rgba(251,113,133,.55); }
|
|
||||||
|
|
||||||
.dot-label {
|
|
||||||
font-size: 12.5px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: var(--tx-2);
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -7,18 +7,18 @@ const { toasts, remove } = useToast()
|
|||||||
const typeConfig: Record<string, { icon: any; color: string; bg: string }> = {
|
const typeConfig: Record<string, { icon: any; color: string; bg: string }> = {
|
||||||
success: {
|
success: {
|
||||||
icon: CheckCircle,
|
icon: CheckCircle,
|
||||||
color: 'var(--st-work)',
|
color: '#22c55e',
|
||||||
bg: 'rgba(61, 220, 151, 0.10)',
|
bg: 'rgba(34, 197, 94, 0.10)',
|
||||||
},
|
},
|
||||||
error: {
|
error: {
|
||||||
icon: XCircle,
|
icon: XCircle,
|
||||||
color: 'var(--st-block)',
|
color: '#ef4444',
|
||||||
bg: 'rgba(251, 113, 133, 0.10)',
|
bg: 'rgba(239, 68, 68, 0.10)',
|
||||||
},
|
},
|
||||||
info: {
|
info: {
|
||||||
icon: Info,
|
icon: Info,
|
||||||
color: 'var(--a-blue)',
|
color: '#3b82f6',
|
||||||
bg: 'rgba(79, 124, 255, 0.10)',
|
bg: 'rgba(59, 130, 246, 0.10)',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -76,7 +76,7 @@ const typeConfig: Record<string, { icon: any; color: string; bg: string }> = {
|
|||||||
0 8px 32px rgba(0, 0, 0, 0.4),
|
0 8px 32px rgba(0, 0, 0, 0.4),
|
||||||
inset 0 1px 0 color-mix(in srgb, var(--toast-color) 12%, transparent);
|
inset 0 1px 0 color-mix(in srgb, var(--toast-color) 12%, transparent);
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
color: var(--tx);
|
color: #e8eaf0;
|
||||||
font-size: 12.5px;
|
font-size: 12.5px;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
@@ -106,7 +106,7 @@ const typeConfig: Record<string, { icon: any; color: string; bg: string }> = {
|
|||||||
border: none;
|
border: none;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--tx-3);
|
color: #6b7385;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transition: all 0.15s;
|
transition: all 0.15s;
|
||||||
@@ -114,7 +114,7 @@ const typeConfig: Record<string, { icon: any; color: string; bg: string }> = {
|
|||||||
.toast-close:hover {
|
.toast-close:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
background: rgba(255, 255, 255, 0.06);
|
background: rgba(255, 255, 255, 0.06);
|
||||||
color: var(--tx);
|
color: #e8eaf0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Transition animations */
|
/* Transition animations */
|
||||||
|
|||||||
@@ -4,35 +4,25 @@ import { type VariantProps, cva } from 'class-variance-authority'
|
|||||||
export { default as Button } from './Button.vue'
|
export { default as Button } from './Button.vue'
|
||||||
|
|
||||||
export const buttonVariants = cva(
|
export const buttonVariants = cva(
|
||||||
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
|
'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
|
||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
// shadcn-original
|
|
||||||
default: 'bg-primary text-primary-foreground shadow hover:bg-primary/90',
|
default: 'bg-primary text-primary-foreground shadow hover:bg-primary/90',
|
||||||
destructive: 'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90',
|
destructive:
|
||||||
outline: 'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground',
|
'bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90',
|
||||||
secondary: 'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80',
|
outline:
|
||||||
|
'border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground',
|
||||||
|
secondary:
|
||||||
|
'bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80',
|
||||||
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
ghost: 'hover:bg-accent hover:text-accent-foreground',
|
||||||
link: 'text-primary underline-offset-4 hover:underline',
|
link: 'text-primary underline-offset-4 hover:underline',
|
||||||
|
|
||||||
// Nexus V2 — Token-basierte Varianten
|
|
||||||
/** CTA / primäre Aktion — Gradient */
|
|
||||||
gradient: 'nexus-btn-gradient',
|
|
||||||
/** Icon-Only — quadratischer Button ohne Text */
|
|
||||||
icon: 'nexus-btn-icon',
|
|
||||||
/** Ghost thin — minimal hover */
|
|
||||||
ghostSubtle: 'nexus-btn-ghost-subtle',
|
|
||||||
/** Danger/Blocker — rote Akzent-Aktion */
|
|
||||||
danger: 'nexus-btn-danger',
|
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
default: 'h-9 px-4 py-2',
|
default: 'h-9 px-4 py-2',
|
||||||
sm: 'h-8 rounded-md px-3 text-xs',
|
sm: 'h-8 rounded-md px-3 text-xs',
|
||||||
lg: 'h-10 rounded-md px-8',
|
lg: 'h-10 rounded-md px-8',
|
||||||
icon: 'h-9 w-9',
|
icon: 'h-9 w-9',
|
||||||
iconSm: 'h-7 w-7 rounded-md',
|
|
||||||
pill: 'h-7 px-4 rounded-full text-xs',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
export { default as Badge } from './Badge.vue'
|
|
||||||
export { default as Card } from './Card.vue'
|
|
||||||
export { default as StatusDot } from './StatusDot.vue'
|
|
||||||
export { default as PageHeading } from './PageHeading.vue'
|
|
||||||
export { default as EmptyState } from './EmptyState.vue'
|
|
||||||
export { default as ActivityTimeline } from './ActivityTimeline.vue'
|
|
||||||
export { default as SectionHeader } from './SectionHeader.vue'
|
|
||||||
export { default as Input } from './Input.vue'
|
|
||||||
export { default as Textarea } from './Textarea.vue'
|
|
||||||
export { default as Select } from './Select.vue'
|
|
||||||
export { default as Dialog } from './Dialog.vue'
|
|
||||||
export { default as ToastContainer } from './ToastContainer.vue'
|
|
||||||
export { Button } from './button'
|
|
||||||
@@ -321,6 +321,18 @@ export const useTaskStore = defineStore('tasks', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/* ── API: Kommentar/Aktivität an Task posten ──── */
|
||||||
|
async postTaskActivity(id: string, message: string, type = 'comment') {
|
||||||
|
const res = await apiFetch(`/api/dashboard/tasks/${id}/activity`, {
|
||||||
|
method: 'POST',
|
||||||
|
body: JSON.stringify({ message, type }),
|
||||||
|
})
|
||||||
|
if (!res.ok) {
|
||||||
|
const body = await res.json().catch(() => ({}))
|
||||||
|
throw new Error(body.error || `HTTP ${res.status}`)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
/* ── API: Fetch agent workflow overview ──────── */
|
/* ── API: Fetch agent workflow overview ──────── */
|
||||||
async fetchAgentOverview(staleHours = 2) {
|
async fetchAgentOverview(staleHours = 2) {
|
||||||
this.agentOverviewLoading = true
|
this.agentOverviewLoading = true
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* - Waiting section for Iris overview
|
* - Waiting section for Iris overview
|
||||||
*/
|
*/
|
||||||
import { computed, onBeforeUnmount, onMounted, onUnmounted, reactive, ref, watch } from 'vue'
|
import { computed, onBeforeUnmount, onMounted, onUnmounted, reactive, ref, watch } from 'vue'
|
||||||
import { Plus, X, CalendarDays, Clock3, ExternalLink, Link2, ListChecks, Save, AlertTriangle, Eye, Bot, ShieldBan, MessageSquareText, RotateCcw } from '@lucide/vue'
|
import { Plus, X, ExternalLink, Save, AlertTriangle, Eye, Bot, ShieldBan, RotateCcw, Check, Copy, Send, Search } from '@lucide/vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { useAuthStore } from '../stores/auth'
|
import { useAuthStore } from '../stores/auth'
|
||||||
import { useTaskStore, type DashboardTaskDto } from '../stores/tasks'
|
import { useTaskStore, type DashboardTaskDto } from '../stores/tasks'
|
||||||
@@ -213,13 +213,16 @@ function toDateInputValue(date?: string | null): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function flattenBoard() {
|
function flattenBoard() {
|
||||||
return [
|
const masters = [
|
||||||
...taskStore.board.offen,
|
...taskStore.board.offen,
|
||||||
...taskStore.board.inProgress,
|
...taskStore.board.inProgress,
|
||||||
...taskStore.board.review,
|
...taskStore.board.review,
|
||||||
...taskStore.board.blocked,
|
...taskStore.board.blocked,
|
||||||
...taskStore.board.done,
|
...taskStore.board.done,
|
||||||
]
|
]
|
||||||
|
// Children sind keine eigenen Spalten-Karten mehr — fuer Quick-Peek
|
||||||
|
// (Klick auf Teilaufgabe) muessen sie hier trotzdem auffindbar sein.
|
||||||
|
return [...masters, ...masters.flatMap(m => m.childTasks ?? [])]
|
||||||
}
|
}
|
||||||
|
|
||||||
const allBoardTasks = computed(() => flattenBoard())
|
const allBoardTasks = computed(() => flattenBoard())
|
||||||
@@ -233,13 +236,63 @@ const canSaveDetail = computed(() => detailForm.title.trim().length > 0 && !deta
|
|||||||
*/
|
*/
|
||||||
const canChangeState = computed(() => authStore.isIris || authStore.isBao)
|
const canChangeState = computed(() => authStore.isIris || authStore.isBao)
|
||||||
|
|
||||||
|
/* ── Board-Filter (Linear-Style Toolbar) ─────────── */
|
||||||
|
const searchQuery = ref('')
|
||||||
|
const ballFilter = ref<'all' | 'bao' | 'iris' | 'stalled'>('all')
|
||||||
|
const ballFilters = [
|
||||||
|
{ key: 'all', label: 'Alle' },
|
||||||
|
{ key: 'bao', label: 'Du bist dran' },
|
||||||
|
{ key: 'iris', label: 'Bei Iris' },
|
||||||
|
{ key: 'stalled', label: 'Hängt' },
|
||||||
|
] as const
|
||||||
|
|
||||||
|
function minutesSince(dateStr?: string | null): number {
|
||||||
|
if (!dateStr) return Infinity
|
||||||
|
return (Date.now() - new Date(dateStr).getTime()) / 60000
|
||||||
|
}
|
||||||
|
|
||||||
|
function isStalledTask(t: DashboardTaskDto): boolean {
|
||||||
|
if (t.state.toLowerCase() !== 'in progress') return false
|
||||||
|
return minutesSince(t.lastActivityAt ?? t.updatedAt) > STALL_THRESHOLD_MIN
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Ball = wer als Naechstes handeln muss (gleiche Logik wie BoardCard). */
|
||||||
|
function ballOf(t: DashboardTaskDto): string | null {
|
||||||
|
const s = t.state.toLowerCase()
|
||||||
|
if (s === 'review') return 'bao'
|
||||||
|
if (s === 'done') return null
|
||||||
|
if (s === 'backlog') return t.expectedFrom || 'iris'
|
||||||
|
return t.expectedFrom || t.assignedTo || 'iris'
|
||||||
|
}
|
||||||
|
|
||||||
|
function matchesFilters(t: DashboardTaskDto): boolean {
|
||||||
|
const q = searchQuery.value.trim().toLowerCase()
|
||||||
|
if (q) {
|
||||||
|
const hay = [t.title, t.detail ?? '', t.id, ...(t.childTasks ?? []).map(c => c.title)]
|
||||||
|
.join(' ')
|
||||||
|
.toLowerCase()
|
||||||
|
if (!hay.includes(q)) return false
|
||||||
|
}
|
||||||
|
if (ballFilter.value === 'bao') return ballOf(t) === 'bao'
|
||||||
|
if (ballFilter.value === 'iris') return ballOf(t) === 'iris'
|
||||||
|
if (ballFilter.value === 'stalled') {
|
||||||
|
const children = t.childTasks ?? []
|
||||||
|
return children.length ? children.some(isStalledTask) : isStalledTask(t)
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
function filterTasks(list: DashboardTaskDto[]): DashboardTaskDto[] {
|
||||||
|
return list.filter(matchesFilters)
|
||||||
|
}
|
||||||
|
|
||||||
/* Spalten-Konfiguration — Board zeigt nur Master-Tasks (Children nested in der Karte). */
|
/* Spalten-Konfiguration — Board zeigt nur Master-Tasks (Children nested in der Karte). */
|
||||||
const columns = computed(() => [
|
const columns = computed(() => [
|
||||||
{ key: 'offen', name: 'Offen', tasks: taskStore.board.offen, dot: 'var(--st-queue)', ring: 'rgba(251,191,36,.25)' },
|
{ key: 'offen', name: 'Offen', tasks: filterTasks(taskStore.board.offen), dot: 'var(--st-queue)', ring: 'rgba(251,191,36,.25)' },
|
||||||
{ key: 'inProgress', name: 'In Bearbeitung', tasks: taskStore.board.inProgress, dot: 'var(--st-work)', ring: 'rgba(61,220,151,.25)' },
|
{ key: 'inProgress', name: 'In Bearbeitung', tasks: filterTasks(taskStore.board.inProgress), dot: 'var(--st-work)', ring: 'rgba(61,220,151,.25)' },
|
||||||
{ key: 'review', name: 'Review', tasks: taskStore.board.review, dot: '#fb923c', ring: 'rgba(251,146,60,.25)' },
|
{ key: 'review', name: 'Review', tasks: filterTasks(taskStore.board.review), dot: '#fb923c', ring: 'rgba(251,146,60,.25)' },
|
||||||
{ key: 'done', name: 'Erledigt', tasks: taskStore.board.done, dot: 'var(--st-work)', ring: 'rgba(61,220,151,.25)' },
|
{ key: 'done', name: 'Erledigt', tasks: filterTasks(taskStore.board.done), dot: 'var(--st-work)', ring: 'rgba(61,220,151,.25)' },
|
||||||
{ key: 'blocked', name: 'Blockiert', tasks: taskStore.board.blocked, dot: 'var(--st-block)', ring: 'rgba(251,113,133,.25)' },
|
{ key: 'blocked', name: 'Blockiert', tasks: filterTasks(taskStore.board.blocked), dot: 'var(--st-block)', ring: 'rgba(251,113,133,.25)' },
|
||||||
])
|
])
|
||||||
|
|
||||||
function hydrateDetailForm(task: BoardTask | null) {
|
function hydrateDetailForm(task: BoardTask | null) {
|
||||||
@@ -335,6 +388,7 @@ async function openQuickPeek(taskId: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function closeDetailPanel() {
|
function closeDetailPanel() {
|
||||||
|
commentText.value = ''
|
||||||
showDetailPanel.value = false
|
showDetailPanel.value = false
|
||||||
selectedTaskId.value = null
|
selectedTaskId.value = null
|
||||||
childTasks.value = []
|
childTasks.value = []
|
||||||
@@ -392,6 +446,55 @@ async function saveTaskDetail() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ── Detail-Modal: Kommentar, Link kopieren, Child-Summary ── */
|
||||||
|
const commentText = ref('')
|
||||||
|
const commentSending = ref(false)
|
||||||
|
const linkCopied = ref(false)
|
||||||
|
|
||||||
|
async function submitComment() {
|
||||||
|
const text = commentText.value.trim()
|
||||||
|
if (!text || !selectedTask.value || commentSending.value) return
|
||||||
|
commentSending.value = true
|
||||||
|
try {
|
||||||
|
await taskStore.postTaskActivity(selectedTask.value.id, text)
|
||||||
|
commentText.value = ''
|
||||||
|
taskActivity.value = await taskStore.fetchTaskActivity(selectedTask.value.id)
|
||||||
|
} catch (_err) {
|
||||||
|
detailError.value = 'Kommentar konnte nicht gespeichert werden'
|
||||||
|
} finally {
|
||||||
|
commentSending.value = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function copyTaskLink() {
|
||||||
|
if (!selectedTask.value) return
|
||||||
|
navigator.clipboard?.writeText(`${window.location.origin}/tasks/${selectedTask.value.id}`)
|
||||||
|
linkCopied.value = true
|
||||||
|
setTimeout(() => { linkCopied.value = false }, 1500)
|
||||||
|
}
|
||||||
|
|
||||||
|
const childStats = computed(() => {
|
||||||
|
const list = childTasks.value
|
||||||
|
const done = list.filter(c => c.state === 'Done').length
|
||||||
|
const active = list.filter(c => c.state === 'In progress').length
|
||||||
|
const blocked = list.filter(c => c.state === 'Blocked').length
|
||||||
|
return { total: list.length, done, active, blocked, open: list.length - done - active - blocked }
|
||||||
|
})
|
||||||
|
|
||||||
|
const childAgentSummary = computed(() => {
|
||||||
|
const map = new Map<string, { done: number; total: number }>()
|
||||||
|
for (const c of childTasks.value) {
|
||||||
|
const key = c.assignedTo || 'unassigned'
|
||||||
|
const cur = map.get(key) ?? { done: 0, total: 0 }
|
||||||
|
cur.total++
|
||||||
|
if (c.state === 'Done') cur.done++
|
||||||
|
map.set(key, cur)
|
||||||
|
}
|
||||||
|
return [...map.entries()].map(([agent, stats]) => ({ agent, ...stats }))
|
||||||
|
})
|
||||||
|
|
||||||
|
const recentActivity = computed(() => taskActivity.value.slice(0, 8))
|
||||||
|
|
||||||
function onGlobalKeydown(event: KeyboardEvent) {
|
function onGlobalKeydown(event: KeyboardEvent) {
|
||||||
if (event.key === 'Escape' && showDetailPanel.value) {
|
if (event.key === 'Escape' && showDetailPanel.value) {
|
||||||
closeDetailPanel()
|
closeDetailPanel()
|
||||||
@@ -456,6 +559,23 @@ onUnmounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Toolbar: Suche + Ball-Filter -->
|
||||||
|
<div class="board-toolbar">
|
||||||
|
<div class="tb-search">
|
||||||
|
<Search :size="14" />
|
||||||
|
<input v-model="searchQuery" type="text" placeholder="Tasks durchsuchen…" />
|
||||||
|
<button v-if="searchQuery" class="tb-clear" aria-label="Suche leeren" @click="searchQuery = ''">×</button>
|
||||||
|
</div>
|
||||||
|
<div class="tb-chips">
|
||||||
|
<button
|
||||||
|
v-for="f in ballFilters"
|
||||||
|
:key="f.key"
|
||||||
|
:class="['tb-chip', { active: ballFilter === f.key }]"
|
||||||
|
@click="ballFilter = f.key"
|
||||||
|
>{{ f.label }}</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Status-Change Permission Banner -->
|
<!-- Status-Change Permission Banner -->
|
||||||
<div v-if="!canChangeState" class="permission-banner">
|
<div v-if="!canChangeState" class="permission-banner">
|
||||||
<ShieldBan :size="14" />
|
<ShieldBan :size="14" />
|
||||||
@@ -682,161 +802,145 @@ onUnmounted(() => {
|
|||||||
<Teleport to="body">
|
<Teleport to="body">
|
||||||
<div v-if="showDetailPanel && selectedTask" class="detail-overlay" @click.self="closeDetailPanel">
|
<div v-if="showDetailPanel && selectedTask" class="detail-overlay" @click.self="closeDetailPanel">
|
||||||
<aside class="detail-panel">
|
<aside class="detail-panel">
|
||||||
<div class="detail-topbar">
|
<!-- Topbar: Breadcrumb + ID + Aktionen -->
|
||||||
<div class="detail-breadcrumb">Task Board / {{ stateLabel(selectedTask.state) }}</div>
|
<header class="detail-topbar">
|
||||||
<button type="button" class="detail-close" @click="closeDetailPanel" aria-label="Detailansicht schließen">
|
<div class="detail-crumb">
|
||||||
<X :size="18" />
|
<span class="crumb-root">Task Board</span>
|
||||||
</button>
|
<span class="crumb-sep">/</span>
|
||||||
</div>
|
<span class="detail-state-pill" :class="statusTone(selectedTask.state)">{{ stateLabel(selectedTask.state) }}</span>
|
||||||
|
<button class="id-chip" :title="linkCopied ? 'Link kopiert!' : 'Link kopieren'" @click="copyTaskLink">
|
||||||
|
#{{ selectedTask.id.slice(0, 8) }}
|
||||||
|
<Check v-if="linkCopied" :size="11" />
|
||||||
|
<Copy v-else :size="11" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="detail-topbar-actions">
|
||||||
|
<template v-if="selectedTask.state === 'Review' && canChangeState">
|
||||||
|
<button class="btn btn-approve" @click="handleApprove(selectedTask.id); closeDetailPanel()"><Check :size="13" /> Abnehmen</button>
|
||||||
|
<button class="btn btn-changes" @click="openRequestChanges(selectedTask)"><RotateCcw :size="13" /> Änderung</button>
|
||||||
|
</template>
|
||||||
|
<button class="btn btn-ghost" @click="router.push('/tasks/' + selectedTask.id)"><ExternalLink :size="13" /> Vollansicht</button>
|
||||||
|
<button class="icon-btn" aria-label="Schließen" @click="closeDetailPanel"><X :size="16" /></button>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
<div class="detail-content">
|
<div class="detail-content">
|
||||||
<section class="detail-main">
|
<!-- Hauptspalte: Titel, Chips, Beschreibung, Summary-Kacheln -->
|
||||||
<div class="detail-title-block">
|
<section class="detail-main v2-scroll">
|
||||||
<span class="detail-state-pill" :class="statusTone(selectedTask.state)">{{ stateLabel(selectedTask.state) }}</span>
|
<input v-model="detailForm.title" class="detail-title-input" maxlength="240" placeholder="Titel…" />
|
||||||
<input v-model="detailForm.title" class="detail-title-input" maxlength="240" />
|
|
||||||
<div class="detail-meta-row">
|
<div class="detail-chips">
|
||||||
<span>#{{ selectedTask.id.slice(0, 8) }}</span>
|
<span v-if="ballOf(selectedTask)" class="meta-chip" :class="'ball-' + ballOf(selectedTask)">Ball: {{ expectedFromLabel(ballOf(selectedTask)) }}</span>
|
||||||
<span v-if="selectedTask.isAgentTask" class="meta-agent-tag">🤖 Agent-Task</span>
|
<span v-if="selectedTask.parentTaskId" class="meta-chip">Teilaufgabe</span>
|
||||||
<span v-if="selectedTask.expectedFrom" class="meta-expected">⏳ Erwartet: {{ selectedTask.expectedFrom }}</span>
|
<span v-else-if="selectedTask.isAgentTask" class="meta-chip">Agent-Task</span>
|
||||||
<span v-if="selectedTask.parentTaskId" class="meta-expected">↳ Child-Task</span>
|
<span class="meta-chip dim">Erstellt {{ formatDate(selectedTask.createdAt) }}</span>
|
||||||
<span v-if="delegationBadge(selectedTask)" class="meta-expected">↳ {{ delegationBadge(selectedTask) }}</span>
|
<span class="meta-chip dim">Update {{ relativeTime(selectedTask.lastActivityAt ?? selectedTask.updatedAt) }}</span>
|
||||||
<span><Clock3 :size="13" /> Aktualisiert {{ formatDate(selectedTask.updatedAt, true) }}</span>
|
|
||||||
<span><CalendarDays :size="13" /> Erstellt {{ formatDate(selectedTask.createdAt) }}</span>
|
|
||||||
<span v-if="selectedTask.isAgentTask"><MessageSquareText :size="13" /> Letzter Status {{ relativeTime(selectedTask.lastActivityAt ?? selectedTask.updatedAt) }}</span>
|
|
||||||
</div>
|
|
||||||
<div v-if="selectedTask.isAgentTask || hasChildTasks(selectedTask.id)" class="detail-progress-banner">
|
|
||||||
<strong>Letzter Fortschritt:</strong> {{ activityHint(selectedTask) }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="detail-section">
|
<textarea
|
||||||
<div class="detail-section-header">Beschreibung</div>
|
v-model="detailForm.detail"
|
||||||
<textarea
|
class="detail-desc"
|
||||||
v-model="detailForm.detail"
|
rows="5"
|
||||||
class="detail-textarea"
|
placeholder="Beschreibung, Kontext, Akzeptanzkriterien…"
|
||||||
rows="8"
|
></textarea>
|
||||||
placeholder="Mehr Kontext, Akzeptanzkriterien oder Notizen…"
|
|
||||||
></textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="detail-grid">
|
<div v-if="detailLoading" class="detail-empty">Lade…</div>
|
||||||
<section class="detail-section">
|
<template v-else-if="childStats.total">
|
||||||
<div class="detail-section-header"><ListChecks :size="14" /> Unteraufgaben</div>
|
<div class="tile-grid">
|
||||||
<div v-if="detailLoading" class="detail-empty">Lade…</div>
|
<div class="tile">
|
||||||
<div v-else-if="childTasks.length" class="detail-stack">
|
<span class="tile-num">{{ childStats.done }}<small>/{{ childStats.total }}</small></span>
|
||||||
<article v-for="child in childTasks" :key="child.id" class="mini-card">
|
<span class="tile-label">Fertig</span>
|
||||||
<div class="mini-card-row">
|
<div class="tile-track"><div class="tile-fill" :style="{ width: Math.round(childStats.done / childStats.total * 100) + '%' }"></div></div>
|
||||||
<span class="mini-title">{{ child.title }}</span>
|
|
||||||
<span class="mini-state">{{ stateLabel(child.state) }}</span>
|
|
||||||
</div>
|
|
||||||
<p v-if="child.detail" class="mini-copy">{{ child.detail }}</p>
|
|
||||||
</article>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="detail-empty">Noch keine Unteraufgaben verknüpft.</div>
|
<div class="tile"><span class="tile-num t-active">{{ childStats.active }}</span><span class="tile-label">Aktiv</span></div>
|
||||||
</section>
|
<div class="tile"><span class="tile-num t-open">{{ childStats.open }}</span><span class="tile-label">Offen</span></div>
|
||||||
|
<div class="tile"><span class="tile-num t-blocked">{{ childStats.blocked }}</span><span class="tile-label">Blockiert</span></div>
|
||||||
<section class="detail-section">
|
</div>
|
||||||
<div class="detail-section-header"><Link2 :size="14" /> Aktivität</div>
|
<div class="agent-summary">
|
||||||
<div v-if="detailLoading" class="detail-empty">Lade…</div>
|
<button
|
||||||
<div v-else-if="taskActivity.length" class="activity-list">
|
v-for="g in childAgentSummary"
|
||||||
<article v-for="(entry, index) in taskActivity" :key="entry.id ?? index" class="activity-item">
|
:key="g.agent"
|
||||||
<div class="activity-dot"></div>
|
class="agent-pill"
|
||||||
<div>
|
title="Details in der Vollansicht"
|
||||||
<div class="activity-message">{{ entry.message ?? 'Aktivität' }}</div>
|
@click="router.push('/tasks/' + selectedTask.id)"
|
||||||
<div class="activity-time">{{ formatDate(entry.createdAt ?? entry.timestamp ?? null, true) }}</div>
|
>{{ expectedFromLabel(g.agent) }} <b>{{ g.done }}/{{ g.total }}</b></button>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</template>
|
||||||
</div>
|
|
||||||
<div v-else class="detail-empty">Noch keine Aktivität vorhanden.</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<aside class="detail-sidebar">
|
<!-- Seitenleiste: Eigenschaften + Aktivität -->
|
||||||
<section class="sidebar-card">
|
<aside class="detail-side v2-scroll">
|
||||||
<div class="sidebar-heading">Eigenschaften</div>
|
<section class="side-block">
|
||||||
<label class="sidebar-field">
|
<div class="side-heading">Eigenschaften</div>
|
||||||
<span>Status <span v-if="!canChangeState" class="readonly-tag">(nur Iris/Bao)</span></span>
|
<div class="prop-row">
|
||||||
<select
|
<span class="prop-label">Status</span>
|
||||||
v-model="detailForm.state"
|
<select v-model="detailForm.state" class="prop-control" :disabled="!canChangeState" :title="!canChangeState ? 'Nur Iris und Bao' : ''">
|
||||||
class="field-input field-select slim"
|
|
||||||
:disabled="!canChangeState"
|
|
||||||
:title="!canChangeState ? 'Statusänderungen sind nur Iris und Bao vorbehalten' : ''"
|
|
||||||
>
|
|
||||||
<option value="Backlog">Offen</option>
|
<option value="Backlog">Offen</option>
|
||||||
<option value="In progress">In Bearbeitung</option>
|
<option value="In progress">In Bearbeitung</option>
|
||||||
<option value="Review">Review</option>
|
<option value="Review">Review</option>
|
||||||
<option value="Blocked">Blockiert</option>
|
<option value="Blocked">Blockiert</option>
|
||||||
<option value="Done">Erledigt</option>
|
<option value="Done">Erledigt</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</div>
|
||||||
<label class="sidebar-field">
|
<div class="prop-row">
|
||||||
<span>Priorität</span>
|
<span class="prop-label">Priorität</span>
|
||||||
<select v-model="detailForm.priority" class="field-input field-select slim">
|
<select v-model="detailForm.priority" class="prop-control">
|
||||||
<option value="High">High</option>
|
<option value="High">High</option>
|
||||||
<option value="Medium">Medium</option>
|
<option value="Medium">Medium</option>
|
||||||
<option value="Low">Low</option>
|
<option value="Low">Low</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</div>
|
||||||
<label class="sidebar-field">
|
<div class="prop-row">
|
||||||
<span>Zuständig</span>
|
<span class="prop-label">Zuständig</span>
|
||||||
<select v-model="detailForm.assignedTo" class="field-input field-select slim">
|
<select v-model="detailForm.assignedTo" class="prop-control">
|
||||||
<option v-for="option in TASK_AGENT_OPTIONS" :key="option.id || 'unassigned'" :value="option.id">
|
<option v-for="option in TASK_AGENT_OPTIONS" :key="option.id || 'none'" :value="option.id">{{ option.label }}</option>
|
||||||
{{ option.label }}
|
|
||||||
</option>
|
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</div>
|
||||||
<label class="sidebar-field">
|
<div class="prop-row">
|
||||||
<span>Fällig am</span>
|
<span class="prop-label">Fällig</span>
|
||||||
<input v-model="detailForm.dueDate" type="date" class="field-input slim" />
|
<input v-model="detailForm.dueDate" type="date" class="prop-control" />
|
||||||
</label>
|
</div>
|
||||||
|
<div class="prop-row">
|
||||||
|
<span class="prop-label">Quelle</span>
|
||||||
|
<span class="prop-static">{{ selectedTask.source || '—' }}</span>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="sidebar-card subtle">
|
<section class="side-block side-activity">
|
||||||
<div class="sidebar-heading">Snapshot</div>
|
<div class="side-heading">Aktivität <span v-if="taskActivity.length" class="side-count">{{ taskActivity.length }}</span></div>
|
||||||
<dl class="snapshot-list">
|
<div v-if="detailLoading" class="detail-empty">Lade…</div>
|
||||||
<div>
|
<div v-else-if="recentActivity.length" class="mini-timeline v2-scroll">
|
||||||
<dt>Quelle</dt>
|
<div v-for="(entry, index) in recentActivity" :key="entry.id ?? index" class="mini-entry">
|
||||||
<dd>{{ selectedTask.source || '—' }}</dd>
|
<span class="mini-dot"></span>
|
||||||
|
<div class="mini-body">
|
||||||
|
<div class="mini-msg">{{ entry.message ?? 'Aktivität' }}</div>
|
||||||
|
<div class="mini-time">{{ relativeTime(entry.createdAt ?? entry.timestamp ?? null) }}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
</div>
|
||||||
<dt>Priorität</dt>
|
<div v-else class="detail-empty">Noch keine Aktivität.</div>
|
||||||
<dd>{{ selectedTask.priority }}</dd>
|
<div class="comment-box">
|
||||||
</div>
|
<input
|
||||||
<div>
|
v-model="commentText"
|
||||||
<dt>Fällig</dt>
|
type="text"
|
||||||
<dd>{{ formatDate(selectedTask.dueDate) }}</dd>
|
placeholder="Kommentar hinzufügen…"
|
||||||
</div>
|
@keydown.enter.prevent="submitComment"
|
||||||
<div v-if="selectedTask.isAgentTask">
|
/>
|
||||||
<dt>Agent-Task</dt>
|
<button class="icon-btn send-btn" :disabled="!commentText.trim() || commentSending" aria-label="Kommentar senden" @click="submitComment"><Send :size="14" /></button>
|
||||||
<dd>🤖 Ja</dd>
|
</div>
|
||||||
</div>
|
|
||||||
<div v-if="selectedTask.expectedFrom">
|
|
||||||
<dt>Erwartet von</dt>
|
|
||||||
<dd>{{ selectedTask.expectedFrom }}</dd>
|
|
||||||
</div>
|
|
||||||
<div v-if="selectedTask.parentTaskId">
|
|
||||||
<dt>Task-Typ</dt>
|
|
||||||
<dd>Sichtbare Child-Task</dd>
|
|
||||||
</div>
|
|
||||||
</dl>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<p v-if="detailError" class="detail-flash error">{{ detailError }}</p>
|
|
||||||
<p v-else-if="detailSuccess" class="detail-flash success">{{ detailSuccess }}</p>
|
|
||||||
|
|
||||||
<div class="detail-actions">
|
|
||||||
<button type="button" class="btn-cancel" @click="closeDetailPanel">Schließen</button>
|
|
||||||
<button type="button" class="btn-ghost" @click="router.push('/tasks/' + selectedTask.id)">
|
|
||||||
<ExternalLink :size="13" /> Vollansicht öffnen
|
|
||||||
</button>
|
|
||||||
<button type="button" class="btn-submit" :disabled="!canSaveDetail || (detailForm.state !== selectedTask.state && !canChangeState)" @click="saveTaskDetail">
|
|
||||||
<Save :size="14" />
|
|
||||||
{{ detailSaving ? 'Speichert…' : 'Speichern' }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<footer class="detail-footer">
|
||||||
|
<p v-if="detailError" class="detail-flash error">{{ detailError }}</p>
|
||||||
|
<p v-else-if="detailSuccess" class="detail-flash success">{{ detailSuccess }}</p>
|
||||||
|
<span class="footer-spacer"></span>
|
||||||
|
<button class="btn btn-ghost" @click="closeDetailPanel">Schließen</button>
|
||||||
|
<button class="btn btn-primary" :disabled="!canSaveDetail || (detailForm.state !== selectedTask.state && !canChangeState)" @click="saveTaskDetail">
|
||||||
|
<Save :size="13" /> {{ detailSaving ? 'Speichert…' : 'Speichern' }}
|
||||||
|
</button>
|
||||||
|
</footer>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
</Teleport>
|
</Teleport>
|
||||||
@@ -954,63 +1058,126 @@ select:disabled { opacity: .45; cursor: not-allowed; }
|
|||||||
.form-error, .detail-flash.error { color: var(--st-block); font-size: 11px; margin: 0; font-family: 'Manrope', sans-serif; }
|
.form-error, .detail-flash.error { color: var(--st-block); font-size: 11px; margin: 0; font-family: 'Manrope', sans-serif; }
|
||||||
.detail-flash.success { color: #86efac; font-size: 11px; margin: 0; }
|
.detail-flash.success { color: #86efac; font-size: 11px; margin: 0; }
|
||||||
.modal-actions, .detail-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
|
.modal-actions, .detail-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
|
||||||
.btn-cancel { padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-sm, 10px); background: transparent; color: var(--tx-2); font-size: 12px; font-weight: 500; font-family: 'Manrope', sans-serif; cursor: pointer; transition: background .15s, color .15s; }
|
.btn-cancel { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--tx-2); font-size: 12px; font-weight: 600; font-family: 'Manrope', sans-serif; cursor: pointer; transition: background .15s, color .15s; }
|
||||||
.btn-cancel:hover { background: rgba(124,108,255,.08); color: var(--tx); }
|
.btn-cancel:hover { background: rgba(124,108,255,.08); color: var(--tx); }
|
||||||
.btn-ghost { padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-sm, 10px); background: transparent; color: var(--tx-2); font-size: 12px; font-weight: 500; font-family: 'Manrope', sans-serif; cursor: pointer; transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 6px; }
|
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--tx-2); font-size: 12px; font-weight: 600; font-family: 'Manrope', sans-serif; cursor: pointer; transition: background .15s, color .15s; }
|
||||||
.btn-ghost:hover { background: rgba(124,108,255,.08); color: var(--tx); }
|
.btn-ghost:hover { background: rgba(124,108,255,.08); color: var(--tx); }
|
||||||
.btn-submit { padding: 7px 18px; border: none; border-radius: var(--r-sm, 10px); background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; font-family: 'Manrope', sans-serif; cursor: pointer; transition: opacity .15s, transform .15s; box-shadow: var(--glow-purple); display: inline-flex; align-items: center; gap: 6px; }
|
.btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 16px; border: none; border-radius: 9px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; font-family: 'Manrope', sans-serif; cursor: pointer; transition: opacity .15s, transform .15s; box-shadow: var(--glow-purple); }
|
||||||
.btn-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
|
.btn-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
|
||||||
.btn-submit:not(:disabled):hover { opacity: .85; transform: translateY(-1px); }
|
.btn-submit:not(:disabled):hover { opacity: .85; transform: translateY(-1px); }
|
||||||
|
|
||||||
/* Detail Panel */
|
/* ── Toolbar (Suche + Ball-Filter) ── */
|
||||||
.detail-panel { width: min(1120px, calc(100vw - 48px)); height: min(88vh, 860px); display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(13,11,28,.97), rgba(10,9,24,.96)); border: 1px solid rgba(124,108,255,.18); border-radius: 22px; box-shadow: 0 28px 90px rgba(0,0,0,.45); overflow: hidden; }
|
.board-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
||||||
.detail-topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
|
.tb-search { display: flex; align-items: center; gap: 8px; flex: 0 1 320px; min-width: 200px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(124,108,255,.05); color: var(--tx-3); transition: border-color .15s; }
|
||||||
.detail-breadcrumb { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); }
|
.tb-search:focus-within { border-color: var(--a-mid); }
|
||||||
.detail-content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; flex: 1; }
|
.tb-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--tx); font-size: 12.5px; font-family: 'Manrope', sans-serif; }
|
||||||
.detail-main { padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
|
.tb-clear { border: none; background: transparent; color: var(--tx-3); font-size: 15px; cursor: pointer; padding: 0 2px; }
|
||||||
.detail-sidebar { padding: 24px; border-left: 1px solid var(--line); background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 14px; }
|
.tb-clear:hover { color: var(--tx); }
|
||||||
.detail-title-block { display: flex; flex-direction: column; gap: 12px; }
|
.tb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||||
.detail-state-pill { width: fit-content; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 700; letter-spacing: .03em; border: 1px solid transparent; }
|
.tb-chip { height: 28px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--tx-2); font-size: 11.5px; font-weight: 600; font-family: 'Manrope', sans-serif; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
|
||||||
|
.tb-chip:hover { background: rgba(124,108,255,.08); color: var(--tx); }
|
||||||
|
.tb-chip.active { background: linear-gradient(90deg, rgba(124,108,255,.22), rgba(124,108,255,.06)); border-color: rgba(124,108,255,.35); color: #fff; }
|
||||||
|
|
||||||
|
/* ── Buttons (einheitliches System) ── */
|
||||||
|
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 9px; font-size: 12px; font-weight: 600; font-family: 'Manrope', sans-serif; cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s, filter .15s; }
|
||||||
|
.btn-primary { border: none; background: var(--grad); color: #fff; box-shadow: var(--glow-purple); }
|
||||||
|
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
|
||||||
|
.btn-primary:not(:disabled):hover { filter: brightness(1.08); }
|
||||||
|
.btn-approve { border-color: rgba(61,220,151,.3); background: rgba(61,220,151,.14); color: var(--st-work); }
|
||||||
|
.btn-approve:hover { background: rgba(61,220,151,.24); }
|
||||||
|
.btn-changes { border-color: rgba(251,146,60,.3); background: rgba(251,146,60,.12); color: #fdba74; }
|
||||||
|
.btn-changes:hover { background: rgba(251,146,60,.22); }
|
||||||
|
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border: none; border-radius: 8px; background: transparent; color: var(--tx-3); cursor: pointer; transition: background .15s, color .15s; }
|
||||||
|
.icon-btn:hover { background: rgba(124,108,255,.1); color: var(--tx); }
|
||||||
|
|
||||||
|
/* ── Detail Panel (Quick Peek — kompakte Zusammenfassung) ── */
|
||||||
|
.detail-panel { width: min(880px, calc(100vw - 40px)); max-height: min(84vh, 780px); display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(15,13,32,.97), rgba(10,9,24,.97)); border: 1px solid rgba(124,108,255,.18); border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,.5); overflow: hidden; }
|
||||||
|
.detail-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
|
||||||
|
.detail-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
||||||
|
.crumb-root { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--tx-3); white-space: nowrap; }
|
||||||
|
.crumb-sep { color: var(--tx-3); font-size: 11px; }
|
||||||
|
.id-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: rgba(124,108,255,.06); color: var(--tx-3); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; cursor: pointer; transition: color .15s, border-color .15s; }
|
||||||
|
.id-chip:hover { color: var(--tx); border-color: var(--line-2); }
|
||||||
|
.detail-topbar-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
|
||||||
|
|
||||||
|
.detail-state-pill { border-radius: 999px; padding: 3px 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; border: 1px solid transparent; white-space: nowrap; }
|
||||||
.detail-state-pill.is-backlog { color: #fde68a; background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.25); }
|
.detail-state-pill.is-backlog { color: #fde68a; background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.25); }
|
||||||
.detail-state-pill.is-progress { color: #86efac; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.25); }
|
.detail-state-pill.is-progress { color: #86efac; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.25); }
|
||||||
.detail-state-pill.is-review { color: #fdba74; background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.25); }
|
.detail-state-pill.is-review { color: #fdba74; background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.25); }
|
||||||
.detail-state-pill.is-blocked { color: #fda4af; background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.25); }
|
.detail-state-pill.is-blocked { color: #fda4af; background: rgba(244,63,94,.12); border-color: rgba(244,63,94,.25); }
|
||||||
.detail-state-pill.is-done { color: #86efac; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.25); }
|
.detail-state-pill.is-done { color: #86efac; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.25); }
|
||||||
.detail-title-input { background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 0; color: var(--tx); font-family: 'Space Grotesk', sans-serif; font-size: 31px; font-weight: 700; letter-spacing: -0.03em; outline: none; }
|
|
||||||
.detail-meta-row { display: flex; flex-wrap: wrap; gap: 14px; color: var(--tx-3); font-size: 11.5px; }
|
.detail-content { display: grid; grid-template-columns: minmax(0, 1fr) 292px; min-height: 0; flex: 1; }
|
||||||
.detail-meta-row span { display: inline-flex; align-items: center; gap: 5px; }
|
.detail-main { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
|
||||||
.meta-agent-tag { color: #c084fc; }
|
.detail-title-input { background: transparent; border: none; padding: 0; color: var(--tx); font-family: 'Space Grotesk', sans-serif; font-size: 23px; font-weight: 700; letter-spacing: -0.02em; outline: none; width: 100%; }
|
||||||
.meta-expected { color: #a78bfa; }
|
.detail-title-input:focus { box-shadow: none; }
|
||||||
.detail-progress-banner { padding: 10px 12px; border-radius: 12px; background: rgba(124,108,255,.08); border: 1px solid rgba(124,108,255,.14); color: var(--tx-2); font-size: 12px; }
|
|
||||||
.detail-section { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
|
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||||
.detail-section-header, .sidebar-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--tx-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
|
.meta-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 20px; font-size: 10.5px; font-weight: 600; background: rgba(124,108,255,.09); border: 1px solid rgba(124,108,255,.16); color: var(--tx-2); font-family: 'Manrope', sans-serif; }
|
||||||
.detail-textarea { width: 100%; min-height: 180px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10,9,24,.55); color: var(--tx); padding: 14px; font-size: 14px; line-height: 1.6; outline: none; box-sizing: border-box; }
|
.meta-chip.dim { background: transparent; border-color: var(--line); color: var(--tx-3); font-weight: 500; }
|
||||||
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
|
.meta-chip.ball-bao { background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.3); color: #60a5fa; }
|
||||||
.detail-stack, .activity-list { display: flex; flex-direction: column; gap: 10px; }
|
.meta-chip.ball-iris { background: rgba(147,51,234,.14); border-color: rgba(147,51,234,.3); color: #c084fc; }
|
||||||
.mini-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(10,9,24,.45); }
|
|
||||||
.mini-card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
|
.detail-desc { width: 100%; min-height: 96px; max-height: 220px; border-radius: 11px; border: 1px solid var(--line); background: rgba(10,9,24,.5); color: var(--tx); padding: 11px 13px; font-size: 12.5px; line-height: 1.6; outline: none; resize: vertical; box-sizing: border-box; font-family: 'Manrope', sans-serif; transition: border-color .15s; }
|
||||||
.mini-title { font-size: 13px; font-weight: 600; color: var(--tx); }
|
.detail-desc:focus { border-color: var(--a-mid); box-shadow: none; }
|
||||||
.mini-state { font-size: 10px; color: var(--tx-3); text-transform: uppercase; letter-spacing: .05em; }
|
|
||||||
.mini-copy { margin: 8px 0 0; font-size: 11.5px; color: var(--tx-2); line-height: 1.5; }
|
/* Summary-Kacheln (quadratisch) */
|
||||||
.activity-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; }
|
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
|
||||||
.activity-dot { width: 8px; height: 8px; border-radius: 999px; margin-top: 5px; background: linear-gradient(135deg, #8b5cf6, #3b82f6); box-shadow: 0 0 0 4px rgba(124,108,255,.12); }
|
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 1.15 / 1; border: 1px solid var(--line); border-radius: 13px; background: rgba(28,24,64,.28); padding: 10px; }
|
||||||
.activity-message { color: var(--tx); font-size: 12.5px; line-height: 1.45; }
|
.tile-num { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: var(--tx); line-height: 1; }
|
||||||
.activity-time { color: var(--tx-3); font-size: 10.5px; margin-top: 4px; }
|
.tile-num small { font-size: 14px; color: var(--tx-3); font-weight: 600; }
|
||||||
.sidebar-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: rgba(10,9,24,.45); }
|
.tile-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--tx-3); font-weight: 600; text-align: center; }
|
||||||
.sidebar-card.subtle { background: rgba(255,255,255,.02); }
|
.tile-track { width: 70%; height: 4px; border-radius: 2px; background: var(--space-3); overflow: hidden; margin-top: 4px; }
|
||||||
.sidebar-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
|
.tile-fill { height: 100%; background: var(--grad); }
|
||||||
.sidebar-field:last-child { margin-bottom: 0; }
|
.t-active { color: var(--st-think); }
|
||||||
.slim { min-height: 38px; }
|
.t-open { color: var(--st-queue); }
|
||||||
.snapshot-list { display: flex; flex-direction: column; gap: 12px; margin: 0; }
|
.t-blocked { color: var(--st-block); }
|
||||||
.snapshot-list div { display: flex; justify-content: space-between; gap: 12px; }
|
|
||||||
.snapshot-list dt { color: var(--tx-3); font-size: 11px; }
|
.agent-summary { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||||
.snapshot-list dd { margin: 0; color: var(--tx); font-size: 12px; text-align: right; }
|
.agent-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 20px; border: 1px solid var(--line); background: rgba(16,185,129,.07); color: var(--tx-2); font-size: 11px; font-family: 'Manrope', sans-serif; cursor: pointer; transition: border-color .15s, color .15s; }
|
||||||
|
.agent-pill b { color: var(--tx); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600; }
|
||||||
|
.agent-pill:hover { border-color: var(--line-2); color: var(--tx); }
|
||||||
|
|
||||||
|
/* Seitenleiste: Eigenschaften + Aktivität */
|
||||||
|
.detail-side { border-left: 1px solid var(--line); background: rgba(255,255,255,.015); padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
|
||||||
|
.side-block { display: flex; flex-direction: column; gap: 2px; }
|
||||||
|
.side-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--tx-3); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
|
||||||
|
.side-count { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; padding: 0 6px; border-radius: 8px; background: var(--glass-2); color: var(--tx-3); }
|
||||||
|
.prop-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 32px; border-radius: 8px; padding: 0 6px; transition: background .15s; }
|
||||||
|
.prop-row:hover { background: rgba(124,108,255,.05); }
|
||||||
|
.prop-label { font-size: 11px; color: var(--tx-3); font-family: 'Manrope', sans-serif; }
|
||||||
|
.prop-control { width: 100%; height: 28px; padding: 0 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--tx); font-size: 12px; font-family: 'Manrope', sans-serif; outline: none; cursor: pointer; transition: border-color .15s, background .15s; box-sizing: border-box; }
|
||||||
|
.prop-row:hover .prop-control:not(:disabled) { border-color: var(--line); background: rgba(10,9,24,.5); }
|
||||||
|
.prop-control:focus { border-color: var(--a-mid); background: rgba(10,9,24,.6); }
|
||||||
|
.prop-control:disabled { opacity: .5; cursor: not-allowed; }
|
||||||
|
select.prop-control option { background: var(--space-2); color: var(--tx); }
|
||||||
|
.prop-static { font-size: 12px; color: var(--tx-2); padding: 0 7px; }
|
||||||
|
|
||||||
|
.side-activity { flex: 1; min-height: 0; }
|
||||||
|
.mini-timeline { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; max-height: 236px; padding-right: 3px; }
|
||||||
|
.mini-entry { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 8px; }
|
||||||
|
.mini-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; background: var(--a-mid); box-shadow: 0 0 0 3px rgba(124,108,255,.12); }
|
||||||
|
.mini-msg { font-size: 11px; color: var(--tx-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
||||||
|
.mini-time { font-size: 9.5px; color: var(--tx-3); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
|
||||||
|
.comment-box { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 4px 4px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(10,9,24,.5); transition: border-color .15s; flex: 0 0 auto; }
|
||||||
|
.comment-box:focus-within { border-color: var(--a-mid); }
|
||||||
|
.comment-box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: var(--tx); font-size: 12px; font-family: 'Manrope', sans-serif; }
|
||||||
|
.send-btn { width: 26px; height: 26px; border-radius: 7px; background: rgba(124,108,255,.14); color: var(--a-mid); flex: 0 0 auto; }
|
||||||
|
.send-btn:disabled { opacity: .4; cursor: not-allowed; }
|
||||||
|
.send-btn:not(:disabled):hover { background: rgba(124,108,255,.24); color: var(--tx); }
|
||||||
|
|
||||||
|
/* Footer */
|
||||||
|
.detail-footer { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--line); flex: 0 0 auto; }
|
||||||
|
.footer-spacer { flex: 1; }
|
||||||
|
.detail-flash.error { color: var(--st-block); font-size: 11px; margin: 0; }
|
||||||
|
.detail-flash.success { color: var(--st-work); font-size: 11px; margin: 0; }
|
||||||
|
|
||||||
.board-columns::-webkit-scrollbar { height: 9px; }
|
.board-columns::-webkit-scrollbar { height: 9px; }
|
||||||
.board-columns::-webkit-scrollbar-thumb { background: rgba(124,108,255,.22); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
|
.board-columns::-webkit-scrollbar-thumb { background: rgba(124,108,255,.22); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
|
||||||
.board-columns::-webkit-scrollbar-thumb:hover { background: rgba(124,108,255,.4); background-clip: padding-box; }
|
.board-columns::-webkit-scrollbar-thumb:hover { background: rgba(124,108,255,.4); background-clip: padding-box; }
|
||||||
.board-columns::-webkit-scrollbar-track { background: transparent; }
|
.board-columns::-webkit-scrollbar-track { background: transparent; }
|
||||||
@media (max-width: 1100px) { .detail-content { grid-template-columns: 1fr; } .detail-sidebar { border-left: none; border-top: 1px solid var(--line); } }
|
@media (max-width: 1100px) { .detail-content { grid-template-columns: 1fr; } .detail-side { border-left: none; border-top: 1px solid var(--line); } }
|
||||||
@media (max-width: 860px) { .board-columns { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; } .col { min-width: 260px; } .detail-panel { width: 100vw; height: 100vh; border-radius: 0; } .detail-grid { grid-template-columns: 1fr; } .detail-main, .detail-sidebar { padding: 18px; } .detail-title-input { font-size: 24px; } }
|
@media (max-width: 860px) { .board-columns { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; } .col { min-width: 260px; } .detail-panel { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; } .detail-main { padding: 14px; } .detail-side { padding: 12px 14px; } .detail-title-input { font-size: 19px; } .tile-grid { grid-template-columns: repeat(2, 1fr); } }
|
||||||
@media (max-width: 900px) { .iris-panel-grid { grid-template-columns: repeat(2, 1fr); } }
|
@media (max-width: 900px) { .iris-panel-grid { grid-template-columns: repeat(2, 1fr); } }
|
||||||
@media (max-width: 600px) { .iris-panel-grid { grid-template-columns: 1fr; } }
|
@media (max-width: 600px) { .iris-panel-grid { grid-template-columns: 1fr; } }
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user