From f882061f6a1114a66a3adf80c2082eb631f053a1 Mon Sep 17 00:00:00 2001 From: doubleface Date: Wed, 8 Apr 2026 15:58:42 +0200 Subject: [PATCH] feat: Sidebar relooking --- src/locales/en.json | 6 +++--- src/locales/fr.json | 2 +- src/locales/ru.json | 2 +- src/locales/vi.json | 2 +- src/modules/navigation/FavoriteListItem.tsx | 7 ++++++- src/modules/navigation/Nav.jsx | 6 +++--- src/modules/views/useUpdateDocumentTitle.spec.js | 8 ++++---- 7 files changed, 19 insertions(+), 14 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index e69bb818a1..b896c767c9 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,11 +1,11 @@ { "Nav": { - "item_drive": "Files", - "item_recent": "Recent", + "item_drive": "My Drive", + "item_recent": "Recents", "item_sharings": "Sharings", "item_shared": "Shared by me", "item_activity": "Activity", - "item_trash": "Trash", + "item_trash": "Bin", "item_settings": "Settings", "item_collect": "Administrative", "item_shared_drives": "Shared drives", diff --git a/src/locales/fr.json b/src/locales/fr.json index 1a3957c4d2..8ffdb40afe 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -1,6 +1,6 @@ { "Nav": { - "item_drive": "Fichiers", + "item_drive": "Mon Drive", "item_recent": "Récents", "item_sharings": "Partages", "item_shared": "Partagés", diff --git a/src/locales/ru.json b/src/locales/ru.json index 2b1627bbe3..251b4a7bd3 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -1,6 +1,6 @@ { "Nav": { - "item_drive": "Файлы", + "item_drive": "Мой диск", "item_recent": "Недавние", "item_sharings": "Общие", "item_shared": "Мои отправленные файлы", diff --git a/src/locales/vi.json b/src/locales/vi.json index f32d609c4b..a2d275037e 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -1,6 +1,6 @@ { "Nav": { - "item_drive": "Tệp", + "item_drive": "Ổ đĩa của tôi", "item_recent": "Gần đây", "item_sharings": "Chia sẻ", "item_shared": "Chia sẻ bởi tôi", diff --git a/src/modules/navigation/FavoriteListItem.tsx b/src/modules/navigation/FavoriteListItem.tsx index 894a995601..a8b037ed89 100644 --- a/src/modules/navigation/FavoriteListItem.tsx +++ b/src/modules/navigation/FavoriteListItem.tsx @@ -50,7 +50,12 @@ const FavoriteListItem: FC = ({ onClick={(): void => setLastClicked(undefined)} > - + {filename} diff --git a/src/modules/navigation/Nav.jsx b/src/modules/navigation/Nav.jsx index aad62a53c2..378d9fbc4a 100644 --- a/src/modules/navigation/Nav.jsx +++ b/src/modules/navigation/Nav.jsx @@ -1,8 +1,8 @@ import React from 'react' import Icon from 'cozy-ui/transpiled/react/Icon' -import ClockIcon from 'cozy-ui/transpiled/react/Icons/Clock' -import FolderIcon from 'cozy-ui/transpiled/react/Icons/Folder' +import ClockIcon from 'cozy-ui/transpiled/react/Icons/ClockOutline' +import CloudIcon from 'cozy-ui/transpiled/react/Icons/Cloud2' import StarIcon from 'cozy-ui/transpiled/react/Icons/Star' import TrashIcon from 'cozy-ui/transpiled/react/Icons/Trash' import UINav from 'cozy-ui/transpiled/react/Nav' @@ -22,7 +22,7 @@ export const Nav = () => { } + icon={} label="drive" rx={/\/(folder|nextcloud)(\/.*)?/} clickState={clickState} diff --git a/src/modules/views/useUpdateDocumentTitle.spec.js b/src/modules/views/useUpdateDocumentTitle.spec.js index 4bb4aceb8e..3647734b81 100644 --- a/src/modules/views/useUpdateDocumentTitle.spec.js +++ b/src/modules/views/useUpdateDocumentTitle.spec.js @@ -50,13 +50,13 @@ describe('makeTitle', () => { 'Cozy Drive', t ) - ).toBe('file.docx (Trash/folder) - Cozy Drive') + ).toBe('file.docx (Bin/folder) - Cozy Drive') }) it('should show trash folder with human frendly name even if no subdirectory', () => { expect( makeTitle({ name: 'file.docx', path: TRASH_DIR_PATH }, 'Cozy Drive', t) - ).toBe('file.docx (Trash) - Cozy Drive') + ).toBe('file.docx (Bin) - Cozy Drive') }) }) @@ -68,7 +68,7 @@ describe('makeTitle', () => { 'Cozy Drive', t ) - ).toBe('Trash - Cozy Drive') + ).toBe('Bin - Cozy Drive') }) it('should show trash folder with human frendly name', () => { @@ -82,7 +82,7 @@ describe('makeTitle', () => { 'Cozy Drive', t ) - ).toBe('folder (Trash/folder) - Cozy Drive') + ).toBe('folder (Bin/folder) - Cozy Drive') }) it('should show folder path and app name', () => {