1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00

feat: Log actions when task completion status changes

This commit is contained in:
Maksim Eltyshev 2025-05-20 21:17:51 +02:00
parent 5d53f44fe8
commit d5fd2fd33b
6 changed files with 64 additions and 0 deletions

View file

@ -143,6 +143,44 @@ const Item = React.memo(({ id }) => {
</Trans>
);
break;
case ActivityTypes.COMPLETE_TASK:
contentNode = (
<Trans
i18nKey="common.userCompletedTaskOnThisCard"
values={{
user: userName,
task: activity.data.task.name,
}}
>
<span className={styles.author}>{userName}</span>
<span className={styles.text}>
{' completed '}
{activity.data.task.name}
{' on this card'}
</span>
</Trans>
);
break;
case ActivityTypes.UNCOMPLETE_TASK:
contentNode = (
<Trans
i18nKey="common.userMarkedTaskIncompleteOnThisCard"
values={{
user: userName,
task: activity.data.task.name,
}}
>
<span className={styles.author}>{userName}</span>
<span className={styles.text}>
{' marked '}
{activity.data.task.name}
{' incomplete on this card'}
</span>
</Trans>
);
break;
default:
contentNode = null;