<% if @encryption_error %>
<%= icon("triangle-alert", class: "w-5 h-5 text-destructive shrink-0 mt-0.5") %>
<%= t("settings.providers.encryption_error.title") %>
<%= t("settings.providers.encryption_error.message") %>
<% else %>
Configure credentials for third-party sync providers. Settings configured here will override environment variables.
<% end %>
<% unless @encryption_error %>
<% @provider_configurations.each do |config| %>
<%= settings_section title: config.provider_key.titleize, collapsible: true, open: false do %>
<%= render "settings/providers/provider_form", configuration: config %>
<% end %>
<% end %>
<%# Providers below are hardcoded because they manage Family-scoped connections %>
<%# (via their own models like SimplefinItem, LunchflowItem, etc.) rather than global settings. %>
<%# They require custom UI for connection management, status display, and sync actions. %>
<%# The controller excludes them from @provider_configurations (see prepare_show_context). %>
<%= settings_section title: "Lunch Flow", collapsible: true, open: false do %>
<%= render "settings/providers/lunchflow_panel" %>
<% end %>
<%= settings_section title: "SimpleFIN", collapsible: true, open: false do %>
<%= render "settings/providers/simplefin_panel" %>
<% end %>
<%= settings_section title: "Enable Banking (beta)", collapsible: true, open: false do %>
<%= render "settings/providers/enable_banking_panel" %>
<% end %>
<%= settings_section title: "CoinStats (beta)", collapsible: true, open: false do %>
<%= render "settings/providers/coinstats_panel" %>
<% end %>
<%= settings_section title: "Mercury (beta)", collapsible: true, open: false do %>
<%= render "settings/providers/mercury_panel" %>
<% end %>
<%= settings_section title: "Coinbase (beta)", collapsible: true, open: false do %>
<%= render "settings/providers/coinbase_panel" %>
<% end %>
<%= settings_section title: "Binance (beta)", collapsible: true, open: false do %>
<%= render "settings/providers/binance_panel" %>
<% end %>
<%= settings_section title: "SnapTrade (beta)", collapsible: true, open: false, auto_open_param: "manage" do %>
<%= render "settings/providers/snaptrade_panel" %>
<% end %>
<%= settings_section title: "Indexa Capital (alpha)", collapsible: true, open: false do %>
<%= render "settings/providers/indexa_capital_panel" %>
<% end %>
<%= settings_section title: "Sophtron (alpha)", collapsible: true, open: false do %>
<%= render "settings/providers/sophtron_panel" %>
<% end %>
<% end %>