mirror of
https://github.com/we-promise/sure.git
synced 2026-04-14 09:34:05 +00:00
Extend privacy mode coverage to remaining financial views Transfers, trades, valuations, and holdings detail views were missing the privacy-sensitive class, leaving amounts visible when privacy mode was enabled. Also adds blur to the summary card partial (used by credit cards, loans, etc.), account chart balances, and time series chart containers (dashboard net worth and per-account charts).
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
<%# locals: (entry:, **) %>
|
|
|
|
<% valuation = entry.entryable %>
|
|
|
|
<% 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 %>
|
|
<div class="p-3 lg:p-4 grid grid-cols-12 items-center text-primary text-sm font-medium">
|
|
<div class="col-span-8 flex items-center gap-3 lg:gap-4">
|
|
<%= check_box_tag dom_id(entry, "selection"),
|
|
class: "checkbox checkbox--light hidden lg:block",
|
|
data: { id: entry.id, "bulk-select-target": "row", action: "bulk-select#toggleRowSelection", checkbox_toggle_target: "selectionEntry" } %>
|
|
|
|
<div class="flex items-center gap-3">
|
|
<%= render DS::FilledIcon.new(icon: icon, size: "md", hex_color: color, rounded: true) %>
|
|
|
|
<div class="truncate text-primary">
|
|
<%= link_to entry.name,
|
|
entry_path(entry),
|
|
data: { turbo_frame: "drawer", turbo_prefetch: false },
|
|
class: "hover:underline" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-span-4 justify-self-end">
|
|
<%= tag.p format_money(entry.amount_money), class: "font-bold text-sm text-primary privacy-sensitive" %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|