From 24fb28f70a689e36b41c4ecde136588c39179345 Mon Sep 17 00:00:00 2001 From: antigravity-xd Date: Sat, 11 Apr 2026 02:17:12 +0300 Subject: [PATCH] feat(ui): Solve issues 4-10 and polish UI - Added top padding to all pages (Fix #4) - Implemented smooth accordion animations for navigation and messages (Fix #5, #9) - Fixed double selection highlight in navigation bar (Fix #6) - Enabled nested schedule routing for 'Session' view (Fix #7) - Softened switching animations for message types (Fix #8) - Reworked messages to use accordion expansion and removed history (Fix #9) - Moved Support section into Settings page (Fix #10) - Cleaned up unused imports and refined layouts Co-Authored-By: Claude --- src/App.tsx | 3 +- src/components/Navigation.tsx | 53 ++++--- src/pages/Messages.tsx | 290 +++++++++++++++++----------------- src/pages/Schedule.tsx | 30 ++-- src/pages/Settings.tsx | 45 +++++- src/styles/globals.css | 64 ++++++-- 6 files changed, 285 insertions(+), 200 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 64495dc..d736563 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -37,8 +37,9 @@ function App() { } /> + {/* Fix #7: Use wildcard for nested routes */} diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx index 1c5f641..4c94cf0 100644 --- a/src/components/Navigation.tsx +++ b/src/components/Navigation.tsx @@ -3,7 +3,6 @@ import { NavLink, useNavigate } from 'react-router-dom'; import { CalendarDays, GraduationCap, - LifeBuoy, LogOut, Menu, MessageSquareText, @@ -47,7 +46,6 @@ const navItems: NavItemConfig[] = [ ] }, { path: '/messages', label: 'Сообщения', icon: MessageSquareText, badgeKey: 'messages' }, - { path: '/support', label: 'Поддержка', icon: LifeBuoy }, ]; export const Navigation: React.FC = () => { @@ -80,7 +78,7 @@ export const Navigation: React.FC = () => { if (navMode === 'bar') { return (