Skip to content

Conversation

@a7m-1st
Copy link
Collaborator

@a7m-1st a7m-1st commented Oct 24, 2025

⚠️ Need help in testing

Description

  • return the timestamps as well to help in sorting
image

Future work

  • Currently the project is being grouped in the client side. Need to migrate grouping to the backend with schema:
export interface HistoryTask {
  id: number;
  task_id: string;
  project_id: string;
  question: string;
  language: string;
  model_platform: string;
  model_type: string;
  api_key?: string;
  api_url?: string;
  max_retries: number;
  file_save_path?: string;
  installed_mcp?: string;
  project_name?: string;
  summary?: string;
  tokens: number;
  status: number;
  created_at?: string;
  updated_at?: string;
}

export interface ProjectGroup {
  project_id: string;
  project_name?: string;
  total_tokens: number;
  task_count: number;
  latest_task_date: string;
  tasks: HistoryTask[];
  // Additional project-level metadata
  total_completed_tasks: number;
  total_failed_tasks: number;
  average_tokens_per_task: number;
}

export interface GroupedHistoryResponse {
  projects: ProjectGroup[];
  total_projects: number;
  total_tasks: number;
  total_tokens: number;
}

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@a7m-1st a7m-1st self-assigned this Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants