feat: add currency management for families with enabled currencies (#1419)

* feat: add currency management for families with enabled currencies

* feat: update currency selection logic and improve accessibility

* feat: update currency preferences to use group moniker in titles

---------

Signed-off-by: Ang Wei Feng (Ted) <hello@tedawf.com>
Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
Ang Wei Feng (Ted)
2026-04-14 01:53:04 +08:00
committed by GitHub
parent 1aa3c8f007
commit 60929cdee0
13 changed files with 322 additions and 18 deletions

View File

@@ -0,0 +1,5 @@
class AddEnabledCurrenciesToFamilies < ActiveRecord::Migration[7.2]
def change
add_column :families, :enabled_currencies, :string, array: true
end
end

1
db/schema.rb generated
View File

@@ -594,6 +594,7 @@ ActiveRecord::Schema[7.2].define(version: 2026_04_12_120000) do
t.string "moniker", default: "Family", null: false
t.string "assistant_type", default: "builtin", null: false
t.string "default_account_sharing", default: "shared", null: false
t.string "enabled_currencies", array: true
t.check_constraint "default_account_sharing::text = ANY (ARRAY['shared'::character varying::text, 'private'::character varying::text])", name: "chk_families_default_account_sharing"
t.check_constraint "month_start_day >= 1 AND month_start_day <= 28", name: "month_start_day_range"
end