Files
sure/app/views/lunchflow_items/_api_error.html.erb
soky srm be0b20dfd9 Lunchflow settings family (#363)
* Move provider config to family

* remove global settings

* Remove turbo auto  submit

* Fix flash location

* Fix mssing syncer for lunchflow

* Update schema.rb

* FIX tests and encryption config

* FIX make rabbit happy

* FIX run migration in SQL

* FIX turbo frame modal

* Branding fixes

* FIX rabbit

* OCD with product names

* More OCD

* No other console.log|warn in codebase

---------

Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
2025-11-22 02:14:29 +01:00

36 lines
1.7 KiB
Plaintext

<%# locals: (error_message:, return_path:) %>
<%= turbo_frame_tag "modal" do %>
<%= render DS::Dialog.new do |dialog| %>
<% dialog.with_header(title: "Lunch Flow Connection Error") %>
<% dialog.with_body do %>
<div class="space-y-4">
<div class="flex items-start gap-3">
<%= icon("alert-circle", class: "text-destructive w-5 h-5 shrink-0 mt-0.5") %>
<div class="text-sm">
<p class="font-medium text-primary mb-2">Unable to connect to Lunch Flow</p>
<p class="text-secondary"><%= error_message %></p>
</div>
</div>
<div class="bg-surface rounded-lg p-4 space-y-2 text-sm">
<p class="font-medium text-primary">Common Issues:</p>
<ul class="list-disc list-inside space-y-1 text-secondary">
<li><strong>Invalid API Key:</strong> Check your API key in Provider Settings</li>
<li><strong>Expired Credentials:</strong> Generate a new API key from Lunch Flow</li>
<li><strong>Network Issue:</strong> Check your internet connection</li>
<li><strong>Service Down:</strong> Lunch Flow API may be temporarily unavailable</li>
</ul>
</div>
<div class="mt-4">
<%= link_to settings_providers_path,
class: "inline-flex items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-white bg-gray-900 hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-900 focus:ring-offset-2 transition-colors",
data: { turbo: false } do %>
Check Provider Settings
<% end %>
</div>
</div>
<% end %>
<% end %>
<% end %>