mirror of
https://github.com/we-promise/sure.git
synced 2026-05-12 23:25:00 +00:00
Expand financial providers (#1407)
* 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
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="max-w-full <%= 'opacity-50 text-secondary' if entry.excluded %>">
|
||||
<div class="max-w-full <%= "opacity-50 text-secondary" if entry.excluded %>">
|
||||
<%= content_tag :div, class: ["flex items-center gap-3 lg:gap-4"] do %>
|
||||
<div class="hidden lg:flex">
|
||||
<% if transaction.merchant&.logo_url.present? %>
|
||||
@@ -159,7 +159,7 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="shrink-0 col-span-4 lg:col-span-2 ml-auto flex items-center justify-end gap-2 <%= 'opacity-50' if entry.excluded %>">
|
||||
<div class="shrink-0 col-span-4 lg:col-span-2 ml-auto flex items-center justify-end gap-2 <%= "opacity-50" if entry.excluded %>">
|
||||
<%# Protection indicator - shows on hover when entry is protected from sync %>
|
||||
<% if entry.protected_from_sync? && !entry.excluded? %>
|
||||
<%= link_to entry_path(entry),
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<div class="space-y-4">
|
||||
<div class="space-y-1">
|
||||
<%= f.label :security_id, t(".security_label"), class: "font-medium text-sm text-primary block" %>
|
||||
<% if Security.provider.present? %>
|
||||
<% if Security.providers.any? %>
|
||||
<%# Always use searchable combobox when provider available - prevents picking wrong similar tickers %>
|
||||
<div class="form-field combobox" style="--hw-handle-width: 0; --hw-handle-image: none;">
|
||||
<%= f.combobox :ticker,
|
||||
@@ -157,7 +157,7 @@
|
||||
</div>
|
||||
|
||||
<%# Only show exchange field when no provider - combobox selections already include exchange %>
|
||||
<% unless Security.provider.present? %>
|
||||
<% unless Security.providers.any? %>
|
||||
<div class="space-y-1">
|
||||
<%= f.label :exchange_operating_mic, t(".exchange_label"), class: "font-medium text-sm text-primary block" %>
|
||||
<%= f.text_field :exchange_operating_mic,
|
||||
|
||||
Reference in New Issue
Block a user