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

feat: Add board activity log

This commit is contained in:
Maksim Eltyshev 2025-05-22 23:14:46 +02:00
parent 777ff467f3
commit 86cfd155f2
72 changed files with 833 additions and 169 deletions

View file

@ -16,7 +16,13 @@ export const transformActivity = (activity) => ({
/* Actions */
const getActivities = (cardId, data, headers) =>
const getActivitiesInBoard = (boardId, data, headers) =>
socket.get(`/boards/${boardId}/actions`, data, headers).then((body) => ({
...body,
items: body.items.map(transformActivity),
}));
const getActivitiesInCard = (cardId, data, headers) =>
socket.get(`/cards/${cardId}/actions`, data, headers).then((body) => ({
...body,
items: body.items.map(transformActivity),
@ -32,6 +38,7 @@ const makeHandleActivityCreate = (next) => (body) => {
};
export default {
getActivities,
getActivitiesInBoard,
getActivitiesInCard,
makeHandleActivityCreate,
};