sillyspec 3.26.4 → 3.26.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/.claude/skills/sillyspec-brainstorm/SKILL.md +1 -0
  2. package/.claude/skills/sillyspec-execute/SKILL.md +1 -0
  3. package/.claude/skills/sillyspec-plan/SKILL.md +1 -0
  4. package/.claude/skills/sillyspec-quick/SKILL.md +5 -3
  5. package/package.json +1 -1
  6. package/src/git-helper.js +21 -8
  7. package/src/index.js +2 -0
  8. package/src/quicklog.js +2 -0
  9. package/src/run/command.js +50 -7
  10. package/src/run/complete-handlers.js +95 -1
  11. package/src/run/complete.js +23 -5
  12. package/src/run/gates.js +1 -1
  13. package/src/run/prompt.js +34 -20
  14. package/src/run/quick-audit.js +5 -6
  15. package/src/run/shared.js +45 -11
  16. package/src/run/stage.js +10 -0
  17. package/src/run.js +5 -5
  18. package/src/stage-contract-spec.js +11 -0
  19. package/src/stage-contract.js +11 -1
  20. package/src/stage-review.js +9 -1
  21. package/src/stages/archive.js +12 -26
  22. package/src/stages/execute.js +45 -0
  23. package/src/stages/plan.js +17 -1
  24. package/src/stages/quick.js +2 -0
  25. package/src/stages/scan.js +2 -2
  26. package/src/stages/verify.js +1 -0
  27. package/src/worktree-apply.js +3 -3
  28. package/src/worktree.js +83 -8
  29. package/packages/dashboard/index.html +0 -15
  30. package/packages/dashboard/package-lock.json +0 -2384
  31. package/packages/dashboard/public/favicon.jpg +0 -0
  32. package/packages/dashboard/public/logo.jpg +0 -0
  33. package/packages/dashboard/public/prototype-dashboard.html +0 -836
  34. package/packages/dashboard/public/prototype-overview.html +0 -256
  35. package/packages/dashboard/src/App.vue +0 -558
  36. package/packages/dashboard/src/components/ActionBar.vue +0 -93
  37. package/packages/dashboard/src/components/CommandPalette.vue +0 -96
  38. package/packages/dashboard/src/components/DetailPanel.vue +0 -137
  39. package/packages/dashboard/src/components/DocPreview.vue +0 -257
  40. package/packages/dashboard/src/components/DocTree.vue +0 -114
  41. package/packages/dashboard/src/components/HResizeHandle.vue +0 -48
  42. package/packages/dashboard/src/components/LogStream.vue +0 -65
  43. package/packages/dashboard/src/components/PipelineStage.vue +0 -95
  44. package/packages/dashboard/src/components/PipelineView.vue +0 -156
  45. package/packages/dashboard/src/components/ProjectCard.vue +0 -187
  46. package/packages/dashboard/src/components/ProjectList.vue +0 -210
  47. package/packages/dashboard/src/components/ProjectOverview.vue +0 -152
  48. package/packages/dashboard/src/components/StageBadge.vue +0 -67
  49. package/packages/dashboard/src/components/StepCard.vue +0 -94
  50. package/packages/dashboard/src/components/VResizeHandle.vue +0 -61
  51. package/packages/dashboard/src/components/detail/DocsDetail.vue +0 -48
  52. package/packages/dashboard/src/components/detail/GitDetail.vue +0 -61
  53. package/packages/dashboard/src/components/detail/TechDetail.vue +0 -43
  54. package/packages/dashboard/src/composables/useDashboard.js +0 -213
  55. package/packages/dashboard/src/composables/useKeyboard.js +0 -119
  56. package/packages/dashboard/src/composables/useLayout.js +0 -131
  57. package/packages/dashboard/src/composables/useWebSocket.js +0 -129
  58. package/packages/dashboard/src/main.js +0 -8
  59. package/packages/dashboard/src/style.css +0 -132
  60. package/packages/dashboard/vite.config.js +0 -18
@@ -1,65 +0,0 @@
1
- <template>
2
- <div class="flex flex-col h-full" style="background: #F5F5F7;">
3
- <!-- Header -->
4
- <div class="px-3 py-2 flex items-center gap-2" style="border-bottom: 1px solid #F0F0F3;">
5
- <n-input v-model:value="searchQuery" size="tiny" placeholder="过滤日志..." clearable style="flex: 1;" />
6
- <n-button size="tiny" @click="clearLogs">清空</n-button>
7
- <n-button size="tiny" :type="autoScroll ? 'primary' : 'default'" @click="toggleAutoScroll">
8
- {{ autoScroll ? '自动' : '暂停' }}
9
- </n-button>
10
- </div>
11
-
12
- <!-- Log output -->
13
- <div ref="logContainer" class="flex-1 overflow-y-auto px-2 py-1.5 font-mono-log text-[10px]" style="background: #F0F0F3;" @scroll="handleScroll">
14
- <div v-if="filteredLogs.length === 0" class="flex items-center justify-center h-full">
15
- <span class="font-mono-log" style="color: #E5E5EA;">{{ logs.length === 0 ? '暂无日志' : '无匹配' }}</span>
16
- </div>
17
- <div v-else class="space-y-px">
18
- <div v-for="log in filteredLogs" :key="log.id" class="px-1.5 py-px rounded-sm" :style="{ background: logBg(log.type) }">
19
- <span style="color: #D1D1D6;" class="select-none">[{{ formatTime(log.timestamp) }}]</span>
20
- <span :style="{ color: logColor(log.type) }">{{ escapeHtml(log.content) }}</span>
21
- </div>
22
- </div>
23
- </div>
24
-
25
- <!-- Footer -->
26
- <div class="px-3 py-1 flex items-center justify-between text-[9px] font-mono-log" style="border-top: 1px solid #F0F0F3; background: #F5F5F7; color: #D1D1D6;">
27
- <span>{{ filteredLogs.length }}/{{ logs.length }}</span>
28
- <span v-if="!autoScroll" style="color: #EA580C;">已暂停</span>
29
- </div>
30
- </div>
31
- </template>
32
-
33
- <script setup>
34
- import { ref, computed, watch, nextTick } from 'vue'
35
-
36
- const props = defineProps({ logs: { type: Array, default: () => [] } })
37
- const emit = defineEmits(['clear'])
38
-
39
- const searchQuery = ref('')
40
- const autoScroll = ref(true)
41
- const logContainer = ref(null)
42
-
43
- const filteredLogs = computed(() => {
44
- if (!searchQuery.value) return props.logs
45
- const q = searchQuery.value.toLowerCase()
46
- return props.logs.filter(l => l.content.toLowerCase().includes(q))
47
- })
48
-
49
- function formatTime(ts) { if (!ts) return ''; const d = new Date(ts); return d.toLocaleTimeString('zh-CN', { hour12: false }) }
50
- function escapeHtml(t) { if (!t) return ''; return t.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;') }
51
- function logBg(t) { return t === 'error' ? 'rgba(239,68,68,0.05)' : t === 'warn' ? 'rgba(251,146,60,0.05)' : 'transparent' }
52
- function logColor(t) { return t === 'error' ? '#DC2626' : t === 'warn' ? '#EA580C' : t === 'debug' ? '#6B7280' : '#636366' }
53
- function clearLogs() { emit('clear') }
54
- function toggleAutoScroll() { autoScroll.value = !autoScroll.value; if (autoScroll.value) scrollToBottom() }
55
- function handleScroll() {
56
- if (!logContainer.value) return
57
- const { scrollTop, scrollHeight, clientHeight } = logContainer.value
58
- const atBottom = scrollHeight - scrollTop - clientHeight < 50
59
- if (!atBottom && autoScroll.value) autoScroll.value = false
60
- else if (atBottom && !autoScroll.value) autoScroll.value = true
61
- }
62
- function scrollToBottom() { nextTick(() => { if (logContainer.value && autoScroll.value) logContainer.value.scrollTop = logContainer.value.scrollHeight }) }
63
- watch(() => props.logs.length, () => { scrollToBottom() }, { flush: 'post' })
64
- watch(logContainer, () => { scrollToBottom() }, { once: true })
65
- </script>
@@ -1,95 +0,0 @@
1
- <template>
2
- <div class="relative">
3
- <div class="flex items-start gap-3">
4
- <!-- Node indicator -->
5
- <div class="flex flex-col items-center flex-shrink-0 pt-1.5">
6
- <div
7
- class="w-2 h-2 transition-colors duration-200"
8
- :style="nodeStyle"
9
- :class="{ 'animate-pulse-dot': isActive || status === 'in-progress' }"
10
- />
11
- </div>
12
-
13
- <!-- Content -->
14
- <div class="flex-1 min-w-0 -mt-0.5">
15
- <!-- Stage Header -->
16
- <div class="flex items-center gap-2.5 mb-3">
17
- <span
18
- class="text-[12px] font-semibold font-[JetBrains_Mono,monospace] tracking-tight"
19
- :style="{ color: isActive ? '#D97706' : '#1C1C1E' }"
20
- >
21
- {{ title }}
22
- </span>
23
- <StageBadge :status="status" />
24
- </div>
25
-
26
- <!-- Steps -->
27
- <div v-if="status === 'stale' && staleReason" class="mb-2 text-[10px] italic" style="color: #CA8A04;">
28
- ⚠️ {{ staleReason }}
29
- <span v-if="name === 'archive'">(已有归档文件保留但不再可信)</span>
30
- </div>
31
- <div v-if="status === 'revising' && revisionInfo" class="mb-2 text-[10px]" style="color: #7C3AED;">
32
- 🔧 {{ revisionInfo }}
33
- </div>
34
- <div class="space-y-1">
35
- <div v-if="steps.length === 0" class="text-[11px] italic py-1" style="color: #6B7280;">
36
- No steps yet
37
- </div>
38
- <StepCard
39
- v-for="step in steps"
40
- :key="step.id || step.name"
41
- :step="step"
42
- :is-active="isActiveStep(step)"
43
- @select="$emit('select-step', $event)"
44
- />
45
- </div>
46
- </div>
47
- </div>
48
- </div>
49
- </template>
50
-
51
- <script setup>
52
- import { computed } from 'vue'
53
- import StageBadge from './StageBadge.vue'
54
- import StepCard from './StepCard.vue'
55
-
56
- const props = defineProps({
57
- name: { type: String, required: true },
58
- title: { type: String, required: true },
59
- steps: { type: Array, default: () => [] },
60
- status: { type: String, default: 'pending' },
61
- isActive: { type: Boolean, default: false },
62
- activeStep: { type: Object, default: null },
63
- staleReason: { type: String, default: '' },
64
- revision: { type: Number, default: 0 },
65
- reopenedFromStep: { type: String, default: '' },
66
- })
67
-
68
- const emit = defineEmits(['select-step'])
69
-
70
- const revisionInfo = computed(() => {
71
- if (!props.revision) return ''
72
- const parts = [`revision ${props.revision}`]
73
- if (props.reopenedFromStep) parts.push(`from: ${props.reopenedFromStep}`)
74
- return parts.join(', ')
75
- })
76
-
77
- const nodeStyle = computed(() => {
78
- if (props.isActive) return { background: '#D97706', boxShadow: '0 0 8px rgba(251,191,36,0.4)' }
79
- const colors = {
80
- 'completed': '#16A34A',
81
- 'in-progress': '#D97706',
82
- 'blocked': '#EA580C',
83
- 'failed': '#DC2626',
84
- 'pending': '#E5E5EA',
85
- 'revising': '#7C3AED',
86
- 'stale': '#CA8A04',
87
- 'waiting': '#2563EB',
88
- }
89
- return { background: colors[props.status] || colors.pending }
90
- })
91
-
92
- function isActiveStep(step) {
93
- return props.activeStep?.id === step.id || props.activeStep?.name === step.name
94
- }
95
- </script>
@@ -1,156 +0,0 @@
1
- <template>
2
- <div class="flex flex-col h-full" style="background: #F5F5F7;">
3
- <!-- Header with Tabs -->
4
- <div class="px-6 pt-4 pb-0" style="border-bottom: 1px solid #F0F0F3;">
5
- <div class="flex items-center gap-6">
6
- <h2 class="text-[11px] font-semibold uppercase tracking-[0.2em] font-[JetBrains_Mono,monospace]" style="color: #6B7280;">
7
- {{ project?.name || '项目' }}
8
- </h2>
9
- <n-tabs :value="activeTab" type="segment" size="small" @update:value="$emit('switch-tab', $event)" style="max-width: 200px;">
10
- <n-tab name="pipeline">流水线</n-tab>
11
- <n-tab name="docs">文档</n-tab>
12
- </n-tabs>
13
- </div>
14
- </div>
15
-
16
- <!-- Pipeline Tab -->
17
- <div v-if="activeTab === 'pipeline'" class="flex flex-col flex-1 overflow-hidden">
18
- <div v-if="project && currentStage" class="px-6 pt-4 pb-2">
19
- <p class="text-[12px] font-[JetBrains_Mono,monospace]" style="color: #636366;">
20
- <span style="color: #D97706;">{{ currentStage }}</span>
21
- </p>
22
- </div>
23
-
24
- <!-- Empty state -->
25
- <n-empty v-if="!project || !project.state" description="选择一个项目查看流水线" style="margin: auto;" />
26
-
27
- <!-- Stages -->
28
- <div v-else class="flex-1 overflow-y-auto px-6 pb-5 space-y-5">
29
- <PipelineStage name="scan" title="代码扫描" :steps="getStageSteps('scan')" :status="getStageStatus('scan')" :is-active="currentStage === 'scan'" :active-step="activeStep" @select-step="handleSelectStep" />
30
- <div v-if="hasStage('brainstorm')" class="flex items-center pl-[3px]"><div class="w-px h-4" style="background: #F0F0F3;" /></div>
31
- <PipelineStage name="brainstorm" title="头脑风暴" :steps="getStageSteps('brainstorm')" :status="getStageStatus('brainstorm')" :is-active="currentStage === 'brainstorm'" :active-step="activeStep" @select-step="handleSelectStep" />
32
- <div v-if="hasStage('plan')" class="flex items-center pl-[3px]"><div class="w-px h-4" style="background: #F0F0F3;" /></div>
33
- <PipelineStage name="plan" title="规划" :steps="getStageSteps('plan')" :status="getStageStatus('plan')" :is-active="currentStage === 'plan'" :active-step="activeStep" @select-step="handleSelectStep" />
34
- <div v-if="hasStage('execute')" class="flex items-center pl-[3px]"><div class="w-px h-4" style="background: #F0F0F3;" /></div>
35
- <PipelineStage name="execute" title="执行" :steps="getStageSteps('execute')" :status="getStageStatus('execute')" :is-active="currentStage === 'execute'" :active-step="activeStep" @select-step="handleSelectStep" />
36
- <div v-if="hasStage('verify')" class="flex items-center pl-[3px]"><div class="w-px h-4" style="background: #F0F0F3;" /></div>
37
- <PipelineStage name="verify" title="验证" :steps="getStageSteps('verify')" :status="getStageStatus('verify')" :is-active="currentStage === 'verify'" :active-step="activeStep" @select-step="handleSelectStep" />
38
- <div v-if="hasStage('archive')" class="flex items-center pl-[3px]"><div class="w-px h-4" style="background: #F0F0F3;" /></div>
39
- <PipelineStage name="archive" title="归档" :steps="getStageSteps('archive')" :status="getStageStatus('archive')" :is-active="currentStage === 'archive'" :active-step="activeStep" :stale-reason="getStageStaleReason('archive')" :revision="getStageRevision('archive')" :reopened-from-step="getStageReopenedFromStep('archive')" @select-step="handleSelectStep" />
40
- </div>
41
-
42
- <!-- Activity Log -->
43
- <div v-if="project?.state?.progress" style="border-top: 1px solid #F0F0F3; background: rgba(0,0,0,0.03);">
44
- <div class="px-6 py-2.5 flex items-center justify-between">
45
- <div class="text-[9px] font-semibold uppercase tracking-[0.25em] font-[JetBrains_Mono,monospace]" style="color: #6B7280;">活动日志</div>
46
- <div class="text-[10px] font-mono-log" style="color: #D1D1D6;">{{ activityLogs.length }}</div>
47
- </div>
48
- <div class="px-6 pb-3 max-h-32 overflow-y-auto">
49
- <n-timeline size="small">
50
- <n-timeline-item
51
- v-for="(log, i) in activityLogs"
52
- :key="i"
53
- :type="log.status === 'completed' ? 'success' : (log.status === 'stale' ? 'warning' : (log.status === 'revising' ? 'info' : 'default'))"
54
- >
55
- <template #default>
56
- <span class="text-[11px]" style="color: #636366;">{{ log.description }}</span>
57
- </template>
58
- <template #time>
59
- <span class="text-[10px] font-mono-log" style="color: #D1D1D6;">{{ log.time }}</span>
60
- </template>
61
- </n-timeline-item>
62
- </n-timeline>
63
- <div v-if="activityLogs.length === 0" class="text-[10px] py-1" style="color: #D1D1D6;">暂无活动记录</div>
64
- </div>
65
- </div>
66
- </div>
67
-
68
- <!-- Docs Tab -->
69
- <div v-if="activeTab === 'docs'" class="docs-panel flex-1 flex overflow-hidden">
70
- <div class="docs-tree-pane flex-shrink-0 overflow-hidden" style="border-right: 1px solid #F0F0F3;">
71
- <DocTree :groups="docs.groups" :selected-file="selectedDocFile" @select-file="$emit('select-doc-file', $event)" />
72
- </div>
73
- <div class="flex-1 overflow-hidden">
74
- <DocPreview :content="docContent" :loading="docLoading" :selected-file="selectedDocFile" />
75
- </div>
76
- </div>
77
- </div>
78
- </template>
79
-
80
- <script setup>
81
- import { computed } from 'vue'
82
- import PipelineStage from './PipelineStage.vue'
83
- import DocTree from './DocTree.vue'
84
- import DocPreview from './DocPreview.vue'
85
-
86
- const props = defineProps({
87
- project: { type: Object, default: null },
88
- activeStep: { type: Object, default: null },
89
- activeTab: { type: String, default: 'pipeline' },
90
- docs: { type: Object, default: () => ({ groups: [] }) },
91
- selectedDocFile: { type: Object, default: null },
92
- docContent: { type: String, default: '' },
93
- docLoading: { type: Boolean, default: false }
94
- })
95
-
96
- const emit = defineEmits(['select-step', 'switch-tab', 'select-doc-file'])
97
-
98
- const currentStage = computed(() => props.project?.state?.currentStage || '')
99
- const progress = computed(() => props.project?.state?.progress || {})
100
- const stages = computed(() => progress.value.stages || {})
101
-
102
- const stageNameMap = {
103
- scan: '代码扫描',
104
- brainstorm: '头脑风暴',
105
- plan: '规划',
106
- execute: '执行',
107
- verify: '验证',
108
- archive: '归档',
109
- quick: '快速任务',
110
- explore: '自由探索'
111
- }
112
-
113
- const activityLogs = computed(() => {
114
- if (!props.project?.state) return []
115
- const logs = []
116
- for (const [name, data] of Object.entries(progress.value.stages || {})) {
117
- const label = stageNameMap[name] || name
118
- if (data.status === 'completed') logs.push({ time: data.completedAt ? formatTime(data.completedAt) : '--:--', status: 'completed', description: `${label} 已完成` })
119
- else if (data.status === 'in-progress') logs.push({ time: '--:--', status: 'in-progress', description: `${label} 运行中` })
120
- else if (data.status === 'revising') logs.push({ time: '--:--', status: 'revising', description: `${label} 修订中 (revision ${data.revision || 1})` })
121
- else if (data.status === 'stale') logs.push({ time: '--:--', status: 'stale', description: `${label} 已失效:${data.staleReason || '上游修订'}` })
122
- }
123
- return logs.reverse()
124
- })
125
-
126
- function formatTime(iso) { try { const d = new Date(iso); return `${String(d.getHours()).padStart(2,'0')}:${String(d.getMinutes()).padStart(2,'0')}` } catch { return '--:--' } }
127
- function hasStage(n) { return !!stages.value[n] }
128
- function getStageSteps(n) { return stages.value[n]?.steps || [] }
129
- function getStageStatus(n) {
130
- const s = stages.value[n]; if (!s) return 'pending'
131
- // 优先用 stage 自身的 status(支持 revising/stale)
132
- if (s.status === 'revising' || s.status === 'stale') return s.status
133
- // 没有明确 status 时从 step 推导
134
- const steps = s.steps || []
135
- if (steps.some(x => x.status === 'failed')) return 'failed'
136
- if (steps.some(x => x.status === 'blocked')) return 'blocked'
137
- if (steps.some(x => x.status === 'in-progress')) return 'in-progress'
138
- if (steps.every(x => x.status === 'completed')) return 'completed'
139
- return 'pending'
140
- }
141
- function getStageStaleReason(n) { return stages.value[n]?.staleReason || '' }
142
- function getStageRevision(n) { return stages.value[n]?.revision || 0 }
143
- function getStageReopenedFromStep(n) { return stages.value[n]?.reopenedFromStep || '' }
144
- function handleSelectStep(step) { emit('select-step', step) }
145
- </script>
146
-
147
- <style scoped>
148
- .docs-panel {
149
- min-height: 0;
150
- }
151
-
152
- .docs-tree-pane {
153
- width: clamp(220px, 42%, 320px);
154
- min-width: 180px;
155
- }
156
- </style>
@@ -1,187 +0,0 @@
1
- <template>
2
- <div
3
- class="project-card"
4
- :class="{ selected: isSelected }"
5
- @click="$emit('select', project)"
6
- >
7
- <!-- 卡片头部 -->
8
- <div class="card-header">
9
- <span class="project-name">{{ project.name }}</span>
10
- <span class="last-active">{{ formatTime(project.lastActive) }}</span>
11
- </div>
12
-
13
- <!-- 阶段标签 -->
14
- <div>
15
- <span class="stage-badge" :class="stageClass">{{ stageLabel }}</span>
16
- </div>
17
-
18
- <!-- 进度条 -->
19
- <div class="progress-section">
20
- <div class="progress-bar">
21
- <div class="progress-fill" :class="stageClass" :style="{ width: progressPercent + '%' }"></div>
22
- </div>
23
- <span class="progress-text">{{ progressPercent }}%</span>
24
- </div>
25
- </div>
26
- </template>
27
-
28
- <script setup>
29
- import { computed } from 'vue'
30
-
31
- const props = defineProps({
32
- project: { type: Object, required: true },
33
- isSelected: { type: Boolean, default: false }
34
- })
35
-
36
- defineEmits(['select'])
37
-
38
- const stageLabel = computed(() => {
39
- const stage = props.project?.state?.currentStage
40
- if (!stage) return '未开始'
41
- const stageNames = {
42
- brainstorm: '需求探索',
43
- plan: '实现计划',
44
- execute: '波次执行',
45
- verify: '验证确认'
46
- }
47
- return stageNames[stage] || stage
48
- })
49
-
50
- const stageClass = computed(() => {
51
- const stage = props.project?.state?.currentStage
52
- if (!stage) return 'pending'
53
- const progress = props.project?.state?.progress?.stages?.[stage]
54
- if (progress?.status === 'completed') return 'completed'
55
- if (progress?.status === 'in-progress') return 'in-progress'
56
- return 'pending'
57
- })
58
-
59
- const progressPercent = computed(() => {
60
- const stage = props.project?.state?.currentStage
61
- if (!stage) return 0
62
- const progress = props.project?.state?.progress?.stages?.[stage]
63
- if (!progress) return 0
64
- if (progress.completedSteps !== undefined && progress.steps !== undefined) {
65
- return Math.round((progress.completedSteps / progress.steps) * 100)
66
- }
67
- if (progress.status === 'completed') return 100
68
- if (progress.status === 'in-progress') return 50
69
- return 0
70
- })
71
-
72
- function formatTime(iso) {
73
- if (!iso) return '昨天'
74
- const d = new Date(iso)
75
- const now = new Date()
76
- const diffMs = now - d
77
- if (diffMs < 60000) return '刚刚'
78
- if (diffMs < 3600000) return `${Math.floor(diffMs / 60000)}分钟前`
79
- if (diffMs < 86400000) return `${Math.floor(diffMs / 3600000)}小时前`
80
- return '昨天'
81
- }
82
- </script>
83
-
84
- <style scoped>
85
- .project-card {
86
- width: 280px;
87
- height: 120px;
88
- background: white;
89
- border: 2px solid #E5E7EB;
90
- border-radius: 12px;
91
- padding: 16px;
92
- display: flex;
93
- flex-direction: column;
94
- justify-content: space-between;
95
- cursor: pointer;
96
- transition: all 0.2s;
97
- flex-shrink: 0;
98
- }
99
-
100
- .project-card:hover {
101
- border-color: #D97706;
102
- box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
103
- }
104
-
105
- .project-card.selected {
106
- border-color: #D97706;
107
- box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
108
- }
109
-
110
- .card-header {
111
- display: flex;
112
- justify-content: space-between;
113
- align-items: flex-start;
114
- }
115
-
116
- .project-name {
117
- font-size: 16px;
118
- font-weight: 600;
119
- color: #1A1A1A;
120
- }
121
-
122
- .last-active {
123
- font-size: 11px;
124
- color: #9CA3AF;
125
- }
126
-
127
- .stage-badge {
128
- display: inline-block;
129
- padding: 4px 10px;
130
- border-radius: 12px;
131
- font-size: 12px;
132
- font-weight: 500;
133
- }
134
-
135
- .stage-badge.in-progress {
136
- background: #DBEAFE;
137
- color: #1D4ED8;
138
- }
139
-
140
- .stage-badge.completed {
141
- background: #D1FAE5;
142
- color: #047857;
143
- }
144
-
145
- .stage-badge.pending {
146
- background: #F3F4F6;
147
- color: #6B7280;
148
- }
149
-
150
- .progress-section {
151
- display: flex;
152
- align-items: center;
153
- gap: 8px;
154
- }
155
-
156
- .progress-bar {
157
- flex: 1;
158
- height: 6px;
159
- background: #E5E7EB;
160
- border-radius: 3px;
161
- overflow: hidden;
162
- }
163
-
164
- .progress-fill {
165
- height: 100%;
166
- border-radius: 3px;
167
- transition: width 0.3s;
168
- }
169
-
170
- .progress-fill.in-progress {
171
- background: #3B82F6;
172
- }
173
-
174
- .progress-fill.completed {
175
- background: #10B981;
176
- }
177
-
178
- .progress-fill.pending {
179
- background: #9CA3AF;
180
- }
181
-
182
- .progress-text {
183
- font-size: 12px;
184
- font-weight: 600;
185
- color: #374151;
186
- }
187
- </style>