Merge branch 'main' into feat/goals-v2-architecture

This commit is contained in:
Guillem Arias Fauste
2026-05-18 20:51:38 +02:00
committed by GitHub
109 changed files with 2379 additions and 123 deletions

View File

@@ -7,6 +7,7 @@ class BudgetsController < ApplicationController
def show
@source_budget = @budget.most_recent_initialized_budget unless @budget.initialized?
@breadcrumbs = [ [ t("breadcrumbs.home"), root_path ], [ t("breadcrumbs.budgets"), nil ] ]
end
def edit

View File

@@ -8,6 +8,6 @@ module Breadcrumbable
private
# The default, unless specific controller or action explicitly overrides
def set_breadcrumbs
@breadcrumbs = [ [ "Home", root_path ], [ controller_name.titleize, nil ] ]
@breadcrumbs = [ [ t("breadcrumbs.home"), root_path ], [ t("breadcrumbs.#{controller_name}", default: controller_name.titleize), nil ] ]
end
end

View File

@@ -2,7 +2,7 @@ class FamilyMerchantsController < ApplicationController
before_action :set_merchant, only: %i[edit update destroy]
def index
@breadcrumbs = [ [ "Home", root_path ], [ "Merchants", nil ] ]
@breadcrumbs = [ [ t("breadcrumbs.home"), root_path ], [ t("breadcrumbs.merchants"), nil ] ]
# Show all merchants for this family
@family_merchants = Current.family.merchants.alphabetically

View File

@@ -26,11 +26,11 @@ class PagesController < ApplicationController
@dashboard_sections = build_dashboard_sections
@breadcrumbs = [ [ "Home", root_path ], [ "Dashboard", nil ] ]
@breadcrumbs = [ [ t("breadcrumbs.home"), root_path ], [ t("breadcrumbs.dashboard"), nil ] ]
end
def intro
@breadcrumbs = [ [ "Home", chats_path ], [ "Intro", nil ] ]
@breadcrumbs = [ [ t("breadcrumbs.home"), chats_path ], [ t("breadcrumbs.intro"), nil ] ]
end
def update_preferences

View File

@@ -12,7 +12,7 @@ class ReportsController < ApplicationController
# Build reports sections for collapsible/reorderable UI
@reports_sections = build_reports_sections
@breadcrumbs = [ [ "Home", root_path ], [ "Reports", nil ] ]
@breadcrumbs = [ [ t("breadcrumbs.home"), root_path ], [ t("breadcrumbs.reports"), nil ] ]
end
def print

View File

@@ -3,8 +3,8 @@ class Settings::AiPromptsController < ApplicationController
def show
@breadcrumbs = [
[ "Home", root_path ],
[ "AI Prompts", nil ]
[ t("breadcrumbs.home"), root_path ],
[ t("breadcrumbs.ai_prompts"), nil ]
]
@family = Current.family
@assistant_config = Assistant.config_for(OpenStruct.new(user: Current.user))

View File

@@ -7,8 +7,8 @@ class Settings::ApiKeysController < ApplicationController
def show
@breadcrumbs = [
[ "Home", root_path ],
[ "API Key", nil ]
[ t("breadcrumbs.home"), root_path ],
[ t("breadcrumbs.api_key"), nil ]
]
@current_api_key = @api_key
end

View File

@@ -3,8 +3,8 @@ class Settings::GuidesController < ApplicationController
def show
@breadcrumbs = [
[ "Home", root_path ],
[ "Guides", nil ]
[ t("breadcrumbs.home"), root_path ],
[ t("breadcrumbs.guides"), nil ]
]
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
autolink: true,

View File

@@ -17,8 +17,8 @@ class Settings::HostingsController < ApplicationController
def show
@breadcrumbs = [
[ "Home", root_path ],
[ "Self-Hosting", nil ]
[ t("breadcrumbs.home"), root_path ],
[ t("breadcrumbs.self_hosting"), nil ]
]
# Determine which providers are currently selected

View File

@@ -3,8 +3,8 @@ class Settings::LlmUsagesController < ApplicationController
def show
@breadcrumbs = [
[ "Home", root_path ],
[ "LLM Usage", nil ]
[ t("breadcrumbs.home"), root_path ],
[ t("breadcrumbs.llm_usage"), nil ]
]
@family = Current.family

View File

@@ -6,8 +6,8 @@ class Settings::ProfilesController < ApplicationController
@users = Current.family.users.order(:created_at)
@pending_invitations = Current.family.invitations.pending
@breadcrumbs = [
[ "Home", root_path ],
[ "Profile Info", nil ]
[ t("breadcrumbs.home"), root_path ],
[ t("breadcrumbs.profile"), nil ]
]
end

View File

@@ -5,8 +5,8 @@ class Settings::ProvidersController < ApplicationController
def show
@breadcrumbs = [
[ "Home", root_path ],
[ "Bank sync", nil ]
[ t("breadcrumbs.home"), root_path ],
[ t("breadcrumbs.bank_sync"), nil ]
]
prepare_show_context

View File

@@ -3,8 +3,8 @@ class Settings::SecuritiesController < ApplicationController
def show
@breadcrumbs = [
[ "Home", root_path ],
[ "Security", nil ]
[ t("breadcrumbs.home"), root_path ],
[ t("breadcrumbs.security"), nil ]
]
@oidc_identities = Current.user.oidc_identities.order(:provider)
@webauthn_credentials = Current.user.webauthn_credentials.order(created_at: :asc)

View File

@@ -63,6 +63,8 @@ class TransactionsController < ApplicationController
10.days.from_now.to_date,
Date.current)
.includes(:merchant)
@breadcrumbs = [ [ t("breadcrumbs.home"), root_path ], [ t("breadcrumbs.transactions"), nil ] ]
end
def clear_filter