mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 06:44:52 +00:00
* Feat(CoinStats): Scaffold implementation, not yet functional * Feat(CoinStats): Implement crypto wallet balance and transactions * Feat(CoinStats): Add tests, Minor improvements * Feat(CoinStats): Utilize bulk fetch API endpoints * Feat(CoinStats): Migrate strings to i8n * Feat(CoinStats): Fix error handling in wallet link modal * Feat(CoinStats): Implement hourly provider sync job * Feat(CoinStats): Generate docstrings * Fix(CoinStats): Validate API Key on provider update * Fix(Providers): Safely handle race condition in merchance creation * Fix(CoinStats): Don't catch system signals in account processor * Fix(CoinStats): Preload before iterating accounts * Fix(CoinStats): Add no opener / referrer to API dashboard link * Fix(CoinStats): Use strict matching for symbols * Fix(CoinStats): Remove dead code in transactions importer * Fix(CoinStats): Avoid transaction fallback ID collisions * Fix(CoinStats): Improve Blockchains fetch error handling * Fix(CoinStats): Enforce NOT NULL constraint for API Key schema * Fix(CoinStats): Migrate sync status strings to i8n * Fix(CoinStats): Use class name rather than hardcoded string * Fix(CoinStats): Use account currency rather than hardcoded USD * Fix(CoinStats): Migrate from standalone to Provider class * Fix(CoinStats): Fix test failures due to string changes
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
<%# locals: (provider_link:) %>
|
|
|
|
<%# Assign distinct colors to each provider %>
|
|
<% provider_colors = {
|
|
"Lunch Flow" => "#6471eb",
|
|
"Plaid" => "#4da568",
|
|
"SimpleFin" => "#e99537",
|
|
"Enable Banking" => "#6471eb",
|
|
"CoinStats" => "#FF9332" # https://coinstats.app/press-kit/
|
|
} %>
|
|
<% 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 %>
|