From 96e35dc21d9fcf17b40e3c1afab4e52f6baafacc Mon Sep 17 00:00:00 2001
From: Gabriel Santana de Menezes
Date: Sat, 9 May 2026 21:03:43 -0400
Subject: [PATCH] feat: restructure navbar and fix dead-end navigation across
pages
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Restructure the AppShell navbar for better UX grouping: rename
"Organizações" to "Equipe", consolidate Org Dashboard and admin
items inside the Equipe dropdown, add a persistent "+ Nova Tarefa"
CTA button, and replace the isolated logout button with an avatar
dropdown showing user name and email. Add "Buscar Organização"
to the Equipe dropdown for all roles. Mobile nav simplified to
Dashboard · Tarefas · + · Equipe.
Per-page fixes: remove non-functional chevron and dead links from
ProjectsPage; replace the PDF export button in DashboardPage with
a working "Copiar Relatório" clipboard button; remove dead info
links from OrganizationsPage; remove the broken support link from
LoginPage; add Lista/Quadro view toggle to TaskListPage header.
Co-Authored-By: Claude Sonnet 4.6
---
frontend/src/components/AppShell.tsx | 281 +++++++++++++++--------
frontend/src/pages/DashboardPage.tsx | 35 ++-
frontend/src/pages/LoginPage.tsx | 5 +-
frontend/src/pages/OrganizationsPage.tsx | 19 +-
frontend/src/pages/ProjectsPage.tsx | 16 +-
frontend/src/pages/TaskListPage.tsx | 32 ++-
6 files changed, 244 insertions(+), 144 deletions(-)
diff --git a/frontend/src/components/AppShell.tsx b/frontend/src/components/AppShell.tsx
index d80da52..1c42ebe 100644
--- a/frontend/src/components/AppShell.tsx
+++ b/frontend/src/components/AppShell.tsx
@@ -2,17 +2,20 @@ import React, { useState } from "react";
import {
Layout,
ListTodo,
- PlusCircle,
+ Plus,
Columns,
LogOut,
Settings,
Building2,
Clock,
ChevronDown,
- Shield,
FolderKanban,
BarChart3,
PieChart,
+ Search,
+ User,
+ Users,
+ PlusCircle,
} from "lucide-react";
import { NavLink, Outlet, Navigate, Link } from "react-router-dom";
import { useAuth } from "../contexts/AuthContext";
@@ -43,7 +46,11 @@ export function AppShell() {
const [showOrgModal, setShowOrgModal] = useState(false);
const [showOrgSwitcher, setShowOrgSwitcher] = useState(false);
const [showTasksDropdown, setShowTasksDropdown] = useState(false);
- const [showOrgDropdown, setShowOrgDropdown] = useState(false);
+ const [showTeamDropdown, setShowTeamDropdown] = useState(false);
+ const [showAvatarDropdown, setShowAvatarDropdown] = useState(false);
+
+ const isAdmin =
+ activeOrg?.roles.includes("OWNER") || activeOrg?.roles.includes("ADMIN");
React.useEffect(() => {
if (isAuthenticated && user && user.organizations.length === 0) {
@@ -181,10 +188,11 @@ export function AppShell() {
)}
+ {/* Desktop Navigation */}
-
-
- Criar Tarefa
-
+
+ {/* View toggle */}
+
+
+
+ Lista
+
+
+
+ Quadro
+
+
+
+
+ Criar Tarefa
+
+