mirror of
https://github.com/we-promise/sure.git
synced 2026-04-25 23:14:10 +00:00
* Initial implementation * Tiingo fixes * Adds 2 providers, remove 2 * Add extra checks * FIX a big hotwire race condition // Fix hotwire_combobox race condition: when typing quickly, a slow response for // an early query (e.g. "A") can overwrite the correct results for the final query // (e.g. "AAPL"). We abort the previous in-flight request whenever a new one fires, // so stale Turbo Stream responses never reach the DOM. * pipelock * Update price_test.rb * Reviews * i8n * fixes * fixes * Update tiingo.rb * fixes * Improvements * Big revamp * optimisations * Update 20260408151837_add_offline_reason_to_securities.rb * Add missing tests, fixes * small rank tests * FIX tests * Update show.html.erb * Update resolver.rb * Update usd_converter.rb * Update holdings_controller.rb * Update holdings_controller.rb * Update holdings_controller.rb * Update holdings_controller.rb * Update holdings_controller.rb * Update _yahoo_finance_settings.html.erb
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
<div class="space-y-4">
|
|
<div>
|
|
<h2 class="font-medium mb-1"><%= t(".title") %></h2>
|
|
<p class="text-secondary text-sm mb-4"><%= t(".description") %></p>
|
|
</div>
|
|
<% if @yahoo_finance_provider&.healthy? %>
|
|
<div class="space-y-4">
|
|
<div class="flex items-center space-x-3">
|
|
<div class="w-3 h-3 bg-success rounded-full"></div>
|
|
<p class="text-sm text-secondary">
|
|
<%= t(".status_active") %>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<% else %>
|
|
<div class="space-y-4">
|
|
<div class="flex items-center space-x-3">
|
|
<div class="w-3 h-3 bg-destructive rounded-full"></div>
|
|
<p class="text-sm text-secondary">
|
|
<%= t(".status_inactive") %>
|
|
</p>
|
|
</div>
|
|
<div class="bg-amber-50 border border-amber-200 rounded-lg p-3">
|
|
<div class="flex items-start gap-2">
|
|
<%= icon("alert-triangle", size: "sm", class: "text-amber-600 mt-0.5 shrink-0") %>
|
|
<div>
|
|
<h3 class="text-sm font-medium text-amber-700"><%= t(".connection_failed") %></h3>
|
|
<p class="text-sm text-amber-700 mt-1"><%= t(".troubleshooting") %></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|