import { useTranslation } from '../i18n' import { mockScheduledTasks, mockStatusBar } from '../mocks/data' export function ScheduledTasksList() { const t = useTranslation() const { stats, tasks } = mockScheduledTasks const task0 = tasks[0]! const task1 = tasks[1]! const task2 = tasks[2]! return (
{/* SideNavBar */} {/* Main Content Area */}
{/* TopAppBar */}
Claude Code Companion
{/* Separation Line */}
{/* Scrollable Content */}
{/* Page Header */}

{t('scheduledPage.title')}

{t('scheduledPage.subtitle')}

{/* Bento-style Summary Cards */}
{/* Total Tasks */}
{t('tasks.totalTasks')} analytics
{stats.totalTasks}
trending_up {t('scheduledPage.thisMonth', { count: '+2' })}
{/* Next Run */}
{t('scheduledPage.nextRun')} schedule
{stats.nextRun.name}

{stats.nextRun.time}

{/* System Health */}
{t('scheduledPage.systemHealth')} check_circle
{stats.systemHealth}%

{stats.healthPeriod}

{/* Operational Tasks Table */}
{/* Task Row 1 - Nightly linting */} {/* Task Row 2 - Clean up temp files */} {/* Task Row 3 - Database Vacuum */}
{t('scheduledPage.colTaskName')} {t('scheduledPage.colFrequency')} {t('scheduledPage.colLastResult')} {t('scheduledPage.colNextExecution')} {t('scheduledPage.colActions')}
code_blocks
{task0.name}
Root: /projects/companion/src
{task0.frequency}
check_circle {task0.lastResult}
{task0.nextExecution}
cleaning_services
{task1.name}
{task1.description}
{task1.frequency}
check_circle {task1.lastResult}
{task1.nextExecution}
database
{task2.name}
{task2.description}
Monthly
error {task2.lastResult}
{task2.nextExecution}
{/* End of list placeholder */}
history_toggle_off

{t('scheduledPage.endOfList')}

{t('scheduledPage.pausedTasks')}

{/* System Logs / Details Panel */}
{/* Recent Output Logs */}

{t('scheduledPage.recentLogs')}

2023-11-10 23:01 [INFO] Nightly linting started for repository: companion-main
2023-11-10 23:04 [INFO] Processed 1,422 files. No critical issues found.
2023-11-10 23:04 [WARN] Found 12 deprecated calls in /legacy/utils.js
2023-11-10 23:05 [INFO] Task completed successfully in 242.4s.
Log stream: active
{/* Resource Allocation Panel */}

{t('scheduledPage.resourceAllocation')}

{t('scheduledPage.cpuCapacity')} 42%
{t('scheduledPage.memoryLoad')} 68%
{/* Footer */}
) }