diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 788fe03..d6553fb 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,7 +1,7 @@ import { Routes, Route } from 'react-router-dom'; import AppLayout from './components/Layout/AppLayout'; import ProtectedRoute from './components/Auth/ProtectedRoute'; -import Dashboard from './pages/Dashboard'; +import Feed from './pages/Feed'; import CategoryPage from './pages/CategoryPage'; import BookmarksPage from './pages/BookmarksPage'; import ArticlePage from './pages/ArticlePage'; @@ -20,7 +20,7 @@ function App() { } /> }> }> - } /> + } /> } /> } /> } /> diff --git a/frontend/src/components/Layout/Sidebar.tsx b/frontend/src/components/Layout/Sidebar.tsx index 28651ab..87fbdf8 100644 --- a/frontend/src/components/Layout/Sidebar.tsx +++ b/frontend/src/components/Layout/Sidebar.tsx @@ -72,7 +72,7 @@ export default function Sidebar({ }; const navItems = [ - { label: t('nav.dashboard'), icon: , path: '/' }, + { label: t('nav.feed'), icon: , path: '/' }, { label: t('nav.feeds'), icon: , path: '/feeds' }, { label: t('nav.bookmarks'), icon: , path: '/bookmarks' }, ]; diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index 9d5c3d5..baf4921 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -10,7 +10,7 @@ "never": "Never" }, "nav": { - "dashboard": "Dashboard", + "feed": "Inbox", "feeds": "Feeds", "bookmarks": "Bookmarks", "categories": "Categories", @@ -48,8 +48,8 @@ "resendButton": "Resend verification email", "backToSignIn": "Back to sign in" }, - "dashboard": { - "title": "Dashboard", + "feed": { + "title": "Inbox", "unread": "{{count}} unread", "addCategory": "Category", "addFeed": "Add Feed", diff --git a/frontend/src/i18n/locales/fr.json b/frontend/src/i18n/locales/fr.json index f8bb6e7..89b5d46 100644 --- a/frontend/src/i18n/locales/fr.json +++ b/frontend/src/i18n/locales/fr.json @@ -10,7 +10,7 @@ "never": "Jamais" }, "nav": { - "dashboard": "Tableau de bord", + "feed": "Inbox", "feeds": "Flux", "bookmarks": "Favoris", "categories": "Catégories", @@ -48,8 +48,8 @@ "resendButton": "Renvoyer l'e-mail de vérification", "backToSignIn": "Retour à la connexion" }, - "dashboard": { - "title": "Tableau de bord", + "feed": { + "title": "Inbox", "unread": "{{count}} non lu", "addCategory": "Catégorie", "addFeed": "Ajouter un flux", diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Feed.tsx similarity index 94% rename from frontend/src/pages/Dashboard.tsx rename to frontend/src/pages/Feed.tsx index af02cec..983b6ec 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Feed.tsx @@ -17,7 +17,7 @@ import { useFeeds, useAddFeed } from '../hooks/useFeeds'; import { useBookmarks, useCreateBookmark, useDeleteBookmark } from '../hooks/useBookmarks'; import type { CreateCategoryInput, AddFeedInput } from '../types'; -export default function Dashboard() { +export default function Feed() { const { t } = useTranslation(); const [addFeedOpen, setAddFeedOpen] = useState(false); const [addCategoryOpen, setAddCategoryOpen] = useState(false); @@ -89,11 +89,11 @@ export default function Dashboard() { > - {t('dashboard.title')} + {t('feed.title')} 0 ? 'primary' : 'default'} variant={unreadOnly ? 'filled' : 'outlined'} @@ -108,7 +108,7 @@ export default function Dashboard() { startIcon={} onClick={() => setAddCategoryOpen(true)} > - {t('dashboard.addCategory')} + {t('feed.addCategory')} @@ -124,17 +124,17 @@ export default function Dashboard() { {categories.length === 0 && feeds.length === 0 ? ( - {t('dashboard.welcome')} + {t('feed.welcome')} - {t('dashboard.welcomeMessage')} + {t('feed.welcomeMessage')} ) : (