diff --git a/api/services/dashboard.ts b/api/services/dashboard.ts index c6ecf1d..14ba746 100644 --- a/api/services/dashboard.ts +++ b/api/services/dashboard.ts @@ -123,6 +123,10 @@ export async function getContactarLeads() { OR (SELECT MAX(date) FROM tbllead_activity_log WHERE leadid = l.id) < DATE_SUB(CURDATE(), INTERVAL 60 DAY) )) ) + AND NOT EXISTS ( + SELECT 1 FROM tblreminders r + WHERE r.rel_id = l.id AND r.rel_type = 'lead' AND r.date > NOW() AND r.isnotified = 0 + ) ORDER BY l.dateadded DESC `) return rows diff --git a/src/App.tsx b/src/App.tsx index f70e11a..9b751ef 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -24,6 +24,8 @@ import { LayoutDashboard, Activity, Target, + Menu, + X, } from 'lucide-react' // Types @@ -418,6 +420,7 @@ function App() { const [data, setData] = useState(null) const [loading, setLoading] = useState(true) const [refreshing, setRefreshing] = useState(false) + const [mobileMenuOpen, setMobileMenuOpen] = useState(false) const fetchData = useCallback(async () => { setRefreshing(true) @@ -484,8 +487,8 @@ function App() {
-

Plan EAL

-

Descomplicar Dashboard SDK

+

Dashboard Descomplicar

+

Painel de Gestão

@@ -501,6 +504,14 @@ function App() {
+ setMobileMenuOpen(!mobileMenuOpen)} + className="md:hidden p-2.5 rounded-xl bg-white/5 hover:bg-white/10 border border-white/10 transition-all" + > + {mobileMenuOpen ? : } + + {/* Mobile Navigation */} + + {mobileMenuOpen && ( + + + + )} + + {/* Main Content */}
@@ -809,9 +843,9 @@ function App() {
- Plan EAL v3.0 + Dashboard Descomplicar v3.0 · - SDK Dashboard + Painel de Gestão
Actualizado: {new Date().toLocaleString('pt-PT')}