Files
sure/app/views/simplefin_items/index.html.erb
Sholom Ber 9e557df68a Fix SimpleFin integration bugs and improve code quality
- Fix upsert method to handle string/symbol keys with indifferent access
- Add missing show route and view for SimpleFin items
- Fix test fixtures to use correct user references
- Update test data to match real-world JSON format (string keys, BigDecimal)
- Apply code formatting and linting fixes (rubocop, erb_lint)
- Ensure all SimpleFin tests pass (16/16 passing)
2025-08-07 15:20:27 -04:00

39 lines
1.3 KiB
Plaintext

<% content_for :title, "SimpleFin Connections" %>
<div class="space-y-6">
<div class="flex items-center justify-between">
<div>
<h1 class="text-2xl font-bold text-primary">SimpleFin Connections</h1>
<p class="text-secondary mt-1">Manage your SimpleFin bank account connections</p>
</div>
<%= render DS::Link.new(
text: "Add Connection",
icon: "plus",
variant: "primary",
href: new_simplefin_item_path
) %>
</div>
<% if @simplefin_items.any? %>
<div class="space-y-4">
<% @simplefin_items.each do |simplefin_item| %>
<%= render "simplefin_item", simplefin_item: simplefin_item %>
<% end %>
</div>
<% else %>
<div class="text-center py-12">
<div class="mx-auto w-16 h-16 bg-alpha-black-50 rounded-full flex items-center justify-center mb-4">
<%= icon "building-2", size: "lg" %>
</div>
<h3 class="text-lg font-medium text-primary mb-2">No SimpleFin connections</h3>
<p class="text-secondary mb-6">Connect your bank accounts through SimpleFin to automatically sync transactions.</p>
<%= render DS::Link.new(
text: "Add your first connection",
variant: "primary",
href: new_simplefin_item_path
) %>
</div>
<% end %>
</div>