From 3fc97128b984286d6124e771bbb32dd474e0e686 Mon Sep 17 00:00:00 2001 From: Tilumca Date: Wed, 18 Nov 2026 02:35:20 +0100 Subject: [PATCH] App+Admin: cofniecie zakladki testowej (pomiar watkiego gardla deployu - build wszystkich uslug niezaleznie od zmian) --- admin/src/App.tsx | 2 -- admin/src/components/Layout.tsx | 2 -- admin/src/i18n/locales/en/common.json | 3 +-- admin/src/i18n/locales/pl/common.json | 3 +-- admin/src/pages/TestPage.tsx | 8 -------- app/src/App.tsx | 2 -- app/src/components/Layout.tsx | 4 +--- app/src/i18n/locales/en/nav.json | 3 +-- app/src/i18n/locales/pl/nav.json | 3 +-- app/src/pages/TestPage.tsx | 8 -------- 10 files changed, 5 insertions(+), 33 deletions(-) delete mode 100644 admin/src/pages/TestPage.tsx delete mode 100644 app/src/pages/TestPage.tsx diff --git a/admin/src/App.tsx b/admin/src/App.tsx index 0e24253..91be7d0 100644 --- a/admin/src/App.tsx +++ b/admin/src/App.tsx @@ -21,7 +21,6 @@ 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() { @@ -63,7 +62,6 @@ export default function App() { } /> } /> } /> - } /> } /> diff --git a/admin/src/components/Layout.tsx b/admin/src/components/Layout.tsx index 7a90d1c..7aedfc3 100644 --- a/admin/src/components/Layout.tsx +++ b/admin/src/components/Layout.tsx @@ -5,7 +5,6 @@ import { AppWindow, Building2, Dumbbell, - FlaskConical, LogOut, Megaphone, Menu, @@ -46,7 +45,6 @@ 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 da98396..0421250 100644 --- a/admin/src/i18n/locales/en/common.json +++ b/admin/src/i18n/locales/en/common.json @@ -44,8 +44,7 @@ "roleTrainer": "Trainer", "roleMember": "Member", "buildInfo": "build {{sha}} · {{time}}", - "buildDev": "dev", - "test": "Test" + "buildDev": "dev" }, "topbar": { "openMenu": "Open menu", diff --git a/admin/src/i18n/locales/pl/common.json b/admin/src/i18n/locales/pl/common.json index 338cc3d..ac6fcda 100644 --- a/admin/src/i18n/locales/pl/common.json +++ b/admin/src/i18n/locales/pl/common.json @@ -44,8 +44,7 @@ "roleTrainer": "Trener", "roleMember": "Ćwiczący", "buildInfo": "wersja {{sha}} · {{time}}", - "buildDev": "dev", - "test": "Test" + "buildDev": "dev" }, "topbar": { "openMenu": "Otwórz menu", diff --git a/admin/src/pages/TestPage.tsx b/admin/src/pages/TestPage.tsx deleted file mode 100644 index 53c9ce1..0000000 --- a/admin/src/pages/TestPage.tsx +++ /dev/null @@ -1,8 +0,0 @@ -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 f5eba11..cf86ef6 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -16,7 +16,6 @@ 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'; @@ -86,7 +85,6 @@ export default function App() { } /> } /> } /> - } /> } /> } /> } /> diff --git a/app/src/components/Layout.tsx b/app/src/components/Layout.tsx index 56d08d1..f9e2596 100644 --- a/app/src/components/Layout.tsx +++ b/app/src/components/Layout.tsx @@ -5,7 +5,6 @@ import { Building2, CalendarDays, Dumbbell, - FlaskConical, LayoutDashboard, LogOut, Mail, @@ -57,7 +56,6 @@ 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', @@ -223,7 +221,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), TEST_NAV, GYM_NAV, NAV[3]]; + let navItems: NavItem[] = [...NAV.slice(0, 3), 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 82d0f27..1349481 100644 --- a/app/src/i18n/locales/en/nav.json +++ b/app/src/i18n/locales/en/nav.json @@ -16,6 +16,5 @@ "roleUser": "Trainee", "mainNav": "Main navigation", "buildInfo": "build {{sha}} · {{time}}", - "buildDev": "dev", - "test": "Test" + "buildDev": "dev" } diff --git a/app/src/i18n/locales/pl/nav.json b/app/src/i18n/locales/pl/nav.json index c7518c6..a3c0869 100644 --- a/app/src/i18n/locales/pl/nav.json +++ b/app/src/i18n/locales/pl/nav.json @@ -16,6 +16,5 @@ "roleUser": "Ćwiczący", "mainNav": "Nawigacja główna", "buildInfo": "wersja {{sha}} · {{time}}", - "buildDev": "dev", - "test": "Test" + "buildDev": "dev" } diff --git a/app/src/pages/TestPage.tsx b/app/src/pages/TestPage.tsx deleted file mode 100644 index 20d774e..0000000 --- a/app/src/pages/TestPage.tsx +++ /dev/null @@ -1,8 +0,0 @@ -import { useTranslation } from 'react-i18next'; -import { useTopbar } from '../topbar'; - -export default function TestPage() { - const { t } = useTranslation('nav'); - useTopbar({ title: t('test') }); - return

{t('test')}

; -}