mirror of
https://github.com/we-promise/sure
synced 2026-04-25 17:15:07 +02:00
* Add Sophtron Provider * fix syncer test issue * fix schema wrong merge * sync #588 * sync code for #588 * fixed a view issue * modified by comment * modified * modifed * modified * modified * fixed a schema issue * use global subtypes * add some locales * fix a safe_return_to_path * fix exposing raw exception messages issue * fix a merged issue * update schema.rb * fix a schema issue * fix some issue * Update bank sync controller to reflect beta status Signed-off-by: Juan José Mata <jjmata@jjmata.com> * Rename settings section title to 'Sophtron (alpha)' Signed-off-by: Juan José Mata <jjmata@jjmata.com> * Consistency in alpha/beta for Sophtron * Good PR suggestions from CodeRabbit --------- Signed-off-by: soky srm <sokysrm@gmail.com> Signed-off-by: Sophtron Rocky <rocky@sophtron.com> Signed-off-by: Juan José Mata <juanjo.mata@gmail.com> Signed-off-by: Juan José Mata <jjmata@jjmata.com> Co-authored-by: soky srm <sokysrm@gmail.com> Co-authored-by: Juan José Mata <juanjo.mata@gmail.com> Co-authored-by: Juan José Mata <jjmata@jjmata.com>
95 lines
3.8 KiB
Plaintext
95 lines
3.8 KiB
Plaintext
<%= content_for :page_title, "Sync Providers" %>
|
|
|
|
<div class="space-y-4">
|
|
<% if @encryption_error %>
|
|
<div class="p-4 rounded-lg bg-destructive/10 border border-destructive/20">
|
|
<div class="flex items-start gap-3">
|
|
<%= icon("triangle-alert", class: "w-5 h-5 text-destructive shrink-0 mt-0.5") %>
|
|
<div>
|
|
<h3 class="font-medium text-primary"><%= t("settings.providers.encryption_error.title") %></h3>
|
|
<p class="text-secondary text-sm mt-1"><%= t("settings.providers.encryption_error.message") %></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% else %>
|
|
<div>
|
|
<p class="text-secondary mb-4">
|
|
Configure credentials for third-party sync providers. Settings configured here will override environment variables.
|
|
</p>
|
|
</div>
|
|
<% 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 %>
|
|
<turbo-frame id="lunchflow-providers-panel">
|
|
<%= render "settings/providers/lunchflow_panel" %>
|
|
</turbo-frame>
|
|
<% end %>
|
|
|
|
<%= settings_section title: "SimpleFIN", collapsible: true, open: false do %>
|
|
<turbo-frame id="simplefin-providers-panel">
|
|
<%= render "settings/providers/simplefin_panel" %>
|
|
</turbo-frame>
|
|
<% end %>
|
|
|
|
<%= settings_section title: "Enable Banking (beta)", collapsible: true, open: false do %>
|
|
<turbo-frame id="enable_banking-providers-panel">
|
|
<%= render "settings/providers/enable_banking_panel" %>
|
|
</turbo-frame>
|
|
<% end %>
|
|
|
|
<%= settings_section title: "CoinStats (beta)", collapsible: true, open: false do %>
|
|
<turbo-frame id="coinstats-providers-panel">
|
|
<%= render "settings/providers/coinstats_panel" %>
|
|
</turbo-frame>
|
|
<% end %>
|
|
|
|
<%= settings_section title: "Mercury (beta)", collapsible: true, open: false do %>
|
|
<turbo-frame id="mercury-providers-panel">
|
|
<%= render "settings/providers/mercury_panel" %>
|
|
</turbo-frame>
|
|
<% end %>
|
|
|
|
<%= settings_section title: "Coinbase (beta)", collapsible: true, open: false do %>
|
|
<turbo-frame id="coinbase-providers-panel">
|
|
<%= render "settings/providers/coinbase_panel" %>
|
|
</turbo-frame>
|
|
<% end %>
|
|
|
|
<%= settings_section title: "Binance (beta)", collapsible: true, open: false do %>
|
|
<turbo-frame id="binance-providers-panel">
|
|
<%= render "settings/providers/binance_panel" %>
|
|
</turbo-frame>
|
|
<% end %>
|
|
|
|
<%= settings_section title: "SnapTrade (beta)", collapsible: true, open: false, auto_open_param: "manage" do %>
|
|
<turbo-frame id="snaptrade-providers-panel">
|
|
<%= render "settings/providers/snaptrade_panel" %>
|
|
</turbo-frame>
|
|
<% end %>
|
|
|
|
<%= settings_section title: "Indexa Capital (alpha)", collapsible: true, open: false do %>
|
|
<turbo-frame id="indexa_capital-providers-panel">
|
|
<%= render "settings/providers/indexa_capital_panel" %>
|
|
</turbo-frame>
|
|
<% end %>
|
|
|
|
<%= settings_section title: "Sophtron (alpha)", collapsible: true, open: false do %>
|
|
<turbo-frame id="sophtron-providers-panel">
|
|
<%= render "settings/providers/sophtron_panel" %>
|
|
</turbo-frame>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|