From 173973cf59bf397b3983f6194801292355c4be83 Mon Sep 17 00:00:00 2001 From: Vlada Gazizova <94864088+gazizova-vlada@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:17:41 +0300 Subject: [PATCH] Client:Table:In rooms, the Modified column has been replaced with Last Activity, and in the sort column, Last Modified Date has been replaced with Last Activity Date. --- packages/client/public/locales/en/Files.json | 1 + .../src/pages/Home/Section/Body/TableView/TableHeader.js | 2 +- packages/client/src/pages/Home/Section/Filter/index.js | 8 +++++++- .../developer-tools/JavascriptSDK/presets/Manager.js | 2 +- public/locales/en/Common.json | 1 + 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/client/public/locales/en/Files.json b/packages/client/public/locales/en/Files.json index 3d8601db58..01a7c36620 100644 --- a/packages/client/public/locales/en/Files.json +++ b/packages/client/public/locales/en/Files.json @@ -84,6 +84,7 @@ "GoToPersonal": "Go to Documents", "Images": "Images", "InviteUsersInRoom": "Invite users in room", + "LastActivity": "Last activity", "LeaveRoomDescription": "You are the owner of this room. Before you leave the room, you must transfer the owner's role to another user.", "LeaveTheRoom": "Leave the room", "LeftAndAppointNewOwner": "You have left the room and appointed a new owner", diff --git a/packages/client/src/pages/Home/Section/Body/TableView/TableHeader.js b/packages/client/src/pages/Home/Section/Body/TableView/TableHeader.js index 178bce2a39..0ce650243d 100644 --- a/packages/client/src/pages/Home/Section/Body/TableView/TableHeader.js +++ b/packages/client/src/pages/Home/Section/Body/TableView/TableHeader.js @@ -102,7 +102,7 @@ class FilesTableHeader extends React.Component { }, { key: "Activity", - title: t("ByLastModified"), + title: t("LastActivity"), enable: this.props.roomColumnActivityIsEnabled, resizable: true, sortBy: SortByFieldName.ModifiedDate, diff --git a/packages/client/src/pages/Home/Section/Filter/index.js b/packages/client/src/pages/Home/Section/Filter/index.js index 85da6ece3a..567924e0a8 100644 --- a/packages/client/src/pages/Home/Section/Filter/index.js +++ b/packages/client/src/pages/Home/Section/Filter/index.js @@ -2054,6 +2054,12 @@ const SectionFilterContent = ({ label: t("Common:LastModifiedDate"), default: true, }; + const activityDate = { + id: "sort-by_activity", + key: SortByFieldName.ModifiedDate, + label: t("Common:LastActivityDate"), + default: true, + }; const lastOpenedDate = { id: "sort-by_last-opened", key: SortByFieldName.LastOpened, @@ -2129,7 +2135,7 @@ const SectionFilterContent = ({ commonOptions.push(roomType); commonOptions.push(tags); commonOptions.push(owner); - commonOptions.push(modifiedDate); + commonOptions.push(activityDate); showStorageInfo && commonOptions.push(sortByStorage); } else if (isTrash) { // commonOptions.push(authorOption); diff --git a/packages/client/src/pages/PortalSettings/categories/developer-tools/JavascriptSDK/presets/Manager.js b/packages/client/src/pages/PortalSettings/categories/developer-tools/JavascriptSDK/presets/Manager.js index a3c1c572bb..cf37cb5c80 100644 --- a/packages/client/src/pages/PortalSettings/categories/developer-tools/JavascriptSDK/presets/Manager.js +++ b/packages/client/src/pages/PortalSettings/categories/developer-tools/JavascriptSDK/presets/Manager.js @@ -119,7 +119,7 @@ const Manager = (props) => { const [columnsOptions, setColumnsOptions] = useState([ { key: "Owner", label: t("Common:Owner") }, - { key: "Activity", label: t("Files:ByLastModified") }, + { key: "Activity", label: t("Files:LastActivity") }, ]); const [sortBy, setSortBy] = useState(dataSortBy[0]); diff --git a/public/locales/en/Common.json b/public/locales/en/Common.json index dbb6e53f27..cfebb5286b 100644 --- a/public/locales/en/Common.json +++ b/public/locales/en/Common.json @@ -245,6 +245,7 @@ "Kilobyte": "KB", "Language": "Language", "LastModifiedDate": "Last modified date", + "LastActivityDate": "Last activity date", "LastName": "Last name", "LatePayment": "Late payment", "Later": "Later",