Aggiunge i18n IT/EN/FR/DE/ES, pagine pubbliche squadre e UX archivio.

Il selettore lingua funziona sul web e sulle app native; su Android la preferenza è persistita e applicata al riavvio. Incluse anche eliminazione replay a scope e campi pagina pubblica squadra.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-23 19:30:44 +02:00
co-authored by Cursor
parent 7d5d66840f
commit 1d97271555
71 changed files with 3509 additions and 197 deletions
@@ -0,0 +1,29 @@
class AddPublicPageFieldsToTeams < ActiveRecord::Migration[7.2]
def up
add_column :teams, :slug, :string
add_column :teams, :roster_public, :boolean, default: false, null: false
Team.reset_column_information
used = {}
Team.find_each do |team|
base = team.name.to_s.parameterize.presence || "squadra"
slug = base
n = 2
while used[slug]
slug = "#{base}-#{n}"
n += 1
end
used[slug] = true
team.update_columns(slug: slug)
end
change_column_null :teams, :slug, false
add_index :teams, :slug, unique: true
end
def down
remove_index :teams, :slug
remove_column :teams, :roster_public
remove_column :teams, :slug
end
end
+4 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.2].define(version: 2026_06_11_120000) do
ActiveRecord::Schema[7.2].define(version: 2026_06_12_120000) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@@ -353,7 +353,10 @@ ActiveRecord::Schema[7.2].define(version: 2026_06_11_120000) do
t.string "primary_color"
t.string "secondary_color"
t.text "description"
t.string "slug", null: false
t.boolean "roster_public", default: false, null: false
t.index ["club_id"], name: "index_teams_on_club_id"
t.index ["slug"], name: "index_teams_on_slug", unique: true
end
create_table "user_teams", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|