mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
* Add lookbook + viewcomponent, organize design system file * Build menu component * Button updates * More button fixes * Replace all menus with new ViewComponent * Checkpoint: fix tests, all buttons and menus converted * Split into Link and Button components for clarity * Button cleanup * Simplify custom confirmation configuration in views * Finalize button, link component API * Add toggle field to custom form builder + Component * Basic tabs component * Custom tabs, convert all menu / tab instances in app * Gem updates * Centralized icon helper * Update all icon usage to central helper * Lint fixes * Centralize all disclosure instances * Dialog replacements * Consolidation of all dialog styles * Test fixes * Fix app layout issues, move to component with slots * Layout simplification * Flakey test fix * Fix dashboard mobile issues * Finalize homepage * Lint fixes * Fix shadows and borders in dark mode * Fix tests * Remove stale class * Fix filled icon logic * Move transparent? to public interface
18 lines
532 B
Text
18 lines
532 B
Text
<%# locals: (chat:) %>
|
|
|
|
<div id="chat-error" class="px-3 py-2 bg-red-100 border border-red-500 rounded-lg">
|
|
<% if chat.debug_mode? %>
|
|
<div class="overflow-x-auto text-xs p-4 bg-red-200 rounded-md mb-2">
|
|
<code><%= chat.error %></code>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="flex items-center justify-between gap-2">
|
|
<p class="text-xs text-red-500">Failed to generate response. Please try again.</p>
|
|
|
|
<%= render ButtonComponent.new(
|
|
text: "Retry",
|
|
href: retry_chat_path(chat),
|
|
) %>
|
|
</div>
|
|
</div>
|