feat: 중간 점검 보고 시 활동 피드 기록 추가
보고 제출 시 알림만 보내고 활동(activity)에는 적재되지 않아 프로젝트 활동 피드·업무 활동 탭에 표시되지 않던 누락을 보완. - ActivityType/ApiActivityType 에 task.checkpoint_reported 추가 - submitCheckpointReport 에서 activity.record 호출 - 프론트 활동 렌더링 케이스(프로젝트 피드/업무 탭) 추가 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -100,6 +100,8 @@ function toProjectActivityItem(api: ApiActivity): ProjectActivityItem {
|
||||
}
|
||||
case 'task.edited':
|
||||
return { ...base, tone: 'task', icon: 'pencil', html: `<b>${actor}</b>님이 <span class="tgt">${title}</span> 업무를 수정했습니다` }
|
||||
case 'task.checkpoint_reported':
|
||||
return { ...base, tone: 'task', icon: 'check', html: `<b>${actor}</b>님이 <span class="tgt">${title}</span> 업무의 중간 점검을 보고했습니다` }
|
||||
case 'task.file_removed':
|
||||
return {
|
||||
...base,
|
||||
|
||||
@@ -159,6 +159,8 @@ function toTaskActivityView(api: ApiActivity): ActivityView {
|
||||
}
|
||||
case 'task.edited':
|
||||
return { tone: '', icon: 'check', html: `<b>${actor}</b>님이 업무를 수정했습니다`, time }
|
||||
case 'task.checkpoint_reported':
|
||||
return { tone: 'blue', icon: 'check', html: `<b>${actor}</b>님이 중간 점검 상태를 보고했습니다`, time }
|
||||
case 'task.file_removed':
|
||||
return { tone: '', icon: 'paperclip', html: `<b>${actor}</b>님이 첨부 파일을 삭제했습니다`, time, file: pstr(p, 'fileName') }
|
||||
default:
|
||||
|
||||
@@ -16,6 +16,7 @@ export type ApiActivityType =
|
||||
| 'task.assignees_changed'
|
||||
| 'task.due_changed'
|
||||
| 'task.edited'
|
||||
| 'task.checkpoint_reported'
|
||||
| 'task.file_removed'
|
||||
| 'task.removed'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user