From 204c1db7eac207aa5bfe7d424eaaf5e9cf9b0cab Mon Sep 17 00:00:00 2001 From: Moretto <72614882+Giomoret@users.noreply.github.com> Date: Tue, 20 Oct 2026 13:09:54 -0300 Subject: [PATCH 1/3] =?UTF-8?q?fix(ui):=20melhorar=20layout,=20navega?= =?UTF-8?q?=C3=A7=C3=A3o=20m=C3=B3vel=20e=20hist=C3=B3rico=20do=20backlog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.tsx | 9 +- frontend/src/assets/styles/chat.css | 10 + frontend/src/assets/styles/projects.css | 238 +++++++++++++++++- frontend/src/styles/components.css | 10 +- frontend/src/styles/layout.css | 36 +++ frontend/src/views/backlog/EpicsView.tsx | 6 +- frontend/src/views/backlog/FeaturesView.tsx | 6 +- .../src/views/backlog/ItemHistoryView.tsx | 33 +-- frontend/src/views/backlog/PbiDetail.tsx | 22 +- .../src/views/backlog/QualityPanelView.tsx | 8 +- .../src/views/backlog/RequirementsView.tsx | 6 - frontend/src/views/chat/ChatView.tsx | 6 +- .../src/views/landing/LandingPageView.tsx | 8 +- frontend/src/views/projects/ProjectsView.tsx | 76 +++--- 14 files changed, 380 insertions(+), 94 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 7757b3a..ec626a4 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -18,15 +18,17 @@ export const App: React.FC = () => { const { session, logout } = useAuth(); const [pathname, setPathname] = useState(window.location.pathname); + const [menuOpen, setMenuOpen] = useState(false); + const isAdmin = session.user?.role === "admin"; const activeTab = isProjectPath(pathname) ? "projects" : (Object.keys(routes) as Array).find((key) => routes[key] === pathname) || "projects"; - const setActiveTab = (tab: keyof typeof routes) => navigate(routes[tab]); + const setActiveTab = (tab: keyof typeof routes) => { setMenuOpen(false); navigate(routes[tab]); }; useEffect(() => { - const update = () => setPathname(window.location.pathname); + const update = () => { setPathname(window.location.pathname); setMenuOpen(false); }; window.addEventListener("popstate", update); return () => window.removeEventListener("popstate", update); }, []); @@ -38,7 +40,8 @@ export const App: React.FC = () => { S•NAPSE -