Skip to content

Revamp home UI and refactor authentication and address handling - #28

Merged
Slengm4n merged 3 commits into
mainfrom
hot_fix
Jun 12, 2026
Merged

Revamp home UI and refactor authentication and address handling#28
Slengm4n merged 3 commits into
mainfrom
hot_fix

Conversation

@Slengm4n

Copy link
Copy Markdown
Owner

No description provided.

Slengm4n and others added 3 commits June 8, 2026 12:13
Refactors and modernizes the home view: updated header with animated logo, improved desktop nav and conditional dashboard link, redesigned language picker (accessible modal) and user menu with avatar handling and polished dropdown. Reworked intro carousel slides for consistent hover/scale effects and pagination, refreshed About section (image path, cards, hover effects), and rebuilt supporters marquee for smooth infinite scroll. Footer layout adjusted and newsletter input fixed for accessibility. General styling, spacing and accessibility tweaks throughout.
Large refactor across controllers, models and views to align code with schema and improve address/venue handling and auth security. Key changes: switch user password column from password_hash to password; consolidate "remember me" to users.remember_token (cookie stores token, logout clears DB token); password reset moved to password_reset_tokens with 1-hour validity; User role defaults/allowed values updated (player/owner/admin). Address model rewritten to use hierarchical tables (countries, states, cities, neighborhoods, streets), with transaction-safe find-or-create flow and Google Geocoding lookup; Venue and VenueImage adjusted to use venues_images table and richer JOINs to return street/city/state and a cover image; Sport model uses icon_path column. Other fixes: CNPJ encryption/decryption robustness, session regeneration on login, various view title and label corrections (e.g. English typos, floor options), and small controller cleanups. Breaking changes: DB migrations required (rename/add columns and tables: users.remember_token, users.password, venues_images, password_reset_tokens, and address-related tables/relations, sports.icon_path). Update configs (GOOGLE_MAPS_API_KEY, ENCRYPTION_IV/KEY) and run migrations before deploying.
@Slengm4n
Slengm4n merged commit ac89661 into main Jun 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant