Files
sure/app/views/budgets/_category_section.html.erb
xBlaz3kx 237146a914 feat(wise): add Wise integration with JAR savings account and activity support
- Add WiseItem/WiseAccount models with full sync pipeline (importer, syncer, processor)
- Detect income vs expense using targetAccount == recipientId from borderless accounts API
- Support JAR (SAVINGS) accounts with totalWorth balance and savings subtype
- Fetch JAR activity via profile activities API (INTERBALANCE, BALANCE_CASHBACK, BALANCE_ASSET_FEE)
- Route INTERBALANCE activities to both JAR and STANDARD accounts and link as Transfer records
- Add provider connection status registration, routes, views, and i18n
- Add migration for wise_items and wise_accounts tables
- Add tests for WiseAccount, WiseEntry::Processor, WiseActivity::Processor, WiseItem::Importer, and WiseItem#link_jar_transfers!
2026-07-09 22:58:15 +02:00

57 lines
1.7 KiB
Plaintext

<%# locals: (budget:, count:, groups:, uncategorized:, show_uncategorized:, over_budget_mode:) %>
<%# derive display config from over_budget_mode %>
<%
if over_budget_mode
target = "overBudget"
title = t("budgets.show.over_budget_categories.short_title")
else
target = "onTrack"
title = t("budgets.show.on_track_categories.short_title")
end
%>
<div class="bg-container-inset rounded-xl p-1" data-budget-filter-target="<%= target %>">
<!-- Section Header -->
<div class="flex items-center gap-1.5 px-4 py-2 text-xs font-medium text-secondary uppercase">
<p><%= title %></p>
<span class="text-subdued">&middot;</span>
<p><%= count %></p>
<p class="ml-auto"><%= t("budgets.show.categories.amount") %></p>
</div>
<!-- Section Body -->
<div class="bg-container py-1 shadow-border-xs rounded-md">
<% groups.each_with_index do |group, index| %>
<%# derive parent visibility based on mode %>
<%
parent_visible =
if over_budget_mode
group.budget_category.any_over_budget?
else
budget.initialized? ? group.budget_category.visible_on_track? : true
end
%>
<%= render "shared/ruler" unless index == 0 %>
<%= render "budgets/category_group",
group: group,
parent_visible: parent_visible,
over_budget_mode: over_budget_mode %>
<% end %>
<% if show_uncategorized %>
<%= render "shared/ruler" unless groups.size == 0 %>
<div class="py-2">
<%= render "budget_categories/budget_category",
budget_category: uncategorized,
show_budget_meta: (over_budget_mode ? uncategorized.over_budget_with_budget? : true) %>
</div>
<% end %>
</div>
</div>