feat: add user authentication UI to header component

Add login and register dialogs, user dropdown menu with profile link and logout option, and integrate with session management hook. Prevent hydration mismatches by conditionally rendering auth elements after mount. Update package-lock.json with new @esbuild dependencies for build tooling.
This commit is contained in:
Evandro Fonseca Junior committed 2025-11-04 02:33:29 -03:00
1 parent e641138887
commit 55eebde0ba
55 files changed
+7353 -7

No files matched your search

@@ -0,0 +1,10 @@
-- Migration 003: Corrigir constraint de location para incluir BR
-- Criado em: 2025-01-27
-- Remover constraint antigo
ALTER TABLE servers DROP CONSTRAINT IF EXISTS servers_location_check;
-- Adicionar novo constraint que inclui BR
ALTER TABLE servers ADD CONSTRAINT servers_location_check
CHECK (location IN ('NA', 'SA', 'EU', 'OC', 'BR'));