Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.