diff --git a/admin/src/App.tsx b/admin/src/App.tsx
index 91be7d0..0e24253 100644
--- a/admin/src/App.tsx
+++ b/admin/src/App.tsx
@@ -21,6 +21,7 @@ import Exercises from './pages/catalog/Exercises';
import EquipmentCatalog from './pages/catalog/Equipment';
import Announcements from './pages/announcements/Announcements';
import Logs from './pages/Logs';
+import TestPage from './pages/TestPage';
import VerificationsList, { VerificationDetail } from './pages/Verifications';
export default function App() {
@@ -62,6 +63,7 @@ export default function App() {
} />
} />
} />
+ } />
} />
diff --git a/admin/src/components/Layout.tsx b/admin/src/components/Layout.tsx
index 7aedfc3..7a90d1c 100644
--- a/admin/src/components/Layout.tsx
+++ b/admin/src/components/Layout.tsx
@@ -5,6 +5,7 @@ import {
AppWindow,
Building2,
Dumbbell,
+ FlaskConical,
LogOut,
Megaphone,
Menu,
@@ -45,6 +46,7 @@ const SECTIONS: NavSection[] = [
labelKey: 'nav.management',
items: [
{ to: '/gyms', labelKey: 'nav.gyms', icon: Building2, end: false },
+ { to: '/test', labelKey: 'nav.test', icon: FlaskConical, end: false },
{ to: '/verifications', labelKey: 'nav.verifications', icon: ShieldCheck, end: false },
{ to: '/users', labelKey: 'nav.users', icon: Users, end: false },
{ to: '/announcements', labelKey: 'nav.announcements', icon: Megaphone, end: false },
diff --git a/admin/src/i18n/locales/en/common.json b/admin/src/i18n/locales/en/common.json
index 0421250..da98396 100644
--- a/admin/src/i18n/locales/en/common.json
+++ b/admin/src/i18n/locales/en/common.json
@@ -44,7 +44,8 @@
"roleTrainer": "Trainer",
"roleMember": "Member",
"buildInfo": "build {{sha}} · {{time}}",
- "buildDev": "dev"
+ "buildDev": "dev",
+ "test": "Test"
},
"topbar": {
"openMenu": "Open menu",
diff --git a/admin/src/i18n/locales/pl/common.json b/admin/src/i18n/locales/pl/common.json
index ac6fcda..338cc3d 100644
--- a/admin/src/i18n/locales/pl/common.json
+++ b/admin/src/i18n/locales/pl/common.json
@@ -44,7 +44,8 @@
"roleTrainer": "Trener",
"roleMember": "Ćwiczący",
"buildInfo": "wersja {{sha}} · {{time}}",
- "buildDev": "dev"
+ "buildDev": "dev",
+ "test": "Test"
},
"topbar": {
"openMenu": "Otwórz menu",
diff --git a/admin/src/pages/TestPage.tsx b/admin/src/pages/TestPage.tsx
new file mode 100644
index 0000000..53c9ce1
--- /dev/null
+++ b/admin/src/pages/TestPage.tsx
@@ -0,0 +1,8 @@
+import { useTranslation } from 'react-i18next';
+import { useTopbar } from '../topbar';
+
+export default function TestPage() {
+ const { t } = useTranslation();
+ useTopbar({ title: t('common:nav.test') });
+ return
{t('common:nav.test')}
;
+}
diff --git a/app/src/App.tsx b/app/src/App.tsx
index cf86ef6..f5eba11 100644
--- a/app/src/App.tsx
+++ b/app/src/App.tsx
@@ -16,6 +16,7 @@ import PlanTemplates from './pages/plans/PlanTemplates';
import PlanEditor from './pages/plans/PlanEditor';
import PlanDetail from './pages/plans/PlanDetail';
import Calendar from './pages/Calendar';
+import TestPage from './pages/TestPage';
import DayExecution from './pages/DayExecution';
import Profile from './pages/profile/Profile';
import ProfileInfo from './pages/profile/ProfileInfo';
@@ -85,6 +86,7 @@ export default function App() {
} />
} />
} />
+ } />
} />
} />
} />
diff --git a/app/src/components/Layout.tsx b/app/src/components/Layout.tsx
index f9e2596..56d08d1 100644
--- a/app/src/components/Layout.tsx
+++ b/app/src/components/Layout.tsx
@@ -5,6 +5,7 @@ import {
Building2,
CalendarDays,
Dumbbell,
+ FlaskConical,
LayoutDashboard,
LogOut,
Mail,
@@ -56,6 +57,7 @@ const NAV: NavItem[] = [
];
const GYM_NAV: NavItem = { to: '/gyms', labelKey: 'gyms', icon: Building2, end: false };
+const TEST_NAV: NavItem = { to: '/test', labelKey: 'test', icon: FlaskConical, end: false };
const TRAINEES_NAV: NavItem = { to: '/trainees', labelKey: 'trainees', icon: Users, end: false };
const INVITATIONS_NAV: NavItem = {
to: '/invitations',
@@ -221,7 +223,7 @@ export default function Layout() {
? { to: `/day/${activeSession.dayId}`, labelKey: 'training', icon: Play, end: false }
: null;
// „Siłownie” jest zawsze widoczne (wirtualne siłownie są dostępne dla każdego usera).
- let navItems: NavItem[] = [...NAV.slice(0, 3), GYM_NAV, NAV[3]];
+ let navItems: NavItem[] = [...NAV.slice(0, 3), TEST_NAV, GYM_NAV, NAV[3]];
if (trainingNav) navItems = [...navItems.slice(0, 3), trainingNav, ...navItems.slice(3)];
// „Komunikator” jest zawsze widoczny (dla każdego zalogowanego), badge = nieprzeczytane.
navItems = [
diff --git a/app/src/i18n/locales/en/nav.json b/app/src/i18n/locales/en/nav.json
index 1349481..82d0f27 100644
--- a/app/src/i18n/locales/en/nav.json
+++ b/app/src/i18n/locales/en/nav.json
@@ -16,5 +16,6 @@
"roleUser": "Trainee",
"mainNav": "Main navigation",
"buildInfo": "build {{sha}} · {{time}}",
- "buildDev": "dev"
+ "buildDev": "dev",
+ "test": "Test"
}
diff --git a/app/src/i18n/locales/pl/nav.json b/app/src/i18n/locales/pl/nav.json
index a3c0869..c7518c6 100644
--- a/app/src/i18n/locales/pl/nav.json
+++ b/app/src/i18n/locales/pl/nav.json
@@ -16,5 +16,6 @@
"roleUser": "Ćwiczący",
"mainNav": "Nawigacja główna",
"buildInfo": "wersja {{sha}} · {{time}}",
- "buildDev": "dev"
+ "buildDev": "dev",
+ "test": "Test"
}
diff --git a/app/src/pages/TestPage.tsx b/app/src/pages/TestPage.tsx
new file mode 100644
index 0000000..20d774e
--- /dev/null
+++ b/app/src/pages/TestPage.tsx
@@ -0,0 +1,8 @@
+import { useTranslation } from 'react-i18next';
+import { useTopbar } from '../topbar';
+
+export default function TestPage() {
+ const { t } = useTranslation('nav');
+ useTopbar({ title: t('test') });
+ return {t('test')}
;
+}