MCP Task Tracker - Modern UI with Tailwind CSS
๐จ UI Modernization Complete
The MCP Task Tracker UI has been completely modernized with Tailwind CSS v4, featuring a clean, responsive, and professional design.
โจ Key Features
Modern Design System
- Tailwind CSS v4: Latest version with optimized performance
- Responsive Design: Mobile-first approach with breakpoint utilities
- Custom Theme: Extended color palette and animations
- Dark Mode Ready: Prepared for future dark mode implementation
Enhanced Components
1. Navigation
- Sticky header with smooth transitions
- Active state indicators
- Mobile-responsive menu
- Real-time connection status badge
2. Dashboard
- Grid-based statistics cards
- Hover effects and animations
- Recent projects and agents
- Task overview with filters
3. Projects View
- Card-based layout with shadows
- Hover effects for better UX
- Modal forms with Tailwind styling
- Responsive grid (1-3 columns)
4. Agents View
- Agent cards with role badges
- Status indicators (active/inactive)
- Clean information layout
- Responsive grid
5. Tasks View
- Task list with priority badges
- Status filtering
- Priority filtering
- Comprehensive task metadata
6. Project Detail
- Tabbed interface (Agents, Tasks, Contexts)
- Context management with search
- Tag-based filtering
- Full CRUD operations with modals
7. Documentation
- Sidebar navigation
- Markdown rendering with custom styles
- Code syntax highlighting support
- Responsive layout
Design Improvements
Colors
- Primary: Blue (#3b82f6, #2563eb)
- Success: Green (#10b981)
- Warning: Yellow (#f59e0b)
- Danger: Red (#ef4444)
- Neutral: Gray scale
Typography
- Clean, readable font stack
- Proper hierarchy (h1-h4)
- Optimized line heights
- Responsive font sizes
Spacing
- Consistent padding and margins
- Tailwind spacing scale
- Responsive spacing adjustments
Interactions
- Smooth transitions
- Hover states
- Focus indicators
- Loading states
๐ฆ Dependencies
{
"dependencies": {
"axios": "^1.6.5",
"dompurify": "^3.3.1",
"marked": "^12.0.2",
"pinia": "^2.1.7",
"vue": "^3.4.15",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/vite": "^4.1.18",
"@vitejs/plugin-vue": "^5.0.3",
"autoprefixer": "^10.4.23",
"postcss": "^8.5.6",
"tailwindcss": "^4.1.18",
"vite": "^5.0.11"
}
}
๐ Getting Started
Install Dependencies
cd web
npm install
Development Server
npm run dev
Runs on http://localhost:3000
Production Build
npm run build
Output: dist/ directory
Preview Production Build
npm run preview
๐ฑ Responsive Breakpoints
- Mobile: < 640px
- Tablet: 640px - 1024px
- Desktop: > 1024px
All components are fully responsive and optimized for mobile devices.
๐ฏ Component Structure
src/
โโโ assets/
โ โโโ styles.css # Tailwind + custom styles
โโโ components/
โ โโโ LoadingSpinner.vue # Reusable loading component
โโโ composables/
โ โโโ useWebSocket.js # WebSocket composable
โโโ router/
โ โโโ index.js # Vue Router configuration
โโโ services/
โ โโโ api.js # API service layer
โโโ stores/
โ โโโ agentStore.js # Agent state management
โ โโโ contextStore.js # Context state management
โ โโโ projectStore.js # Project state management
โ โโโ taskStore.js # Task state management
โโโ views/
โ โโโ Agents.vue # Agents list view
โ โโโ Dashboard.vue # Main dashboard
โ โโโ Documentation.vue # Documentation viewer
โ โโโ ProjectDetail.vue # Project detail with tabs
โ โโโ Projects.vue # Projects list
โ โโโ Tasks.vue # Tasks list with filters
โโโ App.vue # Main app component
โโโ main.js # App entry point
๐จ Tailwind Configuration
Custom Theme Extensions
{
colors: {
primary: { /* blue shades */ }
},
animation: {
'fade-in': 'fadeIn 0.3s ease-in-out',
'slide-up': 'slideUp 0.3s ease-in-out'
}
}
Custom Prose Styles
Optimized for markdown content rendering with:
- Heading hierarchy
- Code blocks
- Links and lists
- Tables and blockquotes
- Custom scrollbar
๐ง Configuration Files
tailwind.config.js
export default {
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
theme: { extend: { /* custom theme */ } },
plugins: []
}
postcss.config.js
export default {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
vite.config.js
export default defineConfig({
plugins: [vue()],
server: {
port: 3000,
proxy: {
'/api': { target: 'http://localhost:8080' },
'/ws': { target: 'ws://localhost:8080', ws: true }
}
}
})
๐ Build Output
- CSS: ~35KB (7.4KB gzipped)
- JS: ~240KB (83KB gzipped)
- Total: ~275KB (90KB gzipped)
Optimized for fast loading and excellent performance.
๐ Best Practices
- Component Organization: Logical separation of concerns
- State Management: Pinia stores for each domain
- API Layer: Centralized API calls
- Responsive Design: Mobile-first approach
- Accessibility: Semantic HTML and ARIA labels
- Performance: Lazy loading and code splitting
- Type Safety: PropTypes validation
๐ Future Enhancements
- Dark mode support
- Advanced filtering and sorting
- Real-time notifications
- Drag-and-drop functionality
- Export/import features
- Advanced search
- User preferences
- Internationalization (i18n)
๐ Notes
- The UI is optimized for modern browsers
- WebSocket connection for real-time updates
- All forms include proper validation
- Error states are handled gracefully
- Loading states provide user feedback
๐ค Contributing
When contributing to the UI:
- Follow Tailwind utility-first principles
- Maintain responsive design patterns
- Test on multiple screen sizes
- Ensure accessibility compliance
- Keep components modular and reusable
Built with โค๏ธ using Vue 3, Tailwind CSS v4, and Vite