mirror of
https://github.com/we-promise/sure.git
synced 2026-05-12 15:15:01 +00:00
* Initial plan * Hide missed values in privacy mode Agent-Logs-Url: https://github.com/we-promise/sure/sessions/ba225f77-fcf1-4d79-8f89-da446e77fab6 Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com> * Tighten privacy mode test coverage Agent-Logs-Url: https://github.com/we-promise/sure/sessions/ba225f77-fcf1-4d79-8f89-da446e77fab6 Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com> * Polish privacy mode assertions Agent-Logs-Url: https://github.com/we-promise/sure/sessions/ba225f77-fcf1-4d79-8f89-da446e77fab6 Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com> * Refine privacy mode tests Agent-Logs-Url: https://github.com/we-promise/sure/sessions/ba225f77-fcf1-4d79-8f89-da446e77fab6 Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com> * Restore budget privacy mode form interactivity Agent-Logs-Url: https://github.com/we-promise/sure/sessions/f3c51447-290c-421f-9cad-e8ff88c91d2f Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
<%# locals: (accounts:) %>
|
|
|
|
<% ActiveRecord::Associations::Preloader.new(records: accounts, associations: :account_shares).call if accounts.any? %>
|
|
<% accounts.group_by(&:accountable_type).sort_by { |group, _| group }.each do |group, accounts| %>
|
|
<div class="bg-container-inset p-1 rounded-xl">
|
|
<div class="flex items-center px-4 py-2 text-xs font-medium text-secondary">
|
|
<p><%= Accountable.from_type(group).display_name %></p>
|
|
<span class="text-subdued mx-2">·</span>
|
|
<p><%= accounts.count %></p>
|
|
|
|
<% unless accounts.any?(&:syncing?) %>
|
|
<p class="ml-auto privacy-sensitive"><%= totals_by_currency(collection: accounts, money_method: :balance_money) %></p>
|
|
<% end %>
|
|
</div>
|
|
<div class="bg-container rounded-lg shadow-border-xs overflow-hidden">
|
|
<% accounts.each_with_index do |account, index| %>
|
|
<%= render "accounts/account", account: account %>
|
|
<% unless index == accounts.count - 1 %>
|
|
<%= render "shared/ruler" %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|