Start and end balance breakdown in activity view (#2466)

* Initial data objects

* Remove trend calculator

* Fill in balance reconciliation for entry group

* Initial tooltip component

* Balance trends in activity view

* Lint fixes

* trade partial alignment fix

* Tweaks to balance calculation to acknowledge holdings value better

* More lint fixes

* Bump brakeman dep

* Test fixes

* Remove unused class
This commit is contained in:
Zach Gollwitzer
2025-07-18 17:56:25 -04:00
committed by GitHub
parent ab6fdbbb68
commit e8eb32d2ae
27 changed files with 1088 additions and 119 deletions

View File

@@ -1,9 +1,9 @@
<%# locals: (entry:, balance_trend: nil, **) %>
<%# locals: (entry:, **) %>
<% valuation = entry.entryable %>
<% color = balance_trend&.trend&.color || "#D444F1" %>
<% icon = balance_trend&.trend&.icon || "plus" %>
<% color = valuation.opening_anchor? ? "#D444F1" : "var(--color-gray)" %>
<% icon = valuation.opening_anchor? ? "plus" : "minus" %>
<%= turbo_frame_tag dom_id(entry) do %>
<%= turbo_frame_tag dom_id(valuation) do %>
@@ -26,7 +26,7 @@
</div>
<div class="col-span-4 justify-self-end">
<%= tag.p format_money(entry.amount_money), class: "font-medium text-sm text-primary" %>
<%= tag.p format_money(entry.amount_money), class: "font-bold text-sm text-primary" %>
</div>
</div>
<% end %>