refactor(frontend): deduplicate CSS keyframes, unify types, extract format utils, add UI states, trim mock data
- Remove duplicate @keyframes pulse-* from 3 component files (already in nexus-tokens.css) - Rename AgentDetail → AgentDetailData in dashboard types to avoid collision with types/agent.ts - Extract shared formatNumber/initials/formatTime to utils/format.ts - Simplify FlowBoard: use agentStore modal/selection getters instead of duplicating local state - Add error banner + empty state to IrisChat; add loading skeleton + error/empty states to TaskStrip - Remove 105-line unused mockAgents array from useFlowLayout - Reduce operations store fallbacks from hardcoded preview data to minimal safe defaults - Update operations store tests to match lean fallback structure - Net: -73 lines, cleaner imports, fewer magic strings
This commit is contained in:
@@ -269,21 +269,4 @@ defineEmits<{
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@keyframes pulse-work {
|
||||
0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); }
|
||||
70% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); }
|
||||
100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
|
||||
}
|
||||
|
||||
@keyframes pulse-think {
|
||||
0% { box-shadow: 0 0 0 0 rgba(52, 214, 245, 0.55); }
|
||||
70% { box-shadow: 0 0 0 7px rgba(52, 214, 245, 0); }
|
||||
100% { box-shadow: 0 0 0 0 rgba(52, 214, 245, 0); }
|
||||
}
|
||||
|
||||
@keyframes pulse-block {
|
||||
0% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.55); }
|
||||
70% { box-shadow: 0 0 0 7px rgba(251, 113, 133, 0); }
|
||||
100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0); }
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user