Skip to content

Conversation

@Douglasymlai
Copy link
Contributor

Description

  • Update the Design for Project dashboard management

@a7m-1st While testing the new feature, I found this bug — it might be related to something I accidentally changed. Could you please help me look into it?

Screenshot 2025-11-13 at 18 30 19

Also, I added a new component: ProjectDialog.tsx in GroupedHistoryView.
The dialog includes a feature that allows users to edit the project name. However, the updated task name isn’t being saved or sent to be stored. I believe the API endpoint for updating the project name may need to be adjusted — could you take a look at that as well?

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Comment on lines +123 to +127
# Count completed and failed tasks (assuming status 1 = completed, others = failed/ongoing)
if history.status == 1: # ChatStatus.done
project_data['total_completed_tasks'] += 1
else: # Not ongoing, assume failed
project_data['total_failed_tasks'] += 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we shouldn't assume others are also count as failed

Comment on lines +60 to +66
case 3: // Failed
return (
<Tag variant="cuation" size="sm">
<XCircle />
<span>{t("layout.failed")}</span>
</Tag>
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we haven't defined case 3 in ChatStatus

@Wendong-Fan
Copy link
Contributor

enhance PR: #656

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.

3 participants