diff --git a/app/views/reports/_budget_performance.html.erb b/app/views/reports/_budget_performance.html.erb index 9e1030a30..06477b638 100644 --- a/app/views/reports/_budget_performance.html.erb +++ b/app/views/reports/_budget_performance.html.erb @@ -22,7 +22,7 @@
<% case budget_item[:status] %> <% when :over %> - + <%= icon("alert-circle", class: "w-3 h-3") %> <%= t("reports.budget_performance.status.over") %> @@ -49,7 +49,7 @@
<% bar_width = [budget_item[:percent_used], 100].min %> <% bar_color = case budget_item[:status] - when :over then "bg-danger" + when :over then "bg-destructive" when :warning then "bg-warning" else "bg-success" end %> @@ -83,7 +83,7 @@ <% else %> <%= t("reports.budget_performance.over_by") %>: - + <%= Money.new(budget_item[:remaining].abs, Current.family.currency).format %> <% end %> diff --git a/app/views/reports/_summary_dashboard.html.erb b/app/views/reports/_summary_dashboard.html.erb index d83041911..151a32d0a 100644 --- a/app/views/reports/_summary_dashboard.html.erb +++ b/app/views/reports/_summary_dashboard.html.erb @@ -23,8 +23,8 @@ +<%= metrics[:income_change] %>% <% else %> - <%= icon("arrow-down", class: "w-4 h-4 text-danger") %> - + <%= icon("arrow-down", class: "w-4 h-4 text-destructive") %> + <%= metrics[:income_change] %>% <% end %> @@ -40,7 +40,7 @@
- <%= icon("trending-down", class: "w-5 h-5 text-danger") %> + <%= icon("trending-down", class: "w-5 h-5 text-destructive") %>

<%= t("reports.summary.total_expenses") %>

@@ -55,8 +55,8 @@ <% if metrics[:expense_change] %>
<% if metrics[:expense_change] >= 0 %> - <%= icon("arrow-up", class: "w-4 h-4 text-danger") %> - + <%= icon("arrow-up", class: "w-4 h-4 text-destructive") %> + +<%= metrics[:expense_change] %>% <% else %> @@ -85,7 +85,7 @@
-

"> +

"> <%= metrics[:net_savings].format %>

@@ -114,7 +114,7 @@
-
= 80 ? "bg-warning" : "bg-success" %> rounded-full transition-all" +
= 80 ? "bg-warning" : "bg-success" %> rounded-full transition-all" style="width: <%= [metrics[:budget_percent], 100].min %>%">
diff --git a/app/views/reports/_transactions_breakdown.html.erb b/app/views/reports/_transactions_breakdown.html.erb index fafb717e1..586779c68 100644 --- a/app/views/reports/_transactions_breakdown.html.erb +++ b/app/views/reports/_transactions_breakdown.html.erb @@ -109,7 +109,7 @@ <%# Expenses Section %> <% if expense_groups.any? %>
-

+

<%= icon("trending-down", class: "w-5 h-5") %> <%= t("reports.transactions_breakdown.table.expense") %> (<%= Money.new(expense_total, Current.family.currency).format %>) @@ -143,7 +143,7 @@

- + <%= Money.new(group[:total], Current.family.currency).format %> diff --git a/app/views/reports/_trends_insights.html.erb b/app/views/reports/_trends_insights.html.erb index 1b3d83b53..6b294cc9c 100644 --- a/app/views/reports/_trends_insights.html.erb +++ b/app/views/reports/_trends_insights.html.erb @@ -29,13 +29,13 @@ <%= Money.new(trend[:income], Current.family.currency).format %> - + <%= Money.new(trend[:expenses], Current.family.currency).format %> - "> + "> <%= Money.new(trend[:net], Current.family.currency).format %> - "> + "> <% savings_rate = trend[:income] > 0 ? ((trend[:net].to_f / trend[:income].to_f) * 100).round(1) : 0 %> <%= savings_rate %>% @@ -60,14 +60,14 @@

<%= t("reports.trends.avg_monthly_expenses") %>

-

+

<%= Money.new(avg_expenses, Current.family.currency).format %>

<%= t("reports.trends.avg_monthly_savings") %>

-

"> +

"> <%= Money.new(avg_net, Current.family.currency).format %>