Skip to content

Tasks & History ​

One-Liner ​

Tasks & History pages provide comprehensive views of lite tasks, analysis sessions, prompt history, and review sessions with filtering, search, and detail inspection capabilities.


Lite Tasks ​

Page Overview ​

Location: ccw/frontend/src/pages/LiteTasksPage.tsx

Purpose: Lite-plan and multi-cli-plan task list page with TaskDrawer for details.

Access: Navigation → Lite Tasks

Features ​

FeatureDescription
Type TabsSwitch between lite-plan, multi-cli-plan types
Task CardsDisplay task title, description, status, tags, progress
TaskDrawerSlide-over panel with full task context and synthesis
Round SynthesisMulti-perspective analysis results
Context ContentFull context view with expandable sections
Status IndicatorsVisual badges for task status (planning, in_progress, completed, failed)
Progress BarsVisual progress for running tasks
Tag SystemCategory tags for organization

Task Types ​

TypeDescription
lite-planQuick planning tasks
multi-cli-planMulti-perspective planning with multiple tools

Task Status Flow ​

planning → in_progress → completed
    ↓
  failed

Analysis Page ​

Page Overview ​

Location: ccw/frontend/src/pages/AnalysisPage.tsx

Purpose: View analysis sessions from /workflow:analyze-with-file command.

Access: Navigation → Analysis

Features ​

FeatureDescription
Session CardsGrid view with topic, session ID, status, date
Status FilterFilter by all, in_progress, completed
Date FilterFilter by all, today, week, month
Date Quick FilterQuick select by specific dates with counts
SearchFilter by topic or session ID
Pagination16 items per page (4x4 grid)
Detail DrawerSlide-over panel with tabs
Detail TabsDiscussion, Conclusions, Explorations, Perspectives
Fullscreen ModeImmersive view toggle

Analysis Session Structure ​

Each session contains:

  • Discussion - Markdown formatted discussion log
  • Conclusions - Structured conclusion data
  • Explorations - Code exploration findings
  • Perspectives - Multi-perspective analysis results

Prompt History ​

Page Overview ​

Location: ccw/frontend/src/pages/PromptHistoryPage.tsx

Purpose: View and manage prompt history with AI insights and timeline view.

Access: Navigation → Prompt History

Features ​

FeatureDescription
Stats DashboardTotal prompts, unique intents, session groups
Timeline ViewGrouped by session or date
Intent FilterFilter by bug-fix, feature, refactor, document, analyze
Project FilterFilter by project path
SearchFilter by prompt content
AI InsightsPattern analysis and suggestions
Insights HistoryHistorical insight list
Batch OperationsSelect all, batch delete
Insight DetailClick to view full insight

Prompt Card Details ​

Each prompt card shows:

  • Prompt Text - Truncated preview
  • Intent Badge - Category classification
  • Timestamp - When prompt was created
  • Session Info - Associated session
  • Delete Action - Remove from history
  • Select Checkbox - Batch selection mode

Review Session ​

Page Overview ​

Location: ccw/frontend/src/pages/ReviewSessionPage.tsx

Purpose: Review session detail page with findings display, multi-select, and fix progress tracking.

Access: Click review link from session detail OR direct route

Features ​

FeatureDescription
Findings GridCard-based findings display
Dimension TabsFilter by analysis dimension
Severity FilterCritical, High, Medium, Low
Sort ControlsSort by severity, dimension, file
Multi-SelectSelect multiple findings
Fix ProgressTrack fix stages with carousel
Export SelectedExport selected findings
Findings DrawerDetail panel for selected finding

Finding Structure ​

Each finding contains:

  • Title - Finding summary
  • Description - Detailed explanation
  • Severity - Critical, High, Medium, Low
  • Dimension - Analysis dimension (e.g., security, performance)
  • Category - Finding category
  • File/Line - Source location
  • Code Context - Relevant code snippet
  • Recommendations - Fix suggestions
  • Root Cause - Analysis of root cause
  • Impact - Potential impact

Fix Progress Tracking ​

StageDescription
PlanningFix planning stage
ExecutionFix execution stage
CompletionFix completion stage

Components Reference ​

Main Components ​

ComponentLocationPurpose
LiteTasksPage@/pages/LiteTasksPage.tsxLite tasks list with drawer
AnalysisPage@/pages/AnalysisPage.tsxAnalysis sessions viewer
PromptHistoryPage@/pages/PromptHistoryPage.tsxPrompt history with insights
ReviewSessionPage@/pages/ReviewSessionPage.tsxReview session details

Shared Components ​

ComponentPurpose
TaskDrawerTask detail slide-over panel
PromptCardPrompt display with actions
InsightsPanelAI insights display
InsightDetailPanelInsight detail overlay
BatchOperationToolbarBatch operations controls

State Management ​

Lite Tasks:

  • useLiteTasks - Task data and context
  • Fetching: fetchLiteSessionContext

Analysis:

  • fetchAnalysisSessions - Session list
  • fetchAnalysisDetail - Session detail

Prompt History:

  • usePromptHistory - Prompt data and stats
  • usePromptInsights - AI insights
  • useInsightsHistory - Historical insights
  • Mutations: analyzePrompts, deletePrompt, batchDeletePrompts

Review Session:

  • useReviewSession - Review data and fix progress

Released under the MIT License.