mirror of
https://github.com/we-promise/sure.git
synced 2026-04-24 14:34:08 +00:00
* Implement recurring transactions support * Amount fix * Hide section when any filter is applied * Add automatic identify feature Automatic identification runs after: - CSV Import completes (TransactionImport, TradeImport, AccountImport, MintImport) - Plaid sync completes - SimpleFIN sync completes - LunchFlow sync completes - Any new provider that we create. * Fix linter and tests * Fix address review * FIX proper text sizing * Fix further linter Use circular distance to handle month-boundary wrapping * normalize to a circular representation before computing the median * Better tests validation * Added some UI info Fix pattern identification, last recurrent transaction needs to happened within the last 45 days. * Fix styling * Revert text subdued look * Match structure of the other sections * Styling * Restore positive amounts styling * Shorten label for UI styling --------- Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
<%# locals: (provider_link:) %>
|
|
|
|
<%# Assign distinct colors to each provider %>
|
|
<% provider_colors = {
|
|
"Lunch Flow" => "#6471eb",
|
|
"Plaid" => "#4da568",
|
|
"SimpleFin" => "#e99537"
|
|
} %>
|
|
<% 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 %>
|