Skip to content

Commit ef89d27

Browse files
Thomas Laureclaude
andcommitted
feat(frontend): rename Dashboard to Feed
Rename the main page from Dashboard to Feed across the codebase: - Rename pages/Dashboard.tsx to pages/Feed.tsx - Update i18n keys: nav.dashboard → nav.feed, dashboard.* → feed.* - Update translations: "Dashboard"/"Tableau de bord" → "Feed" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b7066aa commit ef89d27

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

frontend/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Routes, Route } from 'react-router-dom';
22
import AppLayout from './components/Layout/AppLayout';
33
import ProtectedRoute from './components/Auth/ProtectedRoute';
4-
import Dashboard from './pages/Dashboard';
4+
import Feed from './pages/Feed';
55
import CategoryPage from './pages/CategoryPage';
66
import BookmarksPage from './pages/BookmarksPage';
77
import ArticlePage from './pages/ArticlePage';
@@ -20,7 +20,7 @@ function App() {
2020
<Route path="/verify-email" element={<VerifyEmailPage />} />
2121
<Route element={<ProtectedRoute />}>
2222
<Route element={<AppLayout />}>
23-
<Route path="/" element={<Dashboard />} />
23+
<Route path="/" element={<Feed />} />
2424
<Route path="/articles/:id" element={<ArticlePage />} />
2525
<Route path="/feeds" element={<FeedManagementPage />} />
2626
<Route path="/categories/:id" element={<CategoryPage />} />

frontend/src/components/Layout/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function Sidebar({
7272
};
7373

7474
const navItems = [
75-
{ label: t('nav.dashboard'), icon: <HomeIcon />, path: '/' },
75+
{ label: t('nav.feed'), icon: <HomeIcon />, path: '/' },
7676
{ label: t('nav.feeds'), icon: <RssFeedIcon />, path: '/feeds' },
7777
{ label: t('nav.bookmarks'), icon: <BookmarkIcon />, path: '/bookmarks' },
7878
];

frontend/src/i18n/locales/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"never": "Never"
1111
},
1212
"nav": {
13-
"dashboard": "Dashboard",
13+
"feed": "Feed",
1414
"feeds": "Feeds",
1515
"bookmarks": "Bookmarks",
1616
"categories": "Categories",
@@ -48,8 +48,8 @@
4848
"resendButton": "Resend verification email",
4949
"backToSignIn": "Back to sign in"
5050
},
51-
"dashboard": {
52-
"title": "Dashboard",
51+
"feed": {
52+
"title": "Feed",
5353
"unread": "{{count}} unread",
5454
"addCategory": "Category",
5555
"addFeed": "Add Feed",

frontend/src/i18n/locales/fr.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"never": "Jamais"
1111
},
1212
"nav": {
13-
"dashboard": "Tableau de bord",
13+
"feed": "Feed",
1414
"feeds": "Flux",
1515
"bookmarks": "Favoris",
1616
"categories": "Catégories",
@@ -48,8 +48,8 @@
4848
"resendButton": "Renvoyer l'e-mail de vérification",
4949
"backToSignIn": "Retour à la connexion"
5050
},
51-
"dashboard": {
52-
"title": "Tableau de bord",
51+
"feed": {
52+
"title": "Feed",
5353
"unread": "{{count}} non lu",
5454
"addCategory": "Catégorie",
5555
"addFeed": "Ajouter un flux",
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { useFeeds, useAddFeed } from '../hooks/useFeeds';
1717
import { useBookmarks, useCreateBookmark, useDeleteBookmark } from '../hooks/useBookmarks';
1818
import type { CreateCategoryInput, AddFeedInput } from '../types';
1919

20-
export default function Dashboard() {
20+
export default function Feed() {
2121
const { t } = useTranslation();
2222
const [addFeedOpen, setAddFeedOpen] = useState(false);
2323
const [addCategoryOpen, setAddCategoryOpen] = useState(false);
@@ -89,11 +89,11 @@ export default function Dashboard() {
8989
>
9090
<Box>
9191
<Typography variant="h4" fontWeight="bold">
92-
{t('dashboard.title')}
92+
{t('feed.title')}
9393
</Typography>
9494
<Box display="flex" gap={1} mt={0.5}>
9595
<Chip
96-
label={t('dashboard.unread', { count: unreadCount })}
96+
label={t('feed.unread', { count: unreadCount })}
9797
size="small"
9898
color={unreadOnly ? 'primary' : unreadCount > 0 ? 'primary' : 'default'}
9999
variant={unreadOnly ? 'filled' : 'outlined'}
@@ -108,33 +108,33 @@ export default function Dashboard() {
108108
startIcon={<AddIcon />}
109109
onClick={() => setAddCategoryOpen(true)}
110110
>
111-
{t('dashboard.addCategory')}
111+
{t('feed.addCategory')}
112112
</Button>
113113
<Button
114114
variant="contained"
115115
startIcon={<RssFeedIcon />}
116116
onClick={() => setAddFeedOpen(true)}
117117
disabled={categories.length === 0}
118118
>
119-
{t('dashboard.addFeed')}
119+
{t('feed.addFeed')}
120120
</Button>
121121
</Box>
122122
</Box>
123123

124124
{categories.length === 0 && feeds.length === 0 ? (
125125
<Box textAlign="center" py={8}>
126126
<Typography variant="h6" color="text.secondary" gutterBottom>
127-
{t('dashboard.welcome')}
127+
{t('feed.welcome')}
128128
</Typography>
129129
<Typography variant="body2" color="text.secondary" mb={3}>
130-
{t('dashboard.welcomeMessage')}
130+
{t('feed.welcomeMessage')}
131131
</Typography>
132132
<Button
133133
variant="contained"
134134
startIcon={<AddIcon />}
135135
onClick={() => setAddCategoryOpen(true)}
136136
>
137-
{t('dashboard.createFirstCategory')}
137+
{t('feed.createFirstCategory')}
138138
</Button>
139139
</Box>
140140
) : (

0 commit comments

Comments
 (0)