fix: address PR review feedback for generator templates

- Fix invalid Tailwind class bg-gray -> bg-gray-400 in panel template
- Fix count_holdings to only count linked accounts for consistency
This commit is contained in:
luckyPipewrench
2026-01-23 12:50:34 -05:00
parent 9caee4ec36
commit 4909532a08
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@
<div class="w-2 h-2 bg-success rounded-full"></div>
<p class="text-sm text-secondary"><%= "<" + "%= t(\"#{file_name}_items.panel.status_configured_html\", accounts_path: accounts_path).html_safe %" + ">" %></p>
<%= "<" + "% else %" + ">" %>
<div class="w-2 h-2 bg-gray rounded-full"></div>
<div class="w-2 h-2 bg-gray-400 rounded-full"></div>
<p class="text-sm text-secondary"><%= "<" + "%= t(\"#{file_name}_items.panel.status_not_configured\") %" + ">" %></p>
<%= "<" + "% end %" + ">" %>
</div>

View File

@@ -65,7 +65,7 @@ class <%= class_name %>Item::Syncer
<% if investment_provider? -%>
def count_holdings
<%= file_name %>_item.<%= file_name %>_accounts.sum { |pa| Array(pa.raw_holdings_payload).size }
<%= file_name %>_item.linked_<%= file_name %>_accounts.sum { |pa| Array(pa.raw_holdings_payload).size }
end
<% end -%>