mirror of
https://github.com/we-promise/sure.git
synced 2026-04-17 02:54:10 +00:00
* Initial enable banking implementation * Handle multiple connections * Amount fixes * Account type mapping * Add option to skip accounts * Update schema.rb * Transaction fixes * Provider fixes * FIX account identifier * FIX support unlinking * UI style fixes * FIX safe redirect and brakeman issue * FIX - pagination max fix - wrap crud in transaction logic * FIX api uid access - The Enable Banking API expects the UUID (uid from the API response) to fetch balances/transactions, not the identification_hash * FIX add new connection * FIX erb code * Alert/notice box overflow protection * Give alert/notification boxes room to grow (3 lines max) * Add "Enable Banking (beta)" to `/settings/bank_sync` * Make Enable Banking section collapsible like all others * Add callback hint to error message --------- Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
<%# locals: (provider_link:) %>
|
|
|
|
<%# Assign distinct colors to each provider %>
|
|
<% provider_colors = {
|
|
"Lunch Flow" => "#6471eb",
|
|
"Plaid" => "#4da568",
|
|
"SimpleFin" => "#e99537",
|
|
"Enable Banking" => "#6471eb"
|
|
} %>
|
|
<% provider_color = provider_colors[provider_link[:name]] || "#6B7280" %>
|
|
|
|
<%= link_to provider_link[:path],
|
|
target: provider_link[:target],
|
|
rel: provider_link[:rel],
|
|
class: "flex justify-between items-center p-4 bg-container hover:bg-container-hover transition-colors" do %>
|
|
<div class="flex w-full items-center gap-2.5">
|
|
<%= render partial: "shared/color_avatar", locals: { name: provider_link[:name], color: provider_color } %>
|
|
|
|
<div class="flex flex-col">
|
|
<p class="text-primary text-sm font-medium">
|
|
<%= provider_link[:name] %>
|
|
</p>
|
|
<p class="text-secondary text-xs">
|
|
<%= provider_link[:description] %>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="justify-self-end">
|
|
<%= icon("arrow-right", size: "sm", class: "text-secondary") %>
|
|
</div>
|
|
<% end %>
|