mirror of
https://github.com/we-promise/sure.git
synced 2026-08-05 08:32:15 +00:00
* Prevent Yahoo crumb cache poisoning * Make Yahoo Finance health status rate-limit aware * Normalize Yahoo Colombian listings Map Yahoo's BVC code to XBOG so search results derive Colombia from canonical exchange metadata and price requests use the .CL suffix with a COP fallback. Spec: .scratch/normalize-yahoo-colombia-listings/spec.md * Move Yahoo health checks to background
23 lines
735 B
Plaintext
23 lines
735 B
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>
|
|
<% health = yahoo_finance_health_presentation(@yahoo_finance_health_status) %>
|
|
<div class="space-y-4">
|
|
<div class="flex items-center space-x-3">
|
|
<div class="w-3 h-3 <%= health[:status_class] %> rounded-full"></div>
|
|
<p class="text-sm text-secondary">
|
|
<%= health[:status_text] %>
|
|
</p>
|
|
</div>
|
|
<% if health[:alert] %>
|
|
<%= render DS::Alert.new(
|
|
title: health.dig(:alert, :title),
|
|
message: health.dig(:alert, :message),
|
|
variant: health.dig(:alert, :variant)
|
|
) %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|