feat: Version 2

Closes #627, closes #1047
This commit is contained in:
Maksim Eltyshev
2025-05-10 02:09:06 +02:00
parent ad7fb51cfa
commit 2ee1166747
1557 changed files with 76832 additions and 47042 deletions
+60 -4
View File
@@ -1,3 +1,8 @@
/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
import ActionTypes from '../constants/ActionTypes';
const createUser = (data) => ({
@@ -56,12 +61,60 @@ updateUser.failure = (id, error) => ({
},
});
const handleUserUpdate = (user, users, isCurrent) => ({
const handleUserUpdate = (
user,
projectIds,
boardIds,
config,
board,
users,
projects,
projectManagers,
backgroundImages,
baseCustomFieldGroups,
boards,
boardMemberships,
labels,
lists,
cards,
cardMemberships,
cardLabels,
taskLists,
tasks,
attachments,
customFieldGroups,
customFields,
customFieldValues,
notificationsToDelete,
notificationServices,
) => ({
type: ActionTypes.USER_UPDATE_HANDLE,
payload: {
user,
projectIds,
boardIds,
config,
board,
users,
isCurrent,
projects,
projectManagers,
backgroundImages,
baseCustomFieldGroups,
boards,
boardMemberships,
labels,
lists,
cards,
cardMemberships,
cardLabels,
taskLists,
tasks,
attachments,
customFieldGroups,
customFields,
customFieldValues,
notificationsToDelete,
notificationServices,
},
});
@@ -270,19 +323,22 @@ const handleUserFromCardRemove = (cardMembership) => ({
},
});
const addUserToBoardFilter = (id, boardId) => ({
const addUserToBoardFilter = (id, boardId, replace, currentListId) => ({
type: ActionTypes.USER_TO_BOARD_FILTER_ADD,
payload: {
id,
boardId,
replace,
currentListId,
},
});
const removeUserFromBoardFilter = (id, boardId) => ({
const removeUserFromBoardFilter = (id, boardId, currentListId) => ({
type: ActionTypes.USER_FROM_BOARD_FILTER_REMOVE,
payload: {
id,
boardId,
currentListId,
},
});