mirror of
https://github.com/we-promise/sure.git
synced 2026-05-30 07:49:01 +00:00
Merge branch 'main' into feat/goals-v2-architecture
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user